arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07218cs.CLcs.AI
收藏

TreeCoders:Transformer树

TreeCoders: Trees of Transformers

School of Computer Science, University of Leeds(利兹大学计算机学院)

Pierre Colonna D'Istria, Abdulrahman Altahhan

AI总结:

TreeCoders提出用k叉树替代线性Transformer,通过分类器路由令牌,实现稀疏激活,并在多数情况下超越同等规模线性模型。

摘要:

在本文中,我们介绍了TreeCoders,一种新颖的Transformer树家族。我们摆脱了传统的线性Transformer,转向完整的k叉树。Transformer块作为节点,通用分类器学习选择最佳子节点并将令牌序列路由到特定的叶子。选择器被移出Transformer块,允许在不进行进一步修改的情况下使用各种架构。此外,我们提出的架构由于树搜索的对数复杂度而支持稀疏节点激活。我们通过测试一系列仅解码器的树Transformer来验证我们的想法,在多样化的语言数据集上取得了有竞争力的结果。我们的研究表明,在广泛的树架构中,所提出的树Transformer模型在76%的情况下优于同等规模的线性Transformer模型。此外,我们提出的模型天然适合分布式实现。

英文摘要:

In this paper, we introduce TreeCoders, a novel family of transformer trees. We moved away from traditional linear transformers to complete k-ary trees. Transformer blocks serve as nodes, and generic classifiers learn to select the best child and route the sequence of tokens to a specific leaf. The selectors, moved outside the transformer blocks, allow for the use of a variety of architecture without further modifications. Furthermore, our proposed architecture supports sparse node activation due to the logarithmic complexity of a tree search. We validate our idea by testing a series of decoder-only tree transformers, achieving competitive results across a diverse range of language datasets. Our study demonstrates that the proposed tree transformer model outperforms a size-equivalent linear transformer model 76\% of the time over a wide range of tree architectures. Furthermore, our proposed model naturally lends itself to distributed implementation.

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

↑