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
Compute level
Resources
What the paper used
Prerequisites
Scope
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.”
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.
- Synthesize a multi-domain test set combining math, code, science, instruction following, and reasoning tasks.
- Extract frozen backbone hidden state representations for prompt requests across all domain datasets.
- Train a multi-label linear probe / MLP router on backbone representations to predict ground-truth task domain tags.
- 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?
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.
- Efficient Prompting Methods for Large Language Models: A Survey · 2024 · 176 citations
- Dynamic Cross-Modal Prompt Generation for Multimodal Continual Instruction Tuning · 2026 · 4 citations
- The Prompt Report: A Systematic Survey of Prompt Engineering Techniques · 2024 · 1137 citations
- A comprehensive taxonomy of prompt engineering techniques for large language models · 2025 · 68 citations
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-TrainingZhen 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
- Retrieval-Augmented Policy Context for ScalabilityArch-Router: Aligning LLM Routing with Human Preferences🟡Fairly easy
- Adaptive Inference Router for Hybrid ReasoningMiniCPM-V 4.5: Cooking Efficient MLLMs via Architecture, Data, and Training Recipe🟡Fairly easy
- Domain-Grounded Test-Time Compute Routing for Policy WorkflowsEnterpriseOps-Gym: Environments and Evaluations for Stateful Agentic Planning and Tool Use in Enterprise Settings🟡Fairly easy
- Neuro-Symbolic Constraint Enforcement ModuleMobilityBench: A Benchmark for Evaluating Route-Planning Agents in Real-World Mobility Scenarios🟠Medium
- Hybrid Preference-Performance Routing FrameworkArch-Router: Aligning LLM Routing with Human Preferences🟠Medium