Probe-Based Interventions for Modifying Agent Behavior

Mycal Tucker, William Kuhl, Khizer Shahid, Seth Karten, Katia P. Sycara, Julie ShaharXiv 2022 · OpenReview

Abstract

This paper introduces a novel method for "injecting" human knowledge into pre-trained neural networks at test time without the need for retraining or fine-tuning. By utilizing "dropout probes"—small classifiers trained to identify specific concepts within internal representations—the authors can nudge an agent's internal state to reflect human observations. This approach successfully corrects errors in image classification and prevents accidents in autonomous driving simulations, demonstrating that the redundant information stored in neural networks can be leveraged for real-time human-assisted decision-making.

Introduction

Neural networks are typically rigid "black boxes" once trained. If a self-driving car's vision system fails to detect a pedestrian due to unusual lighting, there is no straightforward way for a human passenger to communicate that information to the model. This work formalizes the human-assisted decision-making problem, aiming to allow humans to provide symbolic guidance (e.g., "there is a car nearby") to a pre-trained agent that was never explicitly designed to accept such input.

Methods

The researchers build upon the technique of probing, where a separate, simple neural network is trained to predict a specific property from the internal activations of a frozen model. Their intervention framework consists of three primary steps:

  1. Probe Training: A probe is trained to map the agent's internal representations to a symbolic property.
  2. Counterfactual Generation: At test time, if a human observes a property the agent missed, they use the probe’s gradient to iteratively update the agent's internal representation. This "nudges" the internal math of the agent until the probe "sees" what the human sees.
  3. Inference: The modified representation is passed through the remaining layers of the original network to produce a corrected action or classification.
Figure 2: The intervention process uses the gradient of the probe's loss to update the internal representation z towards a target concept before passing it to the remaining layers.

The Role of Dropout Probes

A critical innovation in this paper is the Dropout Probe. Because neural networks encode information redundantly, a standard probe might only learn to identify a small subset of relevant neurons. If an intervention only updates that subset, the rest of the network might ignore the change. By applying dropout during probe training, the authors force the probe to learn from all redundant encodings, making the subsequent intervention significantly more effective at altering the agent's final behavior.

Experimental Results

The method was evaluated across three distinct domains: CIFAR-10 image classification, a Traffic Junction navigation task, and a collaborative "Lost Child" grid-world environment.

  • Traffic Junction: In this task, agents with simulated "blind spots" originally had a success rate of 86%. By using probe-based interventions to alert agents to cars in their blind spots, the success rate jumped to over 99%, effectively eliminating collisions.
  • Collaborative Navigation: In the "Lost Child" scenario, where agents initially had a 0% success rate due to corrupted sensor data, the intervention allowed the agent to find the target with 80% accuracy.
Figure 5: Success rate in the Traffic Junction task as a function of dropout rate and the number of gradient steps. Higher dropout rates generally improve the effectiveness of the intervention.

Discussion and Key Insights

This research demonstrates that the inherent redundancy in neural networks is a feature that enables steerability. Probes act as a symbolic-to-neural bridge, allowing humans to communicate in symbolic terms while the agent continues to operate in its high-dimensional vector space.

However, the method has limitations: it only works if the neural network already models the concept in its representation space, and it currently relies on a human to know when to intervene. Future work may focus on automating the detection of internal state disagreements and finding "minimal sufficient" interventions that fix errors without disrupting the model's underlying logic.

Summary updated

Abstract

Neural nets are powerful function approximators, but the behavior of a given neural net, once trained, cannot be easily modified. We wish, however, for people to be able to influence neural agents' actions despite the agents never training with humans, which we formalize as a human-assisted decision-making problem. Inspired by prior art initially developed for model explainability, we develop a method for updating representations in pre-trained neural nets according to externally-specified properties. In experiments, we show how our method may be used to improve human-agent team performance for a variety of neural networks from image classifiers to agents in multi-agent reinforcement learning settings.
BibTeX
@misc{tucker2022probe,
  author = {Mycal Tucker and William Kuhl and Khizer Shahid and Seth Karten and Katia P. Sycara and Julie Shah},
  title = {{Probe-Based Interventions for Modifying Agent Behavior}},
  year = {2022},
  eprint = {2201.12938},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.12938},
}
Figure