arXiv:2611.02888cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02888

A Universal Policy Wrapper With Guarantees

Georgiy Malaniya, Anton Bolychev, Pavel Osinenko

PREPRINT, COMPILED NOVEMBER 3, 2026

Georgiy Malaniya †∗^{\dagger*}

Center for Engineering Systems and Sciences,

30 Bolshoy Boulevard, bld. 1, Moscow, 121205, Russia;

Central University,

7 Gasheka St., bld. 1, Moscow, 123056, Russia

g.malaniya@rcdei.ru

Anton Bolychev †∗^{\dagger*}

Center for Engineering Systems and Sciences,

30 Bolshoy Boulevard, bld. 1, Moscow, 121205, Russia

bolychev.anton@gmail.com

Pavel Osinenko ††^{\dagger\dagger}

Central University, 7 Gasheka St., bld. 1, Moscow, 123056, Russia;

Center for Engineering Systems and Sciences, 30 Bolshoy Boulevard, bld. 1, Moscow, 121205, Russia;

Sirius University of Science and Technology, 1 Olimpiyskiy Avenue, Sirius, 354340, Russia

p.osinenko@gmail.com

ABSTRACT

Many control tasks require driving the system into a prescribed goal set and subsequently keeping it there. The considered setting assumes that a working controller is available that provably reaches and maintains the goal, albeit with suboptimal performance. This controller is referred to as the fallback policy. Conversely, although state-of-the-art reinforcement-learning (RL) algorithms can discover policies with impressive empirical performance, the neural networks at their core act as opaque black boxes learned through data-driven exploration and, as such, provide no theoretical mechanism to guarantee that the system will ever reach—and stay within—the prescribed goal set. This article presents CALF-Wrapper, a method that combines the fallback policy with a pretrained RL base policy and uses the critic estimate associated with the base policy to select between them during deployment. The theoretical analysis establishes that CALF-Wrapper inherits the goal-reaching property of the fallback policy under the stated assumptions and provides probability bounds for the settling time and the maximum distance from the goal set over a prescribed time interval. The experimental study evaluates CALF-Wrapper in four simulated control environments of different complexity. Comparisons include the base policy, fallback policy, and constrained reinforcement-learning methods formulated for the same objective. Sensitivity and ablation studies provide direct hyperparameter recommendations. The experiments show how CALF-Wrapper can provide effective task performance while attaining the maximum possible observed goal-reaching rate. CALF-Wrapper requires no additional dynamics model, online learning, or constrained optimization during execution.

Keywords Lyapunov functions · Policy switching · Reinforcement learning

1 INTRODUCTION

Reinforcement learning (RL) has proved to be a powerful framework for solving control problems in complex, high-dimensional settings. Most RL algorithms optimize control policies through direct interaction with a system (often called an environment), relying solely on reward signals observed at each step, without requiring explicit knowledge of system dynamics. The remarkable successes of RL span applications such as robotic manipulation [1,2], board games like Go, chess, and shogi [3], and complex real-time video games [4].

State-of-the-art deep-RL algorithms—including Twin-Delayed Deep Deterministic Policy Gradient (TD3) [5], Soft Actor-Critic (SAC) [6], and Proximal Policy Optimization (PPO) [7]—learn effective control policies in practice, yet they do not establish that a learned policy satisfies a user-specified objective. To make this requirement precise, this work considers a prescribed goal set: a task-dependent subset of the state space that the agent is required to reach and remain in. The geometry of this set is task-dependent—for an inverted pendulum it corresponds to upright configurations within a narrow angular tolerance; in algorithmic trading it might be the region where cumulative profit is positive; and in autonomous driving it can be a small neighborhood surrounding the intended GPS destination. Throughout this work, a nonempty goal set is assumed to be specified in advance. A policy that reaches the prescribed goal set and remains there is said to satisfy the goal-reaching property formalized in Section 2.

Standard reinforcement-learning methods such as PPO and TD3 can discover high-performing policies. However, these methods provide no formal mechanism for establishing whether the learned policy reaches the prescribed goal. This behavior can therefore generally be assessed only empirically. These methods are also often difficult to tune. Rather than attempting to establish this property for opaque learned policies, the formulation assumes the existence of a predefined (possibly suboptimal) controller that already satisfies the goal-reaching property—e.g., a provably stable yet energy-inefficient impedance controller for a robotic arm; a con-

*The first two authors contributed equally.

†Corresponding author.

This work was supported by the Russian Science Foundation (RSF) under Grant 25-21-00872. This article has been accepted for publication in IEEE Access.

servative, capital-preserving rule-based trading strategy; or a heuristic vehicle-routing routine that ensures delivery irrespective of fuel costs. In the remainder of the paper, this controller is referred to as the fallback controller or fallback policy. The focus is to enhance this fallback policy while preserving its goal-reaching property. The origin of the fallback controller—classical control (e.g., proportional-derivative (PD) control, linear-quadratic regulator (LQR), or model predictive control (MPC)), domain heuristics, or engineering practice—is immaterial to the analysis and problem formulation. The sole objective is to improve the performance of the fallback policy without losing its formal goal-reaching property.

To improve the performance of the fallback policy, the method introduces a second ingredient: a performance-seeking policy learned by reinforcement learning, referred to as the base policy. Trained with any standard RL algorithm—TD3, Soft Actor-Critic, PPO, or similar—the base policy is explicitly optimized for high cumulative reward and therefore often attains stronger empirical returns. However, it is not known to satisfy the goal-reaching property for the prescribed goal set.

The approach presented in this paper treats the fallback controller as an anchor for correctness and the learned RL policy as a source of performance gains. The approach is referred to as the CALF-Wrapper. It is designed as a lightweight decision-making mechanism that, at each step, decides whether to execute the learned base policy or revert to the fallback policy. The wrapper can be applied after training to a broad class of RL policies for which a corresponding value estimate is available. This estimate may be provided directly by a critic or obtained by evaluating an action-value critic at the action selected by the base policy.

References (38)