稀疏自编码器是符号匹配的共享坐标系

·

研究论文 · 2026/10/19

大型语言模型(LLM)拥有广泛知识但缺乏可解释性和可信推理,神经符号模型有望成为替代方案,但其符号主干通常依赖人工构建,导致领域受限。数据驱动方法可通过对齐和合并现有符号系统来构建更大符号系统,而跨异构系统的单元匹配是基础步骤。本文提出SAE-IDF,利用稀疏自编码器(SAE)将符号在其原生上下文中编码为稀疏码,按维度稀有度重新加权并进行跨系统匹配。在6类符号系统的12项任务上,SAE-IDF在Gemma-2-9B上全部优于同一LLM的稠密基线,在Llama-3.1-8B上除一项外均优于基线,提升最高达45分,且在不同SAE层和配置下表现一致。SAE-IDF具有可解释性:稀疏码每个维度都有可读含义,每次匹配可分解为命名概念(特征)。该工作为通用符号主干铺平道路。

该研究提出了一种可解释且数据驱动的方法,用于跨异构符号系统的单元匹配,显著提升了性能,并为构建通用符号主干和可解释的神经符号模型奠定了基础,对高风险应用中的可信推理具有重要意义。

Large language models (LLMs) hold broad knowledge in one set of weights, but lack interpretability and trustworthy reasoning, especially in high-stakes use cases. A neuro-symbolic model, with its interpretable architecture and System 2 reasoning capacity, is a promising alternative if built at the scale of LLMs; however, its symbolic backbone is usually constructed with human effort, so existing neuro-symbolic models are bottlenecked by the scope of the symbol component and usually domain-specific. A data-driven method could instead build a larger symbolic system by aligning and merging existing ones. We target its first, foundational step: matching units across these heterogeneous systems. Our method, SAE-IDF, encodes a symbol in its native context into a sparse code with a sparse autoencoder (SAE), re-weights each dimension by its rarity and matches across systems. On 12 tasks across 6 kinds of symbolic system, SAE-IDF outperforms the same LLM's dense baseline on all tasks with Gemma-2-9B and all but one with Llama-3.1-8B, by up to 45 points, consistently across SAE layers and configurations. SAE-IDF is also interpretable: every dimension of the sparse code has a human-readable meaning, so each match decomposes into named concepts (features). Our work paves the way to a universal symbolic backbone.

阅读原文

参与讨论