paper-with-me

Papers

CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Models

2022-05-31 · Akshita Jha, Chandan K. Reddy

Pre-trained programming language (PL) models (such as CodeT5, CodeBERT, GraphCodeBERT, etc.,) have the potential to automate software engineering tasks involving code understanding and code generation. However, these models operate in the natural channel of code, i.e., they are primarily concerned with the human understanding of the code. They are not robust to changes in the input and thus, are potentially susceptible to adversarial attacks in the natural channel. We propose, CodeAttack, a simple yet effective black-box attack model that uses code structure to generate effective, efficient, and imperceptible adversarial code samples and demonstrates the vulnerabilities of the state-of-the-art PL models to code-specific adversarial attacks. We evaluate the transferability of CodeAttack on several code-code (translation and repair) and code-NL (summarization) tasks across different programming languages. CodeAttack outperforms state-of-the-art adversarial NLP attack models to achieve the best overall drop in performance while being more efficient, imperceptible, consistent, and fluent. The code can be found at https://github.com/reddy-lab-code-research/CodeAttack.

📄 PDF Abstract BibTeX arXiv:2206.00052

Code (2)

reddy-lab-code-research/codeattack 공식 구현 pytorch
sleepyhead01/vulnurable-code-entities-r-analysis pytorch

Tasks

Code GenerationCode TranslationTranslation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Multi-Head Attention 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Gated Linear Unit A Gated Linear Unit, or GLU computes: $$ \mathrm{GLU}(a, b) = a \otimes \sigma(b) $$ It is used in natural language processing architectures, for example the Gated CNN,…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…

Similar Papers 제목 키워드 기반

Studying Vulnerable Code Entities in R

2024-02-06 · Zixiao Zhao, Millon Madhur Das, Fatemeh H. Fard

Pre-trained Code Language Models (Code-PLMs) have shown many advancements and achieved state-of-the-art results for many software engineering tasks in the past few years. These models are mainly targeted for popular prog…

Code SummarizationMethod name prediction

CodeAttack: Revealing Safety Generalization Challenges of Large Language Models via Code Completion

2024-03-12 · Qibing Ren, Chang Gao, Jing Shao, Junchi Yan 외

The rapid advancement of Large Language Models (LLMs) has brought about remarkable generative capabilities but also raised concerns about their potential misuse. While strategies like supervised fine-tuning and reinforce…

Code CompletionSafety Alignment

CodeHacker: Automated Test Case Generation for Detecting Vulnerabilities in Competitive Programming Solutions

2026-02-23 · Jingwei Shi, Xinxiang Yin, Jing Huang, Jinman Zhao 외 arxiv

The evaluation of Large Language Models (LLMs) for code generation relies heavily on the quality and robustness of test cases. However, existing benchmarks often lack coverage for subtle corner cases, allowing incorrect …

Code Generation

A Black-Box Attack on Code Models via Representation Nearest Neighbor Search

2023-05-10 · Jie Zhang, Wei Ma, Qiang Hu, Shangqing Liu 외

Existing methods for generating adversarial code examples face several challenges: limted availability of substitute variables, high verification costs for these substitutes, and the creation of adversarial samples with …

Adversarial AttackClone Detection

Adversarial Reprogramming of Neural Networks

2018-06-28 · ICLR 2019 5 · Gamaleldin F. Elsayed, Ian Goodfellow, Jascha Sohl-Dickstein

Deep neural networks are susceptible to \emph{adversarial} attacks. In computer vision, well-crafted perturbations to images can cause neural networks to make mistakes such as confusing a cat with a computer. Previous ad…

BIG-bench Machine LearningGeneral Classification