In-context Demonstration Matters: On Prompt Optimization for Pseudo-Supervision Refinement
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved great success across diverse tasks, and fine-tuning is sometimes needed to further enhance generation quality. Most existing methods rely on human supervision or parameter retraining, both of which are costly in terms of data collection and computational resources. To handle these challenges, a direct solution is to generate ``high-confidence'' data from unsupervised downstream tasks and use them for in-context prompting or prompt optimization to refine the pseudo-supervision. However, relying solely on such data may lead to overfitting. In this paper, we leverage the in-context learning (ICL) abilities of LLMs and propose a novel approach, pseudo-supervised demonstrations aligned prompt optimization (PAPO) algorithm, which jointly refines both the prompt and the overall pseudo-supervision. The proposed learning objective ensures that the optimized prompt guides the LLM to generate consistent responses for a given input when pseudo-supervised data from the downstream task are used as demonstrations, enabling refinement over the entire pseudo-supervision. The prompt is optimized by translating gradient signals into textual critiques, which serve as feedback to iteratively refine the prompt and model responses. Theoretical analysis in a simplified classification setting shows that the refined pseudo-supervision exhibits a geometric clustering structure, helping to mitigate overfitting. Experiments on question answering, natural language inference benchmarks, and a real-world molecule optimization task, show the effectiveness of the proposed algorithm.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 31 of its 41 references that are in the map. First posted on arXiv 4 Oct 2024.
Builds on
31 of 41 references.
References · 31
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2023Let's Verify Step by Stepcited by 3,598
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
19 more
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2022Large Language Models Can Self-Improvecited by 656
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 254
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2023Black-Box Prompt Optimization: Aligning Large Language Models without Model Trainingcited by 122
- 2022Black-box Prompt Learning for Pre-trained Language Modelscited by 70
- 2023Better Zero-Shot Reasoning with Self-Adaptive Promptingcited by 52
- 2023LLMRefine: Pinpointing and Refining Large Language Models via Fine-Grained Actionable Feedbackcited by 39
- 2021DOCKSTRING: easy molecular docking yields better benchmarks for ligand designcited by 33
- 2024Human-Instruction-Free LLM Self-Alignment with Limited Samplescited by 25
- 2023Universal Self-Adaptive Promptingcited by 14
- 2023Are Human-generated Demonstrations Necessary for In-context Learning?cited by 11
Built on by
Citing papers per year: 2024: 1.
1 paper.
- 2024LProtector: An LLM-driven Vulnerability Detection Systemcited by 8
- 2024LProtector: An LLM-driven Vulnerability Detection System10 Nov 2024