paper-with-me

Papers

ContraPrompt: Contrastive Prompt Optimization via Dyadic Reasoning Trace Analysis

2026-04-20 · Rishav Rishav, Pushpak Pujari, Pushpendre Rastogi arxiv

Prompt optimization methods either analyze individual failures in isolation or compare prompt variants across examples, operating on single execution traces with no access to the reasoning process distinguishing success from failure on the same input. We introduce ContraPrompt, built on the observation that when a model fails but succeeds on a retry with feedback, the difference between its two chain-of-thought traces constitutes an optimization signal not captured by prior methods. Unlike prior contrastive methods, we compare complete intermediate reasoning processes: the two traces share model, input, and base prompt, so remaining differences reflect reasoning strategy and appended error feedback -- we call this dyadic reasoning trace analysis. The multi-attempt solving phase is an instrumented agentic retry loop that generates contrastive data automatically without human annotation. Extracted rules are organized into an input-aware decision tree routing instructions by observable input characteristics. On four reasoning and compliance benchmarks, ContraPrompt outperforms GEPA (Agrawal et al., 2026) on all four, with absolute gains of +8.29 pp on HotPotQA (+20.8% rel.), +2.21 pp on GDPR-Bench (+18.2% rel.), +7.14 pp on GPQA Diamond (+10.6% rel.), and +0.74 pp on BBH (+0.85% rel.). Ablations confirm dyadic trace contrastivity is the critical component, with a -16% relative average drop upon its removal. On 53 EvalSet black-box optimization problems, ContraPrompt beats GEPA on 11, ties on 41, and loses on 1 at equal budget. On FiNER-139 financial named entity recognition (Loukas et al., 2022), ContraPrompt achieves +7.77 pp over the unoptimized baseline (+11.6% rel.) and +1.94 pp over GEPA (+2.66% rel.), with branch conditions aligning with standard US GAAP financial-instrument categories.

📄 PDF Abstract BibTeX arXiv:2604.17937

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Better by Comparison: Retrieval-Augmented Contrastive Reasoning for Automatic Prompt Optimization

2025-09-02 · Juhyeon Lee, Wonduk Seo, Hyunjin An, Seunghyun Lee 외 arxiv

Automatic prompt optimization has recently emerged as a strategy for improving the quality of prompts used in Large Language Models (LLMs), with the goal of generating more accurate and useful responses. However, most pr…

Chain-of-Interaction: Enhancing Large Language Models for Psychiatric Behavior Understanding by Dyadic Contexts

2024-03-20 · Guangzeng Han, Weisi Liu, Xiaolei Huang, Brian Borsari

Automatic coding patient behaviors is essential to support decision making for psychotherapists during the motivational interviewing (MI), a collaborative communication intervention approach to address psychiatric issues…

Decision Making

ReactioNet: Learning High-Order Facial Behavior from Universal Stimulus-Reaction by Dyadic Relation Reasoning

2023-01-01 · ICCV 2023 1 · Xiaotian Li, Taoyue Wang, Geran Zhao, Xiang Zhang 외

Diverse visual stimuli can evoke various human affective states, which are usually manifested in an individual's muscular actions and facial expressions. In lab-controlled emotion datasets, such a critical component …

Action Unit DetectionContrastive LearningFacial Action Unit DetectionFacial Expression Recognition+2

Guidance Contrastive Token Credit Assignment for Discrete Policy Optimization

2026-05-28 · Shufan Li, Konstantinos Kallidromitis, Akash Gokul, Yuta Kyuragi 외 arxiv

Group-advantage-based reinforcement learning methods, such as GRPO and DAPO, have demonstrated strong performance across diverse domains, including mathematical reasoning and text-to-image generation. However, their reli…

Text-to-Image GenerationReinforcement LearningMathematical Reasoning

CAP-CoT: Cycle Adversarial Prompt for Improving Chain of Thoughts in LLM Reasoning

2026-04-25 · Shuxu Chen, Yitian Zhou, Jiaquan Zhang, Haoyu Bian 외 arxiv

Chain-of-Thought (CoT) prompting has emerged as a simple and effective way to elicit step-by-step solutions from large language models (LLMs). However, CoT reasoning can be unstable across runs on long, multi-step proble…