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

DHoTT:面向语义漂移的同伦类型论时序扩展

DHoTT: A Temporal Extension of Homotopy Type Theory for Semantic Drift

London Stock Exchange Group(伦敦证券交易所集团)

Iman Poernomo

AI总结:

本文提出同伦类型论的保守时序扩展DHoTT,结合拓扑数据分析构造演化文本的语义模型,设计跨时间演算记录语义承接与断裂,为LLM语义漂移分析审计提供几何基础框架。

摘要:

动态HoTT(DHoTT)是同伦类型论(Homotopy Type Theory, HoTT)的一个保守扩展,专为对话AI中不断演化的文本设计。在聊天系统中,大语言模型(LLM)接收持续增长的前缀作为查询:在第τ轮时输入为C(τ),即此前所有提示与回复的拼接,新生成的回答将扩展得到C(τ+1)。本文研究这些带时间索引文本的逻辑语义,以及其含义随时间漂移或失效的规律,将同伦类型论与分布语义、嵌入空间上的拓扑数据分析相结合。\n在每一轮中,我们使用冻结编码器将目前为止出现的所有token嵌入并映射到单位球面,通过球冠构建良好覆盖,进而形成Čech神经复形。经Kan纤维化替换得到Kan复形ET(τ),即τ时刻的演化文本(Evolving Text),其中恒等类型对应路径空间,依赖类型支持常规HoTT传输。时间以函子方式处理,因此所有HoTT规则可按纤维解释,且满足标准替换与保守性性质。\n在该纤维HoTT层之上,我们添加了一个小型跨时间演算用于刻画语义变化:carry(承接)记录在可接受策略下,后续使用存在经认证的路径回溯至更早纤维的情况;rupture(断裂)是一个正Sigma类型,存储经策略校验的有限次失败尝试以及开角标记;仅追加账本持续累积承接与断裂记录,确保后续出现对齐时不会擦除此前的失败。\n我们基于具体的DeBERTa嵌入流水线,在真实人类与LLM对话的小型可复现实例上演示了该构造,为分析和审计大语言模型及其他基于嵌入的系统中的语义漂移提供了有原则、有几何基础的核心框架。

英文摘要:

Dynamic HoTT (DHoTT) is a conservative extension of Homotopy Type Theory designed for evolving texts in conversational AI. In a chat system, a large language model (LLM) is queried with a growing prefix: at turn tau the input is C(tau), the concatenation of all previous prompts and replies, and the new answer extends C(tau+1). We study the logical semantics of these time indexed texts and how their meanings drift or break over time, linking Homotopy Type Theory with distributional semantics and topological data analysis on embedding spaces. For each turn we embed all tokens seen so far using a frozen encoder and map them to the unit sphere, build a good cover by spherical caps, and form the Cech nerve. A Kan fibrant replacement yields a Kan complex ET(tau), the Evolving Text at time tau, where identity types are path spaces and dependent types support ordinary HoTT transport. Time is treated functorially so that all HoTT rules interpret fibrewise and standard substitution and conservativity properties hold. On top of this fibrewise HoTT layer we add a small cross time calculus for semantic change. A carry records when a later use has a certified path back into an earlier fibre under an admissibility policy. A rupture is a positive sigma type storing finite, policy checked failed attempts together with an open horn tag. An append only ledger accumulates carries and ruptures so that earlier failures are not erased when later alignments appear. We illustrate the construction on small, replicable examples from real human LLM dialogues using a concrete DeBERTa based embedding pipeline. This provides a principled, geometrically grounded core for analysing and auditing semantic drift in large language models and other embedding based systems.

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

↑