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

用于生成式AI和LLM的Topos理论

Topos Theory for Generative AI and LLMs

Adobe Research and University of Massachusetts, Amherst(Adobe研究院和马萨诸塞大学)

Sridhar Mahadevan

AI总结:

本文基于topos理论设计新型范畴生成式AI架构,利用范畴论泛构造(如拉回、推出等)构建LLM新组合结构,证明LLM范畴构成topos,并用反向传播的函子特征定义潜在实现。

摘要:

我们提出使用topos理论设计新型范畴生成式AI架构(GAIAs),topos是一种“类似集合”的范畴:它具有所有(余)极限,是笛卡尔闭范畴,并拥有子对象分类器。关于Transformer模型的前期理论结果表明,它是一个通用的序列到序列函数逼近器,并且在词元嵌入的欧几里得空间中具有紧支撑的所有连续函数空间中是稠密的。基于这一理论结果,我们探索了利用LLM范畴(视为函数)构成topos这一性质的新型LLM架构。先前对大型语言模型(LLMs)的研究主要集中在菊花链式线性架构或混合专家模型上。在本文中,我们使用范畴论中的泛构造来构建基于新型组合结构的新颖LLM架构。具体而言,这些新型组合结构源自LLM范畴的泛性质,包括拉回、推出、(余)等化子、指数对象和子对象分类器。我们通过证明LLM范畴是(余)完备的,即所有图都有以(余)极限形式存在的解,从理论上验证了这些新型组合结构。基于这一完备性结果,我们接着证明LLM范畴构成了一个topos,即一个“类似集合”的范畴,这需要证明指数对象以及子对象分类器的存在性。我们使用反向传播的函子特征来定义LLM topos架构的潜在实现。

英文摘要:

We propose the design of novel categorical generative AI architectures (GAIAs) using topos theory, a type of category that is ``set-like": a topos has all (co)limits, is Cartesian closed, and has a subobject classifier. Previous theoretical results on the Transformer model have shown that it is a universal sequence-to-sequence function approximator, and dense in the space of all continuous functions with compact support on the Euclidean space of embeddings of tokens. Building on this theoretical result, we explore novel architectures for LLMs that exploit the property that the category of LLMs, viewed as functions, forms a topos. Previous studies of large language models (LLMs) have focused on daisy-chained linear architectures or mixture-of-experts. In this paper, we use universal constructions in category theory to construct novel LLM architectures based on new types of compositional structures. In particular, these new compositional structures are derived from universal properties of LLM categories, and include pullback, pushout, (co) equalizers, exponential objects, and subobject classifiers. We theoretically validate these new compositional structures by showing that the category of LLMs is (co)complete, meaning that all diagrams have solutions in the form of (co)limits. Building on this completeness result, we then show that the category of LLMs forms a topos, a ``set-like" category, which requires showing the existence of exponential objects as well as subobject classifiers. We use a functorial characterization of backpropagation to define a potential implementation of an LLM topos architecture.

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

↑