paper-with-me

Papers

CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back

2023-02-08 · Zhongxin Liu, Zhijie Tang, Xin Xia, Xiaohu Yang

Representing code changes as numeric feature vectors, i.e., code change representations, is usually an essential step to automate many software engineering tasks related to code changes, e.g., commit message generation and just-in-time defect prediction. Intuitively, the quality of code change representations is crucial for the effectiveness of automated approaches. Prior work on code changes usually designs and evaluates code change representation approaches for a specific task, and little work has investigated code change encoders that can be used and jointly trained on various tasks. To fill this gap, this work proposes a novel Code Change Representation learning approach named CCRep, which can learn to encode code changes as feature vectors for diverse downstream tasks. Specifically, CCRep regards a code change as the combination of its before-change and after-change code, leverages a pre-trained code model to obtain high-quality contextual embeddings of code, and uses a novel mechanism named query back to extract and encode the changed code fragments and make them explicitly interact with the whole code change. To evaluate CCRep and demonstrate its applicability to diverse code-change-related tasks, we apply it to three tasks: commit message generation, patch correctness assessment, and just-in-time defect prediction. Experimental results show that CCRep outperforms the state-of-the-art techniques on each task.

📄 PDF Abstract BibTeX arXiv:2302.03924

Code (1)

zju-ctag/ccrep 공식 구현 pytorch

Tasks

Representation Learning

Similar Papers 제목 키워드 기반

CCrepairBench: A High-Fidelity Benchmark and Reinforcement Learning Framework for C++ Compilation Repair

2025-09-19 · Weixuan Sun, Jucai Zhai, Dengfeng Liu, Xin Zhang 외 arxiv

The automated repair of C++ compilation errors presents a significant challenge, the resolution of which is critical for developer productivity. Progress in this domain is constrained by two primary factors: the scarcity…

Reinforcement Learning

Unsupervised Learning of General-Purpose Embeddings for Code Changes

2021-06-03 · Mikhail Pravilov, Egor Bogomolov, Yaroslav Golubev, Timofey Bryksin

Applying machine learning to tasks that operate with code changes requires their numerical representation. In this work, we propose an approach for obtaining such representations during pre-training and evaluate them on …

Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning

2024-10-15 · Yuze Jiang, Beijun Shen, Xiaodong Gu

For predicting software defects at an early stage, researchers have proposed just-in-time defect prediction (JIT-DP) to identify potential defects in code commits. The prevailing approaches train models to represent code…

Representation Learning

MaskCD: A Remote Sensing Change Detection Network Based on Mask Classification

2024-04-18 · Weikang Yu, Xiaokang Zhang, Samiran Das, Xiao Xiang Zhu 외

Change detection (CD) from remote sensing (RS) images using deep learning has been widely investigated in the literature. It is typically regarded as a pixel-wise labeling task that aims to classify each pixel as changed…

Change DetectionDecoder

Sparse Autoencoders enable Robust and Interpretable Fine-tuning of CLIP models

2026-05-15 · Fabian Morelli, Arnas Uselis, Ankit Sonthalia, Seong Joon Oh arxiv

Large-scale pre-trained vision-language models like CLIP demonstrate remarkable zero-shot performance across diverse tasks. However, fine-tuning these models to improve downstream performance often degrades robustness ag…