Learning from Failures: When Contrastive Post-Training Beats Success Conditioning

Sarangi, Soutrik, Sinha, Gaurav

–arXiv.org Artificial Intelligence 

A policy can be trained by maximizing likelihood on successful trajectories alone or by contrasting successful and failed trajectories. Success-only finetuning has been studied for language models (Zelikman et al., 2022; Singh et al., 2024; Russo, 2026). Related works on preference-optimization methods learn from comparisons between preferred and dispreferred responses (Rafailov et al., 2023; Meng et al., 2024; Zhao et al., 2023; Yuan et al., 2023; Hong et al., 2024; Xu et al., 2024). When we have explicit binary feedback (instead of only preferences), combining the two objectives of contrastive learning and success-only fine-tuning has also been of interest, yielding gains in applications such as reasoning (Pang et al., 2024) and generative retrieval (Li et al., 2023a), motivating a general question: when does a combination of the two ideas, i.e., maximizing likelihood of successful trajectories and contrasting successful and failed trajectories, improve a policy beyond training on successful trajectories alone? Maximizing likelihood of successful trajectories (also known as success conditioning) (Russo, 2026) is already known to provably improve upon the base data collection policy (Corollary 4.5in (Russo, 2026)). At the same time, prior work such as Rafailov et al. (2023) demonstrates how for applications such as language model alignment, one could contrast a positive and negative answer via preference models (i.e., positive preferred over negative) and obtain strict improvements over the base policy.