SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.00195 · ICLR · 2024

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

Taylor Webb, Jonathan Cohen, Awni Altabaa, John Lafferty

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2304.00195.json · badge: /api/ran/2304.00195.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
awni00/abstractor marked official in Papers with Code
Papers with Code archive
9 ran · 3 no recorded run
FunctionStatusWhere it lives
AddPositionalEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("902fac1c90d0a3a9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BaseAttention Ran
ran on a synthesized input · constructed an object; no result was computed
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("b6ee3cfab9e23fe6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("afc5f405a2e74f64")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GlobalSelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("cd3c52764d10eb2a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MultiHeadAttention Ran
ran on a synthesized input · constructed an object; no result was computed
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("2159f6374bdb0366")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_build_attention_equation Ran
ran; our contract draft was wrong, not the code
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("ac594e861d76d88b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_build_proj_equation Ran
ran; our contract draft was wrong, not the code
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("a19c79a5dd4448d8")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_get_output_shape Ran
ran; our contract draft was wrong, not the code
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("8dfc0cd5c0042e8f")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_positional_encoding Ran
ran, honoured the contract we drafted
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("e4da176e568a85ee")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

RelationalAbstracter Not yet run
unverified (harvested, no recorded run)
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("dc606b9fae039cdc")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

RelationalAbstracterLayer Not yet run
unverified (harvested, no recorded run)
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("bcb5267bdfd0bada")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

RelationalAttention Not yet run
unverified (harvested, no recorded run)
awni00/abstractor/abstracters.py
pointer only (licence: GPL-3.0) · get_code("ab85963b77d97a76")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, awni00/abstractor, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
create_positional_encoding
brick of this paper's assembly: helper
1 other paper
1 later
2310.03240 (2023-10)
Learning Hierarchical Relational Representations through Relational Convolutions

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2304.00195")
get_code_for_paper("2304.00195")
have("2304.00195")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2304.00195.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2304.00195.svg)](https://syntology.ai/paper/2304.00195)

Connect an agent — have() is free.