mlsanityData to 7 Oct 2026

Detecting Instruction Fine-tuning Attacks using Influence Function

arXiv 2504.09026 ↗First posted 12 Apr 2025cs.LG cs.CRcited by 1

Not on the map. Why?

Abstract (arXiv)

Instruction fine-tuning attacks pose a serious threat to large language models (LLMs) by subtly embedding poisoned examples in fine-tuning datasets, leading to harmful or unintended behaviors in downstream applications. Detecting such attacks is challenging because poisoned data is often indistinguishable from clean data, and prior knowledge of triggers or attack strategies is rarely available. We present a detection method that requires no prior knowledge of the attack. Our approach leverages influence functions under semantic transformation by comparing influence distributions before and after semantic inversions to identify critical poisons, defined as examples whose influence is strong and remains unchanged across transformations. We introduce a multi-transform ensemble approach that achieves F1 scores between 79.5 and 95.2 percent with precision between 66 and 100 percent on sentiment classification, significantly improving over single-transform methods. Our method generalizes to unseen transformation types with an F1 score of 86 percent through cross-category validation. We demonstrate effectiveness across multiple models, including T5-small and DeepSeek-Coder-1.3B, and across tasks such as sentiment classification and math reasoning. Removing a small fraction of detected poisons, between 1 and 3 percent of the data, restores model performance to near-clean levels. These results demonstrate the practicality of influence-based diagnostics for defending against instruction fine-tuning attacks in real-world large language model deployment. Artifact available at https://github.com/lijiawei20161002/Poison-Detection. Warning: this paper contains offensive data examples.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 25 of its 50 references that are in the map. First posted on arXiv 12 Apr 2025.

Builds on

25 of 50 references.

References · 25

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  3. 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
  4. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  5. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  6. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  7. 2018Spectral Signatures in Backdoor Attackscited by 457
  8. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
  9. 2023Studying Large Language Model Generalization with Influence Functionscited by 311
  10. 2023Poisoning Language Models During Instruction Tuningcited by 254
  11. 2020Influence Functions in Deep Learning Are Fragilecited by 247
  12. 2024Rethinking Machine Unlearning for Large Language Modelscited by 247
13 more
  1. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 233
  2. 2023On the Exploitability of Instruction Tuningcited by 110
  3. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
  4. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 97
  5. 2020Influence Function based Data Poisoning Attacks to Top-N Recommender Systemscited by 61
  6. 2021Interactive Label Cleaning with Example-based Explanationscited by 48
  7. 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 38
  8. 2021MathBERT: A Pre-trained Language Model for General NLP Tasks in Mathematics Educationcited by 37
  9. 2015The Influence Function of Semiparametric Estimatorscited by 36
  10. 2021Influence Tuning: Demoting Spurious Correlations via Instance Attribution and Instance-Driven Updatescited by 27
  11. 2023Machine Unlearning in Learned Databases: An Experimental Analysiscited by 17
  12. 2020Cross-Loss Influence Functions to Explain Deep Network Representationscited by 12
  13. 2024Is Crowdsourcing Breaking Your Bank? Cost-Effective Fine-Tuning of Pre-trained Language Models with Proximal Policy Optimizationcited by 2

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Learning to Poison Large Language Models for Downstream Manipulation
  2. 2025Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety
  3. 2025Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation
  4. 2024Do as I do (Safely): Mitigating Task-Specific Fine-tuning Risks in Large Language Models
  5. 2026Antibody: Strengthening Defense Against Harmful Fine-Tuning for Large Language Models via Attenuating Harmful Gradient Influence
  6. 2025SafeTuneBed: A Toolkit for Benchmarking LLM Safety Alignment in Fine-Tuning
  7. 2025Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMs
  8. 2025Accidental Vulnerability: Factors in Fine-Tuning that Shift Model Safeguards