scimeatlas

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

ACL 2026Large language models › Language, safety and interpretabilityapproach: In-context learning analysisopen problems in this approach1 citations (OpenAlex)

Amazon

Read the paperPlace an idea next to itCheck your own paper ↗

14measured effects
6improved
4no clear effect
2hurt
2mixed

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

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 changedWhereMeasuredEffect
use LCP instead of strongest baseline AutoHintClaude-3-Sonnet · BBH overallwin rate (%): 55.77 -> 87.50Improved
use LCP instead of baselinesClaude-4-Sonnet · BBH overall (best prompt)win rate (%): 72.06 (OPRO) -> 75.74Improved
use LCP instead of AutoHintDeepSeek-R1 · BBH overallwin rate (%): 11.8 -> 88.2Improved
use LCP instead of AutoHintClaude-4-Sonnet · SuperGLUE AXGaccuracy: 67.0 -> 99.5Improved
use LCP instead of AutoHintClaude-3-Sonnet · BBH Multilingual Knowledge (last prompt)accuracy: 65.00 -> 57.25Hurt
add contrastive learning from good and bad prompts (ablation)LCP · BBH overall win ratewin rate (%): best prompt 23.53 -> 76.47; last prompt 52.94 -> 47.06Mixed
increase number of prompt candidates N from 2 to 10 (ablation)LCP · BBH overall win rate (best prompt)win rate (%): 33.33 -> 70.59Improved
increase N beyond 6 given compute cost (ablation)LCP · BBHwin rate (%)No clear effect
vary number of prompts used for contrastive feedback (2 to 5) (ablation)LCP · date_understanding, reasoning_about_colored_objectsaccuracyNo clear effect
increase number of wrong samples per step beyond 3 (ablation)LCP · date_understanding, reasoning_about_colored_objectsaccuracyNo clear effect
increase number of training examples from 5 to 50 (ablation)LCP · geometric_shapesaccuracyImproved
increase number of training examples from 5 to 50 (ablation)LCP · reasoning_about_colored_objectsaccuracyNo clear effect

Open problems this paper states

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy