TL;DR
Standard attention and graph-based reinforcement learning policies fail catastrophically when tested on scenes with more (or fewer) objects than seen during training. This paper introduces the Linear Relation Network (LRN), an object-reasoning module that only computes relations between scene entities and the goal, scaling linearly $\mathcal{O}(K)$ rather than quadratically $\mathcal{O}(K^2)$. Policies equipped with LRN achieve seamless zero-shot generalization to unseen numbers of distractor objects without performance degradation.
What Problem Does This Paper Address?
In robotic manipulation, real-world scenes are messy and unpredictable: an agent trained to push or lift a specific cube among two clutter objects ("distractors") should ideally be able to do the same whether there are zero, five, or nine distractors present.
However, existing multi-object reinforcement learning (RL) methods face two major hurdles:
- Poor out-of-distribution generalization: Standard approaches relying on Multi-Head Dot Product Attention (MHDPA) or fully connected Graph Attention Networks (GATs) overfit to the exact entity count seen during training. Changing the number of objects causes severe distribution shift, collapsing policy performance.
- Quadratic compute scaling: Evaluating all-to-all entity interactions scales as $\mathcal{O}(K^2)$, becoming computationally prohibitive for training and real-time control in crowded scenes.
Methods
The authors propose Linear Relation Networks (LRN) as a plug-and-play encoder for goal-conditioned RL policies:
- Object Embeddings: Ground-truth state features for each entity (individual robot fingers, manipulable cubes, and the target goal) are mapped to fixed-dimensional tokens $o_i \in \mathbb{R}^d$ using type-specific MLPs.
-
Goal-Centric Relational Inductive Bias: Instead of computing all $K^2$ pairwise entity relations, LRN only computes relations between each scene entity $o_i$ and the goal token $o_g$ using a shared 4-layer MLP $g_\theta$: $$z = \text{LayerNorm}\left( f_\phi\left( \sum_{i=1}^K g_\theta(o_i, o_g) \right) \right)$$ This reduces computational complexity from $\mathcal{O}(K^2)$ to $\mathcal{O}(K)$.
-
Invariance via LayerNorm: A dimension-wise sum aggregates the relations permutation-invariantly, followed by a linear projection $f_\phi$ and Layer Normalization, which prevents representation drift when the number of objects changes.
- Downstream Policy: The representation $z$ feeds directly into an actor-critic head trained via Proximal Policy Optimization (PPO).
The authors benchmark LRN against standard all-to-all Relation Networks (RN) and an attention-based baseline (ATTN).
Datasets
The approach is evaluated in physical simulation using the CausalWorld benchmark on a 3-fingered robotic platform (TriFinger):
- PushingCube: The robot must push a specified target cube across the floor to a target coordinate while navigating around distractors.
- LiftingCube: The robot must grasp, lift, and stably hold a target cube at a 3D coordinate above the table.
Both tasks use heterogeneous cubes differentiated by unique ID features, varying from 0 up to 9 distractors during testing.
Key Insights and Ideas
- Goal-centric relations suffice: An agent does not need explicit finger-to-cube relation modules to grasp an object. Because both finger and cube states are mapped relative to the goal ($o_{\text{finger}} \leftrightarrow o_g$ and $o_{\text{cube}} \leftrightarrow o_g$), the downstream policy MLP can infer implicit higher-order finger-to-cube interactions using the goal as a shared reference coordinate.
- Why attention fails: t-SNE visualizations reveal that self-attention modules produce massive feature distribution shifts when objects are added or removed, forcing the downstream MLP into an out-of-distribution regime. In contrast, LRN embeddings remain on the same distribution support regardless of distractor count.
- Automatic distractor filtering: Analyzing relation vector norms over time shows that LRN automatically assigns high weights to the robot fingers and the target cube, while suppressing distractor-goal relation norms.
- LayerNorm is crucial: Ablations revealed that replacing Layer Normalization with standard averaging causes performance to deteriorate as distractor counts grow, because average pooling fails to control the embedding variance under varying set sizes.
Key Results
- Training Efficiency: On the 3-cube training setup (2 distractors), both RN and LRN solve Pushing and Lifting with high sample efficiency and near 90–100% fractional success, while ATTN exhibits high variance across random seeds and trains substantially slower.
- Zero-Shot Extrapolation: When evaluated on 0 to 9 distractors:
- ATTN collapses to near-zero success if distractor counts deviate by more than 2 from training.
- RN and LRN maintain ~90%+ success across the entire range (0 to 9 distractors) without any fine-tuning.
- Compute Savings: In a 9-cube arena ($K=12$ elements including 3 fingers), LRN evaluates just 12 relations compared to 169 relations for standard RN.
- Minimal Training Distribution: LRN achieves full zero-shot generalization across all testing environments when trained on as few as 1 single distractor, whereas full RN requires at least 2 distractors during training.
Limitations and Future Work
- State-Based Inputs: The current formulation relies on ground-truth low-dimensional state vectors (poses, velocities, and IDs) rather than raw camera pixels. Coupling LRN with unsupervised object-centric perception models (e.g., Slot Attention) is a natural next step.
- Single-Goal Tasks: The formulation focuses on manipulating one object to a target pose per subtask. Extending LRN to multi-stage rearrangement tasks (e.g., stacking sequences) will likely require integrating high-level planners or decision transformers.
Summary updated