GB-SFT:按语义角色均衡损失预算,法律基准上引用串占81%损失权重的问题有解了
Group-Balanced Supervised Fine-Tuning for Knowledge-Intensive Domains
做微调的都该看看:论文证明了 SFT 把 81% 的损失预算花在了法律引用串上,答案只占 5%。GB-SFT 按语义角色重新分配预算,知识注入比常规 SFT 和 memory editing 都强,还能控制安全护栏被微调磨掉的程度。自己跑 SFT 的开发者可以直接拿这两个新基准测一测。
一篇新论文指出,监督微调(SFT)对每个 token 等权计算损失,导致在知识密集语料上损失预算跟着 token 数量走而非重要性走:在法律 QA 基准上,引用字符串吸收了 81% 的监督损失权重,而真正要教的答案只占 5%。
作者提出 Group-Balanced SFT(GB-SFT),按目标序列内 token 的语义角色均衡损失预算,只需一个可调参数和一个结构开关。在法律、医学、代码、数学四个领域的基准上,GB-SFT 的新知识注入效果优于均匀 SFT、逐点 token 加权、memory editing 和等预算数据混合;它接近“只保留知识载荷、屏蔽其余内容”的注入效果,同时保住引用召回率(0.98 对 0.38)。
消融显示角色感知分组是收益来源:无标注分区最多恢复三分之一收益,LLM 标注器在分组词汇特征明显时几乎恢复全部。论文还发现损失预算是安全护栏侵蚀的单调杠杆,并以两个经污染控制、标注验证的知识注入基准开源发布。
Group-Balanced Supervised Fine-Tuning for Knowledge-Intensive Domains
Supervised fine-tuning (SFT) weights every supervised token equally, so on knowledge-dense corpora the loss budget follows token count rather than importance: on a legal QA benchmark, citation strings absorb 81% of the supervised loss weight budget while the answers being taught absorb 5%. We present Group-Balanced SFT (GB-SFT), which equalizes the loss budget across the semantic roles of tokens within a target sequence. With one tunable dial and one structural switch, GB-SFT contains standard SFT, class- and span-level balancing as corners whose geometry we characterize exactly. On benchmarks in law, medicine, code, and mathematics, we show across model families that: (i) GB- SFT injects new knowledge better than uniform SFT, pointwise token weighting, memory editing, and matched-budget data mixing; (ii) it matches the injection of masking out everything but the knowledge payload while retaining the citation recall that masking destroys (0.98 vs. 0.38); and (iii) role-aware grouping carries the gain: label-free partitions recover at most a third of it, an LLM tagger nearly all where the groups are lexically distinctive; and and (iv) the budget governs what fine-tuning breaks as well as what it learns, acting as a monotone lever on the safety-guardrail erosion SFT causes, at matched task accuracy. We release two new contamination-controlled knowledge-injection benchmarks with validated ground truth.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and AI regulation, compliance frameworks, and sovereign compute policy. Key entities and technical topics under continuous tracking include SFT, fine-tuning, GB-SFT, knowledge injection.
Source attribution: curated from arXiv cs.AI (@Mark Heimann, Bruno Jacob).