On the Sensory Commutativity of Action Sequences for Embodied Agents

Hugo Caselles-Dupré, Michaël Garcia Ortiz, David Filliat

Introduction

How can an "embodied" agent—a robot with its own sensors and motors—learn to understand its world from scratch, without being told what its joints do or what objects are? This paper explores a fundamental question in robotics and AI, proposing a framework based on Sensory Commutativity (SC). The core idea is that for some actions, the order in which you perform them doesn't change the final result, while for others, it changes everything.

The Sensory Commutativity Framework

The researchers introduce Sensory Commutativity Probability (SCP), a metric that allows robots to autonomously discover which of their actions impact the environment. By analyzing whether the order of action sequences changes sensory output, agents can identify objects and prune their own action spaces to learn more efficiently.

Sensory Commutativity: Two action sequences $a_1$ and $a_2$ commute if their execution order does not affect the final sensory state.

The core idea is rooted in Group Theory. The authors define two action sequences as "sensory commute" if playing them in different orders from the same starting point leads to the same final sensory state.

  • High SCP: The order doesn't matter. These are typically "non-displacement" actions like closing an eyelid or rotating a camera in empty space.
  • Low SCP: The order matters. These are "displacement" actions that interact with the environment, like moving a robotic arm or driving wheels.

To implement this, they trained a Mask Predictor (using the RAFT architecture) to compare two images and output a mask showing what changed. This helps the agent distinguish between "nothing changed," "the whole view changed," or "one specific object moved."

Experimental Setup

The study utilized several simulation environments to provide the "perfect reset" needed for commutativity experiments:

  • Flatland: A 2D environment featuring an 8-DOF agent named "Polyphemus" with various controllable parts like eyelids and base movement.
  • iGibson: A high-fidelity 3D simulator of realistic homes.
  • Robotics Platforms: Tests were conducted on the 10-DOF Fetch robot and the JackRabbot in 3D space, using the YCB Object Benchmark for movable objects.
The Flatland environment featuring the agent 'Polyphemus' with various degrees of freedom including base movement, head rotation, and eyelid control.

Key Insights and Results

The SCP metric naturally produces a hierarchy of motor control. Shoulders and wheels have the lowest SCP (highest impact), while fingers and eyelids have the highest. This allows a robot to "know" its most important joints without being told. Furthermore, if two action sequences commute except for a small area in the image, the agent has discovered a "movable object."

Key Results: * Action Organization: SCP correctly identified non-displacement actions (eyelids, torso lifts) with an SCP of 1.0, while wheels and shoulders showed significantly lower values. * RL Efficiency: In navigation tasks, an agent using an SCP-truncated action space—focusing only on low-SCP (high-impact) actions—learned to solve tasks more than twice as fast as a baseline PPO2 agent. * Object Detection: The mask predictor achieved 82% accuracy in classifying interaction scenarios and an average Jaccard index (IoU) of 0.85 for identifying moved objects, even in novel environments.

Limitations and Future Work

The primary limitation is the "Reset" problem: SC experiments require performing two different sequences from the exact same starting point. While feasible in simulation, this is difficult in the real world, especially for irreversible actions.

Future work aims to develop "Forward Models"—mental simulators—allowing the robot to perform these commutativity experiments internally. Additionally, addressing real-world sensor noise will require more robust probabilistic thresholds for commutativity.

Summary updated

BibTeX
@inproceedings{casellesdupre2021sensory,
  author = {Hugo Caselles-Dupré and Michaël Garcia Ortiz and David Filliat},
  title = {{On the Sensory Commutativity of Action Sequences for Embodied Agents}},
  booktitle = {AAMAS},
  year = {2021},
}
Figure