Effectively processing long contexts is a critical challenge for language models. While standard Transformers are limited by quadratic complexity and poor length extrapolation, alternative architectures like sliding window attention and state space models sacrifice the ability to effectively utilize the full context due to their fixed-size memory. Chunk-based sparse attention has emerged as a promising paradigm for extreme length generalization, yet the key architectural principles underpinning its success are not yet fully understood. In this work, we present a systematic dissection of these models to identify the core components driving their performance. Through a unified framework and comprehensive ablation studies, we demonstrate that a combination of three design principles is critical: (1) an expressive, non-linear Chunk Encoder with a dedicated CLS token to produce representations for retrieval; (2) a Bypassing Residual Path to stably integrate retrieved global information without it being overridden by the local residual stream; and (3) enforced selection sparsity during pre-training to bridge the train-test distribution gap. We provide a theoretical motivation for intra-chunk information processing and landmark generation. By combining these principles, we establish a new state-of-the-art for training-free length extrapolation, successfully generalizing models trained on a 4K context to 32 million tokens on RULER and BABILong. Our findings provide a clear and empirically-grounded set of design principles for developing future, highly-capable long-context language models.
Pruning and Sparsemax Methods for Hierarchical Attention Networks
Instituto Superior Técnico, University of Lisbon(里斯本大学高等技术学院);INESC-ID
本文介绍并评价了两种新颖的层次注意力网络模型[Yang et al.,- i)分层修剪注意力网络,其从分类过程中去除不相关的单词和句子,以减少文档分类准确性中的潜在噪声,以及ii)分层Sparsemax注意力网络,其用Sparsemax代替注意力机制中使用的Softmax函数[Martins和Astudillo,2016],能够更好地处理重要性分布,其中许多单词或句子具有非常低的概率。我们对IMDB Review的情感分析数据集的实证评估显示,这两种方法都能够匹配当前最先进的方法所获得的结果(但是没有任何显着的好处)。我们所有的源代码都可以在https://www.example.com上找到。github.com/jmribeiro/dsl-project
Retraining-Free Merging of Sparse MoE via Hierarchical Clustering
National Tsing Hua University(国立清华大学);National Taiwan University(国立台湾大学);University of Toronto(多伦多大学);NVIDIA AI Technology Center (NVAITC)(NVIDIA AI技术中心);Samsung Research America(三星美国研究院)
University of Tübingen(蒂宾根大学);Tübingen AI Center(蒂宾根人工智能中心);Technical University of Darmstadt(达姆施塔特工业大学);Hessian Center for AI (hessian.AI)(黑森人工智能中心(hessian.AI))
DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention
Tsinghua University(清华大学);Instituto Superior Técnico, Universidade de Lisboa(里斯本大学理工学院);Instituto de Telecomunicações(电信研究院);Carnegie Mellon University(卡内基梅隆大学);Sapienza University of Rome(罗马萨皮恩扎大学);University of Edinburgh(爱丁堡大学);TransPerfect(TransPerfect公司);ELLIS Unit Lisbon(里斯本ELLIS单位)
SPARTAN: Sparse Hierarchical Memory for Parameter-Efficient Transformers
Princeton University(普林斯顿大学);IBM Research AI(IBM研究院AI);Amazon AWS AI(亚马逊AWS AI);The Allen Institute for AI(艾伦人工智能研究所)
微调预训练的语言模型(PLM)在一系列下游任务上实现了令人印象深刻的性能,因此它们的规模越来越大。由于每个任务都需要模型的不同副本,因此这种范例对于移动电话等存储受限的边缘设备是不可行的。在本文中,我们提出了SPARTAN,一个参数高效(PE)和计算速度快的边缘设备,每个Transformer层后增加分层组织的稀疏内存架构。SPARTAN冻结PLM参数并仅微调其内存,从而通过为不同任务重复使用PLM主干来显著降低存储成本。SPARTAN包含两个级别的内存,在第一级中为每个输入仅选择父节点的稀疏子集,并且与这些父节点对应的子单元用于计算输出表示。与PE基线(适配器)相比,这种稀疏性与其他架构优化相结合,在Raspberry Pi 4上进行推理时,SPARTAN的吞吐量提高了90%以上,同时在GLUE基准测试中也超过后者0.1个点。此外,它可以在Few-Shot设置中训练速度快34%,同时在适配器的0.9点内执行。定性分析表明,SPARTAN中不同的父细胞专注于不同的主题,从而有效地划分责任。
Tencent HY Team(腾讯混元团队);ShanghaiTech University(上海科技大学);The Hong Kong University of Science and Technology(香港科技大学);University of California, San Diego(加州大学圣地亚哥分校)
A Multi-granularity Concept Sparse Activation and Hierarchical Knowledge Graph Fusion Framework for Rare Disease Diagnosis
School of Software, Yunnan University(云南大学软件学院);Yunnan Key Laboratory of Software Engineering(云南软件工程重点实验室);Yunnan Provincial Hospital of Traditional Chinese Medicine(云南中医药省人民医院)
ERNIE-SPARSE: Learning Hierarchical Efficient Transformer Through Regularized Self-Attention
Baidu Inc.(百度公司);Wuhan University of Science and Technology(武汉科技大学)
稀疏Transformer最近吸引了大量的关注,因为能够减少序列长度的二次依赖性。我们认为,两个因素,信息瓶颈的敏感性和不同的注意力拓扑结构之间的不一致性,可能会影响稀疏Transformer的性能。本文提出了一个设计良好的模型ERNIE-Sparse。它由两个不同的部分组成:(i)层次稀疏Transformer(HST),顺序统一的本地和全局信息。(ii)自注意正则化(SAR)方法,一种新的正则化设计,以最小化不同注意拓扑的变压器的距离。为了评估ERNIE-Sparse的有效性,我们进行了广泛的评估。首先,我们进行了实验上的多模态长序列建模任务基准,长距离竞技场(LRA)。实验结果表明,ERNIE-Sparse显著优于各种强基线方法,包括密集注意力和其他有效的稀疏注意力方法,并实现了2.77%的改进(57.78% vs. 55.01%)。其次,为了进一步证明我们的方法的有效性,我们对ERNIE-Sparse进行了预训练,并在3个文本分类和2个QA下游任务上进行了验证,分类基准提高了0.83%(92.46% vs. 91.63%),QA基准提高了3.24%(74.67% vs. 71.43%)。实验结果继续证明其优越的性能。