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

语言模型中序数表示的几何结构

Geometry of Ordinal Representations in Language Models

Gemma Team(杰玛团队);Qwen Team(文生团队)

Saksham Bassi, Sharvi Tomar

AI总结:

研究在多个语言模型中测试序数任务,发现当序数变量可从令牌身份局部计算时会出现具有位置细胞特征平铺的一维流形,几何计算与架构有关,激活修补证实流形子空间集中任务相关信息。

摘要:

近期工作表明语言模型在弯曲的一维流形上表示字符计数,注意力头执行几何变换以实现计算。我们在多个模型中测试四个序数任务,发现序数变量可局部计算的任务会出现一维流形,其他任务产生更高维或不连贯表示,几何计算与架构有关,激活修补证实相关结论。

英文摘要:

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.

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

↑