mlsanityData to 7 Oct 2026

RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformation

arXiv 2202.06043 ↗First posted 12 Feb 2022cs.CR cs.AIcited by 13

Not on the map. Why?

Abstract (arXiv)

Source code authorship attribution is an important problem often encountered in applications such as software forensics, bug fixing, and software quality analysis. Recent studies show that current source code authorship attribution methods can be compromised by attackers exploiting adversarial examples and coding style manipulation. This calls for robust solutions to the problem of code authorship attribution. In this paper, we initiate the study on making Deep Learning (DL)-based code authorship attribution robust. We propose an innovative framework called Robust coding style Patterns Generation (RoPGen), which essentially learns authors' unique coding style patterns that are hard for attackers to manipulate or imitate. The key idea is to combine data augmentation and gradient augmentation at the adversarial training phase. This effectively increases the diversity of training examples, generates meaningful perturbations to gradients of deep neural networks, and learns diversified representations of coding styles. We evaluate the effectiveness of RoPGen using four datasets of programs written in C, C++, and Java. Experimental results show that RoPGen can significantly improve the robustness of DL-based code authorship attribution, by respectively reducing 22.8% and 41.0% of the success rate of targeted and untargeted attacks on average.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 19 of its 51 references that are in the map. First posted on arXiv 12 Feb 2022.

Builds on

19 of 51 references.

References · 19

  1. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  2. 2020Fast is better than free: Revisiting adversarial trainingcited by 723
  3. 2019Adversarial Training for Free!cited by 638
  4. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  5. 2021Recent Advances in Adversarial Training for Adversarial Robustnesscited by 276
  6. 2018code2vec: Learning Distributed Representations of Codecited by 249
  7. 2018Towards the first adversarially robust neural network model on MNISTcited by 104
  8. 2019Adversarial Robustness Against the Union of Multiple Perturbation Modelscited by 88
  9. 2019Adversarial Examples for Models of Codecited by 61
  10. 2020Semantic Robustness of Models of Source Codecited by 43
  11. 2020Adversarial Robustness for Codecited by 36
  12. 2019Misleading Authorship Attribution of Source Code using Adversarial Learningcited by 33
7 more
  1. 2018Adversarial Deep Learning for Robust Detection of Binary Encoded Malwarecited by 32
  2. 2021Generating Adversarial Computer Programs using Optimized Obfuscationscited by 20
  3. 2019On Training Robust PDF Malware Classifierscited by 19
  4. 2020GradAug: A New Regularization Method for Deep Neural Networkscited by 18
  5. 2020Authorship Attribution of Source Code: A Language-Agnostic Approach and Applicability in Software Engineeringcited by 9
  6. 2020Robustness to Programmable String Transformations via Augmented Abstract Trainingcited by 8
  7. 2017Git Blame Who?: Stylistic Authorship Attribution of Small, Incomplete Source Code Fragmentscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 1; 2025: 4; 2026: 4.

13 papers.

Sort:

By area: