Token-level selection removes unsafe tokens, preserving safety and utility
Token-level data selection safeguards LLM safety during fine-tuning while improving downstream task performance
AI/ML arXiv 1 Mar 2026 Method Prototype evidence
Published as “Token-level Data Selection for Safe LLM Fine-tuning”
Why it matters
Token-level selection can substantially improve the safety-utility balance of fine-tuned LLMs while allowing a single curated dataset to be reused across models sharing a tokenizer.
Summary
TOSS, a token-level data selection framework, improves safety win rates by up to 30% and utility win rates by up to 11% over the sample-level baseline SEAL, with average gains of 20% on Llama-3-8B-Instruct and 16% on Llama-2-7B-Chat-hf; a progressive variant (TOSS-Pro) adds up to 6% more safety. The evidence comes from experiments on ~112k custom instruction-response pairs evaluated on safety (HEx-PHI, Anthropic HH) and utility (SLIMORCA) benchmarks. However, some TOSS-Pro settings slightly reduce safety or utility scores compared with plain TOSS, indicating trade-offs.
What they found 4
- Average performance gains of 20% on Llama-3-8B-Instruct and 16% on Llama-2-7B-Chat-hf
“our TOSS framework achieves the most favorable trade-off between safety and utility, with average performance gains of 20% on Llama-3-8B-Instruct and 16% on Llama-2-7B-Chat-hf.”
- Up to 30% higher safety win rate and up to 11% higher utility win rate versus SEAL
“it yields up to a 30% higher win rate on safety benchmarks and up to a 11% higher win rate on utility benchmarks compared with the sample-level baseline SEAL.”
- TOSS-Pro improves safety performance by up to 6% over TOSS
“TOSS-Pro further improves safety performance by up to 6% over TOSS”
- TOSS achieves 88.82% safety (HH test), 87.54% safety (HEx-PHI), and 68.37% utility (SLIMORCA) win rates
“TOSS 88.82 87.54 68.37”
Caveats 2
- TOSS-Pro first iteration lowers the HH test win rate to 88.54% (vs 88.82% for TOSS) and utility to 67.66% (vs 68.37% for TOSS), showing a slight degradation in some metrics
- Standard SFT achieves only 50% win rate, indicating that the token-level approach is not universally superior across all settings
What’s new here 4
- Identifies unsafe tokens rather than whole samples for removal
- Introduces a loss-difference metric using a safety-degraded and a utility-oriented reference model
- Provides a progressive refinement strategy (TOSS-Pro) to iteratively improve token risk identification
- Demonstrates that a single token-level selection can be transferred across models sharing the same tokenizer