Research map / Large language models / Language, safety and interpretability
Learning from Contrastive Prompts: An Automated Prompt Optimization Framework
Mingqi Li, Karan Aggarwal, Yong Xie, Aitzaz Ahmad, Stephen Lau
Amazon
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Add a contrastive loss
add contrastive learning from good and bad prompts · BBH overall win rate · win rate (%): best prompt 23.53 -> 76.47; last prompt 52.94 -> 47.06 Mixed
What 1,804 accepted papers report for this change
- 1,706 improved
- 42 no clear effect
- 21 mixed
- 35 hurt
- Beyond Looking Up, Try Looking Around: Harmonizing Global Structure and Local Consistency in Optimal Transport for Short Text Clustering ICML 2026 · add contrastive learning · SearchSnippets · ACC: 56.65 -> 80.12Improved
- SleepLM: Natural-Language Intelligence for Human Sleep ICML 2026 · add contrastive objective to captioning (CoCa vs Cap) · sleep event IoU · IoU: 29.2 -> 27.4Hurt
- LIMSSR: LLM-Driven Sequence-to-Score Reasoning under Training-Time Incomplete Multimodal Observations ICML 2026 · add contrastive loss L_con · FS1000 average · Spearman correlation: 0.759 -> 0.789Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use LCP instead of strongest baseline AutoHint | Claude-3-Sonnet · BBH overall | win rate (%): 55.77 -> 87.50 | Improved |
| use LCP instead of baselines | Claude-4-Sonnet · BBH overall (best prompt) | win rate (%): 72.06 (OPRO) -> 75.74 | Improved |
| use LCP instead of AutoHint | DeepSeek-R1 · BBH overall | win rate (%): 11.8 -> 88.2 | Improved |
| use LCP instead of AutoHint | Claude-4-Sonnet · SuperGLUE AXG | accuracy: 67.0 -> 99.5 | Improved |
| use LCP instead of AutoHint | Claude-3-Sonnet · BBH Multilingual Knowledge (last prompt) | accuracy: 65.00 -> 57.25 | Hurt |
| add contrastive learning from good and bad prompts (ablation) | LCP · BBH overall win rate | win rate (%): best prompt 23.53 -> 76.47; last prompt 52.94 -> 47.06 | Mixed |
| increase number of prompt candidates N from 2 to 10 (ablation) | LCP · BBH overall win rate (best prompt) | win rate (%): 33.33 -> 70.59 | Improved |
| increase N beyond 6 given compute cost (ablation) | LCP · BBH | win rate (%) | No clear effect |
| vary number of prompts used for contrastive feedback (2 to 5) (ablation) | LCP · date_understanding, reasoning_about_colored_objects | accuracy | No clear effect |
| increase number of wrong samples per step beyond 3 (ablation) | LCP · date_understanding, reasoning_about_colored_objects | accuracy | No clear effect |
| increase number of training examples from 5 to 50 (ablation) | LCP · geometric_shapes | accuracy | Improved |
| increase number of training examples from 5 to 50 (ablation) | LCP · reasoning_about_colored_objects | accuracy | No clear effect |
Open problems this paper states
- “Requires many LLM calls, since ten prompt candidates are generated and evaluated per iteration.” → The method needs many extra LLM calls or passes. (an open problem in in-context learning analysis)
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- SOPL: A Sequential Optimal Learning Approach to Automated Prompt Engineering in Large Language Models (EMNLP 2025 · similarity 0.92)
- Self-Supervised Prompt Optimization (EMNLP 2025 · similarity 0.92)
- Beyond Magic Words: Sharpness-Aware Prompt Evolving for Robust Large Language Models with TARE (ICLR 2026 · similarity 0.91)
- Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting (ICLR 2024 · similarity 0.91)
- Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective (ICML 2025 · similarity 0.91)
- GReaTer: Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers (ICLR 2025 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.