AIMech AI

Relation network

Layers & Modules AIMech:RelationNetwork DRAFT
A reusable neural module for relational reasoning that applies a shared learned function to pairs of object representations, sums the resulting pair vectors and transforms the aggregate with a learned output function. The original all-pairs construction can be embedded in a larger network and optionally conditioned on a common query representation.
Identity Notes & Concept Scope Fresh collection at actual merged base c056d16ecdad4e240beaaf5cf04b36d7b34fe052 inspected 754 maintained and 442 pinned AIO identities. Four fixed-string word-boundary searches included ignored and hidden files across all four recorded checkouts, retaining 13,592 occurrences in 773 content groups. Root read all 505 probe-bearing passage sets, all 22 complete candidate-bearing contexts, four complete long HTML scalar lines, all seven normalized context matches, and all 12 selected full frontier objects. All 909 main and 393 nested objects were mechanically queried; this is not a manual read of all frontier bodies. The same-author context assessment supplies exact occurrence reconstruction and dispositions. No competing candidate identity was found within this bounded current collection. Reuse existing owner 241 for the Santoro 2017 shared ordered-pair, sum/readout relation module. GroupTopicModel uses the phrase relation network for a different derived agreement network; Deep Sets, InteractionNetwork, VAIN and NonLocalBlock are distinct contextual mechanisms. The original Wang 2018 pointer is preserved as discovery context, not substituted for the separately acquired defining primary. The few-shot Relation Network homonym and recurrent RN acronym remain separate.

Claims & Grounded Evidence

6 Claims
Mechanism #shared-pairwise-neural-computation
For object representations O={o_1,...,o_n}, the selected construction computes RN(O)=f_phi(sum_{i,j} g_theta(o_i,o_j)). The same learned pair function g_theta is applied throughout, its vector outputs are summed elementwise, and f_phi maps the global aggregate to an output. The reported implementations use multilayer perceptrons for both functions and train their parameters through the surrounding task by backpropagation.
Mechanism #all-pairs-and-selected-pairs
The original all-to-all form evaluates ordered object pairs and does not require g_theta(u,v)=g_theta(v,u). Its unrestricted double sum has n^2 terms, with no displayed diagonal-exclusion mask. The source also permits an explicitly supplied list of selected pairs. That restricted construction changes which relations are considered; it does not by itself learn a graph or establish equivalence to the full sum.
Mechanism #permutation-invariant-global-readout
In exact arithmetic, permuting the enumeration of a fixed collection of object vectors merely reindexes the shared all-pairs sum and leaves its global output unchanged. The same conclusion holds with a fixed common query. It does not require symmetric individual pair outputs. Coordinates or other tags already included in each object vector move with that vector under this enumeration change.
Mechanism #question-conditioned-relations
For question answering, the source conditions each pair computation on the same question representation q, giving a=f_phi(sum_{i,j} g_theta(o_i,o_j,q)). Its language-question example obtains q from the final state of an upstream LSTM and concatenates q with each object pair. This conditioning is an optional use of the module, not a requirement that the relation module itself be recurrent or use normalized attention weights.
Scope #object-representation-interfaces
The module accepts different upstream object representations. In the image example, each cell of the final CNN feature map becomes a feature vector with its relative x and y coordinates. Supplied object-state descriptions can be used directly. In the text example, independently encoded support sentences, tagged by relative position and processed with a shared LSTM, supply the object vectors. These interfaces do not require every vector to represent one discrete physical object.
Scope #shared-parameters-and-quadratic-work
Sharing g_theta learns one parameterized pair function rather than a separately parameterized copy for each pair. Explicit all-pairs evaluation nevertheless uses n^2 pair-function calls at fixed feature and network widths, followed by aggregation and the output function. The source discusses limiting supplied pairs or reducing the number of input objects to bound this work; those choices do not generally reproduce the unrestricted all-pairs result.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:Layer
Layer
related_match The reusable relation module takes object representations from upstream processing and passes an aggregated learned representation or readout onward, supporting a qualified relationship to the pinned Layer topology. It is a composite of shared pair computations, aggregation and an output network, not an exact synonym for every layer or a single elementary dense operation.

Evidence Sources & Primary Literature

1 Source
Source ID Publication / Document Type / Access Reference & Checksum
santoro2017
Adam Santoro, David Raposo, David G. T. Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, Timothy Lillicrap
primary paper
full_text
ID: https://papers.nips.cc/paper/2017/hash/e6acf4b0f69f6f6e60e9a815938aa1ff-Abstract.html
sha256:9bf31d4b2fbc…

Curation Provenance

Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-10-15T11:59:01Z
Updated: 2026-10-15T11:59:01Z
Source File: data/curated/RelationNetwork.yaml