Learning to Control using Image Feedback

Krishnan Raghavan, Vignesh Narayanan, Jagannathan SaraangapaniarXiv 2021

Abstract

Learning to control complex systems using non-traditional feedback, e.g., in the form of snapshot images, is an important task encountered in diverse domains such as robotics, neuroscience, and biology (cellular systems). In this paper, we present a two neural-network (NN)-based feedback control framework to design control policies for systems that generate feedback in the form of images. In particular, we develop a deep $Q$-network (DQN)-driven learning control strategy to synthesize a sequence of control inputs from snapshot images that encode the information pertaining to the current state and control action of the system. Further, to train the networks we employ a direct error-driven learning (EDL) approach that utilizes a set of linear transformations of the NN training error to update the NN weights in each layer. We verify the efficacy of the proposed control strategy using numerical examples.

Introduction

In traditional control theory, systems are typically managed using a structured "state vector"—a numerical representation of variables like position or velocity. However, many real-world applications, such as robotic swarms or biological cellular systems, only provide feedback via raw visual snapshots. While Deep Reinforcement Learning (DRL) has made progress in image-based control, it faces three major hurdles: vanishing gradients in deep architectures, high sample inefficiency, and significant memory overhead due to large experience replay buffers. This paper introduces a framework that bypasses these issues by rethinking how neural networks learn from visual feedback.

Methodology

The proposed framework introduces two primary innovations: Direct Error-Driven Learning (EDL) and a Cooperative Update Strategy.

Direct Error-Driven Learning (EDL)

Instead of standard backpropagation, which can struggle to pass signals through deep layers, the authors utilize EDL. In this setup, each layer receives a direct, transformed version of the training error via a perturbation matrix ($B$). This direct path avoids the vanishing gradient problem and is mathematically proven to converge to optimal solutions more robustly than traditional methods.

Cooperative Update Strategy ("coop")

Standard DQNs use a single learning network and a delayed target clone. This paper proposes a dual-network approach ($Q_1$ and $Q_2$) that periodically swap roles. In one phase, $Q_1$ learns while $Q_2$ acts as the stable target; in the next phase, they switch. This cooperative strategy mitigates initialization bias and improves exploration of the parameter space.

The dual-network cooperative update strategy where networks NN 1 and NN 2 alternate between learning and acting as the target system.

Experimental Evaluation

The researchers evaluated the framework using the Cartpole environment from OpenAI Gym. Crucially, the agent was provided only raw images of the cart and pole rather than numerical state data. The architecture employed two convolutional layers for image processing followed by two feed-forward layers.

Key Results and Discussion

The "coop" EDL strategy demonstrated superior performance, speed, and stability compared to standard DQL methods.

Convergence of the two networks (left) correlates with the achievement of maximum rewards (right) across different cooperative learning variants.

Key findings include:

  • Alignment is Convergence: Peak performance is reached exactly when the two independent networks ($Q_1$ and $Q_2$) begin to agree on action values, with the difference between their outputs approaching zero.
  • Superior Performance: The full cooperative strategy achieved a perfect mean score of 200 with a low standard deviation (0.2123), outperforming the standard DQL score of 193.6.
  • Memory Efficiency: The strategy is highly resilient to reduced buffer sizes, maintaining high rewards even with 75% less memory than standard DQNs require.
  • Inherent Exploration: The use of the perturbation matrix in EDL naturally encourages the network to explore different control strategies, reducing the need for manual hyperparameter tuning.

Conclusion and Future Work

This work presents a robust alternative to standard DRL for image-based control, offering faster convergence and better memory efficiency. While currently limited to discrete action spaces and episodic tasks, future research will focus on adapting the EDL framework for continuous control and testing it against high-fidelity, noisy real-world video feeds.

Summary updated

BibTeX
@misc{raghavan2021learning,
  author = {Krishnan Raghavan and Vignesh Narayanan and Jagannathan Saraangapani},
  title = {{Learning to Control using Image Feedback}},
  year = {2021},
  eprint = {2110.15290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.15290},
}
Figure