Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distance
Not on the map. Why?
Abstract (arXiv)
This paper revisits recent code similarity evaluation metrics, particularly focusing on the application of Abstract Syntax Tree (AST) editing distance in diverse programming languages. In particular, we explore the usefulness of these metrics and compare them to traditional sequence similarity metrics. Our experiments showcase the effectiveness of AST editing distance in capturing intricate code structures, revealing a high correlation with established metrics. Furthermore, we explore the strengths and weaknesses of AST editing distance and prompt-based GPT similarity scores in comparison to BLEU score, execution match, and Jaccard Similarity. We propose, optimize, and publish an adaptable metric that demonstrates effectiveness across all tested languages, representing an enhanced version of Tree Similarity of Edit Distance (TSED).
Key facts. Cited by 26 papers in the map (data through 14 Oct 2026). Builds on 9 of its 21 references that are in the map. First posted on arXiv 12 Apr 2024.
Builds on
9 of 21 references.
References · 9
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2023Enhancing Text-to-SQL Translation for Financial System Designcited by 12
Built on by
Citing papers per year: 2024: 4; 2025: 13; 2026: 9.
26 papers.
Sort:
By area:
- 2024CraftRTL: High-quality Synthetic Data Generation for Verilog Code Models with Correct-by-Construction Non-Textual Representations and Targeted Code Repaircited by 42
- 2025cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Treecited by 17
- 2025Sherlock: Reliable and Efficient Agentic Workflow Executioncited by 11
- 2024Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalizationcited by 10
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
- 2025Code Roulette: How Prompt Variability Affects LLM Code Generationcited by 4
- 2025Dynamic Stability of LLM-Generated Codecited by 4
- 2026Correctness isnt Efficiency: Runtime Memory Divergence in LLM-Generated Codecited by 4
- 2024CodeRefine: A Pipeline for Enhancing LLM-Generated Code Implementations of Research Paperscited by 3
- 2025LLM-Supported Natural Language to Bash Translationcited by 3
- 2025OpenClassGen: A Large-Scale Corpus of Real-World Python Classes for LLM Researchcited by 3
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Designcited by 3
14 more
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
- 2025Measuring LLM Code Generation Stability via Structural Entropycited by 2
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learningcited by 2
- 2025Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiquescited by 2
- 2024CAP: Data Contamination Detection via Consistency Amplificationcited by 1
- 2025How Small Transformation Expose the Weakness of Semantic Similarity Measurescited by 1
- 2026CSSG: Measuring Code Similarity with Semantic Graphscited by 1
- 2026MATA: Multi-Agent Framework for Reliable and Flexible Table Question Answeringcited by 1
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolutioncited by 1
- 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiencycited by 1
- 2025Skeletons Matter: Dynamic Data Augmentation for Text-to-Querycited by 0
- 2026Structure-BiEval: A Self-Supervised, Dual-Track Framework for Decoupling Structure and Content in LLM Evaluation for Web Information Systemscited by 0
- 2026Can Code Evaluation Metrics Detect Code Plagiarism?cited by 0
- 2026Animation2Code: Evaluating Temporal Visual Reasoning in Video-to-Code Generationcited by 0
- 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiency14 Aug 2026
- 2026Animation2Code: Evaluating Temporal Visual Reasoning in Video-to-Code Generation26 Jun 2026
- 2026Can Code Evaluation Metrics Detect Code Plagiarism?28 Apr 2026
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolution3 Apr 2026
- 2026MATA: Multi-Agent Framework for Reliable and Flexible Table Question Answering10 Feb 2026
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Design29 Jan 2026
- 2026Structure-BiEval: A Self-Supervised, Dual-Track Framework for Decoupling Structure and Content in LLM Evaluation for Web Information Systems9 Jan 2026
- 2026CSSG: Measuring Code Similarity with Semantic Graphs7 Jan 2026
- 2026Correctness isnt Efficiency: Runtime Memory Divergence in LLM-Generated Code3 Jan 2026
- 2025Beyond Query-Level Comparison: Fine-Grained Reinforcement Learning for Text-to-SQL with Automated Interpretable Critiques27 Nov 2025
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning24 Nov 2025
- 2025Skeletons Matter: Dynamic Data Augmentation for Text-to-Query24 Nov 2025
14 more
- 2025Dynamic Stability of LLM-Generated Code7 Nov 2025
- 2025Sherlock: Reliable and Efficient Agentic Workflow Execution1 Nov 2025
- 2025How Small Transformation Expose the Weakness of Semantic Similarity Measures8 Sep 2025
- 2025Measuring LLM Code Generation Stability via Structural Entropy19 Aug 2025
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectories4 Aug 2025
- 2025cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree18 Jun 2025
- 2025Code Roulette: How Prompt Variability Affects LLM Code Generation11 Jun 2025
- 2025OpenClassGen: A Large-Scale Corpus of Real-World Python Classes for LLM Research22 Apr 2025
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Features25 Feb 2025
- 2025LLM-Supported Natural Language to Bash Translation7 Feb 2025
- 2024Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalization5 Dec 2024
- 2024CAP: Data Contamination Detection via Consistency Amplification19 Oct 2024
- 2024CraftRTL: High-quality Synthetic Data Generation for Verilog Code Models with Correct-by-Construction Non-Textual Representations and Targeted Code Repair19 Sep 2024
- 2024CodeRefine: A Pipeline for Enhancing LLM-Generated Code Implementations of Research Papers23 Aug 2024
- 2024Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalizationcited by 10
- 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
- 2025Code Roulette: How Prompt Variability Affects LLM Code Generationcited by 4
- 2025Dynamic Stability of LLM-Generated Codecited by 4
- 2026Correctness isnt Efficiency: Runtime Memory Divergence in LLM-Generated Codecited by 4
- 2024CodeRefine: A Pipeline for Enhancing LLM-Generated Code Implementations of Research Paperscited by 3
- 2025LLM-Supported Natural Language to Bash Translationcited by 3
- 2025OpenClassGen: A Large-Scale Corpus of Real-World Python Classes for LLM Researchcited by 3
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Designcited by 3
- 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
- 2025Measuring LLM Code Generation Stability via Structural Entropycited by 2
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learningcited by 2
12 most cited of 20 All 20 (JSON)
- 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiency14 Aug 2026
- 2026Can Code Evaluation Metrics Detect Code Plagiarism?28 Apr 2026
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolution3 Apr 2026
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Design29 Jan 2026
- 2026Structure-BiEval: A Self-Supervised, Dual-Track Framework for Decoupling Structure and Content in LLM Evaluation for Web Information Systems9 Jan 2026
- 2026CSSG: Measuring Code Similarity with Semantic Graphs7 Jan 2026
- 2026Correctness isnt Efficiency: Runtime Memory Divergence in LLM-Generated Code3 Jan 2026
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning24 Nov 2025
- 2025Skeletons Matter: Dynamic Data Augmentation for Text-to-Query24 Nov 2025
- 2025Dynamic Stability of LLM-Generated Code7 Nov 2025
- 2025How Small Transformation Expose the Weakness of Semantic Similarity Measures8 Sep 2025
- 2025Measuring LLM Code Generation Stability via Structural Entropy19 Aug 2025
12 newest of 20 All 20 (JSON)