Reinforcement Learning (RL) has demonstrated remarkable success in various domains, yet it frequently struggles with "long-horizon" tasks—complex sequences where early errors lead to late-stage failure. Hierarchical Reinforcement Learning (HRL) addresses this by decomposing tasks into "skills." However, HRL often faces a discovery paradox: effective skills are needed to achieve rewards, but rewards are often necessary to identify useful skills in the first place.
A recent paper in Transactions on Machine Learning Research (03/2024) introduces COInS (Chain of Interaction Skills). This method bypasses the discovery paradox by teaching agents to identify skills based on object interactions rather than external rewards.
The COInS Methodology
COInS operates on factored domains where the environment state is represented as distinct objects (e.g., a paddle, a ball, or a robot gripper). The algorithm builds a hierarchy by identifying how one factor influences another.
Detecting Interactions with Granger Causality
The core of COInS is an adaptation of Granger causality. A factor $A$ is said to "Granger-cause" factor $B$ if the history of $A$ improves the prediction of $B$'s future state beyond what $B$'s own history provides.
COInS implements this using two neural network models:
- Passive Model: Predicts an object's next state using only its current state.
- Active Model: Predicts the next state using both the object's state and a potential "parent" factor.
An interaction is detected when the Active model significantly outperforms the Passive model. For instance, a ball's trajectory is predictable by a Passive model until it hits a paddle; at that moment, the Passive model fails, while an Active model incorporating the paddle succeeds. This "moment of failure" signals the boundary for a new skill.
Skill Chaining
Once an interaction is detected (e.g., Action $\rightarrow$ Paddle), COInS trains a goal-conditioned skill to master that interaction. This learned skill then serves as a "primitive" to discover subsequent interactions (e.g., Paddle $\rightarrow$ Ball), creating a chain of increasingly complex control.
Experimental Evaluation
The researchers evaluated COInS on two primary benchmarks:
- Factored Breakout: A version of the Atari classic with 104 blocks. COInS reached peak performance 4x faster than standard baselines and demonstrated superior zero-shot transfer to harder variants.
- Robot Pushing (robosuite): A simulated Panda arm tasked with pushing a block while avoiding obstacles. While standard RL and other HRL methods often failed due to local minima, COInS achieved near-perfect performance by sequentially mastering gripper and then block control.
Key Insights
- Controllability over Novelty: Instead of exhaustive exploration, COInS prioritizes learning to control the environment, which naturally focuses the agent on task-relevant objects.
- Automatic Masking: The algorithm identifies which features of an object are actually controllable (e.g., velocity vs. color), preventing the agent from pursuing impossible goals.
Conclusion and Future Work
COInS provides a robust framework for autonomous skill discovery by focusing on the "how" of object interaction. While currently limited to linear chains and predefined factors, future iterations could incorporate visual segmentation models to discover factors from raw pixels and support more complex, non-linear skill graphs. This approach moves RL closer to the intuitive way humans learn to manipulate their surroundings.
Summary updated