Learning from Failures: When Contrastive Post-Training Beats Success Conditioning
No concrete benchmark grounding is available yet. Treat the page as context or an implementation starting point only.
Abstract
Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.
Post-training a language model from rollouts with binary outcomes has two standard recipes: supervised fine-tuning (SFT) on the successful rollouts (success conditioning), and pairwise contrastive learning on success--failure pairs. In practice contrastive and SFT losses are combined, and the combination is often reported to work best, but there is little theory of when and why. We analyze the combined family: a margin-based contrastive term plus a weighted success conditioning term on successful rollouts using a contextual bandit setup with binary rewards. We characterize when adding the contrastive term improves on success conditioning, from expected reward to ranking-based metrics (commonly used in generative retrieval). We study both unweighted and DPO-style reference-reweighted variants of contrastive losses, and characterize how the base policy's alignment with action rewards determines their relative performance. We validate our theoretical results via synthetic experiments and also in the real-world context of generative retrieval.
Results and benchmarks
Post-training a language model from rollouts with binary outcomes has two standard recipes: supervised fine-tuning (SFT) on the successful rollouts (success conditioning), and pairwise contrastive learning on success--failure pairs.
Implementation
No direct implementation yet
Maintained implementation evidence is not confirmed for this paper yet.
Use the implementation status and reproduction sections for the current action plan.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No direct maintained implementation was found. Use the paper PDF and citation graph to design a baseline reproduction.
- Track assumptions and missing details in an experiment log before coding.
Time to first repro: a few days
Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.
- Estimate is based on paper-only reproduction flow
Reproduction readiness
No repo
No verified implementation available
- No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Validation caveat
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
Tasks
Retrieval / indexing
Methods
Reinforcement learning, Transformer, Retrieval-augmented generation
Domains
Natural Language Processing, Information Retrieval
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.