提出可调局部性语言模型,让模型在可解释性和性能间灵活切换。
AILA--First Experiments with Localist Language Models
- 通过可调参数控制表示的局部化程度,实现局部编码与分布式编码的动态混合。
- 局部化模型注意力熵降低至5.36比特,指针保真度更高,中间值λ=0.6时困惑度为4.65。
- 适合需要透明性与高性能兼顾的监管领域,如医疗、金融等场景。
本文首次实证展示了Transformer语言模型中可控的局部性,提出一种新型架构,通过可调的局部性旋钮参数λ,在不重新训练模型的前提下,连续调控表示的局部化程度。实验基于WikiText语料库,采用两层Transformer结构,将λ从1.0(完全局部)到0.0(完全分布)系统变化。结果表明,局部化配置显著降低注意力熵,λ=1.0时为5.36比特,而λ=0.0时为7.18比特;同时保持更高的指针保真度,反映与规则目标更强的对齐。预测实验显示,中间值λ=0.6在可解释性与性能间达到最优平衡,测试困惑度为4.65,准确率达84.7%。研究证实,局部性语言模型为需透明性与强能力并重的应用提供实用框架,通过显式惩罚阈值和信息论设计原则,实现对可解释性-性能谱的精确数学控制。
原文摘要 · Abstract (English)
This paper presents the first empirical demonstration of controllable locality in transformer language models, a novel architectural framework that enables continuous control over the degree of representation localization through a tunable locality dial parameter. Unlike traditional language models that rely exclusively on distributed representations, our approach allows dynamic interpolation between highly interpretable localist encodings and efficient distributed representations without requiring model retraining. We conducted experiments on the WikiText corpus using a two-layer transformer architecture, systematically varying the locality parameter λ across the full spectrum from 1.0 (fully localist) to 0.0 (fully distributed). Our results demonstrate that localist configurations achieve dramatically lower attention entropy, with λ = 1.0 yielding 5.36 bits compared to 7.18 bits at λ = 0.0, while maintaining substantially higher pointer fidelity scores reflecting stronger alignment with rule-specified targets. Prediction experiments reveal that intermediate locality values optimize the tradeoff between interpretability and performance, with λ = 0.6 achieving test perplexity of 4.65 and accuracy of 84.7%. These findings establish that localist language models provide a practical framework for applications in regulated domains requiring both transparency and capability, offering precise mathematical control over the interpretability-performance spectrum through explicit penalty thresholds and information-theoretic design principles.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。