arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.27259cs.LG
收藏

Kan扩展变换器:注意力、扩散和预测-分离自条件的范畴统一

Kan Extension Transformers: A Categorical Unification of Attention, Diffusion, and Predict-Detach Self-Conditioning

Adobe Research(Adobe研究院);University of Massachusetts(马萨诸塞大学);Amherst(阿默斯特)

Sridhar Mahadevan

AI总结:

提出Kan扩展变换器(KETs)作为多种Transformer实现的统一范畴框架,将Transformer层视为加权结构化扩展算子,并通过预测-分离机制实现有效的自条件化,实验表明预测-分离机制比改变邻域族带来更大性能提升。

摘要:

我们提出Kan扩展变换器(KETs)作为多种Transformer实现的统一范畴框架。核心主张是,Transformer层可以被视为加权结构化扩展算子:标准注意力是单邻域情况,几何Transformer风格的关联混合是稀疏边限制情况,而KET是高阶单纯形情况。这一视角也阐明了与扩散式补全的桥梁。当扩展算子作用于分离的预测载体而非教师强制隐藏状态时,它成为一种有效的自条件化机制,在不泄露未来黄金令牌的情况下暴露非因果结构。我们在Penn Treebank、WikiText-2和WikiText-103上对12种不同的Transformer实现进行了全面的实验验证,这些实现在严格因果和预测-分离机制上有所不同。在严格因果设置中,二次KET是WikiText-2和WikiText-103上比较的因果架构中最强的模型。然而,在所有数据集上,最大的收益来自预测-分离机制,而非仅改变邻域族。

英文摘要:

We propose Kan Extension Transformers (KETs) as a categorical design language for a diverse group of Transformer implementations. A layer can be viewed generally as a weighted structured extension operator: attention uses token neighborhoods, geometric mixing uses sparse incidences, and KET uses simplicial sources. This operator is an actual enriched left Kan extension only when the source values are functorial, the weights are representable hom-objects (or the specified profunctor action), and aggregation realizes the corresponding coend; otherwise ``Kan-style'' denotes an interpretation rather than an identity theorem. Predict-detach blocks gradients through a predictive carrier and avoids transporting teacher-forced hidden states, but detach alone does not make a noncausal update strictly autoregressive: every carrier consumed at target $t$ must also be measurable from the prefix available at $t$. We evaluate 12 implementations on Penn Treebank, WikiText-2, and WikiText-103 across strict-causal and self-conditioned regimes, using widths $d=64,256$ and depths $L=2,8,16$ across the reported studies. Quadratic KET is strongest among the compared strict-causal architectures on WikiText-2 and WikiText-103; the largest cross-regime gains arise from additional self-conditioning information, not neighborhood design alone.

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

↑