TL;DR
Relational DeepSym is a novel deep learning architecture that automatically discovers discrete object symbols and explicit relational symbols directly from a robot's continuous sensorimotor interactions. By replacing standard continuous self-attention with a Gumbel-Sigmoid variant, the model handles a varying number of objects naturally and significantly outperforms prior symbol-discovery methods in predicting action effects.
What Problem Does This Paper Address?
For robots to reason and plan like humans, they need to map continuous real-world sensory data (like coordinates and pixel values) into discrete concepts—a challenge known as the symbol grounding problem.
While classical AI relies on manually defined symbolic rules (e.g., PDDL), manual design doesn't scale to complex, changing environments. Recent deep learning approaches have attempted to learn these symbols automatically by training neural networks to predict the effects of actions. However, prior architectures suffer from two major limitations:
- Fixed Object Constraints: They can only handle a fixed number of objects.
- Opaque Relations: While some use self-attention to model multi-object interactions, the learned relations are continuous and opaque, making them uninterpretable to users and difficult to use for symbolic planning.
This paper introduces Relational DeepSym, which explicitly extracts discrete, human-interpretable relational symbols between a varying number of objects.
Methods
Relational DeepSym builds on the authors' previous work (DeepSym and Attentive DeepSym) but shifts where and how attention is computed.
The architecture operates in four main steps:
- Object Encoding: An encoder processes continuous object features ($o_i$) independently and passes them through a Gumbel-Sigmoid bottleneck layer. This discretizes the continuous features into binary object symbols ($z_i$) while preserving differentiability for backpropagation.
- Discrete Self-Attention: Instead of standard self-attention (which uses Softmax and yields continuous weights), the model applies a Gumbel-Sigmoid self-attention module directly to the continuous object features. This forces the attention weights to be discrete (0 or 1), effectively serving as explicit relational symbols ($A$) between objects.
- Aggregation: An aggregation function fuses the object symbols, discrete relational symbols, and the executed action ($a$) into a single representation ($h_i$) for each object.
- Decoding: A decoder network takes this representation and predicts the continuous physical effect ($e_i$) of the action on each object.
The entire pipeline is trained end-to-end by minimizing the mean squared error between the predicted and actual physical effects.
Datasets
The model was evaluated in a simulated tabletop environment using a UR10 robot manipulator. The robot interacts with short and long blocks by picking them up and placing them either on top of or near other blocks.
The authors generated four distinct datasets based on random exploration:
- 2 Objects: 120K interaction samples
- 3 Objects: 180K interaction samples
- 4 Objects: 240K interaction samples
- Varying Objects (2-4): A combined dataset to test the model's flexibility.
Data splits were maintained at 80% training, 10% validation, and 10% testing.
Key Insights and Ideas
- Gumbel-Sigmoid over Softmax: Standard Softmax forces attention weights to compete, meaning only one relation dominates. Using Sigmoid allows multiple relations to be active simultaneously, while the Gumbel trick discretizes them into clean, symbolic links.
- Feature-Driven Relations: By computing attention weights directly from raw object features rather than already-discretized object symbols, the model retains the capacity to learn highly generalized, nuanced physical relationships.
- Interpretable Symbol Grounding: The discovered symbols naturally align with human concepts. Visualization reveals that specific binary codes correspond directly to object types (short vs. long) and spatial arrangements (above vs. below the grasped object).
Key Results
Relational DeepSym significantly outperforms both Vanilla DeepSym and Attentive DeepSym in effect prediction accuracy across all datasets.
Quantitative Performance
As shown in Table I, the proposed model achieves the lowest absolute error (measured in centimeters) across all object configurations:
| Dataset | Vanilla DeepSym | Attentive DeepSym | Relational DeepSym (Ours) |
|---|---|---|---|
| 2 objects | $2.22 \pm 0.56$ | $0.89 \pm 0.10$ | $\mathbf{0.50 \pm 0.03}$ |
| 3 objects | $3.06 \pm 0.16$ | $2.55 \pm 0.09$ | $\mathbf{1.67 \pm 0.02}$ |
| 4 objects | $4.26 \pm 0.68$ | $2.75 \pm 0.12$ | $\mathbf{2.00 \pm 0.04}$ |
| 2-4 objects | $2.38 \pm 0.25$ | $1.86 \pm 0.12$ | $\mathbf{1.35 \pm 0.04}$ |
Qualitative Tracking
When predicting long-term action sequences, Relational DeepSym tracks object positions (especially along the critical z-axis) much more accurately than baseline models, proving that it successfully captures stacking dynamics.
Furthermore, analyzing the attention heads shows that the model learns explicit spatial concepts. For example, relation head R2 consistently and exclusively activates only when objects are vertically aligned (stacked) on top of each other.
Limitations and Future Work
While Relational DeepSym excels at predicting effects, it currently relies on purely random exploration to gather data. As the number of objects scales, random exploration becomes highly inefficient. The authors note that integrating a guided exploration schedule (similar to active learning or experience replay) will be crucial for scaling up.
The immediate next step for this research is to automatically compile these discovered discrete object and relational symbols into formal PDDL operators. This will bridge the gap between deep learning perception and classical, off-the-shelf symbolic planners.
Summary updated