arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.00510cs.LGstat.ML
收藏

原型语言模型

Prototype Language Models

Harvard University(哈佛大学);Guide Labs Inc.(Guide Labs公司)

Dan Ley, Giang Nguyen, Himabindu Lakkaraju, Julius Adebayo

AI总结:

提出原型语言模型架构PRISM,通过稀疏非负原型混合进行预测,在保持下游精度的同时实现快速训练数据归因和可解释性。

摘要:

了解哪些训练样本驱动输出是审计、纠正和理解语言模型的基础,但对于现代LLM来说,这仍然昂贵、近似且主要是事后分析。标准语言模型通过密集网络路径生成token,导致训练数据的影响分布在参数中,而不是沿着显式、可追踪的组件组织。我们引入了一种原型语言模型架构,即用于可解释序列建模的原型(PRISM),它通过学习原型的稀疏、非负混合形成每个预测,并使用聚类目标进行训练,将每个原型锚定到训练样本的连贯邻域。在从130M到1.6B参数、训练多达50B token的架构中,原型语言模型在下游准确率上平均超过或保持在匹配的密集基线的2.5个百分点以内。我们表明,稀疏原型结构局部化了损失景观中的曲率,产生了更易处理的Hessian矩阵,并在消耗等效内存时实现了比事后基线快约500倍的训练数据归因。校准线性原型控制器可以将下游准确率提高约3个百分点,同时将这些修正追溯到训练邻域,并且有针对性的原型抑制可以在不进行微调或生成质量可测量损失的情况下移除模型行为。

英文摘要:

Knowing which training examples drive outputs is fundamental to auditing, correcting, and understanding language models, yet for modern LLMs this remains expensive, approximate, and largely post-hoc. Standard language models generate tokens through a dense network pathway, causing training data's influence to be distributed across parameters rather than organized along explicit, traceable components. We introduce a prototype language model architecture, Prototypes for Interpretable Sequence Modeling (PRISM), that forms each prediction via a sparse, non-negative mixture of learned prototypes, trained with clustering objectives that anchor each prototype to coherent neighborhoods of training examples. Across architectures from 130M to 1.6B parameters trained on up to 50B tokens, prototype language models either surpass or remain within 2.5 percentage points on average downstream accuracy of matched dense baselines. We show that sparse prototype structure localizes curvature in the loss landscape, yielding a more tractable Hessian and enabling training data attribution that is ~500x faster than post hoc baselines when consuming equivalent memory. Calibrating linear prototype controllers can improve downstream accuracy by roughly 3 points while tracing those corrections back to training neighborhoods, and targeted prototype suppression can remove model behaviors without finetuning or measurable loss in generation quality.

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

↑