Self-Improving Reactive Agents Based on Reinforcement Learning, Planning and Teaching

Long-Ji LinReinforcement Learning 1992

TL;DR

This seminal 1992 paper by Long-Ji Lin investigates how to make reinforcement learning (RL) practical for complex tasks by comparing eight different frameworks. The core contribution is the rigorous evaluation of three "speed-up" techniques—experience replay, action models for planning, and teaching—demonstrating that replaying past experiences is a surprisingly powerful and simple way to accelerate learning in connectionist (neural network-based) agents.

What Problem Does This Paper Address?

In the early 90s, reinforcement learning was mostly confined to toy problems like pole-balancing. Two major hurdles prevented it from scaling:

  1. Temporal Credit Assignment: Figuring out which action in a long sequence led to a reward much later.
  2. Slow Convergence: Basic RL agents learn by trial and error, which is agonizingly slow when the state space is large or rewards are sparse.

Lin sought to move beyond "knowledge-poor" agents by investigating how agents can "self-improve" using internal models, memory, and external guidance.

Methods

The paper evaluates two foundational RL architectures implemented with neural networks (connectionism) for generalization:

  • AHCON (Adaptive Heuristic Critic Online): An actor-critic architecture where one network evaluates states (the critic) and another selects actions (the actor).
  • QCON (Q-Learning Connectionist): A framework that learns a single "utility" network to estimate the value of state-action pairs.
Figure 1. Framework AHCON. The bold lines indicate a vector of signals and the thinner lines indicate a scalar signal.

To these, Lin adds three extensions:

  1. Experience Replay (-R): The agent stores past experiences $(x, a, y, r)$ and periodically "replays" them to the learning algorithm. Crucially, Lin found that replaying only "policy actions" (those the agent would likely take now) is vital for stability.
  2. Action Models (-M): The agent learns a world model to predict the next state and reward. It uses this for "relaxation planning" (one-step look-ahead) to update its networks without taking real-world actions.
  3. Teaching (-T): A human "teacher" provides a few successful "lessons" (sequences of actions). The agent treats these as high-quality experiences to be replayed.
Figure 3. Framework QCON. The bold lines indicate a vector of signals and the thinner lines indicate a scalar signal.

Datasets

The agents were tested in a simulated 25x25 dynamic grid world.

  • The Task: Survival. The agent must collect 15 pieces of food while avoiding moving enemies and obstacles.
  • Complexity: The world is nondeterministic (enemies move randomly) and partially observable (the agent only sees a local area).
  • Evaluation: Performance was measured by the average amount of food collected across 300 training and 50 test environments.

Key Insights and Ideas

  • Experience Replay is the "Secret Sauce": Replaying past experiences was consistently effective and much easier to implement than learning a full world model. Lin argues that experience replay is actually a form of relaxation planning where the "model" is simply the collection of past samples.
  • The Model-Learning Trap: Learning an action model can sometimes be harder than learning the task itself. If the model is inaccurate, it can mislead the agent and actually slow down learning.
  • Teaching Overcomes the "Luck" Barrier: In complex tasks, an agent might never find the goal by pure chance. Teaching provides the initial "spark" needed to start the learning process and helps agents avoid getting stuck in local maxima (e.g., learning to avoid obstacles so well that they never approach the goal).
  • Representation Matters: The paper highlights that switching from a "global" action representation (North, South, East, West) to a "local" one (Front, Back, Left, Right) significantly improved the performance of AHC-agents.

Key Results

  • Q-learning vs. AHC: In one study, Q-learning significantly outperformed AHC. However, in a second study with different representations, they performed similarly. The "superiority" of Q-learning may be task-dependent.
  • Speedup: Agents using Experience Replay converged much faster than basic agents. For example, in Study 2, AHCON-R reached a high level of performance in half the time of basic AHCON.
  • Teaching Impact: While not critical for the simple survival task, teaching was shown to be a game-changer in other experiments (like robot docking) where the goal is nearly impossible to find by accident.
  • Absolute Performance: The best agent (QCON-T) managed to collect all food in about 40% of trials and averaged 12.1 out of 15 food pieces—a respectable feat for a reactive agent in a nondeterministic world.

Limitations and Future Work

  • Perceptual Aliasing: Because the agent only sees a local area, different world states can look identical, leading to sub-optimal behavior.
  • History Insensitivity: The agents are purely reactive. They don't "remember" where they saw food a few steps ago. Lin suggests recurrent networks or time-delay networks as a fix.
  • The Scaling Wall: While these techniques help, Lin notes that TD methods struggle with very long action sequences (e.g., >20 steps). He points toward hierarchical control (decomposing tasks into sub-tasks) as the necessary next step for truly complex AI.

Summary updated

BibTeX
@inproceedings{lin1992self,
  author = {Long-Ji Lin},
  title = {{Self-Improving Reactive Agents Based on Reinforcement Learning, Planning and Teaching}},
  booktitle = {Reinforcement Learning},
  year = {1992},
  doi = {10.1007/978-1-4615-3618-5\_5},
}
Figure