paper-with-me

홈 › Papers

Exploring Representation-Level Augmentation for Code Search

2022-10-21 · Haochen Li, Chunyan Miao, Cyril Leung, Yanxian Huang, Yuan Huang, Hongyu Zhang, Yanlin Wang

Code search, which aims at retrieving the most relevant code fragment for a given natural language query, is a common activity in software development practice. Recently, contrastive learning is widely used in code search research, where many data augmentation approaches for source code (e.g., semantic-preserving program transformation) are proposed to learn better representations. However, these augmentations are at the raw-data level, which requires additional code analysis in the preprocessing stage and additional training costs in the training stage. In this paper, we explore augmentation methods that augment data (both code and query) at representation level which does not require additional data processing and training, and based on this we propose a general format of representation-level augmentation that unifies existing methods. Then, we propose three new augmentation methods (linear extrapolation, binary interpolation, and Gaussian scaling) based on the general format. Furthermore, we theoretically analyze the advantages of the proposed augmentation methods over traditional contrastive learning methods on code search. We experimentally evaluate the proposed representation-level augmentation methods with state-of-the-art code search models on a large-scale public dataset consisting of six programming languages. The experimental results show that our approach can consistently boost the performance of the studied code search models. Our source code is available at https://github.com/Alex-HaochenLi/RACS.

📄 PDF Abstract BibTeX arXiv:2210.12285

Code (1)

alex-haochenli/racs 공식 구현 pytorch

Tasks

Code SearchContrastive LearningData Augmentation

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

Exploring Self-Supervised Contrastive Learning of Spatial Sound Event Representation

2023-09-27 · Xilin Jiang, Cong Han, Yinghao Aaron Li, Nima Mesgarani

In this study, we present a simple multi-channel framework for contrastive learning (MC-SimCLR) to encode 'what' and 'where' of spatial audios. MC-SimCLR learns joint spectral and spatial representations from unlabeled s…

Contrastive LearningData Augmentation

Exploring Image Augmentations for Siamese Representation Learning with Chest X-Rays

2023-01-30 · Rogier van der Sluijs, Nandita Bhaskhar, Daniel Rubin, Curtis Langlotz 외

Image augmentations are quintessential for effective visual representation learning across self-supervised learning techniques. While augmentation strategies for natural imaging have been studied extensively, medical ima…

Anomaly DetectionRepresentation LearningSelf-Supervised Learning

Learning Graph Augmentations to Learn Graph Representations

2022-01-24 · Kaveh Hassani, Amir Hosein Khasahmadi

Devising augmentations for graph contrastive learning is challenging due to their irregular structure, drastic distribution shifts, and nonequivalent feature spaces across datasets. We introduce LG2AR, Learning Graph Aug…

Contrastive Learning

Exploring Data Augmentation for Code Generation Tasks

2023-02-05 · Pinzhen Chen, Gerasimos Lampouras

Advances in natural language processing, such as transfer learning from pre-trained language models, have impacted how models are trained for programming language tasks too. Previous research primarily explored code pre-…

Code GenerationCode SummarizationCode TranslationData Augmentation+1

SE-VGAE: Unsupervised Disentangled Representation Learning for Interpretable Architectural Layout Design Graph Generation

2024-06-25 · Jielin Chen, Rudi Stouffs

Despite the suitability of graphs for capturing the relational structures inherent in architectural layout designs, there is a notable dearth of research on interpreting architectural design space using graph-based repre…

DecoderDisentanglementGraph GenerationLayout Design+1