arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12968cs.LGcs.AIcs.CLcs.LO
收藏

通过代数本体投影控制LLM中的逻辑崩溃

Controlling Logical Collapse in LLMs via Algebraic Ontology Projection over F2

Mgnite Inc(Mgnite公司)

Hisashi Miyashita, Mgnite Inc

AI总结:

本文提出代数本体投影(AOP),通过在GF(2)下投影LLM隐藏状态,利用42对关系作为代数密钥,提升零样本包含准确性,揭示逻辑一致性退化问题。

摘要:

大型语言模型内部是否以形式可验证的代数结构编码本体关系?我们引入代数本体投影(AOP),在Liskov替代原则约束下,将LLM隐藏状态投影到GF(2)中,仅使用42对关系作为代数密钥。AOP在未见概念对上实现高达93.33%的零样本包含准确性(使用优化提示的Gemma-2 Instruct),在多个模型家族中均观察到一致的86.67%准确性,无需模型调优,仅通过提示即可实现。该代数结构具有强层依赖性。我们引入语义结晶(SC)指标,量化F2约束满足程度相对于随机基线,并预测零样本准确性而无需留出数据。系统提示作为代数边界条件:仅其与指令微调的结合可防止晚期层崩溃——在10种条件中的7种中观察到系统退化。这些发现将前向计算重新定义为代数组织的迭代过程,并为逻辑结构非仅近似但可形式访问的LLM开辟道路。

英文摘要:

Do large language models internally encode ontological relations in a formally verifiable algebraic structure? We introduce Algebraic Ontology Projection (AOP), which projects LLM hidden states into the Galois Field F2 under Liskov Substitution Principle constraints, using only 42 relational pairs as algebraic keys. AOP achieves up to 93.33% zero-shot inclusion accuracy on unseen concept pairs (Gemma-2 Instruct with optimized prompt), with consistent 86.67% accuracy observed across multiple model families -- with no model tuning, but through prompt alone. This algebraic structure is strongly layer-dependent. We introduce Semantic Crystallisation (SC), a metric that quantifies F2 constraint satisfaction relative to a random baseline and predicts zero-shot accuracy without held-out data. System prompts act as algebraic boundary conditions: only their combination with instruction tuning prevents Late-layer Collapse -- a systematic degradation of logical consistency in the final layers, observed in 7 of 10 conditions. These findings reframe forward computation as an iterative process of algebraic organisation, and open a path toward LLMs whose logical structure is not merely approximated, but formally accessible.

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

↑