LC3: Long Cross-Language Code Clone Detection Enhanced by Opcode Sequences and Affinity Aggregation
Proceedings of the AAAI Conference on Artificial Intelligence · 14.03.2026 · 40 (37) · 31456-31464
DOI: 10.1609/aaai.v40i37.40410 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the AAAI Conference on Artificial Intelligence, online erschienen am 14.03.2026. Verfasst von Xilin Lan und 4 weiteren Autor:innen.
Abstract (Originalsprache)
Cross-language code clone detection, which identifies functionally similar code across programming languages, is critical for ensuring synchronized evolution and reducing maintenance costs in multi-platform software development. While zero-shot approaches have emerged as a practical solution to data scarcity, state-of-the-art methods still face two major limitations: an insufficiency in learning language-agnostic representations and information loss during the processing of long code. To address these challenges, we propose LC3, a novel framework for robust zero-shot cross-language code clone detection. To overcome the language-agnostic representation insufficiency, LC3 fuses source code with its underlying opcode sequences, leveraging a bimodal architecture and adversarial training to learn a language-agnostic representation. To resolve long-code information loss, LC3 introduces a semantic affinity aggregation strategy. This strategy synthesizes a robust clone score from a complete pairwise similarity matrix computed between segmented code blocks, overcoming the limitations of both simple truncation and aggregation. Extensive experiments show that LC3 significantly outperforms state-of-the-art zero-shot baselines, especially in challenging long-code scenarios.
Zitieren
APA
Lan, X., Zhang, H., Yang, Y., Xue, C., & Kuang, L. (2026). LC3: Long Cross-Language Code Clone Detection Enhanced by Opcode Sequences and Affinity Aggregation. Proceedings of the AAAI Conference on Artificial Intelligence, 40(37), 31456-31464. https://doi.org/10.1609/aaai.v40i37.40410
Vancouver
Lan X, Zhang H, Yang Y, Xue C, Kuang L. LC3: Long Cross-Language Code Clone Detection Enhanced by Opcode Sequences and Affinity Aggregation. Proceedings of the AAAI Conference on Artificial Intelligence. 2026;40(37):31456-31464. doi:10.1609/aaai.v40i37.40410
BibTeX
@article{Lan2026,
author = {Lan, Xilin and Zhang, Huan and Yang, Yang and Xue, Chengwu and Kuang, Li},
title = {LC3: Long Cross-Language Code Clone Detection Enhanced by Opcode Sequences and Affinity Aggregation},
journal = {Proceedings of the AAAI Conference on Artificial Intelligence},
year = {2026},
volume = {40},
number = {37},
pages = {31456--31464},
doi = {10.1609/aaai.v40i37.40410}
}
EUVIMED