Hacker News· measurablefunc·· 10 天前AI 评分13
用拓扑斯理论设计生成式 AI 与 LLM 新架构
Topos theory for generative AIs and LLMs
AI 导读
研究者提出用拓扑斯理论研究 LLM 架构,将 LLM 视为函数构成的范畴,证明其具备(余)完备性并构成拓扑斯,从而支持拉回、推出、(余)等化子、指数对象和子对象分类器等通用构造。论文进一步用反向传播的函子刻画给出 LLM 拓扑斯架构的潜在实现方案,探索超越线性链式与 MoE 的新型组合结构。
正文 · 原文
Abstract: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.
| Comments: | 30 pages |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2508.08293 [cs.AI] |
| (or arXiv:2508.08293v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2508.08293 arXiv-issued DOI via DataCite |
Submission history
From: Sridhar Mahadevan [view email]
[v1]
Tue, 5 Aug 2025 20:00:06 UTC (165 KB)
来源:Hacker News · arxiv.org