Research map / Large language models / Instruction and fine-tuning
GradSentry: Gradient Spectral Entropy for Backdoor Sample Filtering in Large Language Model Fine-Tuning
Haodong Zhao, Tianyi Xu, Tianhang Zhao, Zhuosheng Zhang, Gongshen Liu
Shanghai Jiao Tong University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
8improved
2no clear effect
2hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply GradSentry spectral-entropy filtering before fine-tuning | Llama-2-7B LoRA · WebQA BadNets | ASR (%): 84.55 -> 0.00 | Improved |
| apply GradSentry spectral-entropy filtering before fine-tuning | Llama-2-7B LoRA · FreebaseQA StyleBkd | ASR (%): 99.50 -> 0.00 | Improved |
| apply GradSentry filtering | Llama-2-7B LoRA · 16 dataset-attack settings | ACC (%): best ACC in 8/16 settings | No clear effect |
| apply CleanGen defense | Llama-2-7B LoRA · FreebaseQA StyleBkd | ACC (%): 63.50 -> 10.85 | Hurt |
| apply ONION defense | Llama-2-7B LoRA · FreebaseQA BadNets | ASR (%): 99.45 -> 91.10 | No clear effect |
| use GradSentry instead of GraCeFul for sample identification | Llama-2-7B LoRA · WebQA BadNets | Recall (%): 88.53 -> 100.00 | Improved |
| use GradSentry instead of GraCeFul for sample identification | Llama-2-7B LoRA · WebQA BadNets | F1 (%): 93.92 -> 71.50 | Hurt |
| use GradSentry instead of CUBE for sample identification | Llama-2-7B LoRA · WebQA BadNets | F1 (%): 52.31 -> 71.50 | Improved |
| use GradSentry instead of GraCeFul for filtering time | Llama-2-7B LoRA · WebQA BadNets | time (s): 194 -> 99 | Improved |
| use lm_head gradients instead of middle MLP gradients (ablation) | GradSentry · Llama-2-7B target module | F1 (%): 18.18 -> 99.80 | Improved |
| use lm_head gradients instead of LoRA adapter gradients (ablation) | GradSentry · Llama-2-7B target module | F1 (%): 25.01 -> 99.80 | Improved |
| high poison ratio above 50% | GradSentry vs CUBE and GraCeFul · poison-ratio sweep | F1 (%): GradSentry 98.82; baselines 50 or less | Improved |
Open problems in safety alignment after fine-tuning
Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?
- Larger models were not tested, mostly for lack of compute. · 27 papers state it
- Defenses are tested against few attacks and not against adaptive ones. · 15 papers state it
- Safety is scored by one LLM judge or classifier that may be biased. · 15 papers state it
Closest papers by meaning
- Maximum Entropy Loss, the Silver Bullet Targeting Backdoor Attacks in Pre-trained Language Models (ACL 2023 · similarity 0.91)
- Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models (EMNLP 2025 · similarity 0.89)
- Backdoor Cleaning without External Guidance in MLLM Fine-tuning (NeurIPS 2025 · similarity 0.88)
- Activation Gradient based Poisoned Sample Detection Against Backdoor Attacks (ICLR 2025 · similarity 0.88)
- BadEdit: Backdooring Large Language Models by Model Editing (ICLR 2024 · similarity 0.87)
- Lie Detector: Unified Backdoor Detection via Cross-Examination Framework (NeurIPS 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.