Introduction
Standard Reinforcement Learning (RL) typically assumes a stationary environment where the underlying rules remain constant. While Meta-RL addresses adaptation to different tasks, it often assumes these tasks are independent and identically distributed (i.i.d.). However, real-world scenarios—such as a robot experiencing mechanical wear or a navigation agent facing seasonal shifts—are inherently non-stationary. In these cases, task changes follow temporal patterns rather than random fluctuations.
This paper introduces TRIO (TRacking, Inference, and policy Optimization), a framework designed to handle complex, history-dependent task evolution. By combining variational inference with online Gaussian Process (GP) tracking, TRIO enables agents to proactively anticipate environmental shifts rather than merely reacting to them.
The TRIO Framework
TRIO decomposes the meta-learning problem into three synergistic components:
- Variational Task Inference: During meta-training, the agent learns a variational module that maps short experience snippets to "latent parameters" ($\omega$) representing the current task (e.g., a specific friction coefficient).
- Policy Optimization: The framework supports two adaptation strategies:
- Bayes-optimal: Trains a policy to act based on the full distribution of possible tasks, balancing exploration and exploitation.
- Thompson Sampling (TS): Samples a likely task parameter and acts optimally for that specific instance.
- Online Tracking via Gaussian Processes: At test time, TRIO uses Gaussian Processes to perform online curve-fitting on the history of inferred latent parameters. Instead of resetting to a generic prior for each new task, the GP provides a "predictive prior" based on observed trends, allowing the agent to "look ahead" and initialize its belief closer to the next task's true state.
Experimental Evaluation
The authors evaluated TRIO across several simulated environments with distinct non-stationary patterns, including Minigolf (with sinusoidal and sawtooth friction changes) and MuJoCo locomotion tasks (HalfCheetahVel and AntGoal) where target velocities or goal positions evolve along non-linear trajectories.
Key Results and Insights
As shown in the figure above, TRIO significantly outperforms state-of-the-art baselines like VariBAD, RL2, and MAML.
- Proactive Adaptation: The bottom row of the figure illustrates TRIO's tracking capability. The GP-based variants (blue and red lines) closely follow the "True task" (black line) across various sequences. By modeling task evolution as a time-series, TRIO anticipates changes, leading to rewards (top row) that often approach "Oracle" performance levels.
- Handling Discontinuities: In the "Sawtooth" Minigolf sequence, TRIO demonstrates resilience to sudden shifts. While the sudden "snap" in friction initially causes a performance dip, the GP quickly incorporates the new data, allowing for much faster recovery than reactive baselines.
- Decoupling Task Learning from Timing: A core strength of TRIO is that it meta-trains the capability to solve a family of tasks without needing to see the specific temporal patterns during training. This makes it robust to novel non-stationary trends encountered at deployment.
Conclusion
TRIO represents a significant step toward robust RL in dynamic worlds. By treating non-stationarity as a trackable trend rather than noise, it enables agents to maintain high performance despite environmental drift. Future work aims to reduce the reliance on explicit task descriptors during training and optimize the computational efficiency of the online GP tracking for long-term deployments.
Summary updated