Skip to content

Research: high-quality data filtering cannot stop poisoning, Bi-QSTO retains attack effectiveness at a 90% filtering rateHigh-quality Data Do not Mean Safe! Poisoning LLMs after Data Selection

arXiv: Defenses, Guardrails, Unlearning & Harmful Fine-tuning· arXiv:2610.01367· Kaiyang Li, Jiahao Chen, Yuwen Pu, Chunyi Zhou, Tong Zhang, Bin Cai, Chunqiang Hu, Haibo Hu·Indexed by this site · 2026-10-02· Originally publishedAttacks

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe study systematically evaluated the filtering effect of quality-based data filtering on poisoning, and found that although filtering can remove a large number of clearly harmful samples, some retained high-quality samples still weaken the model's safety alignment, possibly because they exhibit training update patterns similar to harmful samples at the layer-wise gradient level. Based on this, the authors propose Bi-Stage Quality-Constrained Safety-Degradation Text Optimization (Bi-QSTO), which optimizes poisoning samples under explicit quality constraints so that they can both pass filtering and retain safety-degradation effects. Across multiple poisoning settings, target models, and filtering rates, Bi-QSTO maintains attack effectiveness both before and after filtering; even at a filtering rate of 90%, the Poisoning Retention Rate of harmful seed samples remains above 90%, with a Harmful Score of 3.30–4.01, and the attack effect transfers across models, with the retention advantage also generalizing to other filtering methods.

Questions
Aligned models become less safe after fine-tuning on a small number of harmful or seemingly harmless samples. Real training often applies quality filtering first, while previous poisoning studies mostly assume poisoned samples enter fine-tuning directly, without examining whether high-quality samples that remain after filtering still weaken safety alignment.
Methods
The authors first measure poison retention with various quality selectors, then use layer-wise gradient cosine similarity with a safety anchor and MDS to see whether high-quality samples carry harmful-like updates. Based on this, they propose Bi-QSTO: first maximize harmful gradient influence, then refine under a quality penalty, and use empirical extraction to guide rewriting, so that samples pass filtering while retaining safety-weakening effects.
Experiments and results
The authors report that explicitly harmful samples are often filtered out, but 90% of the high-quality samples remaining after filtering can still improve the Harmful Score. Bi-QSTO with harmful seeds achieves a PRR above 90% at 90% filtering across three fully fine-tuned models, with HS of 3.30–4.01, and transfers to larger models and QuRater, DEITA.
Limitations and future work
In the appendix, the authors state that the analysis is mainly on Llama2-7B-Chat with a single harmful anchor, and that quality scores and safety-related updates are inconsistent. Experiments cover DataMan, QuRater, DEITA; main experiments use three full-parameter models, and 13B/70B use LoRA; the paper does not report optimization query counts and human agreement.

Related events and news

1 events · 0 news mentions

Related papers

Show 2 more papers
Read originalarxiv.org