Research map / Large language models / Language, safety and interpretability
ContraCLM: Contrastive Learning For Causal Language Model
Nihal Jain, Dejiao Zhang, Wasi Uddin Ahmad, Zijian Wang, Feng Nan, Xiaopeng Li, Ming Tan, Ramesh Nallapati, Baishakhi Ray, Parminder Bhatia, Xiaofei Ma, Bing Xiang
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.
On benchmark leaderboards
- HumanEval leaderboard pass@1 14.63 · rank 250 of 261 papers
This paper tried a common change: Add a contrastive loss
add contrastive losses · Code-to-code search average · MAP (%): 6.32 -> 8.38 Improved
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 |
|---|---|---|---|
| add token- and sequence-level contrastive losses | GPT-2 CLM · STS average | Spearman correlation: 27.83 -> 45.32 | Improved |
| use ContraCLM temperature-based loss instead of SimCTG | GPT-2 · STS average | Spearman correlation: 36.19 -> 45.32 | Improved |
| add token-level loss on top of sequence-level loss (ablation) | ContraCLM-Seq · STS average | Spearman correlation: 37.04 -> 45.32 | Improved |
| add sequence-level loss on top of token-level loss (ablation) | ContraCLM-Tok · STS average | Spearman correlation: 42.03 -> 45.32 | Improved |
| continue training GPT-2 with plain CLM on WikiText-103 | GPT-2 · STS average | Spearman correlation: 31.48 -> 27.83 | Hurt |
| add contrastive losses | CodeGen CLM · Code-to-code search average | MAP (%): 6.32 -> 8.38 | Improved |
| add token-level loss on top of sequence-level loss (ablation) | ContraCLM-Seq · Code-to-code search average | MAP (%): 6.98 -> 8.38 | Improved |
| add contrastive losses | CodeGen CLM · HumanEval | pass@1: 13.42 -> 14.63 | Improved |
| use token-level or sequence-level loss alone (ablation) | CodeGen CLM · HumanEval | pass@1: 12.96 and 13.64 vs 13.42 | No clear effect |
| add contrastive losses | GPT-2 CLM · WikiText-103 generation | perplexity: 22.48 -> 23.01 | Hurt |
| add contrastive losses | GPT-2 CLM · WikiText-103 generation | MAUVE: 0.945 -> 0.947 | Improved |
| use sequence-level loss alone for re-ranking (ablation) | CodeGen CLM · HumanEval | ranked pass@1: 15.38 -> 16.99 | Improved |
Open problems in LLM pruning and scaling data
Do pruning, unlearning and data-scaling methods still work at larger scale and beyond English?
- Experiments are small and larger models or corpora are untested. · 34 papers state it
- The method adds training or compute overhead over the baseline. · 20 papers state it
- Most evaluation uses English or a few high-resource languages. · 13 papers state it
Closest papers by meaning
- Contrastive Code Representation Learning (EMNLP 2021 · similarity 0.88)
- CodeRetriever: A Large Scale Contrastive Pre-Training Method for Code Search (EMNLP 2022 · similarity 0.87)
- GRACE: Generative Representation Learning via Contrastive Policy Optimization (ICLR 2026 · similarity 0.87)
- Syntax-guided Contrastive Learning for Pre-trained Language Model (ACL 2022 · similarity 0.87)
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.86)
- Conditional Language Learning with Context (ICML 2024 · similarity 0.85)
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.