Skip to content
AI-generated research idea🟡Fairly easy💡Moderate InnovationNo close match found

Dynamic Intent-Gated Routing for Soft-Prompt Libraries

Build an input-dependent prompt routing mechanism that dynamically selects and orders relevant soft prompts for each query from a large expert library.

Time

several weeks

Compute level

Single GPU or less

Resources

Standard GPU, public benchmark datasets

What the paper used

Fine-tuning 256-vector soft prompts for 200 steps on Qwen3-4B-Base; evaluation across 10 benchmarks using standard LLM inference routines.

Prerequisites

transformer architectures, mixture of experts, prompt tuning

Scope

modify existing code

The Gap

In Section 3.3 and Section 5, CSPD requires manually specifying or concatenating all expert soft prompts in a static sequence (such as MCSI order) for every input request.

“The second is prompt selection, learning which prompts each request needs instead of choosing them by hand.”
From the paper, Section 5, page 13. Matched against the PDF text.

Limitation

Static full prompt concatenation suffers from potential domain interference when scaling beyond four experts and wastes prompt context tokens on domain experts irrelevant to the specific user query.

Proposed Solution

Train a lightweight router network that takes the initial query's backbone embedding representation and predicts a sparse gating vector over the soft prompt library. Integrate soft-prompt activation thresholds and dynamic ordering based on routing scores before assembling the system prompt context.

The paper’s authors list this direction as future work, so they may already be pursuing it.

Why This Matters

Enables zero-overhead scaling to hundreds of domain-specialized prompts by activating only the 2-3 most relevant soft prompts per request.

How to Get Started

How to test it: Test if dynamically routing top-2 prompts from an expanded 10-expert library beats static concatenation of all 10 prompts on multi-task benchmark accuracy and context length efficiency. Baseline is full static concatenation. Stop if top-2 routing degrades accuracy by >1 point relative to oracle prompt selection.

  1. Synthesize a multi-domain test set combining math, code, science, instruction following, and reasoning tasks.
  2. Extract frozen backbone hidden state representations for prompt requests across all domain datasets.
  3. Train a multi-label linear probe / MLP router on backbone representations to predict ground-truth task domain tags.
  4. Benchmark top-k dynamic prompt concatenation against full concatenation and single-expert baselines on mixed domain evaluations.

Suggested by AI. Adapt it to your setup.

Has This Been Done?

No close match in 10 results

Surveys like The Prompt Report and Efficient Prompting Methods for Large Language Models review general prompting techniques, and Dynamic Cross-Modal Prompt Generation explores multimodal instruction tuning. None of the listed papers investigate dynamic intent-gated routing with sparse gating vectors and activation thresholds specifically for soft-prompt libraries.

We searched OpenAlex and arXiv for “prompt routing soft prompt selection dynamic composition language models” and “Dynamic Intent-Gated Routing for Soft-Prompt Libraries” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

Composable Soft-Prompt Distillation of RL Experts: Toward Continual Post-Training

Zhen Zhang, Changyi Yang, Xuehai He +25 more · 2026

This paper presents Composable Soft-Prompt Distillation (CSPD), a method for continual post-training of large language models that keeps the base pre-RL model frozen and distills each post-RL domain expert into an independent soft prompt. At inference, these soft prompts are concatenated directly in the system prompt without joint training or modifying model weights. CSPD recovers over 90% of teacher gains across math, code, and agent benchmarks, matches multi-teacher on-policy distillation in-domain, and provides superior out-of-domain generalization with minimal serving overhead.

Related Ideas

Is this a good idea?

Share onXLinkedIn