Dynamic Physical Adversarial LED Patterns via Reinforcement Learning

Konstantin Zyryanov, Nikita LottsNeurIPS 2026

TL;DR

Imagine an "invisibility cloak" for surveillance cameras—except instead of magic, it’s a jacket covered in nearly 10,000 programmable LEDs controlled by a reinforcement learning agent. Unlike traditional adversarial T-shirts with static printed patterns, this garment senses the surrounding environment and dynamically shifts its glowing colors in real time, blinding modern person-detectors up to 89% of the time without ever needing access to the camera's internal code.

What Problem Does This Paper Address?

Computer vision systems are getting remarkably good at spotting humans, raising valid questions about privacy and visual robustness. Researchers often test the limits of these systems using physical adversarial attacks—think of weirdly patterned cardboard patches or custom-printed hoodies that trick an AI into thinking a person is a toaster (or nothing at all).

The catch? Printed patterns are frozen in time. Step into different lighting, turn sideways, or walk into a new room, and a static pattern loses its punch. Furthermore, most digital attacks assume "white-box" access, meaning the attacker can peek inside the detector's neural network to calculate mathematical gradients. In the real world, you don't get the source code to the security camera watching you.

This paper asks: Can an agent learn to control a physical, light-emitting garment in real time—adapting to the room around it—using only black-box feedback during training?

Figure 1: Real-world adversarial setup. A programmable LED garment, driven by an Orange Pi controller, is captured by an external detector camera, while onboard cameras provide observations for the RL agent.

Methods

The authors built a wearable testbed packed with 39 panels of RGB LEDs—9,984 lights in total, creating a massive continuous control space of nearly 30,000 RGB values. Two tiny cameras mounted on the garment (facing front and back) observe the surrounding room, while an Orange Pi controller drives the LEDs.

Figure 2: Closed-loop physical adversarial optimization pipeline. A PR-SAC agent generates LED control actions, which are executed by an Orange Pi controller and rendered on the wearable LED matrix. The camera captures the resulting scene, the detector outputs confidence, and the reward is used to update the policy.

During training, an external camera runs a target person-detector (like YOLOv8) and reports back a single number: how confident it is that it sees a person. Once trained, the external feedback is unplugged, and the jacket relies purely on its own onboard cameras to pick the right camouflage for the moment.

Standard off-policy Reinforcement Learning—specifically Soft Actor-Critic (SAC)—falls apart here. Real-world lighting fluctuates, sensors have noise, and controlling 30,000 variables directly makes the RL "critic" network go haywire. The authors introduce Physically Regularized Soft Actor-Critic (PR-SAC) with two clever upgrades:

  1. Latent Action + Upsampling: Instead of choosing every LED value individually, the policy outputs a compact, low-dimensional "latent" vector that gets deterministically upsampled into a full jacket pattern. This enforces spatial smoothness and keeps learning stable.
  2. Physical Regularization: They penalize jarring spatial or frame-to-frame flickers, down-weight noisy physical measurements so the critic doesn't chase ghosts, and prioritize recent memories in the replay buffer so the agent adapts to drifting room conditions.

Datasets

Not discussed in the paper. Because this is a closed-loop real-world robotic/physical control setup rather than an offline digital simulation, there is no static image dataset. Instead, training and evaluation happen live in physical rooms over 2,000 episodes (about 5–6 hours per run), with a human operator varying pose, distance, viewing angle, and lighting—plus tests in completely unseen rooms.

Key Insights and Ideas

  • Adaptability beats static weirdness: You might wonder if the jacket works simply because glowing LEDs look bizarre to a neural network. To test this, the authors froze the single best pattern found by their RL agent and displayed it statically. Dynamic, scene-aware control crushed the frozen pattern by around 40 percentage points—proving that active adaptation is doing the heavy lifting.
  • Physical RL wants to self-destruct after peaking: In real-world loops, background conditions drift while old experiences sit in memory. As shown below, the agent hits peak stealth around episode 500–600, after which its exploration collapses ("entropy collapse") and performance degrades. Validation checkpointing saves the best policy, even if the underlying RL instability isn't fully cured.
Detection confidence over training episodes showing peak and degradation phases
  • Smoothness vs. detail is a delicate trade-off: Controlling individual LEDs gives maximum artistic freedom to fool a camera, but ruins RL training stability. Heavy upsampling stabilizes training by creating smooth blobs of light.

Key Results

Across 15 independent training runs per setup, dynamic PR-SAC achieved striking Attack Success Rates (ASR)—the percentage of frames where the person successfully vanished from detection:

  • Dynamic vs. Static: PR-SAC hit 89.1% ASR on YOLOv8, 84.7% on Faster R-CNN, and 86.8% on RetinaNet. Freezing the best PR-SAC pattern dropped ASR to 50.8%, 42.6%, and 46.8%, respectively, and evolutionary static optimization (CMA-ES) topped out around 43–48%.
  • Unseen Locations: Walking into brand-new rooms without fine-tuning dropped ASR to 77.3% / 69.8% / 74.5%—a noticeable dip, yet still far stronger than static baselines operating in familiar rooms.
  • Cross-Model Transfer & Defenses: Patterns trained against one detector partially fooled the others (e.g., training on YOLO dropped YOLO confidence to 0.40, and Faster R-CNN to 0.48). Simple defenses like JPEG compression or Gaussian blur barely dented the attack (ASR stayed around 57–71%), though specialized patch-masking defenses like RAPID pushed ASR down to 17.6–29.8%.

Limitations and Future Work

This isn't a cyberpunk stealth suit ready for the streets. Each training run takes 5–6 hours of real-world interaction, and the attack weakens as the wearer moves farther away or turns at steep angles (past 45–60 degrees, the LEDs take up less pixel area and distort). Furthermore, the authors only tested three standard detectors—leaving adversarially trained models, certified defenses, uncontrolled outdoor sunlight, and non-human object classes as open territory for future research.

Summary updated

Abstract

Physical adversarial attacks expose important limitations of modern vision systems, but most existing methods rely on static patches or textures. We introduce a new problem setting: closed-loop physical adversarial control, where an agent interacts with a real-world perception system via a physical channel and receives only detector-level feedback. We optimize LED patterns with PR-SAC in a high-dimensional continuous action space. We show that latent action parameterization with deterministic upsampling improves training stability compared to direct control of individual LEDs. Across YOLOv8, Faster R-CNN, and RetinaNet, the learned patterns reduce person-detection confidence, decrease [email protected], and exhibit partial cross-model transfer. We further analyze robustness under distance and viewpoint changes, interaction with a defense mechanism, and failure modes such as Q-drift, entropy collapse, and degradation after initial improvement. Our results suggest that dynamic physical attacks should be evaluated not only by best-case attack strength, but also by stability, transferability, and robustness under real-world variation.
BibTeX
@inproceedings{zyryanov2026dynamic,
  author = {Konstantin Zyryanov and Nikita Lotts},
  title = {{Dynamic Physical Adversarial LED Patterns via Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6C7pZa4UhA},
}
Figure