Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformers

Awni Altabaa, Taylor W. Webb, Jonathan D. Cohen, J. Lafferty
4/1/2023

No official code found. Best implementation: Awni00/abstractor (23 stars, GPL-3.0, last commit 2024-08-24).

Abstract

An extension of Transformers is proposed that enables explicit relational reasoning through a novel module called the Abstractor. At the core of the Abstractor is a variant of attention called relational cross-attention. The approach is motivated by an architectural inductive bias for relational learning that disentangles relational information from object-level features. This enables explicit relational reasoning, supporting abstraction and generalization from limited data. The Abstractor is first evaluated on simple discriminative relational tasks and compared to existing relational architectures. Next, the Abstractor is evaluated on purely relational sequence-to-sequence tasks, where dramatic improvements are seen in sample efficiency compared to standard Transformers. Finally, Abstractors are evaluated on a collection of tasks based on mathematical problem solving, where consistent improvements in performance and sample efficiency are observed.

View on arXivView PDF

Code Implementations(1)

Awni00/abstractorCommunity72%
GPL-3.0

This is the code repository associated with the paper "Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformers"

234Python, Jupyter NotebookOct 5, 20232 years agoGPL-3.0

Similar Papers

Cite this paper

@article{altabaa2023abstractors,
  title  = {Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformers},
  author = {Awni Altabaa and Taylor W. Webb and Jonathan D. Cohen and J. Lafferty},
  year   = {2023},
  eprint = {2304.00195},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2304.00195},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.00195.svg)](https://codeofpaper.com/paper/2304.00195)

Discussion