Research map / Large language models / Language, safety and interpretability
Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study
Kenneth Paulsen, Florian Tambon, Mike Papadakis, Shin Yoo
University of Luxembourg · Korea Advanced Institute of Science and Technology
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 a contrastive loss
add contrastive objective instead of MLM · Clone detection and tag classification · accuracy / F1: +4.2 and +3.2 points 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 contrastive pretraining with synthetic descriptions (SyncDesc-2S) | UnixCoder / TRACED · Title matching (CodeForces) | accuracy: 0.609 -> 0.677 | Improved |
| add contrastive pretraining with synthetic descriptions (SyncDesc-S) | UnixCoder / ContraCode · Docstring matching | accuracy: 0.595 -> 0.645 | Improved |
| use synthetic descriptions instead of execution traces at matched data | TRACED · Clone / vulnerability / tag matching (C) | MAP / F1 / accuracy: clone 0.855 vs 0.858; vulnerability 0.557 vs 0.545 | No clear effect |
| use SyncDesc on vulnerability detection | UnixCoder · Vulnerability detection | F1: 0.570 -> 0.557 (n.s.) | Hurt |
| use SyncDesc on tag classification and description generation | strongest 125M baseline · CodeForces tag classification; description generation | F1; similarity: 0.281 -> 0.287; 0.658 -> 0.672 (not significant) | No clear effect |
| use fine-tuned 125M SyncDesc instead of zero-shot prompted LLMs | Claude Sonnet / GPT-4o · CodeForces tag classification | F1: 0.270 -> 0.287 | Improved |
| add synthetic descriptions instead of human docstrings (ablation) | SyncDesc · Clone accuracy / CodeChef tag F1 | accuracy / F1: 0.6934 -> 0.7239 clone accuracy | Improved |
| add contrastive objective instead of MLM (ablation) | SyncDesc · Clone detection and tag classification | accuracy / F1: +4.2 and +3.2 points | Improved |
| add semantic content instead of random text (ablation) | SyncDesc · Clone detection | accuracy: 0.6558 -> 0.7239 | Improved |
| train description encoder instead of freezing it (ablation) | SyncDesc · Clone detection and tag classification | accuracy / F1: about 1 and 2 points | Improved |
| use code-conditioned synthetic descriptions instead of GPT-4o paraphrases of docstrings (ablation) | SyncDesc (50k subset) · Clone accuracy | accuracy: 0.728 -> 0.752 | Improved |
| replace GPT-4o with Qwen2.5-Coder-7B as description generator (ablation) | SyncDesc (50k subset) · Clone accuracy and tag F1 | accuracy / F1: 0.752 vs 0.749; 0.260 vs 0.256 | No clear effect |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.91)
- Towards A Generalist Code Embedding Model Based On Massive Data Synthesis (NeurIPS 2025 · similarity 0.89)
- Hidden Positives: Why Code Retrieval Benchmarks Underestimate Model Quality (NeurIPS 2026 · similarity 0.89)
- Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting (AAAI 2025 · similarity 0.88)
- Emergent Representations of Program Semantics in Language Models Trained on Programs (ICML 2024 · similarity 0.87)
- Uncertainty-Aware Contrastive Learning with Hard Negative Sampling for Code Search Tasks (AAAI 2025 · similarity 0.87)
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.