TL;DR
CLAE (Closed-Loop Affine Activation Editing) is a novel inference-time framework that steers the behavior of a frozen, pretrained robot policy without modifying its weights or adding action-residual controllers. By training a sparse autoencoder on intermediate activations and using a lightweight reinforcement learning policy to apply state-dependent affine edits online, CLAE successfully adapts multi-robot teams to new tasks—like formation control and stealth navigation—while fully preserving their core collision-avoidance capabilities.
What Problem Does This Paper Address?
When deep learning-based robot policies are deployed in the real world, they are typically confined to the "behavioral envelope" established during their training. If a team of quadrotors trained for basic goal-reaching suddenly needs to maintain a strict geometric formation, track a specific velocity profile, or avoid surveillance cameras, traditional options are limited.
Engineers usually resort to policy fine-tuning or full retraining. However, these methods are computationally expensive, require new expert demonstrations or simulations, and risk catastrophic forgetting—where the policy improves on the new task but degrades on its original capabilities (like basic stability and obstacle avoidance). This challenge is amplified in multi-robot systems, where an individual robot's optimal adaptation depends dynamically on the states of its teammates and the surrounding environment.
The authors ask a fundamental question: Can we modify and expand the behavioral envelope of a trained multi-robot policy at inference time while keeping the base policy completely fixed?
Methods
Instead of altering the weights of the neural network, CLAE introduces Closed-Loop Affine Activation Editing. The core idea is to intercept internal representations (activations) mid-computation, tweak them subtly based on the current environment state, and pass them along to the remaining frozen layers to generate the final action.
The pipeline consists of three main stages:
- Sparse Feature Decomposition: The dense intermediate activations ($x_{i,t}$) of the frozen base policy are mapped into a higher-dimensional, sparse latent space using a pretrained Sparse Autoencoder (SAE). This disentangles complex, overlapping features into distinct, interpretable latents ($l_{i,t}$).
- Behavior Latent Selection: Through post-hoc probing, the authors calculate the Pearson correlation between SAE latents and specific task metrics (e.g., velocity or inter-agent distance) to isolate a compact subset of behavior-relevant latents ($S_b$).
- Closed-Loop Steering Policy: During deployment, a lightweight steering policy trained via Proximal Policy Optimization (PPO) observes the current environment and outputs state-dependent affine edits—multiplicative gains ($m$) and additive offsets ($c$)—applied directly to the selected latents: $$\ell'_{i,t,j} = m_{i,t,j} \ell_{i,t,j} + c_{i,t,j}$$ Crucially, the steering policy utilizes a Beta-parameterized action head, ensuring that the edits remain strictly bounded and small, preventing the activations from drifting into regimes that would destabilize the downstream frozen layers.
Datasets
The framework was evaluated using:
- QuadSwarm Simulator: An obstacle-rich $10\times10\times10\text{ m}$ simulation environment containing 8 quadrotors. The base policy was an end-to-end decentralized reinforcement learning controller trained purely for collision-free navigation.
- Physical Hardware Deployment: Zero-shot transfer from simulation to a physical fleet of Crazyflie 2.1 quadrotors, running the entire CLAE pipeline onboard in C at 100 Hz.
Key Insights and Ideas
- Closed-Loop vs. Open-Loop Steering: Prior activation engineering methods (common in Large Language Models) typically apply fixed, scalar shifts. The authors demonstrate that robotics requires closed-loop adjustments that dynamically scale based on real-time feedback from teammates and obstacles.
- Preservation by Design: Because the base policy's weights are untouched and unselected latents pass through perfectly intact, the robot's foundational competencies (like avoiding a sudden obstacle) remain fully operational.
- Exogenous Behavior Injection: Remarkably, CLAE can inject entirely new behaviors—such as avoiding the line-of-sight of surveillance cameras—even when camera data was completely absent during the base policy's original training phase.
Key Results
CLAE was benchmarked against standard base policies and alternative activation-editing baselines across three distinct tasks:
- Velocity-Profile Tracking: CLAE achieved a ~3.8× reduction in mean velocity-tracking error compared to the base policy, closely following time-varying reference trajectories.
- Multi-Robot Formation Control: Formation error was reduced by ~3.2×. While the base policy allowed the group to fracture around obstacles, CLAE successfully pulled the robots back into tight geometric configurations en route.
- Camera-Aware Stealth Navigation: CLAE reduced cumulative camera exposure (measured via a "Watchability" metric) by ~3.1×, routing quadrotors safely around or quickly through surveillance zones.
Ablation studies highlighted that bypassing the SAE to edit raw activations directly caused the collision-free rate to plummet to 66.6%, proving that targeted latent editing is essential for system stability.
Limitations and Future Work
While highly effective, the authors note a few key limitations:
- Probing Dependency: Selecting the right latents relies on rollout-derived behavior metrics. For entirely new, exogenous tasks, designing these proxy metrics remains an open engineering challenge.
- Scale of Base Models: The framework was validated on a relatively compact multi-quadrotor RL policy. A natural next step is scaling this approach to large, generalist Vision-Language-Action (VLA) foundation models.
- Lack of Formal Guarantees: Although the bounded Beta-head keeps the system stable empirically, the framework currently lacks formal control-theoretic safety or stability guarantees for the modified closed-loop system.
Summary updated