Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hindsight Goal Relabeling with LoRA Finetuning

Updated 30 December 2025
  • The paper introduces a reward-free, online adaptation technique that employs hindsight relabeling with LoRA finetuning to transform recent rollouts into self-supervised training data.
  • It achieves rapid adaptation by updating only low-rank adapter parameters, enabling substantial performance gains in tasks like plug-in insertion within minutes.
  • Empirical results demonstrate that the method improves success rates from around 30% to 90% in as little as 15 minutes, proving its efficiency for long-horizon robotic tasks.

Hindsight goal relabeling with LoRA-based finetuning is a reward-free online adaptation technique for general goal-conditioned policy learning employed in robotic manipulation. It is characterized by the direct conversion of recent rollouts into self-supervised training data via hindsight-style goal relabeling, followed by rapid behavioral cloning updates restricted to low-rank adapter (LoRA) parameters. This approach enables real-robot policies to self-improve on long-horizon, out-of-distribution tasks autonomously, without reliance on external reward signals or human feedback. The method has been concretely instantiated in the Act2Goal framework, enabling substantial gains in manipulation policy performance within a matter of minutes (Zhou et al., 29 Dec 2025).

1. Hindsight Goal Relabeling Procedure

During online deployment, the policy πθ\pi_{\theta}—comprising frozen base weights and trainable LoRA adapters—executes under a user-specified goal gg. At each timestep tt, the agent observes the current RGB-D image oto_t, proprioceptive state cp,tc_{p,t}, executes at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g), and then records the resultant ot+1o_{t+1}. Each transition (ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1}) is stored in an in-memory replay buffer B\mathbb{B}, with a capacity NN (typically gg0).

Upon filling this buffer, an alternate-goal sampling procedure relabels each transition: the new goal gg1, framing the task as achieving the observed outcome. The relabeled dataset gg2 therefore consists of tuples gg3, with gg4, turning each experience into a nominal “success” for the policy to imitate.

2. Fine-tuning Objective and Behavioral Cloning

Finetuning is restricted to only the LoRA adapter parameters gg5; the base model gg6 is held fixed. The supervised loss per adaptation round is: gg7 where gg8 is a small weight decay penalty (e.g., gg9). The policy thus undergoes tt0 epochs (with tt1 typical) of supervised regression on tt2 using behavioral cloning, leveraging all relabeled transitions.

3. LoRA Adapter Architecture and Injection

Rather than editing the multi-billion-parameter base model directly, LoRA adapters are injected into every linear layer tt3 within cross-attention or MLP modules. Each adapted weight is computed as: tt4 with tt5 and tt6, where tt7 (e.g., tt8). This compression reduces per-layer adaptation complexity by tt9, as only oto_t0 parameters per layer are updated.

4. Gradient-Based Update and Optimization

The adaptation process employs straightforward gradient-based optimization (e.g., AdamW), updating oto_t1 for all LoRA layers. With learning rate oto_t2 and weight decay oto_t3, parameters are advanced by: oto_t4

oto_t5

The forward pass utilizes oto_t6 with oto_t7 frozen, ensuring that adaptation remains computationally lightweight and tractable in a real-robot setting.

5. Complete Online Adaptation Workflow

The following sequence operationalizes the adaptation:

  1. Initialization: All LoRA adapters oto_t8 are zero-initialized; replay buffer oto_t9 is empty.
  2. Experience Collection: The deployed policy gathers cp,tc_{p,t}0 transitions, storing cp,tc_{p,t}1 in cp,tc_{p,t}2.
  3. Hindsight Relabeling: Once cp,tc_{p,t}3, generate cp,tc_{p,t}4 by relabeling each transition’s goal cp,tc_{p,t}5.
  4. Behavioral Cloning Finetuning: For cp,tc_{p,t}6 epochs and minibatch size cp,tc_{p,t}7 (typically cp,tc_{p,t}8 per GPU), optimize cp,tc_{p,t}9 as detailed above.
  5. Buffer Reset: Clear at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)0 and repeat until task success or timeout.

A typical adaptation “round” (collection + at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)1 epochs of finetuning) requires at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)2 minutes on consumer-grade hardware (RTX 4090), making the loop suitable for real-robot deployment (Zhou et al., 29 Dec 2025).

6. Hyperparameters and Implementation

Empirically optimized hyperparameters driving the approach include:

Parameter Value Notes
Replay buffer at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)3 at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)4 transitions Sufficient for rapid relabeling/adaptation
LoRA rank at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)5 at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)6 Per linear layer
Epochs at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)7 at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)8 Per adaptation round
Minibatch at=πθ(ot,cp,t,g)a_t = \pi_{\theta}(o_t, c_{p,t}, g)9 ot+1o_{t+1}0 per GPU Varies by hardware
Learning rate ot+1o_{t+1}1 ot+1o_{t+1}2 AdamW optimizer
Weight decay ot+1o_{t+1}3 ot+1o_{t+1}4 Regularization
Relabel ratio ot+1o_{t+1}5 of transitions Comprehensive use

Each adaptation round (rollout, relabeling, and finetuning) amounts to ot+1o_{t+1}6 minutes, confirming feasibility for online adjustment.

7. Empirical Results and Significance

Application of hindsight goal relabeling with LoRA-based finetuning demonstrates rapid policy improvement in real-world and simulated settings. In the Act2Goal “Plug-In” insertion task, the online success rate increases as follows:

Adaptation Round Success Rate Cumulative Time
ot+1o_{t+1}7 (pre-finetune) ot+1o_{t+1}8 ot+1o_{t+1}9 min
(ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})0 ((ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})15 min) (ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})2 (ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})3 min
(ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})4 ((ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})510 min) (ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})6 (ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})7 min
(ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})8 ((ot,cp,t,at,ot+1)(o_t, c_{p,t}, a_t, o_{t+1})915 min) B\mathbb{B}0 B\mathbb{B}1 min

On the “Move Can” task (simulation, Robotwin 2.0 hard mode), analogous jumps occur: B\mathbb{B}2 over three rounds. These results substantiate that self-supervised adaptation with LoRA is sufficiently rapid and compute-efficient for deployment in long-horizon robotic tasks, with performance improvements from approximately B\mathbb{B}3 to B\mathbb{B}4 success rates within B\mathbb{B}5 minutes.

Hindsight relabeling provides densely informative supervision irrespective of task outcome, and LoRA adaptation minimizes the risk of overfitting and resource constraints associated with updating larger models. The overall methodology transforms every observed trajectory—successful or not—into actionable learning signals, thereby eliminating the need for explicit reward engineering or human-in-the-loop correction (Zhou et al., 29 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hindsight Goal Relabeling with LoRA-based Finetuning.