mlsanityData to 7 Oct 2026

SPRIG: Improving Large Language Model Performance by System Prompt Optimization

arXiv 2410.14826 ↗First posted 18 Oct 2024cs.CL cs.AI cs.HCcited by 28

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have shown impressive capabilities in many scenarios, but their performance depends, in part, on the choice of prompt. Past research has focused on optimizing prompts specific to a task. However, much less attention has been given to optimizing the general instructions included in a prompt, known as a system prompt. To address this gap, we propose SPRIG, an edit-based genetic algorithm that iteratively constructs prompts from prespecified components to maximize the model's performance in general scenarios. We evaluate the performance of system prompts on a collection of 47 different types of tasks to ensure generalizability. Our study finds that a single optimized system prompt performs on par with task prompts optimized for each individual task. Moreover, combining system and task-level optimizations leads to further improvement, which showcases their complementary nature. Experiments also reveal that the optimized system prompts generalize effectively across model families, parameter sizes, and languages. This study provides insights into the role of system-level instructions in maximizing LLM potential.

Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 42 of its 69 references that are in the map. First posted on arXiv 18 Oct 2024.

Builds on

42 of 69 references.

References · 42

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  7. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  8. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  9. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  10. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  11. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  12. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
30 more
  1. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  2. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
  3. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  4. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  5. 2023A Comprehensive Overview of Large Language Modelscited by 639
  6. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  7. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
  8. 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 518
  9. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  10. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  11. 2020XCOPA: A Multilingual Dataset for Causal Commonsense Reasoningcited by 330
  12. 2023The Belebele Benchmark: a Parallel Reading Comprehension Dataset in 122 Language Variantscited by 300
  13. 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
  14. 2022Data Contamination: From Memorization to Exploitationcited by 234
  15. 2023Large Language Models Understand and Can be Enhanced by Emotional Stimulicited by 143
  16. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
  17. 2023Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselvescited by 123
  18. 2023M3Exam: A Multilingual, Multimodal, Multilevel Benchmark for Examining Large Language Modelscited by 109
  19. 2023Large Language Models as Analogical Reasonerscited by 107
  20. 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
  21. 2024MixEval: Deriving Wisdom of the Crowd from LLM Benchmark Mixturescited by 73
  22. 2023Do LLMs Understand Social Knowledge? Evaluating the Sociability of Large Language Models with SocKET Benchmarkcited by 62
  23. 2023HI-TOM: A Benchmark for Evaluating Higher-Order Theory of Mind Reasoning in Large Language Modelscited by 61
  24. 2023When "A Helpful Assistant" Is Not Really Helpful: Personas in System Prompts Do Not Improve Performances of Large Language Modelscited by 50
  25. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  26. 2023SemEval-2023 Task 10: Explainable Detection of Online Sexismcited by 48
  27. 2023What's the Magic Word? A Control Theory of LLM Promptingcited by 41
  28. 2024Think Twice Before Trusting: Self-Detection for Large Language Models through Comprehensive Answer Reflectioncited by 40
  29. 2023Bounding the Capabilities of Large Language Models in Open Text Generation with Prompt Constraintscited by 31
  30. 2024Teach Better or Show Smarter? On Instructions and Exemplars in Automatic Prompt Optimizationcited by 28

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 18; 2026: 10.

28 papers.

Sort:

By area:

  1. 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
  2. 2025A Closer Look at System Prompt Robustnesscited by 31
  3. 2025System Prompt Optimization with Meta-Learningcited by 18
  4. 2025Whose Boat Does it Float? Improving Personalization in Preference Tuning via Inferred User Personascited by 17
  5. 2026Managing Procedural Memory in LLM Agents: Control, Adaptation, and Evaluationcited by 8
  6. 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
  7. 2025ECG-Expert-QA: A Benchmark for Evaluating Medical Large Language Models in Heart Disease Diagnosiscited by 5
  8. 2025Multimodal Prompt Optimization: Why Not Leverage Multiple Modalities for MLLMscited by 5
  9. 2025Psychometric Personality Shaping Modulates Capabilities and Safety in Language Modelscited by 4
  10. 2025Combining TSL and LLM to Automate REST API Testing: A Comparative Studycited by 3
  11. 2025Cross-Lingual Prompt Steerability: Towards Accurate and Robust LLM Behavior across Languagescited by 3
  12. 2025ConSCompF: Consistency-focused Similarity Comparison Framework for Generative Large Language Modelscited by 2
16 more
  1. 2025Prompt Smart, Pay Less: Cost-Aware APO for Real-World Applicationscited by 2
  2. 2025LangDA: Building Context-Awareness via Language for Domain Adaptive Semantic Segmentationcited by 1
  3. 2025Grammar-Guided Evolutionary Search for Discrete Prompt Optimisationcited by 1
  4. 2026PromptEvolver: Prompt Inversion through Evolutionary Optimization in Natural-Language Spacecited by 1
  5. 2026Optimization before Evaluation: Evaluation with Unoptimised Prompts Can be Misleadingcited by 1
  6. 2025Accelerating Reinforcement Learning Algorithms Convergence using Pre-trained Large Language Models as Tutors With Advice Reusingcited by 0
  7. 2025A Multimodal GUI Architecture for Interfacing with LLM-Based Conversational Assistantscited by 0
  8. 2025LLM Reinforcement in Contextcited by 0
  9. 2025Invasive Context Engineering to Control Large Language Modelscited by 0
  10. 2026DUCTILE: Agentic LLM Orchestration of Engineering Analysis in Product Development Practicecited by 0
  11. 2026Benchmarking LLM-Based Static Analysis for Secure Smart Contract Development: Reliability, Limitations, and Potential Hybrid Solutionscited by 0
  12. 2026Towards Spec Learning: Inference-Time Alignment from Preference Pairscited by 0
  13. 2026Benchmarking AI Agents for Hardware Design Automation via MCP Tool Callingcited by 0
  14. 2026Code-to-Harness: Distilling Black-Box Optimizers from Self-Playcited by 0
  15. 2026STEVE: Stabilizing Textual Gradient-Based Prompt Optimization via Error-Driven Refinement and Regularized Verificationcited by 0
  16. 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelitycited by 0