arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.28219cs.LG
收藏

变换器中用于语言建模的变分神经元

Variational Neurons in Transformers for Language Modeling

Conservatoire National des Arts et Métiers(法国国立工艺学院)

Yves Ruffenach

AI总结:

本文提出在变换器中引入变分神经元,使不确定性成为内部计算的一部分,通过实验验证其在语言建模中的有效性,展示了变分变换器在不确定性建模中的实用性。

摘要:

用于语言建模的变换器通常依赖于确定性的内部计算,不确定性主要体现在输出层。我们引入变分神经元到变换器的前馈计算中,使不确定性成为内部计算本身的一部分。具体来说,我们用基于EVE的局部变分单元替换确定性前馈单元,同时保持变换器的整体结构。我们在紧凑的下一个词语言建模设置中评估了这种设计。我们比较了确定性和变分变体,使用预测和概率标准。除了负对数似然、困惑度和准确率外,我们还分析了校准、条件方差、互信息和潜在使用统计。结果表明,变分神经元能够稳定地整合到变换器中,保持强大的预测性能,并产生信息丰富的不确定性信号。实验还显示,任务质量、有用深度和内部稳定性是不同的属性。这些结果确立了变分变换器作为不确定性感知语言建模的实用形式。它们表明变换器可以具有显式的内部不确定性结构,从而支持更强的概率评估和更详细的模型行为分析。

英文摘要:

Transformers for language modeling usually rely on deterministic internal computation, with uncertainty expressed mainly at the output layer. We introduce variational neurons into Transformer feed-forward computation so that uncertainty becomes part of the internal computation itself. Concretely, we replace deterministic feed-forward units with local variational units based on EVE while preserving the overall Transformer backbone. We evaluate this design in compact next-token language-modeling settings. We compare deterministic and variational variants with both predictive and probabilistic criteria. Alongside negative log-likelihood, perplexity and accuracy, we analyze calibration, conditional variance, mutual information and latent-usage statistics. The resulting picture is clear. Variational neurons integrate stably into Transformers, preserve strong predictive performance and produce informative uncertainty signals. The experiments also show that task quality, useful depth and internal stability are distinct properties. These results establish variational Transformers as a practical form of uncertainty-aware language modeling. They show that Transformers can predict with an explicit internal structure of uncertainty, which supports stronger probabilistic evaluation and a more informative analysis of model behavior.

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

↑