The Research Report
Your System Prompt Is Quietly Running Everything
A paper presented at ICLR 2026 shows that optimizing system prompts gives gains on par with task-specific prompt tuning, and the two approaches stack. Here's what that means for anyone building with LLMs.
Everyone who works with large language models knows the ritual. You write a prompt. The output is mediocre. You tweak the prompt. The output gets better. You tweak it again. Now it's worse. You change one word. It's perfect. You move on to the next task and start over.
Prompt engineering has always felt like alchemy. You know the ingredients matter, but the recipe is unclear, and the results are inconsistent. A paper presented at ICLR 2026 on April 25 offers something more structured. It's called SPRIG, and it makes a specific claim that should change how you think about prompting: the system prompt, the general instructions that sit above all your task-specific details, deserves its own optimization pipeline, and optimizing it separately produces gains that rival task-level tuning.
This is the first formal study that isolates system prompt optimization as its own discipline. The results are worth paying attention to.
What SPRIG Actually Is
SPRIG stands for System Prompt Refinement for Increased Generalization. It comes from Lechen Zhang (now at UIUC, previously U. Michigan), Tolga Ergen, Lajanugen Logeswaran, and Moontae Lee (LG AI Research), and David Jurgens (U. Michigan). The paper was accepted at ICLR 2026 and presented as a poster on April 25.
The core idea is straightforward. Most prompt optimization methods focus on task prompts, the specific instructions you write for each individual task. SPRIG instead targets the system prompt, the general instructions that apply across all tasks. Think of it as the difference between tuning a car for one specific race and tuning the engine to perform better everywhere.
The method uses a genetic algorithm. It starts with 9,000 prompt components drawn from 9 categories: good properties, roles, styles, emotions, scenarios, jailbreaks, behavioral instructions, chain-of-thought prompts, and safety directives. These components came from 300 human-crafted prompts collected from prior work, expanded by GPT-4o into 1,000 per category.
Each component is a single sentence with complete semantics. "Let's think step by step" is a component. "You are an expert mathematician" is a component. The system combines these into full system prompts, tests them, keeps the best, and iterates.
How the Pipeline Works
The SPRIG pipeline runs in four steps per iteration:
Step 1: Score and cull. A fine-tuned reward model evaluates every prompt in the current population. The bottom 50% gets eliminated.
Step 2: Mutate and cross. The top 10% undergo mutations. Five types are available: add a component, rephrase one, swap the order of two, delete one, or merge two into one. GPT-4o suggests additions. The top prompts also crossbreed, combining subsets of two strong prompts into offspring.
Step 3: Ground truth check. SPRIG samples 100 prompts from the updated population and evaluates them across 42 actual benchmarks. This gives real scores, not just reward model estimates.
Step 4: Retrain the reward model. The ground truth scores feed back into the reward model for another epoch of training. The model gets better at predicting which prompts will work.
The pipeline runs for 25 iterations with a population size of 9,000. After training, the prompt with the highest validation accuracy becomes the optimized system prompt.
The reward model itself is worth noting. The researchers fine-tuned a Modern-BERT model using a max-margin pairwise loss on 100,000 prompt pairs. It achieves a Spearman correlation of 0.59 and an NDCG@50% score of 0.72 when ranking unseen prompts. Not perfect, but strong enough to serve as a fast proxy for expensive full-benchmark evaluation.
The Results
The researchers tested across 47 tasks spanning 7 categories: reasoning, math, social understanding, commonsense, faithfulness, knowledge, and language understanding. They used three models: Llama 3.1 8B, Mistral Nemo 2407, and Qwen 2.5 7B.
The findings break down into three key results.
Result 1: System optimization rivals task optimization
A single SPRIG-optimized system prompt, applied generically across all 47 tasks, performed on par with task prompts that ProTeGi (the state-of-the-art task optimizer) optimized individually for each task.
Let that sink in. One system prompt, no per-task customization, matched what you get from carefully tuning instructions for each specific task. That's a big deal if you're deploying LLMs across many use cases and don't want to hand-craft prompts for every one.
SPRIG improved performance roughly 10% over the unoptimized baseline. It significantly outperformed the standard "Let's think step by step" chain-of-thought prompt across all task types except knowledge-based questions.
Result 2: System and task optimization complement each other
This is the finding that should change practice. When the researchers combined SPRIG system prompts with ProTeGi task prompts, they got further improvement beyond either method alone. The two approaches are not redundant. They capture different things.
System prompts establish general behavioral patterns. Task prompts provide specific instructions. Optimizing both gives you more than optimizing either one. The combination exceeded state-of-the-art performance on most task types.
The order matters too. The best results came from optimizing the system prompt first, then optimizing the task prompt. Simply concatenating separately-optimized prompts performed worse.
Result 3: System prompts generalize across languages, but not across larger models
SPRIG-optimized system prompts transferred well across languages, better than task-optimized prompts. This makes intuitive sense. A good general instruction like "reason carefully before answering" doesn't need to change much across languages.
But both system and task optimizations showed minimal effects when scaling up to larger model sizes. The bigger the model, the less room there is for prompt optimization to squeeze out gains. The models are already performing closer to their ceilings.
The system prompts also generalized across model families. A prompt optimized for Llama 3.1 transferred reasonably to Mistral and Qwen. Not perfectly, but meaningfully.
Why This Matters
Three practical implications stand out.
First, stop treating system prompts as afterthoughts. Most people spend their prompt engineering effort on task-specific instructions. They copy a system prompt from a template, maybe add a few lines about tone or format, and move on. The SPRIG results suggest this is backwards. System-level instructions have measurable, significant effects on performance, and optimizing them pays off across tasks.
Second, system and task optimization are both worth doing, and in that order. If you're building a production LLM application, optimize your system prompt first. Then optimize task prompts. The returns stack. Doing both is better than doing either one. Doing system first is better than doing task first.
Third, system prompts are a lever for generalization. If you need your model to work well across many tasks, and you probably do, a well-optimized system prompt gives you broad gains without per-task engineering. For organizations deploying LLMs across multiple products or use cases, this is more efficient than maintaining separate prompt libraries for every task.
What SPRIG Doesn't Solve
The paper is honest about limitations. The genetic algorithm approach is compute-intensive. Running 25 iterations with 9,000 candidate prompts, each evaluated by a reward model and periodically by 42 benchmarks, is not cheap. The researchers used GPT-4o for mutation suggestions. The full pipeline requires significant GPU time for benchmark evaluation.
The generalization story is also mixed. System prompts transfer across model families and languages, but the gains shrink for larger models. If you're working with frontier-scale models, prompt optimization in general yields diminishing returns. The model's own capabilities dominate.
And the 9,000-component corpus, while large, is still curated. The categories reflect what the researchers identified from prior work. There may be component types they missed, or categories that matter more for some tasks than others.
The paper also acknowledges that simply concatenating separately-optimized system and task prompts underperforms the sequential approach. This means you can't optimize in isolation and combine. The system prompt sets the context that the task prompt operates within. Optimization needs to respect that dependency.
The Bigger Picture
SPRIG sits at an interesting point in the evolution of prompt engineering. The field has spent most of its effort on task-level optimization. Methods like APE, OPRO, and ProTeGi all focus on finding the best instructions for specific tasks. SPRIG asks a different question: what if there's a general-purpose instruction set that lifts all boats?
The answer turns out to be yes. And the general-purpose gains stack with the task-specific gains. This suggests that system prompts and task prompts operate on different dimensions of model behavior. System prompts set the behavioral baseline. Task prompts provide specific steering. Both matter.
The leaked system prompts from Grok and Claude, which the paper references, are verbose, complex, and hand-crafted. They're the product of extensive manual engineering by large teams. SPRIG offers a path to producing similar results systematically, with measurable benchmarks and reproducible methods.
For researchers, this paper opens a clear line of inquiry. If system prompts have their own optimization landscape, what does that landscape look like? What makes a system prompt generalizable versus one that overfits to specific task distributions? How do the components interact, and can we predict which combinations will work before running expensive evaluations?
For practitioners, the message is simpler. Your system prompt is not just boilerplate. It's an optimization target. Treat it like one.
Citations
- Zhang, L., Ergen, T., Logeswaran, L., Lee, M., & Jurgens, D. (2024). SPRIG: Improving Large Language Model Performance by System Prompt Optimization. arXiv:2410.14826. Accepted at ICLR 2026. https://arxiv.org/abs/2410.14826
- ICLR 2026 Poster: https://iclr.cc/virtual/2026/poster/10009119
- Code and data: https://github.com/orange0629/prompting
- ProTeGi: Pryzant et al. (2023). Automatic Prompt Optimization with Gradient-Based Optimization. https://arxiv.org/abs/2305.03495
- GrIPS: Prasad et al. (2023). GrIPS: Gradient-free, Edit-based Instruction Search for Prompt Optimization. https://arxiv.org/abs/2203.07251
- Chain-of-Thought: Wei et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. https://arxiv.org/abs/2201.11903
- Schulhoff et al. (2024). The Prompt Report: A Systematic Survey of Prompting Techniques. https://arxiv.org/abs/2406.09222
Suggested Title
Your System Prompt Is Quietly Running Everything
Word Count
~1,650 words
Fact-Check Notes
- The "roughly 10% improvement" over unoptimized baseline is described in the paper's Figure 4 and results section. The exact number varies by model; I've characterized it as approximate. A reader verifying should check Figure 4 for precise per-model numbers.
- The claim that SPRIG "significantly outperforms CoT across all task types except knowledge-based questions" comes directly from the paper's contributions section. The word "significantly" is the authors' characterization.
- The statement that SPRIG "surpasses ProTeGi in faithfulness and commonsense tasks" is from the paper abstract and contributions. In the v3 revision, the wording was changed from "language understanding" in v2 to "faithfulness and commonsense" — I've used the v3 wording but flag this for verification since different versions of the paper may differ.
- Author affiliations changed between versions. v1 lists Zhang at U. Michigan. v3 lists Zhang at UIUC. I've noted his current affiliation (UIUC) with his prior affiliation (U. Michigan) in parentheses.
- The paper was first submitted October 18, 2024, with v3 updated April 4, 2026. The ICLR 2026 acceptance is confirmed on both OpenReview and the ICLR conference site.
- The reward model Spearman correlation of 0.59 and NDCG@50% of 0.72 are from Figure 3 and the methods section. These are per-model averages.
- The paper tests on 42 benchmarks for optimization/training and 47 for evaluation. I've used "47 tasks" throughout to match the abstract's claim, but the training uses 42. This distinction could be clearer in the article.
- The finding about minimal effects when scaling to larger model sizes comes from the paper's contribution statement. The paper's main experiments use 7B-8B models; the larger model experiments are in the appendix. Flag this for readers who want exact numbers.