Metraipolis › archive › dc_f848f78a2c8d
Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study — arXiv:2609.03702
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.03702
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-17T01:11:09.561Z
- SHA-256 of the archived text
9a216c4dd4eda0b2f656090d8ef206b873d45fe88313903c23c755ae45d8ebb5- Stable URL of this page
https://metraipolis.com/documento/dc_f848f78a2c8d
How to cite
Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study — arXiv:2609.03702 — arXiv (en), https://arxiv.org/abs/2609.03702 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f848f78a2c8d (Metraipolis archive dc_f848f78a2c8d, sha256 9a216c4dd4eda0b2f656090d8ef206b873d45fe88313903c23c755ae45d8ebb5)
BibTeX
@misc{dcf848f78a2c8d,
title = {Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study — arXiv:2609.03702},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.03702},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f848f78a2c8d; sha256 9a216c4dd4eda0b2f656090d8ef206b873d45fe88313903c23c755ae45d8ebb5},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.03702. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
General-purpose code embeddings power tools for code search, classification, and retrieval. Compact transformer encoders for code typically rely on either human-written docstrings (labor-intensive and inconsistent) or mined structural signals such as execution traces (setting-specific and costly to collect). We empirically study an alternative: contrastive pretraining of small encoders with synthetically generated natural-language descriptions emphasizing code functionality and intent, paired with code in a dual-encoder framework at training and discarded at inference. We benchmark this approach against pretraining-based baselines, generalist LLMs, and embedding-specific models on eight retrieval, classification, and generation tasks across C, C++, and Java. Synthetic semantic supervision yields statistically significant gains over pretraining baselines of the same inference-time size on five of eight tasks, with parity on two more; once fine-tuned, it matches or exceeds zero-shot models two orders of magnitude larger on classification, and it stays on par with execution-aware supervision at matched pretraining data, suggesting a scalable, effective alternative to existing code-representation paradigms. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-04 in cs.AI). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.03702 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-17T00:28:02.869Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-04?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).