paper-with-me

Papers

CLAWSAT: Towards Both Robust and Accurate Code Models

2022-11-21 · Jinghan Jia, Shashank Srikant, Tamara Mitrovska, Chuang Gan, Shiyu Chang, Sijia Liu, Una-May O'Reilly

We integrate contrastive learning (CL) with adversarial learning to co-optimize the robustness and accuracy of code models. Different from existing works, we show that code obfuscation, a standard code transformation operation, provides novel means to generate complementary `views' of a code that enable us to achieve both robust and accurate code models. To the best of our knowledge, this is the first systematic study to explore and exploit the robustness and accuracy benefits of (multi-view) code obfuscations in code models. Specifically, we first adopt adversarial codes as robustness-promoting views in CL at the self-supervised pre-training phase. This yields improved robustness and transferability for downstream tasks. Next, at the supervised fine-tuning stage, we show that adversarial training with a proper temporally-staggered schedule of adversarial code generation can further improve robustness and accuracy of the pre-trained code model. Built on the above two modules, we develop CLAWSAT, a novel self-supervised learning (SSL) framework for code by integrating $\underline{\textrm{CL}}$ with $\underline{\textrm{a}}$dversarial vie$\underline{\textrm{w}}$s (CLAW) with $\underline{\textrm{s}}$taggered $\underline{\textrm{a}}$dversarial $\underline{\textrm{t}}$raining (SAT). On evaluating three downstream tasks across Python and Java, we show that CLAWSAT consistently yields the best robustness and accuracy ($\textit{e.g.}$ 11$\%$ in robustness and 6$\%$ in accuracy on the code summarization task in Python). We additionally demonstrate the effectiveness of adversarial learning in CLAW by analyzing the characteristics of the loss landscape and interpretability of the pre-trained models.

📄 PDF Abstract BibTeX arXiv:2211.11711

Code (1)

optml-group/claw-sat 공식 구현 pytorch

Tasks

Code GenerationCode SummarizationContrastive LearningSelf-Supervised Learning

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

A Fast, Compact, Accurate Model for Language Identification of Codemixed Text

2018-10-09 · EMNLP 2018 10 · Yuan Zhang, Jason Riesa, Daniel Gillick, Anton Bakalov 외

We address fine-grained multilingual language identification: providing a language code for every token in a sentence, including codemixed text containing multiple languages. Such text is prevalent online, in documents, …

DecoderLanguage IdentificationSentence

Variational Graph Autoencoder for Heterogeneous Information Networks with Missing and Inaccurate Attributes

2023-11-14 · Yige Zhao, Jianxiang Yu, Yao Cheng, Chengcheng Yu 외

Heterogeneous Information Networks (HINs), which consist of various types of nodes and edges, have recently demonstrated excellent performance in graph mining. However, most existing heterogeneous graph neural networks (…

AttributeDecoderGraph Mining

PIER: A Novel Metric for Evaluating What Matters in Code-Switching

2025-01-16 · Enes Yavuz Ugan, Ngoc-Quan Pham, Leonard Bärmann, Alex Waibel

Code-switching, the alternation of languages within a single discourse, presents a significant challenge for Automatic Speech Recognition. Despite the unique nature of the task, performance is commonly measured with esta…

Automatic Speech RecognitionDecoderspeech-recognitionSpeech Recognition

Modality-Independent Explainable Detection of Inaccurate Organ Segmentations Using Denoising Autoencoders

2025-04-16 · Levente Lippenszky, István Megyeri, Krisztian Koos, Zsófia Karancsi 외

In radiation therapy planning, inaccurate segmentations of organs at risk can result in suboptimal treatment delivery, if left undetected by the clinician. To address this challenge, we developed a denoising autoencoder-…

Denoising

Semantic-guided Encoder Feature Learning for Blurry Boundary Delineation

2019-06-10 · Dong Nie, Dinggang Shen

Encoder-decoder architectures are widely adopted for medical image segmentation tasks. With the lateral skip connection, the models can obtain and fuse both semantic and resolution information in deep layers to achieve m…

Boundary DetectionDecoderImage SegmentationMedical Image Segmentation+2