用双曲几何重构大模型,提升推理能力
HELM: Hyperbolic Large Language Models via Mixture-of-Curvature Experts
- 采用双曲空间与曲率混合专家架构,更贴合语言层次结构
- 在MMLU等任务上相较欧氏模型最高提升4%性能
- 适合关注模型几何结构与推理能力的学者
大型语言模型在文本建模任务中表现优异,但自然语言具有内在的语义层级和细微的几何结构,而现有模型依赖欧几里得运算,未能充分捕捉这些特性。近期研究指出,忽略词元嵌入的几何特性会导致训练不稳和生成能力下降。为此,我们提出完全在双曲空间中运行的超大规模语言模型——HELM,对基于Transformer的模型进行几何重思,解决现有双曲模型的表征僵化、操作缺失和扩展性差问题。我们引入曲率混合专家模型HEL-M-MICE,各专家在不同曲率空间中运行以编码更精细的几何结构,并设计密集型模型HEL-M-D。针对两者,我们开发了双曲多头潜在注意力(HMLA)实现高效低缓存训练与推理,以及双曲旋转位置编码和RMS归一化。我们首次在十亿参数规模上训练全双曲语言模型,并在MMLU、ARC等基准上评估,涵盖科学、技术、工程、数学问题求解、通用知识与常识推理。结果表明,我们的模型相比主流欧氏架构(如LLaMA和DeepSeek)在多个任务上实现最高达4%的持续提升,验证了双曲几何在大规模预训练中的有效性与推理增强潜力。
原文摘要 · Abstract (English)
Large language models (LLMs) have shown great success in text modeling tasks across domains. However, natural language exhibits inherent semantic hierarchies and nuanced geometric structure, which current LLMs do not capture completely owing to their reliance on Euclidean operations. Recent studies have also shown that not respecting the geometry of token embeddings leads to training instabilities and degradation of generative capabilities. These findings suggest that shifting to non-Euclidean geometries can better align language models with the underlying geometry of text. We thus propose to operate fully in Hyperbolic space, known for its expansive, scale-free, and low-distortion properties. We thus introduce HELM, a family of HypErbolic Large Language Models, offering a geometric rethinking of the Transformer-based LLM that addresses the representational inflexibility, missing set of necessary operations, and poor scalability of existing hyperbolic LMs. We additionally introduce a Mixture-of-Curvature Experts model, HELM-MICE, where each expert operates in a distinct curvature space to encode more fine-grained geometric structure from text, as well as a dense model, HELM-D. For HELM-MICE, we further develop hyperbolic Multi-Head Latent Attention (HMLA) for efficient, reduced-KV-cache training and inference. For both models, we develop essential hyperbolic equivalents of rotary positional encodings and RMS normalization. We are the first to train fully hyperbolic LLMs at billion-parameter scale, and evaluate them on well-known benchmarks such as MMLU and ARC, spanning STEM problem-solving, general knowledge, and commonsense reasoning. Our results show consistent gains from our HELM architectures -- up to 4% -- over popular Euclidean architectures used in LLaMA and DeepSeek, highlighting the efficacy and enhanced reasoning afforded by hyperbolic geometry in large-scale LM pretraining.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。