Tree Cross Attention
Not on the map. Why?
Abstract (arXiv)
Cross Attention is a popular method for retrieving information from a set of context tokens for making predictions. At inference time, for each prediction, Cross Attention scans the full set of O(N) tokens. In practice, however, often only a small subset of tokens are required for good performance. Methods such as Perceiver IO are cheap at inference as they distill the information to a smaller-sized set of latent tokens L < N on which cross attention is then applied, resulting in only O(L) complexity. However, in practice, as the number of input tokens and the amount of information to distill increases, the number of latent tokens needed also increases significantly. In this work, we propose Tree Cross Attention (TCA) - a module based on Cross Attention that only retrieves information from a logarithmic O(log(N)) number of tokens for performing inference. TCA organizes the data in a tree structure and performs a tree search at inference time to retrieve the relevant tokens for prediction. Leveraging TCA, we introduce ReTreever, a flexible architecture for token-efficient inference. We show empirically that Tree Cross Attention (TCA) performs comparable to Cross Attention across various classification and uncertainty regression tasks while being significantly more token-efficient. Furthermore, we compare ReTreever against Perceiver IO, showing significant gains while using the same number of tokens for inference.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 18 of its 24 references that are in the map. First posted on arXiv 29 Sep 2023.
Builds on
18 of 24 references.
References · 18
- 2018Neural Ordinary Differential Equationscited by 3,779
- 2019A Comprehensive Survey on Graph Neural Networkscited by 2,919
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
- 2016Recurrent Neural Networks for Multivariate Time Series with Missing Valuescited by 554
- 2018Conditional Neural Processescited by 426
- 2018Neural Processescited by 311
- 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 306
- 2019Attentive Neural Processescited by 283
- 2021Multi-Time Attention Networks for Irregularly Sampled Time Seriescited by 238
- 2019Set Functions for Time Seriescited by 138
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 127
- 2019Interpolation-Prediction Networks for Irregularly Sampled Time Seriescited by 89
6 more
- 2019Tree Transformer: Integrating Tree Structures into Self-Attentioncited by 68
- 2020Bootstrapping Neural Processescited by 40
- 2020Tree-structured Attention with Hierarchical Accumulationcited by 30
- 2022Latent Bottlenecked Attentive Neural Processescited by 26
- 2022Graph Neural Networks Designed for Different Graph Types: A Surveycited by 21
- 2022Treeformer: Dense Gradient Trees for Efficient Attention Computationcited by 9
Built on by
Citing papers per year: 2026: 2.
2 papers.