ResMerge: Residual Policy Learning and Merging for Continual Adaptation of Pre-trained Robot Policies

Anonymous Authors
ResMerge teaser

ResMerge adapts a frozen pre-trained robot policy through residual RL without additional expert demonstrations during adaptation. Residual-Field Consistency (RFC) guides selective merging to reduce stored residual parameters; incompatible residuals remain separate experts.

Highlights

  1. We propose ResMerge, a two-stage framework for continual adaptation of pre-trained robot policies. It learns mergeable residual corrections on top of a frozen base policy with no additional expert demonstrations during adaptation. Base-policy initialization uses demonstrations, and residual learning uses online RL interaction.
  2. ResMerge operates via a Learn-and-Merge loop: in Learn, a LoRA-based residual policy is trained per task with residual RL on sparse rewards while the base policy is frozen; in Merge, RFC (Residual-Field Consistency)—a single scalar measuring directional and magnitudinal alignment of two residual action fields—decides whether the new residual is merged with an existing expert or kept as a new one.
  3. RFC assesses compatibility in residual action-field space, comparing correction direction and magnitude. Experiments on LIBERO across two backbones and on a real-world Franka robot show improved continual learning performance over the evaluated PECFT baselines. Selective merging trades some performance for lower residual storage in settings such as the real-robot study.

Motivation

Consider a generalist robot policy deployed in a home or factory. The robot must continuously learn new tasks as they arrive sequentially, adapting to each one without degrading performance on tasks it already knows. Demonstration-trained, adapter-per-task designs for Parameter-Efficient Continual Fine-Tuning (PECFT) isolate updates, but they (1) require substantial per-task demonstrations and (2) add one adapter per task, so both data and parameter cost grow linearly with the task stream.

ResMerge learns residual corrections without collecting additional expert demonstrations during adaptation and uses RFC-guided parameter-space merging to reduce storage. A similar task may need an opposing correction, while a different task may need an aligned one. RFC evaluates this compatibility directly in residual action space. When a candidate fails the RFC gate, the expert bank grows; its size is not guaranteed to remain constant.

Method

ResMerge operates in two stages. In Learn, a LoRA-parameterized residual policy Rcand is trained on the new task via residual RL with the base policy πbase frozen; the executed action is at = πbase(otbase, lk) + α Rcand(otres), where lk is the task instruction and the base and residual observations can differ. In Merge, the new residual is consolidated with the most compatible existing expert when their Residual-Field Consistency (RFC) meets or exceeds a compatibility threshold τ; otherwise it is registered as a new expert.

ResMerge framework

Why a residual-specific criterion? Residual policies are correction fields defined relative to a shared frozen controller, not full task behaviors. Two residuals solving very different tasks may apply similar corrections and merge safely, while residuals on similar tasks may apply opposing corrections and destructively interfere. RFC therefore operates directly on the residual action fields, combining a Direction Consistency (DC) term (cosine alignment) and a Magnitude Consistency (MC) term (bounded scale ratio): RFC = DC · MC ∈ [−1, 1]. Compatible LoRA experts are then merged layer-wise with magnitude-aware pruning, source-scale normalization on shared probe observations, and weighted averaging, followed by additional SAC updates on the affected tasks. Reported post-merge success includes both consolidation and RL refinement.

Experimental Setup

  • Simulation: LIBERO-Spatial and LIBERO-Object. ViT-T uses all 10 tasks per suite; OpenVLA-OFT uses five tasks per suite on which the initial base has nonzero success, with the same subsets for all baselines. Object task IDs are (1, 6, 7, 8, 9), and Spatial task IDs are (0, 2, 3, 6, 7).
  • Base policies and initialization: the 32M ViT-T BC policy is pre-trained on LIBERO-90 and initialized with two demonstrations per target task. The 8B OpenVLA-OFT uses the released SimpleVLA-RL checkpoint, initialized by supervised fine-tuning on one trajectory from the target suite. The real-robot IMLE BC base uses demonstrations from all four tasks.
  • Residual observations: simulation pairs a frozen visual base policy with state-based residuals using proprioception and privileged object-to-end-effector pose features. Real-robot residuals use frozen ViT-S RGB features and proprioception, without object poses or privileged simulator state.
  • Baselines: Sequential SFT, Experience Replay (ER), PackNet, TAIL, DMPEL, and a Multi-Task oracle. ViT-T results for Sequential SFT, ER, PackNet, and Multi-Task are adopted from the LIBERO paper; the residual-RL setup additionally uses state-based observations and online interaction.
  • Metrics: Forward Transfer (FWT) is average success on future tasks without subtracting initial base success. Negative Backward Transfer (NBT) measures forgetting in percentage points (pp); negative values indicate improvement. AUC averages success on learned tasks across training stages. Average final-stage success rate (SR) is a separate metric.
  • Demonstration counts: tables count additional expert demonstrations during continual adaptation, excluding base-policy initialization and online RL interaction.

Results

Main Results

On OpenVLA-OFT, ResMerge reaches FWT 77%/53% (Spatial/Object), NBT 2/1 pp, and AUC 95%/87%, compared with the Multi-Task oracle's 95%/94% AUC. Seq. SFT (LoRA) has NBT 98/70 pp and AUC 47%/62%. On ViT-T, ResMerge attains AUC 83%/79% and NBT −3/−8 pp. These adaptation results require no additional expert demonstrations, while using online RL interaction. Merging does not improve every metric: on OpenVLA-OFT/Object, no-merge achieves FWT 58% and AUC 90%, compared with ResMerge's 53% and 87%.

Backbone CL Method MPE ↑ Additional demos ↓ LIBERO-Spatial LIBERO-Object
FWT (%) ↑NBT (pp) ↓AUC (%) ↑ FWT (%) ↑NBT (pp) ↓AUC (%) ↑
ViT-TSeq. SFT—50 demos/task63±276±116±176±373±327±2
ER—50 demos/task63±129±250±270±228±157±1
PackNet—50 demos/task57±415±059±358±318±256±4
TAIL0.7050 demos/task51±056±160±358±250±270±1
DMPEL0.6950 demos/task22±228±329±214±325±127±3
ResMerge (w/o merge)0.690 demos/task31±357±243±127±213±354±2
ResMerge (ours)1.000 demos/task42±1−3±183±349±2−8±179±1
ViT-TMulti-Task (oracle)—50 demos/task——79±1——78±2
OpenVLA-OFTSeq. SFT (LoRA)—50 demos/task0±098±247±010±170±462±0
ResMerge (w/o merge)0.800 demos/task68±1−3±181±158±22±190±0
ResMerge (ours)1.000 demos/task77±32±195±253±11±187±1
OpenVLA-OFTMulti-Task (oracle)—50 demos/task——95±0——94±0

Table I: mean ± standard deviation over five seeds. FWT and AUC are percentages; NBT is in pp. MPE is the ratio of ResMerge's cumulative added-parameter overhead to the method's overhead, capped at 1.00. Lower MPE means more added parameters; 1.00 does not imply a constant-size expert bank. Dashes in the MPE column denote non-comparable per-task footprints.

Ablations

Merging strategy (LIBERO-Object, ViT-T): RFC-gated merging achieves the highest post-refinement SR and FWT and the lowest NBT among the three evaluated strategies. Residual architecture: MLP and LoRA residuals both reach 36% Learn-SR; after merging and RL refinement, their success rates are 14% and 78%, respectively. These comparisons evaluate the complete merging-and-refinement procedure.

StrategyLearn-SRMerge-SRFWTNBTAUC
No Merge3654271354
Merge-All3621232237
ResMerge (ours)367849−879

Table III: merging strategy. SR, FWT, and AUC in %; NBT in pp. Merge-SR includes RL refinement.

Residual ArchitectureLearn-SRMerge-SR
MLP Residual Policy3614
LoRA Residual Policy (ours)3678

Table IV: residual architecture (%). Merge-SR includes RL refinement.

RFC Threshold and Metric Comparisons

Both comparisons use LIBERO-Object with ViT-T. Each threshold is fixed throughout the task sequence. Post-SR includes merging and RL refinement.

Threshold τFWT (%)NBT (pp)AUC (%)
0.1232237
0.349−271
0.549−879
0.7272247

Table V: RFC threshold sensitivity.

MetricPre-SR (%)Post-SR (%)FWT (%)NBT (pp)AUC (%)
Task Similarity36.040.026.011.046.0
RFC36.078.049.0−8.078.7

Table VI: merging metrics. AUC 78.7% is rounded to 79% in the main tables.

Analysis — RFC vs. Task-Similarity Merging

We evaluate RFC along the real-robot four-task sequence. Statistics use 2,000 replay observations sampled with a fixed seed and shared by both experts, using the full 836-dimensional observation representation and 22-dimensional residual actions. RFC compares both direction and magnitude in the original action space; the paper's PCA projection is used only for visualization. (a) R1 and R2: RFC 0.81, 1.25% dangerous states ⇒ merge accepted into RAB. (b) RAB and R3: RFC 0.01, 96.6% dangerous states ⇒ merge rejected; R3 remains separate. (c) R3 and R4: RFC 0.50, 6.6% dangerous states ⇒ merge accepted into RCD. The final pool has two experts for four tasks. These field diagnostics do not by themselves establish closed-loop task success.

Compared residualsRFCDangerous states (%)Decision
R1, R20.811.25Merge into RAB
RAB, R30.0196.6Keep R3 separate
R3, R40.506.6Merge into RCD

Sequential RFC diagnostics reported in Section V-C. A score meeting or exceeding the compatibility threshold accepts a merge.

The real-robot merge-all comparison is an offline field diagnostic; no closed-loop merge-all success rate is reported.

Real-world Continual Learning

We deploy ResMerge on a Franka Emika Panda with a 16-DoF Leap dexterous hand and a single front-mounted RealSense D435 camera, with a frozen IMLE BC base policy trained on demonstrations from all four tasks. The robot sequentially adapts to four tabletop tasks in two paired groups: (T1) Pinch-Cube and (T2) Pinch-Apple pinch-grasp a small object into the box; (T3) Power-Steel and (T4) Power-Plastic power-grasp a cup onto the plate. Within each group tasks share grasp primitive and container but differ in object appearance, geometry, and friction. This grouping helps interpret RFC decisions; shared grasp primitives do not establish that policy parameters can be merged successfully.

Real-world continual learning tasks

ResMerge attains FWT 50%, NBT 7 pp, and AUC 75%, compared with DMPEL's 24%, 23 pp, and 54%. RFC merges (T1,T2) into RAB and (T3,T4) into RCD, leaving two consolidated experts rather than four. Average final-stage success is 72.5%, compared with 67.0% for TAIL and 78.75% without merging. Consolidation retains 92.1% of the no-merge success rate while halving the expert count, at a cost of 6.25 percentage points in average success.

MethodFWT (%) ↑NBT (pp) ↓AUC (%) ↑
DMPEL242354
ResMerge (ours)50775

Table II(a): real-world continual learning. FWT and AUC in %; NBT in pp.

MethodAvg. SR (%)Experts
TAIL67.0—
ResMerge (no merge)78.754
ResMerge (ours)72.52

Table II(b): average success, distinct from AUC. Dash = unreported expert count.

Success Across the Task Sequence

Completed stage and residual poolT1T2T3T4
T1: {R1}85355555
T2: {RAB}75605550
T3: {RAB, R3}75608550
T4: {RAB, RCD}75607580

Table VII: success rates (%) over 20 trials per task at each stage. Rows are training stages; columns are evaluated tasks. The final row gives 58 successes in 80 trials (72.5%).

Real-Robot Rollouts

Representative rollouts of the four real-world tasks executed by ResMerge. For each task we show a success rollout alongside a failure case, illustrating both the learned behaviors and the remaining challenges (slippery objects, fine pinch grasps, and precise placement).

T1 — Pinch-Cube

Success

Failure

T2 — Pinch-Apple

Success

Failure

T3 — Power-Steel-Cup

Success

Failure

T4 — Power-Plastic-Cup

Success

Failure