paper-with-me

Papers

Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients

2026-01-07 · Prith Sharma, Austin Z. Henley arxiv

Prompt quality plays a central role in controlling the behavior, reliability, and reasoning performance of large language models (LLMs), particularly for smaller open-source instruction-tuned models that depend heavily on explicit structure. While recent work has explored automatic prompt optimization using textual gradients and self-refinement, most existing methods treat prompts as monolithic blocks of text, making it difficult to localize errors, preserve critical instructions, or prevent uncontrolled prompt growth. We introduce Modular Prompt Optimization (MPO), a schema-based prompt optimization framework that treats prompts as structured objects composed of fixed semantic sections, including system role, context, task description, constraints, and output format. MPO applies section-local textual gradients, generated by a critic language model, to refine each section independently while keeping the overall prompt schema fixed. Section updates are consolidated through de-duplication to reduce redundancy and interference between components, yielding an interpretable and robust optimization process. We evaluate MPO on two reasoning benchmarks, ARC-Challenge and MMLU, using LLaMA-3 8B-Instruct and Mistral-7B-Instruct as solver models. Across both benchmarks and models, MPO consistently outperforms an untuned structured prompt and the TextGrad baseline, achieving substantial accuracy gains without modifying model parameters or altering prompt structure. These results demonstrate that maintaining a fixed prompt schema while applying localized, section-wise optimization is an effective and practical approach for improving reasoning performance in small open-source LMs.

📄 PDF Abstract BibTeX arXiv:2601.04055

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Together

2024-07-15 · Dilara Soylu, Christopher Potts, Omar Khattab

Natural Language Processing (NLP) systems are increasingly taking the form of sophisticated modular pipelines, e.g., Retrieval Augmented Generation (RAG), where each module may involve a distinct Language Model (LM) and …

Arithmetic ReasoningLanguage ModelingLanguage ModellingMathematical Reasoning+2

SCULPT: Systematic Tuning of Long Prompts

2024-10-28 · Shanu Kumar, Akhila Yesantarao Venkata, Shubhanshu Khandelwal, Bishal Santra 외

Prompt optimization is essential for effective utilization of large language models (LLMs) across diverse tasks. While existing optimization methods are effective in optimizing short prompts, they struggle with longer, m…

Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programs

2024-06-17 · Krista Opsahl-Ong, Michael J Ryan, Josh Purtell, David Broman 외

Language Model Programs, i.e. sophisticated pipelines of modular language model (LM) calls, are increasingly advancing NLP tasks, but they require crafting prompts that are jointly effective for all modules. We study pro…

Language ModelingLanguage ModellingNavigate

System Prompt Optimization with Meta-Learning

2025-05-14 · Yumin Choi, Jinheon Baek, Sung Ju Hwang

Large Language Models (LLMs) have shown remarkable capabilities, with optimizing their input prompts playing a pivotal role in maximizing their performance. However, while LLM prompts consist of both the task-agnostic sy…

Meta-Learning

LatentPrompt: Optimizing Promts in Latent Space

2025-08-04 · Mateusz Bystroński, Grzegorz Piotrowski, Nitesh V. Chawla, Tomasz Kajdanowicz arxiv

Recent advances have shown that optimizing prompts for Large Language Models (LLMs) can significantly improve task performance, yet many optimization techniques rely on heuristics or manual exploration. We present Latent…