Skip to main content
QUICK REVIEW

[Paper Review] Efficient Transformers in Reinforcement Learning using Actor-Learner Distillation

Emilio Parisotto, Ruslan Salakhutdinov|arXiv (Cornell University)|Apr 4, 2021
Reinforcement Learning in RoboticsComputer Science9 citations
TL;DR

This paper proposes Actor-Learner Distillation (ALD), a continual distillation method that transfers knowledge from a large, high-capacity Transformer learner model to a small, fast LSTM actor model in actor-latency-constrained reinforcement learning settings. By leveraging the sample efficiency of Transformers while maintaining the inference speed of LSTMs, ALD achieves superior sample efficiency with training times comparable to those of smaller models.

ABSTRACT

Many real-world applications such as robotics provide hard constraints on power and compute that limit the viable model complexity of Reinforcement Learning (RL) agents. Similarly, in many distributed RL settings, acting is done on un-accelerated hardware such as CPUs, which likewise restricts model size to prevent intractable experiment run times. These "actor-latency" constrained settings present a major obstruction to the scaling up of model complexity that has recently been extremely successful in supervised learning. To be able to utilize large model capacity while still operating within the limits imposed by the system during acting, we develop an "Actor-Learner Distillation" (ALD) procedure that leverages a continual form of distillation that transfers learning progress from a large capacity learner model to a small capacity actor model. As a case study, we develop this procedure in the context of partially-observable environments, where transformer models have had large improvements over LSTMs recently, at the cost of significantly higher computational complexity. With transformer models as the learner and LSTMs as the actor, we demonstrate in several challenging memory environments that using Actor-Learner Distillation recovers the clear sample-efficiency gains of the transformer learner model while maintaining the fast inference and reduced total training time of the LSTM actor model.

Motivation & Objective

  • To address the challenge of deploying high-capacity models in actor-latency-constrained reinforcement learning settings where inference speed is strictly limited.
  • To enable the use of sample-efficient, large models like Transformers in real-world applications such as robotics, where computational and power constraints restrict model size during inference.
  • To develop a continual distillation procedure that compresses knowledge from a high-capacity learner to a low-capacity actor without sacrificing sample efficiency.
  • To maintain low experiment run-time in distributed on-policy RL by using fast, small actor models while still benefiting from the learning progress of large learner models.
  • To demonstrate that distillation between different architectures—specifically Transformers and LSTMs—can effectively transfer inductive biases and performance gains in partially-observable environments.

Proposed method

  • The ALD framework uses a centralized learner with a large Transformer model that learns from interactions and improves sample efficiency.
  • A separate, lightweight LSTM-based actor model performs inference at inference speed constraints, ensuring low-latency decision-making.
  • Knowledge is transferred from the Transformer learner to the LSTM actor via continual policy distillation, where the actor is trained to mimic the behavior of the learner.
  • Distillation is applied online during training, with the learner’s policy outputs used as soft targets to supervise the actor’s policy updates.
  • The method operates within a distributed on-policy RL setup, where actors collect trajectories and send them to the central learner for policy updates.
  • The approach maintains the computational efficiency of the LSTM actor while capturing the superior sample efficiency of the Transformer learner in memory-intensive environments.

Experimental results

Research questions

  • RQ1Can a large, sample-efficient Transformer model be used to train a small, fast LSTM actor model without compromising inference speed?
  • RQ2Does continual distillation from a high-capacity learner to a low-capacity actor preserve the sample efficiency gains of the learner in partially-observable environments?
  • RQ3Can ALD achieve training run-times comparable to those of small models while matching the performance of large models?
  • RQ4How effective is knowledge transfer between different architectures—specifically Transformers and LSTMs—in actor-latency-constrained RL settings?
  • RQ5Does distillation from a Transformer to an LSTM improve generalization and robustness in memory-intensive RL tasks?

Key findings

  • ALD enables the LSTM actor to achieve sample efficiency comparable to that of the Transformer learner in challenging memory environments, significantly outperforming training from scratch.
  • The method maintains experiment run-times similar to those of the LSTM-only baseline, despite using a large Transformer for learning.
  • In partially-observable environments, ALD recovers the sample-efficiency advantages of Transformers while preserving the low-latency inference of LSTMs.
  • The continual distillation process effectively transfers inductive biases from the Transformer to the LSTM, improving learning stability and performance.
  • ALD demonstrates that knowledge distillation between different architectures can be highly effective in actor-latency-constrained RL, even when the student and teacher have different inductive biases.
  • The approach is orthogonal to architectural efficiency improvements, meaning it can be combined with efficient Transformer variants for further gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.