Offline Reinforcement Learning with Resource Constrained Online Deployment

Jayanth Reddy Regatti, Aniket Anand Deshmukh, Young Hun Jung, Frank Cheng, Abhishek Gupta, Urun Dogan

TL;DR

In real-world reinforcement learning deployments, online agents often cannot access the rich, computationally expensive features available during offline training due to strict latency and power constraints. This paper introduces the resource-constrained offline RL framework and proposes a teacher-student transfer approach that distills knowledge from a rich-feature offline "teacher" into a limited-feature deployed "student." Across continuous control benchmarks, Atari games, and real-world ad autobidding, this policy transfer significantly closes the performance gap caused by missing online features.

What Problem Does This Paper Address?

Standard offline RL assumes that an agent will encounter the exact same feature representations during online deployment as were recorded in the offline training dataset. However, real-world systems often break this assumption:

  • System Latency: In high-speed web services (such as ad auctions), decisions must be made in milliseconds, preventing the execution of heavy models like large transformers or complex graph extractors.
  • Power & Hardware Constraints: Edge devices, robots, and satellites operate under severe compute, memory, and sensor limitations, while offline logs can incorporate expensive post-processing, high-fidelity sensors, and human annotations.

If practitioners simply discard privileged offline features and train an offline RL policy solely on the subset available online, performance drops precipitously. The authors formalize this setting—where the offline dataset contains both rich features $S$ and constrained features $\hat{S}$, but the deployed policy can only evaluate $\hat{S}$—and tackle the challenge of transferring rich offline knowledge to resource-lean agents.

Methods

The authors adopt a teacher-student transfer paradigm:

  1. Teacher Training: A high-capacity teacher policy/critic is trained offline on the full set of rich features $S$.
  2. Student Distillation: A student policy is trained to act strictly on the restricted online observations $\hat{S}$.
  3. Continuous Control (Extending TD3+BC): The standard TD3+BC actor objective is modified to include a distillation penalty keeping the student close to the teacher: $$\arg \max_{\phi} \frac{1}{N} \sum_{i=1}^N \left[ \lambda Q_{\theta_1}(\hat{s}_i, \pi_\phi(\hat{s}_i)) - \beta_1 \|\pi_\phi(\hat{s}_i) - a_i\|^2 - \beta_2 \|\pi_{\phi_{\text{teacher}}}(s_i) - \pi_\phi(\hat{s}_i)\|^2 \right]$$ where $\beta_1 + \beta_2 = 1$. When $\beta_2 = 1.0$, the student clones the teacher instead of cloning the dataset actions.

  4. Discrete Control (Extending CQL): For Conservative Q-Learning, the target value $y_{\text{target}}$ interpolates between actions maximizing the student's Q-function and actions maximizing the offline teacher's Q-function $Q^{\text{teacher}}$.

  5. Power-Constrained Architectures: The student network can also be compressed (e.g., smaller final layers in DQN) to save compute and memory on device.

Datasets

The authors validate their approach across simulated and real-world environments:

  • RC-D4RL (Resource-Constrained D4RL): A newly introduced benchmark consisting of 240 datasets across OpenAI Gym MuJoCo tasks (Hopper-v2, HalfCheetah-v2, Walker2d-v2). Crucially, unlike standard D4RL, the behavior policies logging the data were themselves trained under limited feature sets to mimic realistic data collection under resource constraints.
  • Standard D4RL-v0: MuJoCo locomotion datasets where behavior policies had access to full features.
  • Atari-2600 (Pong, Qbert, Breakout): 1M transitions from the DQN replay dataset. Offline observations use native $84 \times 84$ frames; online observations are heavily downsampled to $16 \times 16$ (pixelated) to simulate cheap sensors.
  • Real-World Ads Autobidding: A proprietary dataset of 8,000 advertisers over 10 days. Online states contain 111 lightweight features; offline states include an additional 770 features (881 total), such as expensive query and keyword language embeddings.

Key Insights and Ideas

  • Transfer Excels in Low-Quality Data Regimes: The distillation mechanism provides the largest performance gains on medium and medium-replay datasets. Because low-quality datasets have broader state-space coverage, teacher regularization reliably guides the student toward high-value, safe actions.
  • Narrow Datasets Suffer from Feature Blindness: On expert and medium-expert datasets, student transfer sometimes underperformed the baseline. When trajectories cover only a narrow behavioral manifold, missing features make it hard for the student to detect when it is drifting off-distribution into unsafe actions.
  • Inverted "U" Dimension Effect: Transfer gains are highest when the online feature set is intermediate in size. If the retained feature space is too small, correlations with offline features collapse; if it is already large, the baseline model has sufficient signal on its own.
  • Superiority over Feature Reconstruction: Pre-training an autoencoder to predict missing features from online features proved brittle on noisy, sub-optimal data, whereas policy transfer directly optimizes action selection.

Key Results

  • Continuous Control (RC-D4RL & D4RL): Transfer consistently outperformed the TD3+BC baseline across most dimensional reductions. On HalfCheetah-v2 medium-replay, the transfer policy recovered up to 22.3% of the performance lost by withholding offline features.
  • Atari Suite: In both standard and compressed architectures (down to 0.28M parameters vs. 1.6M parameters), the transfer agent outperformed the CQL baseline across all evaluated games (e.g., on Pong with full DQN, Transfer scored $-1.02$ vs. Baseline $-2.81$; on Qbert, Transfer scored $6343.92$ vs. Baseline $5833.58$).
  • Ad Autobidding: Evaluated using Fitted Q-Evaluation (FQE), pure teacher transfer ($\beta_1=0, \beta_2=1.0$) outperformed the feature-constrained baseline in 7 out of 10 random seeds.

Limitations and Future Work

  • Performance Drop on Expert Data: The student struggles when offline data coverage is narrow, occasionally falling behind the baseline.
  • Remaining Gap to Teacher: While transfer recovers meaningful reward, a substantial performance gap remains between the constrained student and the unconstrained teacher.
  • Algorithmic Scope: Experiments focused on deterministic policy distillation (squared error) and Double-DQN target blending; exploring divergence metrics suited to stochastic policies (e.g., KL divergence, Wasserstein distance, or MMD) remains an open avenue for future research.

Summary updated

BibTeX
@inproceedings{regatti2022offline,
  author = {Jayanth Reddy Regatti and Aniket Anand Deshmukh and Young Hun Jung and Frank Cheng and Abhishek Gupta and Urun Dogan},
  title = {{Offline Reinforcement Learning with Resource Constrained Online Deployment}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=_xxbJ7oSJXX},
}
Figure