菜单

关于 🐙 GitHub
arXiv 提交日期: 2026-07-05
📄 Abstract - Geometry of Ordinal Representations in Language Models

Recent work showed that language models represent character counts on curved 1D manifolds, with attention heads performing geometric transformations to enable computation. We test whether this generalizes across four ordinal tasks (bracket depth, indentation, table position, numeric magnitude) in Gemma-2-2B, Gemma-2-9B, and Qwen3-4B. We find that 1D manifolds with place-cell feature tiling emerge for tasks where the ordinal variable is locally computable from token identity, while tasks requiring cross-position integration or semantic extraction produce higher-dimensional or incoherent representations. Geometric computation is architecture-dependent: Qwen3-4B shows substantially stronger twisting than Gemma models for indentation, and its twisters preserve ordinal order, unlike its numeric twisters. Activation patching confirms that the identified manifold subspaces concentrate task-relevant information, with manifold-direction ablation causing dramatically larger probe accuracy drops than random-direction controls.

顶级标签: llm machine learning
详细标签: representation geometry ordinal tasks manifold learning attention heads mechanistic interpretability 或 搜索:

语言模型中序数表征的几何结构 / Geometry of Ordinal Representations in Language Models


1️⃣ 一句话总结

这篇论文发现,语言模型在处理某些序数任务(如括号深度或缩进层级)时,会在大脑中形成一条弯曲的一维“数轴”,并利用特定的注意力头进行几何运算,但对于需要跨位置理解或提取语义的任务(如判断数字大小),模型则采用了更复杂或混乱的表示方式。

源自 arXiv: 2607.04167