Metraipolis › archive › dc_56647c7aa891

Data-Efficient Backdoor Attacks on Code Models via Trigger-Neutralized Counterfactual Scoring — arXiv:2610.32334

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.32334
License (as archived)
CC0-1.0
Archived
2026-10-26T19:51:53.720Z
SHA-256 of the archived text
001bc34188aae4f78fce8150f255b8b5e2eb91b367278f7e16887c154a187fa1
Stable URL of this page
https://metraipolis.com/documento/dc_56647c7aa891

How to cite

Data-Efficient Backdoor Attacks on Code Models via Trigger-Neutralized Counterfactual Scoring — arXiv:2610.32334 — arXiv (en), https://arxiv.org/abs/2610.32334 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_56647c7aa891 (Metraipolis archive dc_56647c7aa891, sha256 001bc34188aae4f78fce8150f255b8b5e2eb91b367278f7e16887c154a187fa1)
BibTeX
@misc{dc56647c7aa891,
  title = {Data-Efficient Backdoor Attacks on Code Models via Trigger-Neutralized Counterfactual Scoring — arXiv:2610.32334},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.32334},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_56647c7aa891; sha256 001bc34188aae4f78fce8150f255b8b5e2eb91b367278f7e16887c154a187fa1},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.32334. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Pre-trained code models are exposed to backdoor poisoning, in which crafted training samples make the model misbehave on a trigger. A capable attacker minimizes the number of such samples, since each adds cost and exposure and a lower poisoning rate leaves a smaller footprint for defenses. Which samples to poison therefore matters, but existing data-efficient selection methods target image classification, offer no scoring mechanism for autoregressive generation, and have not been studied on code. We propose Trigger-Neutralized Counterfactual Scoring (TNCS), which isolates a trigger's contribution to the target behavior by comparing the scoring model's output on a triggered input with its output on a trigger-neutralized counterfactual, covering classification and generation alike. TNCS attains higher attack success rates than the baselines at very low poisoning ratios, across three CodeXGLUE tasks and five trigger families, without degrading clean-task performance, and its margin grows as the ratio decreases. It is the only method effective on every trigger family, and its selected poison set transfers to mismatched victims.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.32334 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-26T19:45:33.409Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).