# Mitigating Compounding Errors in Online Reinforcement Learning via Optimal Transport Regularized Flow Matching

*Boxiang Tao, Lei Guo, Bin Wang, Zexin Wang, HongboDou*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151330) · [OpenReview](https://openreview.net/forum?id=bKuPATwnfb) · [Open on the map](../papers.html#p151330)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Flow Matching in Reinforcement Learning](../pgroup/83.md) · Type: new method · Keywords: online reinforcement learning, flow matching, optimal transport, trajectory generation, sample efficiency

## Summary
FTA introduces a trajectory-level generative framework using conditional flow matching with an optimal transport regularizer to produce straight, low-energy trajectories, enabling robust online reinforcement learning.

## Explained to a 5-year-old
In learning to control robots, the computer makes predictions that can get worse over time. This paper makes a new way to predict whole sequences of actions at once, using a smooth path that doesn't wiggle too much. It also updates its predictions often and uses a guide to aim for better results. This helps the robot learn faster and more reliably. The method works well on many robot tasks.

## Explained to a 5-year-old, longer
When a computer tries to learn how to move a robot, it predicts what will happen step by step. These predictions can be a little wrong, and the mistakes get bigger as the robot takes many steps. The usual way is to predict each step separately, which can lead to wobbly and inefficient paths. This paper proposes a different idea: instead of predicting each step, it predicts the whole sequence of actions at once. It uses a smooth path that looks like a straight line, which helps keep the predictions accurate. To keep the path smooth, it adds a special rule that minimizes unnecessary wiggles. Because the robot sees new data over time, the system updates its predictions regularly from a memory of past experiences. It also uses a guide that tells the predictions to aim for actions that give better results. This combination helps the robot avoid the buildup of errors and learn more quickly. The method works well on many robot control tasks, showing better performance than older methods. It also adapts to changes in the environment, making it more robust. Overall, this approach makes robot learning faster, more reliable, and easier to use.

## For a technical reader
The method models entire trajectories using conditional flow matching, avoiding step-wise dynamics that cause error accumulation. An optimal transport regularizer, derived from the Benamou-Brenier formula, enforces straight, low-energy paths and provides theoretical guarantees toward the Wasserstein-2 map. Periodic retraining from a replay buffer and a value-guided ODE sampler adapt the generator online, reducing bias in Q-function estimates. Experiments on MuJoCo show consistent gains in sample efficiency and final performance over strong MBRL and model-free baselines.

## Problem
Model-based reinforcement learning suffers from compounding model errors that accumulate over multi-step rollouts, causing biased policy optimization and poor sample efficiency.

## Method
The approach uses conditional flow matching to model trajectories at the trajectory level rather than step-wise dynamics, and adds an optimal transport regularizer based on the Benamou-Brenier formula to minimize kinetic energy and enforce exact state displacement. It also incorporates periodic retraining from a replay buffer and a value-guided ODE sampler that biases generation toward high returns using the current Q-function.

## Results
The approach achieves superior sample efficiency and final performance compared to strong MBRL and model-free baselines on MuJoCo benchmarks and generalizes across tasks.

## Contributions
It introduces a trajectory-level generative framework with an optimal transport regularizer that yields straight, low-energy trajectories and provable linear error propagation, along with periodic retraining and value-guided sampling to adapt to online distribution shifts.

## Practical relevance
It provides a robust, data-efficient alternative to traditional dynamics models, enabling more reliable online reinforcement learning in real-world settings.

## Research questions this paper is counted under

- [How can reinforcement learning achieve stable and reliable policy updates when model predictions or offline data are imperfect?](../q/279.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151330)
