NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Teach

Yang Fan, Fei Tian, Tao Qin, Xiang-Yang Li, Tie-Yan Liu

In traditional machine learning, almost all research focus is placed on the "student"—the model being trained. We design better architectures and optimization algorithms to help the student learn more effectively. However, the "teacher"—the entity that decides which data to show, which loss function to use, and how to schedule the curriculum—is often overlooked or relies on rigid, human-defined heuristics.

Existing approaches like Curriculum Learning (starting with easy examples) or Self-Paced Learning use fixed rules that do not adapt to a student's actual progress. The paper "Learning to Teach" (L2T) argues that teaching itself should be treated as an optimization problem. The goal is to move away from "one-size-fits-all" heuristics toward an intelligent teacher that learns to adapt its strategy based on the student's real-time feedback.

By adaptively selecting the best training data for the student’s current state, the teacher significantly accelerates convergence and improves data efficiency, often achieving target accuracies using only a fraction of the original training set.

The Learning to Teach (L2T) Framework

The authors propose modeling the teaching process as a sequential decision process between two interacting agents:

  1. The Student ($\mu$): A standard machine learning model (like a CNN or RNN) that learns from the data provided by the teacher.
  2. The Teacher ($\phi$): A policy-based agent (a neural network) that observes the student's state and decides which training instances to keep or filter out from a mini-batch.
The Learning to Teach framework models the interaction between a student and a teacher agent.

The Workflow: * State ($s_t$): The teacher looks at features of the current data batch, the student’s progress (e.g., current iteration, historical loss), and the interaction between the two (e.g., the student's predicted probability for a specific sample). * Action ($a_t$): The teacher decides whether to use or discard specific training examples. * Reward ($r_t$): To encourage speed, the teacher receives a "terminal reward" based on how quickly the student reaches a pre-defined accuracy threshold. The faster the student learns, the higher the reward. * Optimization: The teacher is trained using Reinforcement Learning (the REINFORCE algorithm) to maximize this cumulative reward.

Key Insights and Results

The framework was evaluated across three diverse tasks to prove its versatility: MNIST (handwritten digits), CIFAR-10 (object recognition), and IMDB (sentiment classification of movie reviews). The researchers used various student architectures, including Multi-Layer Perceptrons (MLP), ResNet (CNN), and LSTMs (RNN).

Test accuracy versus the number of effective training data across MNIST, CIFAR-10, and IMDB datasets. L2T consistently achieves higher accuracy with less data.
  • Data Efficiency and Speed: On MNIST, L2T reached 96% accuracy using roughly 45% less training data than a standard training approach (NoTeach). On CIFAR-10 and IMDB, the reduction in data needed was approximately 50% and 75%, respectively. Even accounting for the computational overhead of the teacher model, L2T reduced the total "wall-clock" training time required for the student to reach convergence.
  • Accuracy Boost: Beyond just speed, L2T improved the final performance. On the IMDB sentiment task, the L2T-taught student achieved 89.46% accuracy, outperforming both the standard baseline (88.54%) and Self-Paced Learning (88.80%).
  • Teacher-Student Co-evolution: The teacher isn't just a static rule; it evolves alongside the student. It learns to identify which data points are "informative" at specific stages of the student's development.
  • Challenging Heuristics: While Curriculum Learning suggests starting with "easy" examples, the L2T teacher discovered that for image tasks (MNIST/CIFAR), showing harder examples early on actually helped the student converge faster. Conversely, for language tasks (IMDB), it favored the traditional "easy-to-hard" approach. This highlights why learned strategies outperform fixed heuristics.
  • Generalization is the "Killer App": Surprisingly, a teacher trained to instruct a simple MLP on MNIST can be successfully "transferred" to teach a complex ResNet on CIFAR-10. This suggests that the teacher learns general principles of "good pedagogy" that transcend specific datasets or architectures.

Limitations and Future Work

The paper primarily focuses on "Data Teaching"—deciding which samples to show the student. However, the authors note that the framework is theoretically capable of much more. Future directions include:

  • Loss Function Teaching: Having the teacher design or weight loss functions dynamically.
  • Hypothesis Space Teaching: Having the teacher guide the student through different model complexities (e.g., starting with a simple model and gradually increasing its capacity).
  • Broader Applications: Testing the framework on more complex tasks like machine translation or speech recognition.
  • Theoretical Foundations: Developing a deeper mathematical understanding of why these teacher models generalize so well across different student architectures.

Summary updated

BibTeX
@inproceedings{fan2018learning,
  author = {Yang Fan and Fei Tian and Tao Qin and Xiang-Yang Li and Tie-Yan Liu},
  title = {{Learning to Teach}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=HJewuJWCZ},
}
Figure