When predicting the next token in a sequence, vanilla transformers compute attention over all previous tokens, resulting in quadratic scaling of compute with sequence length. State-space models compress the entire sequence of tokens into a fixed-dimensional representation to improve efficiency, while other architectures achieve sub-quadratic complexity via low-rank projections or sparse attention patterns over the sequence. In this paper, we introduce Attamba, a novel architecture that uses state-space models to compress chunks of tokens and applies attention on these compressed key-value representations. We find that replacing key and value projections in a transformer with SSMs can improve model quality and enable flexible token chunking, resulting in 24% improved perplexity with transformer of similar KV-Cache and attention footprint, and ~4 times smaller KV-Cache and Attention FLOPs for 5% perplexity trade-off. Attamba can perform attention on chunked-sequences of variable length, enabling a smooth transition between quadratic and linear scaling, offering adaptable efficiency gains.
SepTr: Separable Transformer for Audio Spectrogram Processing
University Politehnica of Bucharest(布加勒斯特理工大学);University of Bucharest(布加勒斯特大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Beyond Attention: Toward Machines with Intrinsic Higher Mental States
Conscious Multisensory Integration (CMI) Lab, University of Stirling, Stirling, UK and Computational Neuroscience Laboratory, John Radcliffe Hospital, Oxford, UK(斯特林大学意识多感官整合实验室和牛津约翰·拉德克利夫医院计算神经科学实验室)
StARformer: Transformer with State-Action-Reward Representations for Visual Reinforcement Learning
Stony Brook University(石溪大学)
强化学习(RL)可以被认为是一个序列建模任务:给定一系列过去的状态-动作-奖励经验,智能体预测一系列接下来的动作。在这项工作中,我们提出了视觉RL的状态-动作-奖励Transformer(StARformer),它显式地模拟短期状态-动作-奖励表示(StAR表示),本质上是引入了类似马尔可夫的归纳偏差,以改善长期建模。我们的方法首先提取星表示的自我参加图像状态补丁,动作和奖励令牌在一个很短的时间窗口。然后将这些与纯图像状态表示相结合-提取为卷积特征,以在整个序列上执行自我注意。我们的实验表明,在离线RL和模仿学习设置中,StARformer在基于图像的Atari和DeepMind Control Suite基准测试中的表现优于最先进的基于Transformer的方法。StARformer也更符合较长的输入序列。我们的代码可在https://github.com/elicassion/StARformer上获得。
Near-Oracle KV Selection via Pre-hoc Sparsity for Long-Context Inference
University College London(伦敦大学学院);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences (CAS)(深圳先进技术研究院,中国科学院);Chinese University of Hong Kong(香港中文大学);College of Computing & Data Science, Nanyang Technological University(computing 与数据科学学院,南洋理工大学)