Idea-Gated Transformers: 通过可微分词汇修剪强制语义一致性
Idea-Gated Transformers: Enforcing Semantic Coherence via Differentiable Vocabulary Pruning
AI总结:
Idea-Gated Transformers通过可微分词汇修剪机制,实现语义一致性,提升语言模型的领域保留能力与生成可控性。
摘要:
自回归语言模型(LLMs)在下一个词预测(NTP)任务上训练时,常常出现主题漂移问题,即生成过程因依赖局部关联而非全局规划而偏离初始提示。尽管扩大模型规模可以缓解这一问题,但NTP目标的根本短视性仍然存在。在本工作中,我们引入了Idea-Gated Transformer,一种新的架构,将语义规划与语法生成分离。我们引入了一个辅助的Idea头,用于预测未来上下文窗口的词袋分布,生成一个潜在的“概念向量”,在生成过程中主动门控主要词汇。我们提出了一种可微分的门控机制,抑制语义不相关的令牌,从而在实时中有效修剪搜索空间。在WikiText-103上的实验表明,尽管Idea-Gated模型在验证困惑度上与标准GPT-2基线相当,但其领域保留性显著优于后者。定性与定量分析显示,门控机制成功将生成锁定在特定语义簇(如金融、科学)中,并抵抗关联漂移,提供了一条参数高效的方法,朝着更可控的语言建模方向迈进。
英文摘要:
Autoregressive Language Models (LLMs) trained on Next-Token Prediction (NTP) often suffer from Topic Drift where the generation wanders away from the initial prompt due to a reliance on local associations rather than global planning. While scaling model size mitigates this, the fundamental myopia of the NTP objective remains. In this work, we introduce the Idea-Gated Transformer, a novel architecture that separates semantic planning from syntactic generation. We introduce an auxiliary Idea Head trained to predict the bag-of-words distribution for a future context window, creating a latent ``Concept Vector'' that actively gates the main vocabulary during generation. We propose a differentiable gating mechanism that suppresses semantically irrelevant tokens, effectively pruning the search space in real-time. Experiments on WikiText-103 demonstrate that while the Idea-Gated model achieves comparable validation perplexity to a standard GPT-2 baseline, it exhibits significantly superior Domain Retention. Qualitative and quantitative analysis reveals that the gating mechanism successfully locks generation into specific semantic clusters (e.g., Finance, Science) and resists associative drift, offering a parameter-efficient path toward more controllable language modeling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。