TL;DR
Fine-tuning massive foundation models for specific agentic tasks is computationally prohibitive and quickly becomes obsolete as new models roll out. Supplement Generation Training (SGT) solves this by training a lightweight, 1.7B parameter LLM to act as an "assistant" that generates custom, instance-specific hints or context (supplements) to guide a large, frozen "actor" model. This approach achieves a 21% average performance boost across complex benchmarks without modifying a single weight of the underlying foundation model.
What Problem Does This Paper Address?
State-of-the-art LLMs are increasingly deployed as closed-source, API-only systems, making weight adjustments impossible. Even when fine-tuning is available, the computational overhead is massive, and newly released foundation models routinely render task-specific fine-tunes obsolete before their costs can be amortized.
To improve performance without changing model weights, researchers usually turn to prompt optimization. However, existing Automatic Prompt Optimization (APO) methods (like DSPy or TextGrad) typically optimize global templates or select from a fixed pool of prompts. They don't synthesize new, input-specific reasoning structures or context on the fly. SGT bridges this gap by creating a dynamic, query-dependent prompt generator.
Methods
The authors introduce a framework that treats prompt optimization like an executive-assistant relationship: a small, trainable model (the assistant) prepares the context for a large, frozen model (the executive) so it can perform at its best.
The training pipeline consists of two main phases:
- Warm-Start SFT (Supervised Fine-Tuning): The untrained small model ($\pi_S^0$) is prompted to generate eight predefined types of "supplements" (e.g., Chain-of-Thought, Background Knowledge, Summaries, or Correct/Incorrect Pairs) plus a "Free Style" option. If the supplement helps the large actor model successfully solve the task, it is saved into a positive dataset used to fine-tune the small model via cross-entropy loss.
- Iterative DPO (Direct Preference Optimization): To refine the generator, the model enters an evolutionary loop. It generates multiple supplements per query. Based on whether the actor model succeeds or fails, these are categorized into positive ($S^+$) and negative ($S^-$) sets. The generator is then optimized using a combination of DPO and Negative Log-Likelihood (NLL) loss over cross-type pairs (learning which type of hint to pick) and within-type pairs (improving hint quality).
Datasets
The method was evaluated across five diverse benchmarks representing different reasoning challenges:
- Spider: A complex text-to-SQL benchmark evaluating structured database query generation.
- DS-1000: A code generation benchmark focused on data science libraries (NumPy, pandas).
- HotpotQA: A multi-hop question-answering dataset requiring reasoning across multiple documents.
- Humanity’s Last Exam (HLE): A difficult frontier knowledge benchmark consisting of expert-authored academic questions.
- superGPQA: A large-scale graduate-level QA benchmark spanning hundreds of professional fields.
Key Insights and Ideas
- Natural Selection of Prompt Strategies: During iterative DPO, an emergent "search-and-focus" strategy occurs. Early iterations explore diverse supplement types, while later iterations naturally converge on the most effective strategy for a given task. For instance, the model heavily favors generating "Pairs" (contrasting correct and incorrect examples) for structured reasoning tasks like Spider.
- Task-Dependent Assistance: Supplements are not one-size-fits-all. Structured reasoning tasks (like text-to-SQL and coding) see massive gains because the supplements help externalize intermediate planning steps. Conversely, open-ended tasks relying on factual recall (like HotpotQA) see modest gains, proving that supplements are most valuable when the bottleneck is reasoning organization, not knowledge access.
- Asymmetric Transferability: Knowledge gained by the supplement generator transfers across datasets. Interestingly, training the generator on a harder dataset and applying it to an easier one yields a stronger performance increase than vice versa.
Key Results
- Substantial Performance Gains: SGT achieved an average 21% relative performance improvement across all benchmarks compared to the baseline actor model without supplements.
- Outperforming Existing APO: SGT significantly outperformed popular automatic prompt optimization frameworks like TextGrad (+1% average gain) and DSPy (+4% average gain).
- High Efficiency: SGT uses a tiny 1.7B parameter model (Qwen3-1.7B) as the generator to boost massive models like Claude 3.5 Sonnet and GPT-OSS-120B. Generating a supplement takes only 15–30 milliseconds, introducing negligible latency overhead.
Limitations and Future Work
- Dataset Scale: The experiments were conducted on smaller-scale or downsampled datasets (hundreds to thousands of examples) to simulate low-resource settings; scalability to massive datasets remains to be fully explored.
- Fixed Initial Typology: The framework relies on an initial predefined set of 8 supplement types. While DPO allows new types to emerge, the initial search space is still guided by these human-curated categories. Future work could explore completely unconstrained, open-ended supplement discovery.
Summary updated