Research map / Label-efficient and robust learning / Self-supervised and contrastive
Contrastive Code Representation Learning
Paras Jain, Ajay Jain, Tianjun Zhang, Pieter Abbeel, Joseph E. Gonzalez, Ion Stoica
University of California, Berkeley
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.
This paper tried a common change: Add data augmentation
add compiler data augmentations during supervised training from scratch · method name prediction and type inference · F1 / Acc@1: F1 16.86 -> 15.65; Acc@1 45.66 -> 44.14; 51.73 -> 50.33 Hurt
What 778 accepted papers report for this change
- 626 improved
- 55 no clear effect
- 27 mixed
- 70 hurt
- Understanding Multimodal Learning: A Loss Landscape Smoothness Perspective ICML 2026 · add data augmentation (jitter, crop, flip) · UPMC-Food101 · accuracy: 92.84 -> 94.93Improved
- AsyncBEV: Cross-modal flow alignment in Asynchronous 3D Object Detection ICLR 2026 · add EMC + asynchronous data augmentation training · nuScenes val, 0 s offset · NDS: 66.7 -> 63.1Hurt
- Towards Understanding Continual Factual Knowledge Acquisition of Language Models: From Theory to Algorithm ICML 2026 · add data augmentation (5 biographies per individual) in pre-training · Biography PT test, unseen templates · EM: 2.71 -> 81.27Improved
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 ContraCode pre-training to Transformer instead of RoBERTa MLM | Transformer · HackerRank clone detection, adversarial N=4 | AUROC: 25.83 -> 64.97 | Improved |
| add ContraCode pre-training to Transformer | Transformer · HackerRank clone detection, natural code | AUROC: 72.31 -> 75.73 | Improved |
| add hybrid ContraCode + MLM objective instead of ContraCode alone (ablation) | Transformer · HackerRank clone detection, adversarial N=4 | AUROC: 64.97 -> 37.81 | Hurt |
| add hybrid ContraCode + MLM objective (ablation) | Transformer · HackerRank clone detection, natural code | AUROC: 75.73 -> 79.39 | Improved |
| add RoBERTa MLM pre-training to Transformer for type inference | Transformer · TypeScript type inference | Acc@1: 45.66 -> 40.85 | Hurt |
| add ContraCode pre-training to Transformer | Transformer · TypeScript type inference | Acc@1: 45.66 -> 46.86 | Improved |
| add ContraCode pre-training to DeepTyper BiLSTM | DeepTyper BiLSTM · TypeScript type inference | Acc@1: 51.73 -> 54.01 | Improved |
| add ContraCode pre-training to Transformer for method name prediction | Transformer · CodeSearchNet JavaScript method name prediction | F1: 16.86 -> 17.24 | Improved |
| add compiler data augmentations during supervised training from scratch (ablation) | Transformer / DeepTyper · method name prediction and type inference | F1 / Acc@1: F1 16.86 -> 15.65; Acc@1 45.66 -> 44.14; 51.73 -> 50.33 | Hurt |
| add code compression augmentations (T, C, DCE, CF) to pre-training (ablation) | ContraCode DeepTyper BiLSTM · TypeScript type inference | Acc@1: 50.69 -> 52.65 | Improved |
| add line subsampling to pre-training augmentations (ablation) | ContraCode DeepTyper BiLSTM · TypeScript type inference | Acc@1: 51.05 -> 52.65 | Improved |
| add identifier modification augmentations (VR, IM) to pre-training (ablation) | ContraCode DeepTyper BiLSTM · TypeScript type inference | Acc@1: 51.94 -> 52.65 | Improved |
Closest papers by meaning
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.88)
- AdaCCD: Adaptive Semantic Contrasts Discovery Based Cross Lingual Adaptation for Code Clone Detection (AAAI 2024 · similarity 0.87)
- Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting (AAAI 2025 · similarity 0.86)
- Uncertainty-Aware Contrastive Learning with Hard Negative Sampling for Code Search Tasks (AAAI 2025 · similarity 0.85)
- CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Reranking (ICLR 2025 · similarity 0.85)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · 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.
