Metraipolis › archive › dc_b85080761def

Learning Spectral Representations of Code through Latent Graph Learning for Generalizable Cross-Language Code Clone Detection — arXiv:2608.22383

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.22383
License (as archived)
CC0-1.0
Archived
2026-10-18T08:12:35.135Z
SHA-256 of the archived text
4e8cc6963246b5a00478ea1b0dc8419e13560185c430568c2517cc2f9ecf8fe7
Stable URL of this page
https://metraipolis.com/documento/dc_b85080761def

How to cite

Learning Spectral Representations of Code through Latent Graph Learning for Generalizable Cross-Language Code Clone Detection — arXiv:2608.22383 — arXiv (en), https://arxiv.org/abs/2608.22383 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b85080761def (Metraipolis archive dc_b85080761def, sha256 4e8cc6963246b5a00478ea1b0dc8419e13560185c430568c2517cc2f9ecf8fe7)
BibTeX
@misc{dcb85080761def,
  title = {Learning Spectral Representations of Code through Latent Graph Learning for Generalizable Cross-Language Code Clone Detection — arXiv:2608.22383},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.22383},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b85080761def; sha256 4e8cc6963246b5a00478ea1b0dc8419e13560185c430568c2517cc2f9ecf8fe7},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.22383. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Current code clone detection (CCD) methods rely on fixed, language-specific graph representations like abstract syntax trees (ASTs) or program dependency graphs (PDGs). Because functionally identical code fragments can yield wildly different structures, these rigid graphs produce non-discriminative spectra that perform close to chance. To address this, we propose SPECTRA-Siam, a Siamese latent graph learning network that learns a latent space such that the graph's spectrum serves as a discriminative signature of code functionality by optimizing downstream CCD performance. Given a fragment's AST and data-dependencies, SPECTRA-Siam induces a fixed-size weighted latent graph through soft slot assignment and multi-head attention, and extracts a multi-scale spectral representation from its normalized Laplacian. Mapping all fragments into this shared space yields comparable spectra across programming languages. Experiments on BigCloneBench, AtCoder, and a four-language CodeNet benchmark (Java, Python, C++, C#) support this design choice. Using the same downstream classifier, moving from fixed to learned latent graphs spectra jumps F1 from 0.37 to 0.67 on BigCloneBench and accuracy from 0.60 to 0.71 on AtCoder. On CodeNet, the full model reaches 0.69 accuracy in four epochs and 0.79 after thirty epochs. In bridge-assisted language transfer across 60 unseen paths, SPECTRA-Siam's performance degrades by only 0.058, versus 0.112--0.228 for baselines, showing that learned graph spectra provide a highly generalizable representation for cross-language clone detection.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-25 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.22383 — 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-18T08:07:33.002Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).