TransMLA: Multi-Head Latent Attention Is All You Need
Institute for Artificial Intelligence, Peking University(人工智能研究院,北京大学);State Key Laboratory of General Artificial Intelligence, BIGAI(通用人工智能国家重点实验室,BIGAI);Tencent Youtu Lab, Shanghai, China(腾讯优图实验室,上海,中国);Xiaomi Corp., Beijing, China(小米公司,北京,中国)
In this paper, we present TransMLA, a framework that seamlessly converts any GQA-based pre-trained model into an MLA-based model. Our approach enables direct compatibility with DeepSeek's codebase, allowing these models to fully leverage DeepSeek-specific optimizations such as vLLM and SGlang. By compressing 93% of the KV cache in LLaMA-2-7B, TransMLA achieves a 10.6x inference speedup at an 8K context length while preserving meaningful output quality. Additionally, the model requires only 6 billion tokens for fine-tuning to regain performance on par with the original across multiple benchmarks. TransMLA offers a practical solution for migrating GQA-based models to the MLA structure. When combined with DeepSeek's advanced features, such as FP8 quantization and Multi-Token Prediction, even greater inference acceleration can be realized.
Dynamic K-Head: Difficulty-Supervised Budget Selection for Continuous Latent Reasoning
Beijing Institute of Mathematical Sciences and Applications(北京数学科学与应用研究院);Tsinghua University(清华大学);Peking University(北京大学);The University of Hong Kong(香港大学)
TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inference
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究所);State Key Laboratory of General Artificial Intelligence, BIGAI(通用人工智能国家重点实验室,BIGAI);Tencent Youtu Lab, Shanghai, China(腾讯云智实验室,上海,中国)
Two Heads Are Better than One: Model-Weight and Latent-Space Analysis for Federated Learning on Non-iid Data against Poisoning Attacks
Miner School of Computer and Information Sciences, University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校计算机与信息科学学院);Department of Computer Science and Engineering, University of South Florida(南佛罗里达大学计算机科学与工程系);Department of Computer Science, University of Kentucky(肯塔基大学计算机科学系);Department of Computer and Information Technology, Purdue University(普渡大学计算机与信息技术系);Department of Civil, Construction, and Environmental Engineering, North Carolina State University(北卡罗来纳州立大学土木、建筑与环境工程系)
The Pennsylvania State University(宾夕法尼亚州立大学);University of Connecticut(康涅狄格大学);Carnegie Mellon University(卡内基梅隆大学);University of California, Los Angeles(加州大学洛杉矶分校)
Listening to the Wise Few: Query-Key Alignment Unlocks Latent Correct Answers in Large Language Models
Skolkovo Institute of Science and Technology(斯科尔科沃科学技术研究院);AI Foundation and Algorithm Lab(人工智能基金会与算法实验室);Moscow Institute of Physics and Technology(莫斯科物理技术学院);Artificial Intelligence Research Institute (AIRI)(人工智能研究院);CNRS(法国国家科学研究中心);Université Paris Cité(巴黎西岱大学)
Learning embeddings of non-linear PDEs: the Burgers' equation
Departament de Física Quántica i Astrofí sica, Universitat de Barcelona(巴塞罗那大学量子物理与天体物理系);Institut de Ciencies del Cosmos (ICC), Universitat de Barcelona(巴塞罗那大学天体物理研究所);Institucio Catalana de Recerca i Estudis Avancats (ICREA)(加泰罗尼亚高级研究与高级教育研究所)
The University of Hong Kong(香港大学);Sun Yat-sen University(中山大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Transformers在各种重要任务上推进了自然语言处理(NLP)领域。Transformer体系结构的基石是多头注意力(MHA)机制,它对序列元素之间的成对交互进行建模。尽管取得了巨大的成功,但目前的框架忽略了不同头部之间的相互作用,导致许多头部在实践中是多余的,这极大地浪费了模型的容量。为了提高参数效率,我们重新制定的MHA作为一个潜在的变量模型从概率的角度来看。我们提出了级联头碰撞注意力(CODA),显式模型之间的相互作用,通过层次变分分布的注意头。我们进行了大量的实验,并证明CODA优于Transformer基线,通过在语言建模中的\texttt{Wikitext-103}上的$0.6$困惑,以及在机器翻译中的\texttt{WMT14 EN-DE}上的$0.6$ BLEU,由于它在参数效率上的改进。\footnote{Our implementation is publicly available at \url{https://github.com/LZhengisme/CODA}.}
Self-Improving is Often Sudden: Enlightenment-style Finetuning for Large-Scale Models
School of Computer Science and Artificial Intelligence, Guangdong University of Education(广东第二师范学院计算机科学与人工智能学院);School of Instrumentation Science and Engineering, Harbin Institute of Technology(哈尔滨工业大学仪器科学与工程学院)
Learning the Koopman Operator using Attention Free Transformers
Institute for Bioengineering, School of Engineering and Centre for Engineering Biology, University of Edinburgh(爱丁堡大学生物工程研究所、工程学院与工程生物学中心);Electrical and Computer Engineering and Applied Mathematics, University of Washington(华盛顿大学电气与计算机工程与应用数学系);Electrical and Computer Engineering and Computer Science & Engineering, University of Washington(华盛顿大学电气与计算机工程及计算机科学与工程系)
MCI-GRU: Stock Prediction Model Based on Multi-Head Cross-Attention and Improved GRU
Department of Computer Science and Technology, Tongji University(同济大学计算机科学与技术系);Australian Artificial Intelligence Institute, University of Technology Sydney(澳大利亚人工智能研究所,悉尼大学);Seek Data Group, Emoney Inc.(Seek数据集团,Emoney公司)
Latent Disentanglement in Mesh Variational Autoencoders Improves the Diagnosis of Craniofacial Syndromes and Aids Surgical Planning
Wellcome/EPSRC Centre for Interventional and Surgical Sciences, University College London(伦敦大学学院Wellcome/EPSRC介入与外科科学中心);Centre For Medical Image Computing, University College London(伦敦大学学院医学影像计算中心);UCL Great Ormond Street Institute of Child Health(伦敦大学学院大奥蒙德街儿童健康研究所);Great Ormond Street Hospital for Children(大奥蒙德街儿童医院);University of California, Santa Barbara(加州大学圣巴巴拉分校);Imperial College London(伦敦帝国理工学院);Erasmus Medical Center(伊拉斯谟医学中心);Necker - Enfants Malades University Hospital(内克尔-恩凡茨-马拉德大学医院)