Research map / Label-efficient and robust learning / Recognition and long-tail
Soft-Labeled Contrastive Pre-Training for Function-Level Code Representation
Xiaonan Li, Daya Guo, Yeyun Gong, Yun Lin, Yelong Shen, Xipeng Qiu, Daxin Jiang, Weizhu Chen, Nan Duan
Microsoft · National University of Singapore · Fudan University · Microsoft Research Asia
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add ASST positive pairs instead of code-transformation positives (ablation) | UniXcoder baseline · CSN overall | MRR: 74.6 -> 75.4 | Improved |
| add code-transformation positive pairs (ablation) | UniXcoder baseline · CSN overall | MRR: 74.4 -> 74.6 | Improved |
| add ASST positive pairs (ablation) | UniXcoder baseline · CSN overall | MRR: 74.4 -> 75.4 | Improved |
| add code comment (text-code) positive pairs (ablation) | UniXcoder + ASST · CSN overall | MRR: 75.4 -> 75.9 | Improved |
| add soft-labeled contrastive pre-training (ablation) | UniXcoder + ASST + code comment · CSN overall | MRR: 75.9 -> 76.8 | Improved |
| replace AST-based splitting with token-level ICT (ablation) | SCodeR · Zero-shot code-to-code search | MAP: 28.6 -> 27.2 | Hurt |
| replace AST-based splitting with line-level ICT (ablation) | SCodeR · Zero-shot code-to-code search | MAP: 28.6 -> 27.6 | Hurt |
| SCodeR vs UniXcoder | UniXcoder · POJ-104 | MAP@R: 90.52 -> 92.45 | Improved |
| SCodeR vs UniXcoder | UniXcoder · BigCloneBench | F1: 95.2 -> 95.3 | No clear effect |
| SCodeR vs UniXcoder | UniXcoder · Zero-shot code-to-code search | MAP: 20.45 -> 23.57 | Improved |
| SCodeR vs UniXcoder | UniXcoder · Markdown ordering | Kendall's tau: 85.9 -> 86.6 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- CodeRetriever — CodeRetriever: A Large Scale Contrastive Pre-Training Method for Code Search (EMNLP 2022) · better on 3 of 3 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Closest papers by meaning
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.90)
- Uncertainty-Aware Contrastive Learning with Hard Negative Sampling for Code Search Tasks (AAAI 2025 · similarity 0.87)
- Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting (AAAI 2025 · similarity 0.85)
- Towards A Generalist Code Embedding Model Based On Massive Data Synthesis (NeurIPS 2025 · similarity 0.84)
- CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Reranking (ICLR 2025 · similarity 0.84)
- JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligence (ICLR 2026 · similarity 0.83)
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.
