Joint Perception and Control as Inference with an Object-based Implementation

Minne Li, Zheng Tian, Pranav Nashikkar, Ian Davies, Ying Wen, Jun Wang

TL;DR

This paper introduces a unified framework called Joint Perception and Control as Inference (PCI) that treats perception and control in partially observable environments as a single Bayesian inference problem. Their proposed method, Object-based Perception Control (OPC), leverages automatically discovered object-based representations to significantly improve reinforcement learning performance and perceptual grouping quality in complex visual environments.

What Problem Does This Paper Address?

Traditional model-based reinforcement learning (MBRL) methods often tackle perception (understanding the environment) and control (acting within it) as separate, sequential tasks. This separation can lead to suboptimal performance, especially in partially observable environments where an agent only receives incomplete information. Humans, on the other hand, excel at integrating perception and action, often relying on an object-centric understanding of the world to reason and make decisions. This paper aims to bridge this gap by proposing a unified framework that jointly optimizes perception and control, drawing inspiration from human-like inductive biases derived from object-level understanding. The goal is to enable agents to learn more efficiently and effectively in complex, high-dimensional visual environments.

Methods

The core contribution is the Joint Perception and Control as Inference (PCI) framework, which formulates the problem as a Bayesian inference task. This framework is instantiated as Object-based Perception Control (OPC). OPC's key innovation lies in its ability to learn object-based representations directly from raw pixel observations in an unsupervised manner.

Here's a breakdown of the key methodological components:

  • Unified Bayesian Inference: PCI models the entire process—from observations to actions—as a single probabilistic graphical model. This allows for a joint objective function that optimizes both perception and control simultaneously.
  • Object-based Inductive Biases: Recognizing that humans naturally perceive the world in terms of objects, OPC explicitly incorporates this inductive bias. It learns to segment and represent objects from pixel data, rather than relying on pre-defined object detectors or entangled representations.
  • Generalized Expectation-Maximization (EM): The perception model update in OPC uses a generalized EM algorithm. This involves an E-step to compute soft assignments of pixels to objects and an M-step to update the object representations.
  • Recurrent Neural Network (RNN) Bottleneck: A recurrent neural network is used as a bottleneck in the perception module. This allows the model to maintain a temporal understanding of the environment and its objects.
  • Advantage Actor-Critic (A2C) for Control: The decision-making module utilizes a standard A2C algorithm, but crucially, it takes the learned object-based representations as input, rather than raw pixels or entangled latent states.
  • Unsupervised Learning: The object discovery and representation learning are performed in an unsupervised manner, meaning the agent doesn't require explicit labels for objects.

Datasets

The experiments were conducted in a modified Pixel Waterworld environment. This environment presents the agent with 84x84 grayscale pixel observations and involves controlling an agent with four actions (thruster directions). The goal is to collect food objects (positive reward) while avoiding poison objects (negative reward). The environment is designed to test an agent's ability to learn dynamics and optimal strategies online without prior knowledge, mimicking human inductive bias acquisition.

Key Insights and Ideas

  • Perception and Control are Inseparable: The paper strongly advocates for unifying perception and control, demonstrating that joint optimization leads to better performance than treating them as sequential steps.
  • Object-centric Representations are Powerful: Learning object-based representations directly from pixels, rather than using generic convolutional features, significantly improves both perceptual grouping quality and reinforcement learning performance. This aligns with human cognitive abilities.
  • Unsupervised Discovery is Key: The ability to discover object representations without explicit supervision is crucial for efficient learning in complex environments. This allows the agent to adapt to new scenarios and learn faster.
  • Bayesian Inference as a Unifying Principle: Framing the entire problem within a Bayesian inference context provides a principled way to combine diverse objectives and learn robust models.

Key Results

  • Superior Performance: OPC significantly outperformed baseline methods, including standard A2C and a model-based approach (WM-A2C), in terms of accumulated rewards in the Pixel Waterworld environment.
  • Improved Sample Efficiency: OPC demonstrated much better sample efficiency compared to A2C, meaning it learned an optimal strategy with fewer environment interactions.
  • High-Quality Perceptual Grouping: The perception model learned by OPC achieved good quality and consistent semantic segmentation of objects in the visual scenes, even at an early stage of training.
  • Online Learning Capability: OPC showed the ability to quickly learn the dynamics of the environment online, mimicking human inductive bias acquisition.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that the number of recurrent copies (K) can affect learning stability, with more copies potentially leading to more stable but slower learning. The optimal choice of K might depend on the environment's complexity.
  • Relational Mechanism Impact: The study found that a relational mechanism (which explicitly models relationships between objects) had a limited impact in their current experiment, possibly because the objects were easily distinguishable by their visual properties.
  • Future Work: The authors suggest investigating OPC with more diverse types of inductive biases and testing its performance in a wider range of environments. They also propose that other advanced unsupervised object representation learning methods could be integrated into their framework.

Summary updated

Abstract

Existing model-based reinforcement learning methods often study perception modeling and decision making separately. We introduce joint Perception and Control as Inference (PCI), a general framework to combine perception and control for partially observable environments through Bayesian inference. Based on the fact that object-level inductive biases are critical in human perceptual learning and reasoning, we propose Object-based Perception Control (OPC), an instantiation of PCI which manages to facilitate control using automatic discovered object-based representations. We develop an unsupervised end-to-end solution and analyze the convergence of the perception model update. Experiments in a high-dimensional pixel environment demonstrate the learning effectiveness of our object-based perception control approach. Specifically, we show that OPC achieves good perceptual grouping quality and outperforms several strong baselines in accumulated rewards.
BibTeX
@misc{li2019joint,
  author = {Minne Li and Zheng Tian and Pranav Nashikkar and Ian Davies and Ying Wen and Jun Wang},
  title = {{Joint Perception and Control as Inference with an Object-based Implementation}},
  year = {2019},
  eprint = {1903.01385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.01385},
}
Figure