arXiv:2411.01030cs.CLcs.AI2024-11中稿 · EMNLP被引 2

用强化学习训练让状态空间模型高效实现长文本检索。

Birdie: Advancing State Space Models with Reward-Driven Objectives and Curricula

  • 通过双向输入与动态目标混合,用强化学习优化训练过程。
  • 在电话簿查询等任务上性能接近Transformer,计算效率不变。
  • 适合追求高效长文本处理的研究者和应用开发者。

高效的状態空間模型(SSMs)如線性循環神經網絡和線性注意力變體,相比Transformers具有計算優勢,但在需要長距離上下文檢索、關聯回憶和長上下文問答等任務上表現不佳。以往方法多聚焦於架構修改,常導致計算效率下降。本文提出新訓練方法Birdie,不改變架構即可顯著提升SSMs的上下文檢索能力。該方法結合雙向輸入處理與動態專用預訓練目標混合,並通過強化學習優化。我們引入新的雙向SSM架構,可順暢實現雙向上下文處理到因果生成的過渡。實驗表明,Birdie在多數電話簿查詢、長段落問答和填空任務上性能顯著提升,縮小與Transformers的差距,同時保持計算效率。結果強調了訓練過程對利用SSMs固定狀態容量的重要性,為推進其能力提供新方向。所有代碼與預訓練模型已公開於https://www.github.com/samblouir/birdie,支持JAX與PyTorch。

原文摘要 · Abstract (English)

Efficient state space models (SSMs), such as linear recurrent neural networks and linear attention variants, offer computational advantages over Transformers but struggle with tasks requiring long-range in-context retrieval-like text copying, associative recall, and question answering over long contexts. Previous efforts to address these challenges have focused on architectural modifications, often reintroducing computational inefficiencies. In this paper, we propose a novel training procedure, Birdie, that significantly enhances the in-context retrieval capabilities of SSMs without altering their architecture. Our approach combines bidirectional input processing with dynamic mixtures of specialized pre-training objectives, optimized via reinforcement learning. We introduce a new bidirectional SSM architecture that seamlessly transitions from bidirectional context processing to causal generation. Experimental evaluations demonstrate that Birdie markedly improves performance on retrieval-intensive tasks such as multi-number phone book lookup, long paragraph question-answering, and infilling. This narrows the performance gap with Transformers, while retaining computational efficiency. Our findings highlight the importance of training procedures in leveraging the fixed-state capacity of SSMs, offering a new direction to advance their capabilities. All code and pre-trained models are available at https://www.github.com/samblouir/birdie, with support for JAX and PyTorch.

状态空间模型强化学习长文本处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。