<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reinforcement Learning | Aaron Wu</title><link>https://aawrail.me/tags/reinforcement-learning/</link><atom:link href="https://aawrail.me/tags/reinforcement-learning/index.xml" rel="self" type="application/rss+xml"/><description>Reinforcement Learning</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Tue, 23 Dec 2025 00:00:00 +0000</lastBuildDate><image><url>https://aawrail.me/media/icon_hu5270673394573577288.png</url><title>Reinforcement Learning</title><link>https://aawrail.me/tags/reinforcement-learning/</link></image><item><title>RecoveryDAgger: Query-Efficient Online Imitation Learning Through Recovery Policy</title><link>https://aawrail.me/project/recovery-dagger/</link><pubDate>Tue, 23 Dec 2025 00:00:00 +0000</pubDate><guid>https://aawrail.me/project/recovery-dagger/</guid><description>&lt;center>
&lt;strong>&lt;small>Course Research Project — Reinforcement Learning, Fall 2025&lt;/small>&lt;/strong>&lt;br>
Wen-Ai Ho*, &lt;strong>Aaron Wu*&lt;/strong>, Sheng-Yu Cheng*, and Sheng-Hsun Chang* &lt;br>
Department of Electrical Engineering, National Taiwan University&lt;br>
&lt;small>* All authors contributed equally.&lt;/small>
&lt;p>&lt;a href="https://github.com/NTU-RL2025-02/RecoveryDAgger/blob/main/Report.pdf" target="_blank" rel="noopener">Report (PDF)&lt;/a> · &lt;a href="https://github.com/NTU-RL2025-02/RecoveryDAgger" target="_blank" rel="noopener">Code&lt;/a> · &lt;a href="https://docs.google.com/presentation/d/1ntnNjOAhUretADrlI4ycZFx2BClxzAWE0GYV3HPjv28/edit?usp=sharing" target="_blank" rel="noopener">Slides&lt;/a>&lt;/p>
&lt;/center>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RecoveryDAgger framework" srcset="
/project/recovery-dagger/fig1_hu327727515558216590.webp 400w,
/project/recovery-dagger/fig1_hu6583840872854069934.webp 760w,
/project/recovery-dagger/fig1_hu14308329614209040899.webp 1200w"
src="https://aawrail.me/project/recovery-dagger/fig1_hu327727515558216590.webp"
width="760"
height="330"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>Figure 1: Overview of the proposed framework. An expert policy first generates an offline demonstration dataset, which is used to pretrain the imitation learning (BC) policy. During online training, the agent interacts with the environment using the IL policy. When a state is detected as risky, a recovery policy optimizes an action via gradient ascent on the Q-network; when a state is identified as novel, the agent queries the expert policy. All executed state-action pairs are stored in the replay buffer and are subsequently used to update both the Q-network and the IL policy.&lt;/em>&lt;/p>
&lt;h2 id="abstract">Abstract&lt;/h2>
&lt;p>Interactive imitation learning methods such as DAgger address the covariate shift problem of behavior cloning by collecting corrective demonstrations on states visited by the learner. However, frequent expert intervention introduces substantial annotation costs.&lt;/p>
&lt;p>We propose &lt;strong>RecoveryDAgger&lt;/strong>, a query-efficient interactive imitation learning framework that distinguishes between novelty and risk. When the agent encounters a familiar but risky state, a gradient-based recovery policy locally corrects its behavior using a learned Success Q-function. Expert supervision is reserved for states identified as novel.&lt;/p>
&lt;p>Experiments on PointMaze demonstrate that RecoveryDAgger substantially reduces expert queries while maintaining strong task performance. Our Ensemble-Q variant achieves &lt;strong>88% task success with approximately 87% fewer expert queries&lt;/strong> than ThriftyDAgger at their respective best-performing checkpoints.&lt;/p>
&lt;h2 id="method">Method&lt;/h2>
&lt;h3 id="recoverydagger-framework">RecoveryDAgger Framework&lt;/h3>
&lt;p>RecoveryDAgger introduces three possible sources of action during online training:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Expert policy:&lt;/strong> Provides corrective demonstrations in states identified as novel.&lt;/li>
&lt;li>&lt;strong>Recovery policy:&lt;/strong> Corrects actions in familiar but risky states using the learned Success Q-function.&lt;/li>
&lt;li>&lt;strong>Imitation policy:&lt;/strong> Executes learned actions in familiar, low-risk states.&lt;/li>
&lt;/ul>
&lt;p>By distinguishing novelty from risk, RecoveryDAgger allows the agent to reuse knowledge acquired through previous interactions before requesting additional expert supervision.&lt;/p>
&lt;h3 id="gradient-based-recovery">Gradient-Based Recovery&lt;/h3>
&lt;p>The Success Q-function estimates the likelihood of eventual task completion given a state-action pair.&lt;/p>
&lt;p>Starting from the action proposed by the imitation policy, the recovery policy performs iterative gradient ascent on Success Q to identify an action with higher predicted success. Each update is projected back into the valid action space.&lt;/p>
&lt;h3 id="ensemble-success-q">Ensemble Success Q&lt;/h3>
&lt;p>We further investigate an ensemble of independently trained Success Q networks to improve recovery and uncertainty estimation.&lt;/p>
&lt;p>The ensemble mean estimates task success, while the variance provides a measure of epistemic uncertainty.&lt;/p>
&lt;p>The recovery objective combines success maximization with an uncertainty penalty:&lt;/p>
$$
J(s,a) = \overline{Q}(s,a)
- \lambda \operatorname{Var}[Q(s,a)]
$$
&lt;p>This encourages recovery actions that lead toward higher predicted success while avoiding poorly understood transitions.&lt;/p>
&lt;h2 id="experimental-results">Experimental Results&lt;/h2>
&lt;h3 id="experimental-setup">Experimental Setup&lt;/h3>
&lt;p>We evaluate RecoveryDAgger on a four-room PointMaze navigation task with narrow corridors and sparse rewards.&lt;/p>
&lt;p>All online methods are initialized from the same behavior-cloned policy trained on 100 trajectories collected from a rule-based expert.&lt;/p>
&lt;p>An episode is considered successful if the agent reaches the goal within the time limit without colliding with walls.&lt;/p>
&lt;h3 id="performance-comparison">Performance Comparison&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align: left">Method&lt;/th>
&lt;th style="text-align: right">Expert Queries&lt;/th>
&lt;th style="text-align: right">Recovery Actions&lt;/th>
&lt;th style="text-align: right">Environment Steps&lt;/th>
&lt;th style="text-align: right">Success Rate&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align: left">Behavior Cloning&lt;/td>
&lt;td style="text-align: right">—&lt;/td>
&lt;td style="text-align: right">—&lt;/td>
&lt;td style="text-align: right">—&lt;/td>
&lt;td style="text-align: right">26%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align: left">ThriftyDAgger&lt;/td>
&lt;td style="text-align: right">20,048&lt;/td>
&lt;td style="text-align: right">—&lt;/td>
&lt;td style="text-align: right">58,029&lt;/td>
&lt;td style="text-align: right">81%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align: left">Single-Q Recovery (Ours)&lt;/td>
&lt;td style="text-align: right">&lt;strong>2,504&lt;/strong>&lt;/td>
&lt;td style="text-align: right">9,232&lt;/td>
&lt;td style="text-align: right">54,027&lt;/td>
&lt;td style="text-align: right">86%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align: left">Ensemble-Q Recovery (Ours)&lt;/td>
&lt;td style="text-align: right">2,693&lt;/td>
&lt;td style="text-align: right">9,296&lt;/td>
&lt;td style="text-align: right">&lt;strong>50,025&lt;/strong>&lt;/td>
&lt;td style="text-align: right">&lt;strong>88%&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>&lt;em>Results are reported at the checkpoint with the highest test success rate for each method over 30 online training iterations.&lt;/em>&lt;/p>
&lt;div class="figure-pair">
&lt;figure>
&lt;a href="https://aawrail.me/project/recovery-dagger/fig3a.png">
&lt;img src="https://aawrail.me/project/recovery-dagger/fig3a_hu13242474955445373544.webp" width="1000" height="684" alt="Success rate versus cumulative expert queries" loading="lazy">
&lt;/a>
&lt;figcaption>(a) Success rate vs. total expert queries&lt;/figcaption>
&lt;/figure>
&lt;figure>
&lt;a href="https://aawrail.me/project/recovery-dagger/fig3b.png">
&lt;img src="https://aawrail.me/project/recovery-dagger/fig3b_hu6838232382973014557.webp" width="1000" height="684" alt="Test success rate versus environment interaction steps" loading="lazy">
&lt;/a>
&lt;figcaption>(b) Success rate vs. time steps&lt;/figcaption>
&lt;/figure>
&lt;/div>
&lt;p>&lt;em>Figure 3: In our experiments on the PointMaze environment, we compare Single-Q recovery and Ensemble-Q recovery against the baseline ThriftyDAgger.&lt;/em>&lt;/p>
&lt;p>Our results suggest that a substantial portion of expert interventions can be replaced by recovery actions derived from learned value gradients.&lt;/p>
&lt;h2 id="mechanism-analysis">Mechanism Analysis&lt;/h2>
&lt;p>To better understand the behavior of RecoveryDAgger, we visualize the learned Success Q-function and representative trajectories collected during online training.&lt;/p>
&lt;div class="figure-pair">
&lt;figure>
&lt;a href="https://aawrail.me/project/recovery-dagger/fig4a.png">
&lt;img src="https://aawrail.me/project/recovery-dagger/fig4a_hu155674823279863327.webp" width="1000" height="833" alt="Heatmap of the learned Success Q-function over the two-dimensional maze" loading="lazy">
&lt;/a>
&lt;figcaption>(a) Learned Success Q heatmap&lt;/figcaption>
&lt;/figure>
&lt;figure>
&lt;a href="https://aawrail.me/project/recovery-dagger/fig4b.png">
&lt;img src="https://aawrail.me/project/recovery-dagger/fig4b_hu1131046303617054231.webp" width="990" height="1000" alt="Online training trajectories with expert interventions in red and recovery actions in green" loading="lazy">
&lt;/a>
&lt;figcaption>(b) Online training trajectories&lt;/figcaption>
&lt;/figure>
&lt;/div>
&lt;p>&lt;em>Figure 4: Visualization of the learned Success Q function and its effect on online training deployment. Figure 4a shows the learned Success Q function over the 2D state space. Figure 4b depicts the online training trajectories, where black trajectories correspond to the IL agent’s executed paths during training, where red segments indicate novel states queried to the expert and green segments denote recovery actions.&lt;/em>&lt;/p>
&lt;p>The learned Success Q-function captures task-relevant regions and provides local guidance for correcting risky behaviors. Expert intervention remains necessary in novel regions where the learned value estimates are unreliable.&lt;/p>
&lt;h2 id="limitations">Limitations&lt;/h2>
&lt;p>The effectiveness of RecoveryDAgger depends on the accuracy of the learned Success Q-function and the local recoverability of risky states.&lt;/p>
&lt;p>Gradient-based recovery also introduces additional computational overhead, potentially limiting its applicability to high-dimensional action spaces and real-time robotic systems.&lt;/p>
&lt;p>Our current evaluation is limited to simulated navigation. Extending RecoveryDAgger to real-world robotic systems and more complex tasks remains an important direction for future work.&lt;/p>
&lt;h2 id="related-publication">Related Publication&lt;/h2>
&lt;p>&lt;a href="https://doi.org/10.1109/MPOT.2026.3723055" target="_blank" rel="noopener">Self-correcting agent: Recovering from danger&lt;/a>&lt;/p>
&lt;p>&lt;em>IEEE Potentials&lt;/em>, 2026.&lt;/p></description></item></channel></rss>