CC2Vec: Distributed Representations of Code Changes
Not on the map. Why?
Abstract (arXiv)
Existing work on software patches often use features specific to a single task. These works often rely on manually identified features, and human effort is required to identify these features for each task. In this work, we propose CC2Vec, a neural network model that learns a representation of code changes guided by their accompanying log messages, which represent the semantic intent of the code changes. CC2Vec models the hierarchical structure of a code change with the help of the attention mechanism and uses multiple comparison functions to identify the differences between the removed and added code. To evaluate if CC2Vec can produce a distributed representation of code changes that is general and useful for multiple tasks on software patches, we use the vectors produced by CC2Vec for three tasks: log message generation, bug fixing patch identification, and just-in-time defect prediction. In all tasks, the models using CC2Vec outperform the state-of-the-art techniques.
Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 4; 2023: 11; 2024: 3; 2025: 5; 2026: 6.
38 papers.
Sort:
By area:
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
- 2025LLM-JEPA: Large Language Models Meet Joint Embedding Predictive Architecturescited by 35
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021On the Evaluation of Commit Message Generation Models: An Experimental Studycited by 20
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
- 2021Learning Structural Edits via Incremental Tree Transformationscited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
26 more
- 2022Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctnesscited by 7
- 2023On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Codecited by 7
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
- 2021Predicting Patch Correctness Based on the Similarity of Failing Test Casescited by 4
- 2023Multi-Granularity Detector for Vulnerability Fixescited by 4
- 2021Generating Informative CVE Description From ExploitDB Posts by Extractive Summarizationcited by 3
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changescited by 3
- 2022ApacheJIT: A Large Dataset for Just-In-Time Defect Predictioncited by 3
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
- 2023A study on the impact of pre-trained model on Just-In-Time defect predictioncited by 3
- 2024COMET: Generating Commit Messages using Delta Graph Context Representationcited by 3
- 2021Repo2Vec: A Comprehensive Embedding Approach for Determining Repository Similaritycited by 2
- 2024Bridging Expert Knowledge with Deep Learning Techniques for Just-In-Time Defect Predictioncited by 2
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learningcited by 1
- 2026Favia: Forensic Agent for Vulnerability-fix Identification and Analysiscited by 1
- 2026Rethinking Code Review in the Age of AI: A Vision for Agentic Code Reviewcited by 1
- 2023Predicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformerscited by 0
- 2025ReDef: Do Code Language Models Truly Understand Code Changes for Just-in-Time Software Defect Prediction?cited by 0
- 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generationcited by 0
- 2025Enhancing Neural Code Representation with Additional Contextcited by 0
- 2025CodeFlowLM: Incremental Just-In-Time Defect Prediction with Pretrained Language Models and Exploratory Insights into Defect Localizationcited by 0
- 2026Risk-Aware Batch Testing for Performance Regression Detectioncited by 0
- 2026Stylometric Defenses Against Author Impersonation in Software Repositoriescited by 0
- 2026Exploring Semantic Stability Across Reviews in the Linux Kernelcited by 0
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issuescited by 0
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issues9 Sep 2026
- 2026Exploring Semantic Stability Across Reviews in the Linux Kernel10 Aug 2026
- 2026Stylometric Defenses Against Author Impersonation in Software Repositories3 Aug 2026
- 2026Rethinking Code Review in the Age of AI: A Vision for Agentic Code Review17 May 2026
- 2026Risk-Aware Batch Testing for Performance Regression Detection31 Mar 2026
- 2026Favia: Forensic Agent for Vulnerability-fix Identification and Analysis13 Feb 2026
- 2025CodeFlowLM: Incremental Just-In-Time Defect Prediction with Pretrained Language Models and Exploratory Insights into Defect Localization28 Nov 2025
- 2025Enhancing Neural Code Representation with Additional Context14 Oct 2025
- 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generation22 Sep 2025
- 2025LLM-JEPA: Large Language Models Meet Joint Embedding Predictive Architectures11 Sep 2025
- 2025ReDef: Do Code Language Models Truly Understand Code Changes for Just-in-Time Software Defect Prediction?11 Sep 2025
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning15 Oct 2024
26 more
- 2024Bridging Expert Knowledge with Deep Learning Techniques for Just-In-Time Defect Prediction17 Mar 2024
- 2024COMET: Generating Commit Messages using Delta Graph Context Representation2 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Predicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformers19 Dec 2023
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey27 Oct 2023
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmaps8 Sep 2023
- 2023A study on the impact of pre-trained model on Just-In-Time defect prediction5 Sep 2023
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Multi-Granularity Detector for Vulnerability Fixes23 May 2023
- 2023On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Code6 May 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoning3 Jan 2023
- 2022Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctness8 Aug 2022
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Code2 Jun 2022
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Models16 Mar 2022
- 2022ApacheJIT: A Large Dataset for Just-In-Time Defect Prediction28 Feb 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learning18 Aug 2021
- 2021Predicting Patch Correctness Based on the Similarity of Failing Test Cases28 Jul 2021
- 2021On the Evaluation of Commit Message Generation Models: An Experimental Study12 Jul 2021
- 2021Repo2Vec: A Comprehensive Embedding Approach for Determining Repository Similarity11 Jul 2021
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changes3 Jun 2021
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repair26 Feb 2021
- 2021Learning Structural Edits via Incremental Tree Transformations28 Jan 2021
- 2021Generating Informative CVE Description From ExploitDB Posts by Extractive Summarization5 Jan 2021
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
- 2025LLM-JEPA: Large Language Models Meet Joint Embedding Predictive Architecturescited by 35
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021On the Evaluation of Commit Message Generation Models: An Experimental Studycited by 20
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
- 2021Learning Structural Edits via Incremental Tree Transformationscited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
12 most cited of 34 All 34 (JSON)
- 2026Exploring Semantic Stability Across Reviews in the Linux Kernel10 Aug 2026
- 2026Stylometric Defenses Against Author Impersonation in Software Repositories3 Aug 2026
- 2026Risk-Aware Batch Testing for Performance Regression Detection31 Mar 2026
- 2025CodeFlowLM: Incremental Just-In-Time Defect Prediction with Pretrained Language Models and Exploratory Insights into Defect Localization28 Nov 2025
- 2025Enhancing Neural Code Representation with Additional Context14 Oct 2025
- 2025LLM-JEPA: Large Language Models Meet Joint Embedding Predictive Architectures11 Sep 2025
- 2025ReDef: Do Code Language Models Truly Understand Code Changes for Just-in-Time Software Defect Prediction?11 Sep 2025
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning15 Oct 2024
- 2024Bridging Expert Knowledge with Deep Learning Techniques for Just-In-Time Defect Prediction17 Mar 2024
- 2024COMET: Generating Commit Messages using Delta Graph Context Representation2 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Predicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformers19 Dec 2023
12 newest of 34 All 34 (JSON)