arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.20428cs.LG
收藏

大型语言模型修复中样本选择策略的实证研究

An Empirical Study of Sample Selection Strategies for Large Language Model Repair

Zhejiang University(浙江大学)

Xuran Li, Jingyi Wang

AI总结:

本研究系统比较了五种样本选择策略用于LLM行为修复,提出SAPS方法,在去毒、效用保持和效率间取得最佳平衡,证明基于选择的修复是高效可扩展的范式。

摘要:

大型语言模型(LLMs)越来越多地部署在现实世界的系统中,然而它们可能产生有毒或有偏见的输出,从而损害安全性和信任。事后模型修复提供了一种实用的补救措施,但参数更新的高成本促使人们选择性地使用修复数据。尽管在模型训练的数据选择方面已有大量先前工作,但当具体应用于大型生成模型的行为修复时,哪些采样标准最有效且最高效仍不清楚。我们的研究对LLM修复的样本优先级排序策略进行了系统分析。我们评估了五种有代表性的选择方法,包括随机采样、K-Center、基于梯度范数的选择(GraNd)、分层覆盖(CCS)以及我们提出的语义感知优先级采样(SAPS)方法。修复效果和权衡通过毒性降低、WikiText-2和LAMBADA上的困惑度以及三个综合指标进行评估:修复接近度分数(RPS)、整体性能分数(OPS)和修复效率分数(RES)。实验结果表明,SAPS在去毒、效用保持和效率之间实现了最佳平衡,用显著更少的数据实现了相当或更优的修复结果。随机采样对于大型或稳健的模型仍然有效,而诸如CCS和GraNd等高开销方法提供的收益有限。最佳数据比例取决于模型规模和修复方法,表明样本选择应被视为修复流程中一个可调组件。总体而言,这些发现确立了基于选择的修复作为维护LLM可靠性的高效且可扩展的范式。

英文摘要:

Large language models (LLMs) are increasingly deployed in real-world systems, yet they can produce toxic or biased outputs that undermine safety and trust. Post-hoc model repair provides a practical remedy, but the high cost of parameter updates motivates selective use of repair data. Despite extensive prior work on data selection for model training, it remains unclear which sampling criteria are most effective and efficient when applied specifically to behavioral repair of large generative models. Our study presents a systematic analysis of sample prioritization strategies for LLM repair. We evaluate five representative selection methods, including random sampling, K-Center, gradient-norm-based selection(GraNd), stratified coverage (CCS), and a Semantic-Aware Prioritized Sampling (SAPS) approach we proposed. Repair effectiveness and trade-offs are assessed through toxicity reduction, perplexity on WikiText-2 and LAMBADA, and three composite metrics: the Repair Proximity Score (RPS), the Overall Performance Score (OPS), and the Repair Efficiency Score (RES). Experimental results show that SAPS achieves the best balance between detoxification, utility preservation, and efficiency, delivering comparable or superior repair outcomes with substantially less data. Random sampling remains effective for large or robust models, while high-overhead methods such as CCS and GraNd provide limited benefit. The optimal data proportion depends on model scale and repair method, indicating that sample selection should be regarded as a tunable component of repair pipelines. Overall, these findings establish selection-based repair as an efficient and scalable paradigm for maintaining LLM reliability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑