---
title: 'RARLAP: Reward-Augmented Learning for AP'
url: https://www.emergentmind.com/topics/reward-augmented-learning-framework-for-ap-rarlap
type: topic
---

# RARLAP: Reward-Augmented Learning for AP

Searching arXiv for the specified paper to ground the article and verify bibliographic metadata.
Reward-Augmented Learning Framework for AP (RARLAP) is a reward-augmented reinforcement-learning framework for continuous-control autonomous parking (AP), introduced in "Reward-Augmented Reinforcement Learning for Continuous Control in Precision Autonomous Parking via Policy Optimization Methods" [2507.19642]. It targets a regime characterized by tight spatial constraints, frequent close-range obstacle interactions, and stringent safety margins, and is trained entirely within a high-fidelity Unity-based custom 3D simulation environment. The framework systematically compares three structured reward strategies—goal-only reward (GOR), dense proximity reward (DPR), and milestone-augmented reward (MAR)—under both on-policy and off-policy policy optimization. In the reported experiments, on-policy MAR achieves a 91\% success rate and yields smoother trajectories and more robust behavior, whereas GOR and DPR fail to guide effective learning [2507.19642].

## 1. Problem setting and conceptual scope

RARLAP is formulated for precision autonomous parking as a continuous-domain control problem rather than as a discrete planning task. The motivating premise is that conventional rule-based and model-predictive methods often lack the adaptability and generalization needed to handle the nonlinear and environment-dependent complexities of AP. The proposed response is not a change in vehicle dynamics or sensing, but a change in how the learning signal is structured: reward augmentation is used to induce smooth and adaptable policy behavior during policy optimization [2507.19642].

Within that framing, the paper’s central comparison is between reward sparsity, dense but unstructured proximity feedback, and reward shaping that introduces an explicit intermediate milestone. This comparison is operationalized across both on-policy and off-policy optimization paradigms. A key implication of the reported results is that AP performance is highly sensitive not merely to whether the reward is sparse or dense, but to whether the reward embeds trajectory structure that is compatible with the parking geometry.

## 2. Markov decision process formulation

The parking task is cast as a model-free Markov decision process defined by the tuple $(\mathcal{S}, \mathcal{A}, \mathcal{P}, \mathcal{R})$ [2507.19642]. The state space is

$$
s_t = [\,\mathbf{p}^{\rm agent}_t,\;\mathbf{p}^{\rm target}_t,\;\mathbf{R}^t,\;d_t\,],
$$

where $\mathbf{p}^{\rm agent}_t,\mathbf{p}^{\rm target}_t\in\mathbb{R}^3$ are the global 3D positions of the vehicle and parking slot, $\mathbf{R}^t=[r^t_1,\dots,r^t_N]\in\mathbb{R}^N$ is the raycast-distance vector with $N=8$, and

$$
d_t=\|\mathbf{p}^{\rm target}_t-\mathbf{p}^{\rm agent}_t\|_2
$$

is the Euclidean distance to the goal.

The action space is a scalar control $a_t\in[-1,1]$ that governs the incremental change in steering angle,

$$
S_t^\angle = S_{t-1}^\angle + \Delta S_{t-1}^\angle(a_t).
$$

This action design makes the control problem explicitly continuous and ties policy output directly to steering evolution rather than to a discrete maneuver library. State transitions are model-free and realized through Unity physics, so the transition kernel is sampled as $s_{t+1}\sim\mathcal{P}(\cdot|s_t,a_t)$.

The optimization target is the discounted return

$$
J(\theta)=\mathbb{E}_{\tau\sim\pi_\theta}\Bigl[\sum_{t=0}^\infty\Gamma\,r(s_t,a_t)\Bigr],
$$

with discount factor $\Gamma\in[0,1)$. In this formulation, reward design becomes the main instrument for shaping policy search, because neither an explicit vehicle model nor a handcrafted planner is imposed on the learned controller.

## 3. Structured reward design

RARLAP evaluates three reward functions that differ in sparsity, granularity, and safety guidance [2507.19642]. Let $D(\mathbf{x},\mathbf{y})=\|\mathbf{x}-\mathbf{y}\|_2$, let $\epsilon$ denote the collision threshold, let $\mathcal{G}$ denote the goal region, and let $\mathbf{x}_a,\mathbf{x}_g,\mathbf{x}_m\in\mathbb{R}^n$ denote the agent, goal, and milestone positions.

The goal-only reward is a sparse terminal structure:

$$
r_{\rm GOR}(s_t,a_t)=
\begin{cases}
F_{\rm env}^G > 0 & \text{if } \mathbf{x}_a\in\mathcal{G},\\
-\;F_{\rm env}^C < 0 & \text{if } \min_i r^t_i \le \epsilon,\\
-\;F_{\rm env}^L < 0 & \text{otherwise.}
\end{cases}
$$

GOR supplies success and collision signals plus a living penalty, but no intermediate shaping. The reported behavior is very slow learning, a low reward plateau, and unstable off-policy value evolution.

The dense proximity reward adds continuous distance-based feedback:

$$
r_{\rm DPR}(s_t,a_t)=
\begin{cases}
F_{\rm env}^G & \mathbf{x}_a\in\mathcal{G},\\
-\;F_{\rm env}^C & \min_i r^t_i\le\epsilon,\\
p^\beta - p^\alpha\,D(\mathbf{x}_a,\mathbf{x}_g) & \text{otherwise,}
\end{cases}
$$

with $p^\alpha,p^\beta>0$. DPR provides a denser gradient than GOR, and the paper reports a faster initial rise. However, it also reports early plateauing at suboptimal reward and oscillatory back-and-forth trajectories, which the authors attribute to the absence of structural guidance despite the dense signal.

The milestone-augmented reward introduces an explicit intermediate region:

$$
\mathrm{Ind}^M=\mathbb{I}[D(\mathbf{x}_a,\mathbf{x}_m)\le M_{\rm mil}],
$$

and

$$
r_{\rm MAR}(s_t,a_t)=
\begin{cases}
F_{\rm env}^G & \mathbf{x}_a\in\mathcal{G},\\
-\;F_{\rm env}^C & \min_i r^t_i\le\epsilon,\\
\zeta - D(\mathbf{x}_a,\mathbf{x}_g) & \mathrm{Ind}^M=1,\\
-\;F_{\rm env}^L & \text{otherwise.}
\end{cases}
$$

Here $\zeta>0$ ensures nonnegativity once past the milestone region. The paper describes this reward as injecting a mid-trajectory milestone signal that acts as an intermediate shaping reward and combines safety guidance with structured proximity to goal once in the milestone region. The resulting trajectories are reported as clean, direct, and “potential-field”-like.

A plausible implication is that MAR does not merely densify feedback; it restructures the optimization landscape by separating approach behavior into at least two phases, before and after milestone entry. That interpretation is consistent with the reported contrast between DPR and MAR.

## 4. Policy optimization under on-policy and off-policy paradigms

RARLAP is evaluated with both PPO-based on-policy optimization and SAC-based off-policy optimization [2507.19642]. The on-policy variant is denoted ON-POM, and the off-policy variant is denoted OFF-POM.

For PPO, the clipped surrogate objective is

$$
\mathcal{L}^{\rm CLIP}(\theta)=
\mathbb{E}_t\Bigl[\min\bigl(r_t(\theta)\,\hat A_t,\;\mathrm{clip}(r_t(\theta),1-\varepsilon,1+\varepsilon)\hat A_t\bigr)\Bigr],
$$

with

$$
r_t(\theta)=\frac{\pi_\theta(a_t|s_t)}{\pi_{\theta_{\rm old}}(a_t|s_t)},
$$

and $\hat A_t$ computed via GAE. The value-function loss is

$$
\mathcal{L}^{\rm VF}(\Omega)=\mathbb{E}_t[(V_\Omega(s_t)-\hat R_t)^2],
$$

and the total loss is

$$
\mathcal{L}_{\rm on}(\theta,\Omega)
=-\,\mathcal{L}^{\rm CLIP}(\theta)+c_1\,\mathcal{L}^{\rm VF}(\Omega)-c_2\,\mathbb{E}_t[\mathcal{H}(\pi_\theta(\cdot|s_t))].
$$

The parameters are updated jointly by gradient descent on $\mathcal{L}_{\rm on}$.

For SAC, the Q-function loss is

$$
\mathcal{L}_{Q}(\psi)=\mathbb{E}_{(s,a,r,s')}\Bigl[\bigl(Q_\psi(s,a)-[r+\Gamma\,V(s')]\bigr)^2\Bigr],
$$

with soft value

$$
V(s)=\mathbb{E}_{a\sim\pi_\theta}\bigl[Q_\psi(s,a)-\alpha\log\pi_\theta(a|s)\bigr],
$$

and policy loss

$$
\mathcal{L}_\pi(\theta)=\mathbb{E}_{s}\Bigl[D_{\rm KL}\!\Bigl(\pi_\theta(\cdot|s)\;\Big\|\;\frac{\exp(Q_\psi(s,\cdot)/\alpha)}{Z(s)}\Bigr)\Bigr].
$$

The reported implementation updates $\theta$ and $\psi$ via their respective gradients, with replay-buffer sampling in the off-policy case and an optional entropy-temperature auto-tuning step “if implemented.”

The high-level training loop follows the same reward-selection interface for both paradigms: initialize the policy network; if ON-POM, also initialize the value network; if OFF-POM, initialize Q-network and replay buffer; collect trajectories or transitions in Unity; compute the reward according to GOR, DPR, or MAR; and perform the corresponding PPO or SAC updates. This common interface allows the reward design to be compared while keeping the control setting fixed.

## 5. Unity-based simulation environment

The framework is trained and evaluated in a custom Unity-based 3D simulator [2507.19642]. The agent vehicle uses a realistic mesh with dimensions $4\times2\times2$ m, Ackermann steering physics, and collider meshes. Perception is represented through 8 raycasts—4 front and 4 rear, with $\pm65^\circ$ lateral placement and a range of 0–8 m.

The environment models walls and obstacles as simple box colliders and parked cars as rectangular colliders that are slightly bloated for safety. Parking scenarios include configurable empty and occupied slots, a mid-mission milestone collider, and an arrival-trigger collider. These components are directly aligned with the reward structure, especially MAR, for which milestone entry is a key event.

The training setup includes 12 concurrent Unity instances sharing a central training process. Domain randomization is supported through Unity ML-Agents configuration, with slot positions, obstacle arrangements, and friction parameters varied across runs. The code is publicly available, and the paper presents the simulator, multi-instance rollout configuration, and reward study as a reproducible benchmark for continuous-steering AP. This suggests that reproducibility in RARLAP is treated as part of the framework rather than as an auxiliary implementation detail.

## 6. Empirical performance and reported significance

The empirical comparison distinguishes sharply among the three reward strategies and between on-policy and off-policy optimization under MAR [2507.19642]. In the convergence curves, GOR exhibits very slow learning, a low reward plateau, and unstable OFF-POM value behavior. DPR rises faster initially but plateaus early at suboptimal reward and shows high variance. MAR rises rapidly to approximately 3000 for ON-POM and approximately 2000 for OFF-POM, with stable low loss.

Distance-to-goal analysis shows that MAR produces tight clustering close to 0 m. Trajectory analysis further differentiates the methods: GOR yields erratic spiral behavior with wide oscillations; DPR produces oscillatory back-and-forth motion; and MAR yields clean, direct “potential-field”-like paths. The paper’s comparative discussion characterizes GOR as sparse terminal reward without shaping, DPR as dense proximity reward without structural guidance, and MAR as structured reward shaping with safety guidance and milestone-based progression.

The reported deployment metrics under MAR are as follows:

| Setting | Success / Collision | Final distance / Steps / Train time |
|---|---|---|
| ON-POM (MAR) | 91\% / 9\% | 2.191 m / 201 / 26.8 min |
| OFF-POM (MAR) | 50\% / 50\% | 7.287 m / 143 / 268.7 min |

These results underpin the paper’s principal takeaways. Structured reward augmentation is presented as critical for complex, spatially constrained AP tasks; combining MAR with on-policy optimization yields superior sample- and time-efficiency, summarized in the paper as training in 27 min versus 269 min; and the synergy of reward structuring with synchronous on-policy updates is reported to accelerate convergence, reduce policy variance, and enhance safety margins. The authors further state that this paves the way for real-world sim-to-real transfer in precision autonomous parking. A cautious interpretation is that the paper establishes the efficacy of structured reward design within its simulator and optimization setup, while positioning sim-to-real transfer as a forward-looking consequence rather than a completed empirical validation.

Source: https://www.emergentmind.com/topics/reward-augmented-learning-framework-for-ap-rarlap