arXiv:2601.02433cs.LG2026-01

将物理定律融入注意力机制,让AI推理更稳定且可解释。

Physical Transformer

  • 用自旋系统和哈密顿量模拟注意力头与前馈模块的动态
  • 在长序列任务中比基线模型更稳定,精度提升显著
  • 适合研究物理启发的智能体、可解释推理系统的人

当前的数字人工智能系统(如大语言模型、视觉模型和生成架构)主要在符号、语言或像素空间中运行,几乎全部停留在虚拟世界。这些系统处理嵌入和标记,但不直接接触现实,也极少具备物理意义。本文提出一种物理变压器,将现代Transformer计算与几何表示及物理动力学相结合。微观层面,注意力头和前馈块被建模为受有效哈密顿量和非哈密顿退火项支配的相互作用自旋;介观层面,其聚合状态在学习的神经微分流形(NDM)上由哈密顿流与哈密顿-雅可比-贝尔曼(HJB)最优控制驱动,通过保辛层离散化以近似保持几何与能量守恒;宏观层面,模型维持一个生成语义工作区和二维信息-相位图,追踪推理轨迹中的不确定性与信息增益。在此层级结构中,推理任务被表述为流形上的受控信息流,解对应满足几何、能量与工作区一致性约束的低代价轨迹。在涉及数值积分与动力系统的简单玩具问题上,物理变压器在稳定性与长程精度上优于基线模型,凸显了尊重底层几何与哈密顿结构的优势。该框架为融合数字推理与物理基础流形的物理型AI提供了路径,有望实现更可解释、统一的推理、控制与真实世界交互模型。

原文摘要 · Abstract (English)

Digital AI systems spanning large language models, vision models, and generative architectures that operate primarily in symbolic, linguistic, or pixel domains. They have achieved striking progress, but almost all of this progress lives in virtual spaces. These systems transform embeddings and tokens, yet do not themselves touch the world and rarely admit a physical interpretation. In this work we propose a physical transformer that couples modern transformer style computation with geometric representation and physical dynamics. At the micro level, attention heads, and feed-forward blocks are modeled as interacting spins governed by effective Hamiltonians plus non-Hamiltonian bath terms. At the meso level, their aggregated state evolves on a learned Neural Differential Manifold (NDM) under Hamiltonian flows and Hamilton, Jacobi, Bellman (HJB) optimal control, discretized by symplectic layers that approximately preserve geometric and energetic invariants. At the macro level, the model maintains a generative semantic workspace and a two-dimensional information-phase portrait that tracks uncertainty and information gain over a reasoning trajectory. Within this hierarchy, reasoning tasks are formulated as controlled information flows on the manifold, with solutions corresponding to low cost trajectories that satisfy geometric, energetic, and workspace-consistency constraints. On simple toy problems involving numerical integration and dynamical systems, the physical transformer outperforms naive baselines in stability and long-horizon accuracy, highlighting the benefits of respecting underlying geometric and Hamiltonian structure. More broadly, the framework suggests a path toward physical AI that unify digital reasoning with physically grounded manifolds, opening a route to more interpretable and potentially unified models of reasoning, control, and interaction with the real world.

物理AITransformer可解释性动力系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。