Know Thy Student: Interactive Learning with Gaussian Processes

Rose E Wang, Mike Wu, Noah Goodman

TL;DR

This paper introduces a novel approach where a "teacher" agent first diagnoses a "student" agent's knowledge gaps using Gaussian Processes before constructing an optimal teaching dataset. This interactive approach significantly improves learning efficiency, requiring fewer training examples compared to passive learning, especially in complex scenarios.

What Problem Does This Paper Address?

Traditional machine teaching often assumes the teacher has complete knowledge of the student's learning algorithm and parameters. However, in real-world scenarios, teachers (whether human or AI) often lack this perfect foresight. They need to actively probe and understand what the student doesn't know before they can effectively teach. This paper addresses this gap by proposing a method for teachers to infer student knowledge through interaction, thereby constructing more efficient and targeted training data. This is crucial for scenarios where data is expensive or exploration is costly.

Methods

The core of the proposed method is an interactive loop where the teacher first diagnoses the student and then teaches.

  1. Diagnosis (Probing): The teacher uses Gaussian Processes (GPs) to model its beliefs about the student's unknown parameters or knowledge. The GP is updated based on feedback from the student after being presented with specific "probes." The paper explores using Expected Improvement (EI) as an acquisition function for selecting informative probes.
  2. Teaching: Once the teacher has a better understanding of the student's knowledge, it constructs an optimal teaching dataset. This dataset is designed to efficiently teach the student the remaining concepts or parameters.

This framework is applied to three domains: ridge regression, support vector machines (SVMs), and offline reinforcement learning (RL). In each domain, the teacher's goal is to infer specific student-related information (e.g., regularization parameters for regression/SVMs, or unvisited states in RL).

Datasets

The paper uses synthetic datasets for ridge regression and SVM experiments, generated from existing machine learning libraries (Pedregosa et al., 2011). For the reinforcement learning experiments, the authors utilize the MiniGrid environments (Chevalier-Boisvert et al., 2018), which are standard benchmarks for grid-world navigation tasks. No new datasets were introduced; instead, existing environments were adapted to test the interactive learning framework.

Key Insights and Ideas

  • Diagnosis is Crucial: The paper strongly emphasizes that a teacher must diagnose the student's knowledge before teaching. Without this step, students can exhibit arbitrarily bad performance, especially in complex hypothesis spaces.
  • Efficiency Gains: Interactive learning with diagnosis leads to significantly more efficient learning. The student can learn from orders of magnitude fewer training examples (e.g., 2-16,000x fewer in offline RL) compared to passive learning.
  • Recovering Optimal Parameters: In certain cases, the proposed diagnostic approach, combined with machine teaching, can successfully recover optimal model parameters, a feat that passive learning or naive machine teaching might fail to achieve, particularly in scenarios with high regularization or complex student behaviors.
  • RL Specifics: In the offline RL setting, the teacher's role is to infer which states the student has not explored, and then provide demonstrations that cover these novel states, avoiding redundant trajectories.

Key Results

  • Ridge Regression: The proposed diagnostic method (D(EI)+T) significantly outperforms passive learning (PL) and random teaching (RT) in terms of accuracy and sample efficiency, especially when the hypothesis space for student parameters (like regularization) is large. With just 5 probes, D(EI)+T achieved minimal error.
  • SVMs: In separable classification settings, all methods (PL, RT, D(EI)+T) performed similarly, as the decision boundary was not sensitive to the inferred parameters. However, the paper notes that results for non-separable classes were inconclusive and required further investigation.
  • Offline RL: The diagnostic approach (D(EI)+T and D(R)+T) dramatically reduced the number of training samples needed for the student to reach high performance, achieving this with far fewer trajectories than passive learning. For example, in the EmptyRoom 7x7 environment, a teacher could guide learning with approximately 50 trajectories, whereas a passive learner required significantly more. The diagnostic methods also showed lower overlap in states visited by the teacher's demonstrations, indicating more efficient coverage.

Limitations and Future Work

  • Optimal Target Function for RL: The paper acknowledges that the choice of target function for the Gaussian Process in the RL setting (action matching) might not be ideal. Future work could explore alternative target functions, such as the difference in value functions between the student and teacher, though this presents its own challenges (e.g., accessing the teacher's near-optimal value function).
  • Conditions for Machine Teaching: The authors aim to formalize the conditions under which machine teaching (especially with diagnosis) is preferable to passive learning, considering factors like training set size and problem difficulty.
  • Sampling from Data Distribution: Investigating how to best sample from a desirable data distribution, given the teacher's knowledge of the student, is another avenue for future research.
  • Probe Selection in RL: The paper notes that random probing (D(R)+T) performed comparably to or better than EI-based probing (D(EI)+T) in some RL scenarios, suggesting that the action-matching target function might not be optimal for selecting informative states to probe.

Summary updated

BibTeX
@inproceedings{wang2022know,
  author = {Rose E Wang and Mike Wu and Noah Goodman},
  title = {{Know Thy Student: Interactive Learning with Gaussian Processes}},
  booktitle = {Cells2Societies @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=rpGGNrMJpW9},
}
Figure