Tencent HY Team(腾讯HY团队);The Chinese University of Hong Kong(香港中文大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Nvidia Inc.(英伟达公司);Hong Kong University of Science and Technology(香港科技大学)
Lei Zhu, Zexuan Qiu, Zhiwei Li, Zhongwei Wan, Tong Che, Huayang Li, Tian Liang, Hao Gu, Zhijiang Guo, Irwin King, Leo Liang
Sparse attention typically inherits positional encodings designed for dense attention, despite changing each query's context. Although sparse attention bounds the number of attended keys, these encodings retain large original-sequence distances poorly covered or unseen during training. We argue that positional distances should instead be co-designed with sparse attention, letting long-range interactions share positional representations with short-range ones. To realize this co-design, we make position reindexing native to sparse-attention training: each query's selected tokens receive consecutive positions in their original order during both training and inference, limiting relative distances to the attention budget rather than the full sequence length. Unlike inference-time reindexing in StreamingLLM, native training lets the model adapt to these query-dependent positions rather than merely tolerate them. Applying this rule to rotary position encoding (RoPE) yields ReIndexing RoPE (RiRoPE). A challenge is that query-dependent rotations hinder reuse of rotated keys, erasing the efficiency gains of sparse attention; we address it with structure-aware rotation reuse and fused kernels that preserve tensor-core matrix multiplication without materializing per-pair rotated keys. With matched OLMo-3-7B continued pretraining, RiRoPE outperforms a sparse-attention baseline using RoPE with YaRN at 64K by 6.14 RULER points ($74.10 \to 80.24$) and 4.40 HELMET points ($42.97 \to 47.37$). At 512K---eight times the training length---it retains about 90\% of its 64K RULER score without further training or positional retuning. Native training also outperforms inference-only switching by 21.24 RULER points at 256K. Our work motivates co-designing positional encodings with sparse attention, reframing sparsity not merely as a computational constraint but as an opportunity for better long-context modeling.
pyFAST: A Modular PyTorch Framework for Time Series Modeling with Multi-source and Sparse Data
College of Computer Engineering, Jimei University(嘉应大学计算机工程学院);Chengyi College, Jimei University(嘉应大学 Chengyi 学院);Department of Technology, Management and Economics, Technical University of Denmark(丹麦技术大学技术、管理与经济系)
SmallThinker: A Family of Efficient Large Language Models Natively Trained for Local Deployment
Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University(并行与分布式系统研究所,上海交通大学);School of Artificial Intelligence, Shanghai Jiao Tong University(人工智能学院,上海交通大学);Zenergize AI
Tencent HY Team(腾讯混元团队);ShanghaiTech University(上海科技大学);The Hong Kong University of Science and Technology(香港科技大学);University of California, San Diego(加州大学圣地亚哥分校)
LatentIndex: Cross-Layer Sharing with Layer-Specific Selection for Sparse Attention
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Dots Studio, Xiaohongshu Inc.(小红书公司Dots工作室);Beijing Institute of Technology(北京理工大学)