Provable Interactive Learning with Hindsight Instruction Feedback

Dipendra Misra, Aldo Pacchiano, Robert E. Schapire

Abstract

Training autonomous agents to follow natural language instructions typically requires either expensive expert demonstrations or extensive exploration to overcome sparse rewards. This paper investigates an alternative paradigm: Learning from Hindsight Instruction (LHI). In LHI, a teacher provides feedback by labeling an agent's actual behavior with the most appropriate instruction, a process significantly less demanding for human supervisors. We formalize this protocol and introduce LORIL (Learning in LOw-Rank models from Instruction Labels), an algorithm that leverages low-rank structural assumptions to achieve provably efficient learning. Our theoretical analysis demonstrates that LORIL achieves sublinear regret, effectively bypassing the "curse of the response space," while empirical results confirm its robustness in both synthetic and grounded environments.

Introduction

In the quest to develop agents capable of following complex instructions, researchers have largely relied on Imitation Learning (IL) and Reinforcement Learning (RL). However, IL requires experts to provide optimal trajectories, which is often impractical, and RL suffers from sample inefficiency when rewards are sparse.

Hindsight labeling offers a more naturalistic interaction. Rather than showing a robot the perfect way to "Go to the kitchen," a human observer watches the robot's random movement and provides a description: "You just walked toward the television." This hindsight feedback is easier for non-experts to provide but presents a significant theoretical challenge: how can an agent learn to perform a target task from labels of its actual (often suboptimal) behavior?

The LHI Framework and the Low-Rank Assumption

The authors formalize the LHI protocol as a multi-round interaction. In each round, the agent receives a context and a target instruction. The agent then produces a response (e.g., a trajectory). Instead of a binary reward, the teacher provides a "hindsight instruction" that best describes the agent's action.

A primary obstacle in LHI is the "curse of the response space." If the space of possible actions is vast or continuous, learning the mapping between every possible action and its corresponding instruction becomes intractable. To solve this, the authors introduce the Low-Rank Teacher Model. They assume the probability of a teacher assigning a specific instruction $y$ to an action $s$ in context $x$ can be decomposed as a low-rank product: $P(y|x, s) \approx f^*(x)^\top g^*(y, s)$. This structure implies that learning about one action provides information about a manifold of similar actions, allowing for efficient generalization.

The LORIL Algorithm

The proposed algorithm, LORIL, addresses the learning problem through two main components:

  1. Maximum Likelihood Estimation (MLE): LORIL maintains an estimate of the teacher’s labeling behavior by fitting a model to the history of (context, action, hindsight label) triplets.
  2. Optimism Under Uncertainty: To ensure the agent explores the environment effectively, LORIL employs an "elliptic bonus." This mechanism encourages the agent to select actions where the current model of the instruction-action mapping is most uncertain. By being "optimistic," the agent prioritizes actions that are likely to yield the most informative feedback.

Experimental Results

The paper evaluates LORIL across two distinct settings to test both theoretical validity and practical robustness.

Synthetic Validation

In a controlled environment where the low-rank assumption was guaranteed to hold, LORIL was compared against $\epsilon$-greedy and random exploration baselines. LORIL achieved a cumulative regret 12.3% lower than the strongest baseline, validating the theoretical $\tilde{O}(\sqrt{T})$ regret bound and demonstrating that the algorithm successfully exploits the underlying structure of the feedback.

Grounded Image Selection

To test robustness, the authors designed an image selection task using natural language templates and visual objects. In this setting, the low-rank assumption was intentionally violated to simulate real-world complexity. Despite this, LORIL maintained superior performance, achieving 4.8% less regret than the best baseline. This suggests that the principle of optimistic exploration in a structured latent space remains a powerful heuristic even when the environment is non-linear.

Key Insights

  • Structural Generalization: The shift from the size of the action space to the intrinsic rank of the task is the key to provable efficiency. This allows agents to learn in infinite action spaces provided the underlying instruction-action relationship is low-rank.
  • Hindsight as Latent Reward: The framework effectively treats the probability of the teacher providing the target instruction for a performed action as a hidden reward signal, transforming a labeling problem into a structured bandit problem.

Conclusion and Future Work

This work provides the first theoretical foundation for learning from hindsight instructions. While LORIL demonstrates strong performance, several avenues for future research remain. These include relaxing the assumption that action embeddings are known, improving the computational efficiency of the optimistic optimization step, and investigating how the model handles stochastic or "noisy" human teachers who may provide inconsistent hindsight labels. Ultimately, LHI represents a significant step toward more intuitive and scalable human-AI collaboration.

Summary updated

BibTeX
@inproceedings{misra2024provable,
  author = {Dipendra Misra and Aldo Pacchiano and Robert E. Schapire},
  title = {{Provable Interactive Learning with Hindsight Instruction Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=CgO2cuWWLV},
}
Figure