arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.15494cs.CL
收藏

TRAMS:面向长程语言建模的无训练记忆选择

TRAMS: Training-free Memory Selection for Long-range Language Modeling

Westlake University(西湖大学);Carnegie Mellon University(卡内基梅隆大学);Tencent AI Lab(腾讯人工智能实验室)

Haofei Yu, Cunxiang Wang, Yue Zhang, Wei Bi

AI总结:

本文提出TRAMS,一种无需训练的记忆选择策略,通过简单指标筛选高注意力令牌,在WikiText-103和enwik8上提升长程语言建模性能,无需额外训练或参数。

摘要:

Transformer架构对众多人工智能模型至关重要,但在长程语言建模方面仍面临挑战。尽管已有多种特定的Transformer架构被设计用于解决长程依赖问题,但现有方法如Transformer-XL却受到高比例无效记忆的困扰。在本研究中,我们提出了一种即插即用策略,称为无训练记忆选择(TRAMS),该策略基于一个简单指标来选择参与注意力计算的令牌。该策略使我们能够保留那些可能与当前查询具有高注意力分数的令牌,并忽略其他令牌。我们在词级基准(WikiText-103)和字符级基准(enwik8)上测试了我们的方法,结果表明,在不进行额外训练或增加额外参数的情况下,性能得到了提升。

英文摘要:

The Transformer architecture is crucial for numerous AI models, but it still faces challenges in long-range language modeling. Though several specific transformer architectures have been designed to tackle issues of long-range dependencies, existing methods like Transformer-XL are plagued by a high percentage of ineffective memories. In this study, we present a plug-and-play strategy, known as TRAining-free Memory Selection (TRAMS), that selects tokens participating in attention calculation based on one simple metric. This strategy allows us to keep tokens that are likely to have a high attention score with the current queries and ignore the other ones. We have tested our approach on the word-level benchmark (WikiText-103) and the character-level benchmark (enwik8), and the results indicate an improvement without having additional training or adding additional parameters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑