REMA project icon

REMA

Efficient Online Robotic Reinforcement Learning with Explicit Manifold Alignment

IEEE Robotics and Automation Letters (RA-L), 2026

1Nanyang Technological University   2Shenzhen International Graduate School, Tsinghua University   3Institute for Infocomm Research, A*STAR
†Corresponding author

REMA penalizes failed trajectories that deviate from the manifold of successful behavior and leaves failures close to it unchanged, as a reward calibration on top of standard online RL.

Failed trajectories are judged by their distance to a reference manifold built from successful trajectories.
REMA penalizes failures distant from the reference manifold derived from successful trajectories, refining credit assignment for value learning.

Abstract

Online reinforcement learning (RL) enables robots to continuously improve through real-world interaction, yet achieving high success rates in contact-rich manipulation remains challenging due to sparse binary rewards. Conventional reward-shaping methods rely on hand-designed goal-proximity heuristics and seldom differentiate informative near-success failures from uninformative divergent trials, leading to inefficient exploration and potential reward hacking. By contrast, we propose Reinforcement Learning with Explicit Manifold Alignment (REMA) to refine credit assignment by penalizing uninformative deviations while preserving informative trials. Specifically, given a small set of successful demonstrations, we formulate that trajectory informativeness can be quantified based on the deviation from the manifold of successful behaviors, where exploring off-manifold state space introduces task-irrelevant noise into value estimates. We first construct a reference manifold via spectral compression of successful trajectories, where low-frequency components encode task-relevant motion patterns and serve as a proxy for informativeness. During online learning, the informativeness of failed trajectories is assessed via normalized spectral distance to the manifold, with distant trajectories receiving penalties to suppress their influence on value learning. Experiments show that REMA outperforms the evaluated baselines on the studied simulation and real-world tasks. In human-in-the-loop real-robot RL, it lowers intervention from 60.8% to 29.9% and improves autonomous success from 62.5% to 80.6%.

Method

Under a binary success reward, a rollout that narrowly misses a grasp and a rollout that wanders in free space both receive zero reward. REMA separates the two by comparing each failed trajectory with successful behavior. It only post-processes the rewards stored in the replay buffer: the RL algorithm, the policy architecture and the task success condition are unchanged.

REMA pipeline: spectral manifold from successful trajectories, distance of online failures to the manifold, and reward calibration.
REMA constructs a spectral manifold from successful trajectories (demonstrations or online successes), evaluates each online failure by its distance to this manifold, and calibrates rewards based on the alignment score.
  1. Reference manifold. Successful trajectories are represented in end-effector space (position, rotation, gripper), re-parameterized by SE(3)-aware arc length to decouple the geometry from execution speed, and compressed with the Discrete Cosine Transform. The first K low-frequency coefficients are kept, and the manifold is summarized by their mean μref and standard deviation σref.
  2. Spectral distance. Each online trajectory goes through the same pipeline. Its normalized distance dspec to the manifold is compared with a threshold θ = α·Q95, the 95th percentile of the demonstrations' own distances scaled by α > 1.
  3. Reward calibration. At the end of an episode, rewards are rewritten as below, with ε = 0.01. Once enough online successes have accumulated, μref and σref are updated with an exponential moving average, so the manifold can follow new successful behavior.
r~t= rtenv if the episode succeeds
0 if it fails and is on-manifold
−ε if it fails and is off-manifold

The design is asymmetric on purpose: off-manifold failures are penalized, but on-manifold failures are not rewarded, which avoids dense positive rewards that invite reward hacking. Successful episodes always keep their full reward, regardless of their spectral distance.

Real-world training

Human-in-the-loop training from scratch on Galaxea-A1 and Franka Research 3, compared with HIL-SERL. Both methods use the same 20 demonstrations and the same intervention device (6D SpaceMouse); REMA only changes the rewards of the collected trajectories. Training videos are sped up, and parts of the training are cut to keep them short.

The videos on this page are encoded with H.265 (HEVC), which this browser does not appear to decode, so only still frames are shown. Safari, or Chrome/Edge on a device with HEVC hardware decoding, will play them.

Place Toast Galaxea-A1

Pick the toast from the toaster and place it on a plate.

HIL-SERL60× speed
REMA60× speed

Place Teacup Galaxea-A1

Grasp the target teacup among distractors and place it on a plate.

HIL-SERL80× speed
REMA80× speed

On Galaxea-A1 the camera view may shift slightly during training because of how the camera is mounted.

Insert Pipe Franka Research 3

Tight-tolerance, contact-rich insertion.

HIL-SERL5× speed
REMA5× speed

Fold Towel Franka Research 3

Fold a deformable towel.

HIL-SERL8× speed
REMA8× speed

In the Franka Research 3 videos of REMA, failed episodes are labelled as on-manifold or off-manifold for visualization.

Generalization and robustness Insert Pipe, evaluation

Evaluation rollouts of the trained Insert Pipe policies; in some of them the base is moved by hand during execution. These are selected examples, and the paper does not report a success rate for this setting.

HIL-SERL

REMA

Results

Simulation

On RoboMimic Can and Square, REMA is compared with BC, IBRL, RLPD and SASR using identical seeds and hyperparameters (mean and standard deviation over 3 runs). In this setting it reaches 1.2× faster convergence and a 7.4% higher success rate.

Learning curves on RoboMimic Can and Square for BC, SASR, RLPD, IBRL and REMA.
Results on RoboMimic Can and Square.

Real-world training from scratch

Under the same wall-clock training budget, REMA lowers the human intervention rate from 60.8% to 29.9% and increases autonomous success from 62.5% to 80.6% relative to HIL-SERL.

Success rate and intervention rate over training time for REMA, HIL-SERL and BC on four real-world tasks.
Real-world scratch-training results. Place Toast and Place Teacup (Galaxea-A1) are single training runs, each evaluated with 20 autonomous trials; Insert Pipe and Fold Towel (Franka Research 3) are evaluated across three independent training runs, with shaded bands showing training variance.

Offline-to-online fine-tuning

Starting from a Cal-QL pretrained policy, REMA is applied during online collection and replay-buffer updates and compared with WSRL under a matched 30-minute online budget. Successes out of 20 autonomous trials:

TaskPretrained (Cal-QL)WSRL @ 30 minREMA @ 30 min
Place Teacup9/2013/2016/20
Insert Pipe11/2017(±2)/2019(±1)/20
Fold Towel6/2011(±3)/2014(±2)/20

Place Teacup (Galaxea-A1) is a single online fine-tuning run; Insert Pipe and Fold Towel (Franka Research 3) report mean ± std over three independent runs.

Analysis

Calibration dynamics

Early in training most failures are erratic and the fraction of failures classified as off-manifold is close to 1.0. As the policy aligns with the manifold this fraction drops (below 0.05 on Can), so the penalty is strong during random exploration and fades as the policy matures.

Threshold and calibration rate during training on Can and Square.
Threshold θ and calibration rate during training on RoboMimic.

Value landscape

Normalized Q-value over end-effector positions at 20k steps on Can, for IBRL and REMA.
Normalized Q-value landscape over end-effector positions at 20k steps on Can. REMA shows sharper value boundaries than IBRL.

Ablations

A small penalty (ε = 0.01) works best; large penalties lead to premature value collapse, and positive bonuses for on-manifold failures lead to reward hacking. Discarding off-manifold trajectories instead of penalizing them gives 0% success, and replacing the DCT distance with dynamic time warping fails to improve learning.

Ablations on penalty magnitude and distance metric on RoboMimic.
Ablations on RoboMimic. Left: penalty magnitude ε. Right: distance metric (DCT vs. DTW) and discarding off-manifold trajectories.

Failure cases and limitations

The spectral distance captures the global shape of a motion, which is what makes it robust to execution-speed variability, but it is less sensitive to the spatial outcome and to localized irregularities: a spatially distant rollout can still be judged on-manifold, and a near-success rollout with local hesitation can be judged off-manifold.

Two rollouts misclassified by the spectral distance on Franka Research 3.
Misclassifications of the spectral distance on Franka Research 3. Top: a spatially distant rollout judged on-manifold. Bottom: a near-success rollout judged off-manifold due to local hesitation and shaking.

Failure study

Insert Pipe2× speed
Fold Towel2× speed
Fold Towel2× speed

The single-Gaussian manifold assumes one mode of success; tasks with qualitatively different solutions would need per-cluster statistics or a mixture. Although successes always keep their reward, REMA still favors known motion structure and may slow the discovery of very different strategies. It works on end-effector trajectories, which suits quasi-static manipulation; timing-sensitive tasks may need time-aware representations, and localized contact events may call for multi-resolution or learned manifolds.

Citation

@article{guo2026rema,
  title={Efficient Online Robotic Reinforcement Learning with Explicit Manifold Alignment},
  author={Guo, Wenkai and Tang, Peizhi and Bai, Yukun and Yan, Ziming and Deng, Haoyuan and Lu, Guanxing and Li, Shijie and Wang, Ziwei},
  journal={IEEE Robotics and Automation Letters},
  year={2026},
  url={https://ieeexplore.ieee.org/abstract/document/11668937}
}