Metraipolis › archive › dc_1c6b3bf30139
DataRx: Missingness-Aware Sampling for Safer Large Language Model Task-Specific Fine-Tuning — arXiv:2608.04322
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.04322
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T11:24:36.105Z
- SHA-256 of the archived text
5b2cc9342e342a357ab0b042ee189f84cb358452a2f1c9071b33e46b959299e7- Stable URL of this page
https://metraipolis.com/documento/dc_1c6b3bf30139
How to cite
DataRx: Missingness-Aware Sampling for Safer Large Language Model Task-Specific Fine-Tuning — arXiv:2608.04322 — arXiv (en), https://arxiv.org/abs/2608.04322 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1c6b3bf30139 (Metraipolis archive dc_1c6b3bf30139, sha256 5b2cc9342e342a357ab0b042ee189f84cb358452a2f1c9071b33e46b959299e7)
BibTeX
@misc{dc1c6b3bf30139,
title = {DataRx: Missingness-Aware Sampling for Safer Large Language Model Task-Specific Fine-Tuning — arXiv:2608.04322},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.04322},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1c6b3bf30139; sha256 5b2cc9342e342a357ab0b042ee189f84cb358452a2f1c9071b33e46b959299e7},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.04322. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Task-specific fine-tuning can improve the performance of large language models (LLMs) on downstream tasks. However, our study reveals that task-specific fine-tuning can also weaken the safety guardrails of aligned LLMs. A widely adopted strategy for preserving safety during fine-tuning is to incorporate safety data. Although previous studies have shown that randomly mixing safety data can alleviate safety degradation, the underlying principle determining why some safety examples are more effective than others still remains unclear. In this paper, we propose DataRx, a missingness-aware sampling method for selecting safety-critical examples. DataRx is based on the hypothesis that a safety sample is more effective when the selected examples provide safety signals that fill the missing parts of LLMs' safety capabilities. DataRx's key insight is leveraging high-dimensional hidden representations rather than discrete tokens to quantify the safety signal gap between the target model's native response and the safety reference response. The results show that, with only 1% additional safety samples from BeaverTails, DataRx reduces the average attack success rate of Llama3-8B-Instruct across seven downstream tasks from 59.23% under random sampling to 13.70%. In addition, DataRx can be combined with the existing safety data synthesis method to further enhance safety defenses during fine-tuning. We hope that DataRx will inspire more data-centric defense research. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-06 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2608.04322 — 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-31T11:13:23.162Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-06?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).