Latent Activation Editing: Inference-Time Refinement of Learned Policies for Safer Multirobot Navigation

Satyajeet Das, Darren Chiu, Zhehui Huang, Lars Lindemann, Gaurav S. SukhatmearXiv 2025 · DOI

Abstract

Reinforcement learning (RL) policies for multirobot navigation often struggle with "long-tail" failure cases, where infrequent but critical collisions occur in edge-case scenarios. This paper introduces Latent Activation Editing (LAE), a "plug-in" framework that improves the safety of pre-trained RL policies at inference time without retraining. By monitoring internal activations and substituting "unsafe" states with predicted "safer" ones, LAE achieves a nearly 90% reduction in collisions for multi-quadrotor swarms. The system is computationally efficient, running onboard resource-constrained hardware at 100Hz.

Introduction: The Safety Challenge in RL

Reinforcement learning has enabled robots to perform complex tasks like navigating drone swarms through dense environments. However, even high-performing policies exhibit failures in rare scenarios. Traditionally, addressing these requires expensive retraining or fine-tuning, which risks catastrophic forgetting or hitting asymptotic performance plateaus.

The authors propose a different approach: instead of changing the model's weights, can we "steer" a frozen policy by intervening in its internal latent activations as it runs?

Methods: The LAE Framework

The LAE framework operates as an inference-time plug-in consisting of two main components:

  1. Online Behavior Classifier: A lightweight neural network monitors the policy's intermediate latent activations ($Z_t$) to predict if the current state is likely to lead to a collision within a short time horizon.
  2. Activation Editing Module: When a state is flagged as unsafe, this module replaces the original activation with an edited surrogate ($Z'_t$).
The LAE architecture integrates an inference-time plug-in module into a frozen RL policy.

The core of the editor is the Latent Collision World Model (LCWM), a Gated Recurrent Unit (GRU) trained to predict future latent states along collision-prone trajectories. By feeding the policy a predicted "future" latent state early, the system effectively amplifies the robot's perception of risk, triggering its inherent avoidance logic sooner. Crucially, the system only edits components related to neighbors and obstacles to avoid destabilizing the robot's self-dynamics.

Experimental Setup and Results

The system was evaluated using the QuadSwarm Simulator on a benchmark of 2,600 configurations where the base RL policy typically fails. It was also deployed on Crazyflie 2.1 quadrotors to verify sim-to-real transfer and real-time performance on microcontrollers.

LAE demonstrated significant improvements in safety and reliability:

  • Collision Reduction: Total collisions in failure scenarios dropped by 89.6% (from 5,623 down to 583).
  • Success Rate: The number of zero-collision trajectories rose from 0 to 2,175 in the benchmark set.
  • Efficiency: The entire pipeline runs at 100Hz with less than 1ms of latency per step.
Comparison of trajectories with and without LAE, demonstrating successful collision avoidance in a dense environment.

Conclusion and Future Work

Latent Activation Editing provides a scalable, action-free way to enhance the safety of frozen RL policies without the risks associated with retraining. While currently focused on collision avoidance, future work could involve editing latents to adapt robot "style" or priorities in real-time. The framework's low computational footprint makes it particularly promising for edge robotics applications.

Summary updated

BibTeX
@misc{das2025latent,
  author = {Satyajeet Das and Darren Chiu and Zhehui Huang and Lars Lindemann and Gaurav S. Sukhatme},
  title = {{Latent Activation Editing: Inference-Time Refinement of Learned Policies for Safer Multirobot Navigation}},
  year = {2025},
  eprint = {2509.20623},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.20623},
}
Figure