SandHouse
Pages and contents

Relational Bottleneck

https://arxiv.org/pdf/2309.06629, 2023

The Problem

Humans can learn abstract concepts from very little experience and then apply them systematically to completely new objects. For example, we can recognize that dog-cat-dog and plane-car-plane instantiate the same abstract pattern ABA , despite having no objects in common. Symbolic systems handle this naturally because their variables are separated from the particular objects that fill them, but searching over symbolic programs is often computationally difficult. Neural networks are easy to train end-to-end, but generally need much more data and can overfit to superficial perceptual features rather than discovering the underlying abstraction.

The authors propose the relational bottleneck as an inductive bias between these approaches. Instead of allowing downstream reasoning to directly access all features of the inputs, the architecture forces information to pass through representations of the relations between inputs. The hypothesis is that discarding irrelevant object-specific information makes abstract relational structure much easier to discover.

The Method

Relational Bottleneck

Suppose a model receives input X , compresses it into some representation Z=f(X) , and uses Z to predict a target Y .

A representation is sufficient when it preserves everything in X that matters for predicting Y :

I(Z;Y)=I(X;Y)

Equivalently,

X→Z→Y

meaning that once Z is known, X provides no additional information about Y .

The information bottleneck objective asks for a representation that retains useful information while removing unnecessary information:

β„’(Z)=I(X;Z)βˆ’Ξ²I(Z;Y)

The first term encourages compression of X , while the second encourages Z to preserve information useful for predicting Y . Ξ² controls the tradeoff.

The relational bottleneck imposes a stronger architectural assumption. Let the input consist of objects

X=(x1,…,xN)

and define a relational representation

R=r(xi,xj)i≠j

A task is relational if some such R is sufficient for predicting Y :

X→R→Y

Instead of learning an arbitrary compressed representation Z , the model is biased toward searching only over relational representations R . If the task really is relational, this smaller hypothesis space still contains a sufficient solution while excluding many solutions based on irrelevant perceptual details.

Learning Relations

A particularly simple relation function is an inner product between learned representations:

r(xi,xj)=βŸ¨Ο•(xi),Ο•(xj)⟩

This represents how similar two objects are along learned dimensions. Importantly, the encoder Ο• can still learn which features should be compared; only the comparison operation is constrained.

Ordinary inner products are symmetric. Asymmetric relations can instead use different encoders for the two roles:

r(xi,xj)=βŸ¨Ο•(xi),ψ(xj)⟩

so in general

r(xi,xj)β‰ r(xj,xi)

This allows relations such as greater-than/less-than. The authors also suggest obtaining higher-order relations recursively: first compute relations between objects, then apply another relational bottleneck to compute relations between those relations.

ESBN

The Emergent Symbol Binding Network (ESBN) separates perceptual representations from abstract control representations.

An encoder converts observations into perceptual embeddings. These embeddings are stored as keys, while a recurrent controller produces separate abstract representations stored as values. When a new observation arrives, its embedding acts as a query and is compared with perceptual keys.

Schematically,

sj=⟨qt,kj⟩

and these similarities determine which abstract values are retrieved:

ct=βˆ‘jsoftmax⁑(s)jvj

The important constraint is that the controller receives the abstract values vj , but never directly receives the perceptual keys kj . Perception determines which abstract representation is retrieved, but perceptual content itself cannot leak into the abstract pathway.

This produces something similar to symbolic role-filler binding: perceptual objects are fillers, while reusable abstract control representations act like roles. The same role can therefore be reused with completely different objects.

CoRelNet

The Compositional Relation Network (CoRelNet) replaces the sequential memory mechanism of ESBN with a parallel relation matrix.

Given object embeddings o1,…,oN , it constructs

Rij=⟨oi,oj⟩

and passes only R to the downstream decoder:

X→O→R→Y^

The decoder therefore cannot exploit the individual object embeddings directly. It only knows the pattern of relations between them.

CoRelNet can be understood as computing all of the comparisons performed sequentially by ESBN at once. This makes the relational bottleneck particularly explicit: two scenes containing completely different objects can produce approximately the same R if they instantiate the same relational structure.

Abstractor and Relational Cross-Attention

The Abstractor adapts the relational bottleneck to Transformer-style attention.

Perceptual object embeddings generate queries Q and keys K , whose pairwise comparisons produce a relation matrix:

Rij=⟨qi,kj⟩

The critical difference from ordinary attention concerns the values V .

In standard self-attention, Q , K , and V are all generated from perceptual object representations. This means perceptual content can pass directly through the values even if attention weights encode useful relations.

The Abstractor instead uses learned abstract values that are independent of the perceptual attributes of the objects. Perception influences downstream computation only through the Q \-K relation matrix. The values therefore behave somewhat like learned symbols whose use is controlled by relational structure.

Separate query and key projections naturally support asymmetric relations, while multi-head relational attention permits several relational dimensions to be represented simultaneously.

Across ESBN, CoRelNet, and the Abstractor, the common principle is therefore

perception→relations→abstract computation

rather than

perception→arbitrary learned representation→computation

The bottleneck prevents the downstream system from solving a relational task by exploiting accidental properties of the training objects, encouraging abstractions that transfer to novel objects.


The strongest assumption of the framework is also its main limitation: not all reasoning is purely relational. Human reasoning exhibits content effects, where the particular entities involved influence reasoning even when the abstract relational structure is unchanged. The authors therefore suggest that a graded bottleneck, which permits some object-level information to coexist with relational information, may ultimately be more realistic. Most existing demonstrations also emphasize relatively simple pairwise relations such as same/different. Separate query/key embeddings and recursively stacked relational bottlenecks provide possible routes toward asymmetric and higher-order relations, but whether these mechanisms can capture the full richness of human relational reasoning remains open. How relational representations interact with attention, episodic memory, semantic knowledge, and biological mechanisms is also unresolved.

The proposal sits between traditional symbolic/program-induction approaches and general-purpose neural networks. Symbolic models and probabilistic program induction naturally represent variables and systematic structure, but often rely on pre-specified primitives or expensive program search. Earlier neuro-symbolic approaches include tensor-product variable binding, vector-symbolic architectures, neural production systems, graph neural networks, and neural-symbolic program induction. Relation Networks and GNN-like architectures also explicitly compare objects, but generic learned pairwise functions do not enforce a true relational bottleneck and can still exploit perceptual shortcuts. The paper also connects the framework to classical theories of analogical reasoning and structure mapping, and suggests future comparisons with group-theoretic approaches to invariance and generalization. The distinctive claim of the relational bottleneck is that architecturally removing access to object-specific content can cause reusable, symbol-like relational representations to emerge through ordinary end-to-end learning, without specifying the symbols beforehand.