CSSG: Measuring Code Similarity with Semantic Graphs
Not on the map. Why?
Abstract (arXiv)
Existing code similarity metrics, such as BLEU, CodeBLEU, and TSED, largely rely on surface-level string overlap or abstract syntax tree structures, and often fail to capture deeper semantic relationships between programs.We propose CSSG (Code Similarity using Semantic Graphs), a novel metric that leverages program dependence graphs to explicitly model control dependencies and variable interactions, providing a semantics-aware representation of code.Experiments on the CodeContests+ dataset show that CSSG consistently outperforms existing metrics in distinguishing more similar code from less similar code under both monolingual and cross-lingual settings, demonstrating that dependency-aware graph representations offer a more effective alternative to surface-level or syntax-based similarity measures.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 9 of its 15 references that are in the map. First posted on arXiv 7 Jan 2026.
Builds on
9 of 15 references.
References · 9
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2025CodeContests+: High-Quality Test Case Generation for Competitive Programmingcited by 39
- 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 26
Built on by
Citing papers per year: 2026: 1.
1 paper.