TensorX
返回文献探索

Paper · arXiv 2310.15494

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

Haofei Yu, Cunxiang wang, Yue Zhang, Wei Bi

2 upvotesOctober 24, 2023arXiv 预印本
AI 摘要

A new memory selection strategy in the Transformer architecture enhances long-range language modeling by selecting relevant tokens based on a simple metric, improving performance without additional training or parameters.

Transformerlong-range language modelingTransformer-XLTRAining-free Memory Selection (TRAMS)attention calculationattention scoreword-level benchmarkcharacter-level benchmark

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
TRAMS: Training-free Memory Selection for Long-range Language Modeling | TensorX