LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context Modeling

作者
Liu, Zeyu,Souvik Kundu,Lianghao Jiang,Anni Li,Srikanth Ronanki,Sravan Bodapati,Gourav Datta,Peter A. Beerel
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:1
标识
DOI:10.48550/arxiv.2509.18467
摘要

Although transformer architectures have achieved state-of-the-art performance across diverse domains, their quadratic computational complexity with respect to sequence length remains a significant bottleneck, particularly for latency-sensitive long-context applications. While recent linear-complexity alternatives are increasingly powerful, effectively training them from scratch is still resource-intensive. To overcome these limitations, we propose LAWCAT (Linear Attention with Convolution Across Time), a novel linearization framework designed to efficiently transfer the capabilities of pre-trained transformers into a performant linear attention architecture. LAWCAT integrates causal Conv1D layers to enhance local dependency modeling and employs normalized gated linear attention to improve generalization across varying context lengths. Our comprehensive evaluations demonstrate that, distilling Mistral-7B with only 1K-length sequences yields over 90\% passkey retrieval accuracy up to 22K tokens, significantly extending its effective context window. Similarly, Llama3.2-1B LAWCAT variant achieves competitive performance on S-NIAH 1\&2\&3 tasks (1K-8K context length) and BABILong benchmark (QA2\&QA3, 0K-16K context length), requiring less than 0.1\% pre-training tokens compared with pre-training models. Furthermore, LAWCAT exhibits faster prefill speeds than FlashAttention-2 for sequences exceeding 8K tokens. LAWCAT thus provides an efficient pathway to high-performance, long-context linear models suitable for edge deployment, reducing reliance on extensive long-sequence training data and computational resources. Code is released at: https://github.com/zeyuliu1037/LAWCAT

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI6.2的应助被feifeiaym采纳,获得10
1秒前
残酷月光完成签到,获得积分10
1秒前
2秒前
ffei19完成签到 ,获得积分10
2秒前
歪比巴布发布了新的文献求助10
3秒前
3秒前
SciGPT的应助被愉快的若云采纳,获得10
3秒前
4秒前
学霸业的应助被沙丁鹌鹑采纳,获得10
4秒前
科研通AI6.2的应助被辛勤青曼采纳,获得10
4秒前
乐乐的应助被茶米采纳,获得10
5秒前
大模型的应助被机读卡采纳,获得10
5秒前
傻傻的山灵的应助被花在开采纳,获得10
6秒前
洋芋心完成签到 ,获得积分10
6秒前
正直凡灵的应助被oleskarabach采纳,获得10
6秒前
正直凡灵的应助被oleskarabach采纳,获得10
6秒前
蓝桉凯发布了新的文献求助10
8秒前
科研通AI6.4的应助被叶辛采纳,获得10
8秒前
鳗鱼衣完成签到 ,获得积分10
8秒前
8秒前
沉沉完成签到,获得积分10
8秒前
WWW完成签到,获得积分10
9秒前
qsy发布了新的文献求助10
9秒前
科研通AI6.4的应助被霸气映之采纳,获得10
9秒前
清风完成签到,获得积分10
9秒前
10秒前
10秒前
10秒前
一一发布了新的文献求助10
10秒前
11秒前
11秒前
鲤鱼一一完成签到,获得积分10
11秒前
12秒前
12秒前
13秒前
明亮沁发布了新的文献求助10
13秒前
14秒前
lpk发布了新的文献求助10
14秒前
14秒前
科研通AI2S的应助被小yy采纳,获得10
15秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Spec 401: Standards for Jet Fuel Facility and Equipment Commissioning and Flushing at Airports, 2026.1 (Original Issue) 1000
Spec 103: Standard for Jet Fuel Quality Control at Airports, Revision 2026.1 1000
Chinese Traditional Wisdom and Contemporary Education Values 600
AI Disclosure in Annual Reports: Evolution, Determinants, and Capital Market Participants’ Perceptions 500
5th World Conference on Detergents: Reinventing the Industry : Opportunities and Challenges 500
Erzählte Gnade 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8104650
求助须知:如何正确求助?哪些是违规求助? 9513927
关于积分的说明 21489968
捐赠科研通 7681147
什么是DOI,文献DOI怎么找? 3409516
关于科研通互助平台的介绍 2537264
邀请新用户注册赠送积分活动 2449390