尽管状态空间模型(SSMs)在长序列建模中表现出良好性能,但仍存在局限性。先进的SSMs如S5和S6(Mamba)在处理非均匀采样时,其递归结构阻碍了通过卷积进行高效的SSM计算。为克服并行卷积计算中的兼容性限制,本文提出了一种新颖的非递归非均匀样本处理策略。通过事件触发控制(ETC)理论视角对SSMs进行理论分析,揭示了非稳定状态(NSS)问题,即偏离采样点要求会导致误差传递和累积,从而引起SSM隐藏状态发散。我们的分析进一步表明,利用早期记忆调整输入序列可以缓解NSS问题,实现采样步长自适应(SSA)。基于这一见解,我们引入了一种简单而有效的即插即用机制——状态记忆回放(SMR),该机制利用可学习记忆结合多步信息调整当前状态,以在与训练数据不同的采样点上实现泛化。这使SSMs能够稳定地对变化的采样点进行建模。在自回归语言建模和Long Range Arena中的长程建模任务上的实验表明,SMR机制对一系列SSM模型具有普遍有效性。
英文摘要:
Despite the promising performance of state space models (SSMs) in long sequence modeling, limitations still exist. Advanced SSMs like S5 and S6 (Mamba) in addressing non-uniform sampling, their recursive structures impede efficient SSM computation via convolution. To overcome compatibility limitations in parallel convolutional computation, this paper proposes a novel non-recursive non-uniform sample processing strategy. Theoretical analysis of SSMs through the lens of Event-Triggered Control (ETC) theory reveals the Non-Stable State (NSS) problem, where deviations from sampling point requirements lead to error transmission and accumulation, causing the divergence of the SSM's hidden state. Our analysis further reveals that adjustments of input sequences with early memories can mitigate the NSS problem, achieving Sampling Step Adaptation (SSA). Building on this insight, we introduce a simple yet effective plug-and-play mechanism, State Memory Replay (SMR), which utilizes learnable memories to adjust the current state with multi-step information for generalization at sampling points different from those in the training data. This enables SSMs to stably model varying sampling points. Experiments on long-range modeling tasks in autoregressive language modeling and Long Range Arena demonstrate the general effectiveness of the SMR mechanism for a series of SSM models.
Transformers通过在大规模文本语料库上进行预训练,实现了自然语言处理任务的最新性能。它们是非常计算密集型的,并且具有非常高的样本复杂性。内存重放是一种通过保存到内存缓冲区和从内存缓冲区重放来记住和重用过去的示例的机制。由于更好的样本效率,它已成功用于强化学习和GANs。在本文中,我们提出了\emph{Transformer with Memory Replay}(TMR),它集成了存储器重放与Transformer,使Transformer更采样效率。在GLUE和SQuAD基准数据集上的实验表明,与使用相同数量的示例进行预训练的基线Transformer模型相比,具有内存重放的Transformer至少实现了$1\%$点的增加。此外,通过采用一个精心的设计,减少内存重放的挂钟时间开销,我们也经验性地实现了更好的运行时效率。
FETCH: A Memory-Efficient Replay Approach for Continual Learning in Image Classification
Faculty of Electrical Engineering and Information Technology, Chemnitz University of Technology(德国 Chemnitz 工业大学 电气工程与信息技术学院);Institute for Computational Visualistics, University of Koblenz(科布伦茨大学 计算视觉学研究所)
Replay4NCL: An Efficient Memory Replay-based Methodology for Neuromorphic Continual Learning in Embedded AI Systems
Electrical and Communication Engineering Department, United Arab Emirates University(阿联酋大学电子与通信工程系);eBrain Lab, New York University(纽约大学eBrain实验室);School of Electrical Engineering and Computer Science (SEECS), National University of Sciences and Technology(国立科学与技术大学电子工程与计算机科学学院)
FOREVER: Forgetting Curve-Inspired Memory Replay for Language Model Continual Learning
The Hong Kong Polytechnic University(香港理工大学);ShineMo Ltd., China(中国 ShineMo 公司);Solar System of OVB, Tencent, China(腾讯 OVB 太阳系中国);Peking University(北京大学);University College London(伦敦大学学院);University of Illinois Chicago(伊利诺伊大学芝加哥分校)
Regret-Aware Policy Optimization: Environment-Level Memory for Replay Suppression under Delayed Harm
Department of Computer Science and Engineering, VTU, Belagavi, India(印度贝尔高姆VTU计算机科学与工程系);Aliens on Earth (AoE) Autonomous Research Group, Belagavi, India(印度贝尔高姆地球外星人自主研究小组)
Augmented Replay Memory in Reinforcement Learning With Continuous Control
Artificial Intelligence Center(人工智能中心);Faculty of Electrical Engineering(电气工程学院);Czech Technical University in Prague(捷克理工大学);Dipartimento di Elettronica, Informazione e Bioingegneria(电子、信息与生物工程系);Politecnico di Milano(米兰理工大学)
Information-Theoretic Generalization Bounds of Replay-based Continual Learning
School of Computer Science and Technology, Xi’an Jiaotong University(西安交通大学计算机科学与技术学院);Department of Oncology, University of Cambridge(剑桥大学肿瘤学系);China Telecom, China(中国电信);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Continual Learning for non-stationary regression via Memory-Efficient Replay
atlanTTic - ICLAB - Universidade de Vigo, Escola de Enxeñaría de Telecomunicación, Campus Universitario(atlanTTic - ICLAB - 维戈大学,电信工程学院,大学校区);Centro Tecnolóxico de Telecomunicacións de Galicia (GRADIANT)(加利西亚电信技术中心(GRADIANT));Facultade de Informática, Universidade de Santiago de Compostela(圣地亚哥-德孔波斯特拉大学计算机学院)
Towards Continuous Reuse of Graph Models via Holistic Memory Diversification
School of Computing and Information Technology, Great Bay University(大湾区大学计算与信息学院);AI Thrust, The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州)人工智能学科);School of Engineering, Great Bay University(大湾区大学工程学院);Computer Network Information Center, Chinese Academy of Sciences(中国科学院计算机网络信息中心);Department of Computer Science, University of California, Los Angeles(加利福尼亚大学洛杉矶分校计算机科学系)
STAMP: Outlier-Aware Test-Time Adaptation with Stable Memory Replay
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);University of Science and Technology of China(中国科学技术大学)