Printed adversarial patterns, such as stickers on a sign or camouflage on a car, fool object detectors only from some angles. A planar patch stops working once it is turned more than about sixty degrees away from the camera, and a localized patch stops working once the object's body hides it. A recent line of work turns this weakness into a defense. The idea is an active camera: a robot-mounted camera that moves to a viewpoint where the attack breaks, then trusts what it sees there. These defenses have only been trained and tested inside simulators. The open question is whether a camera-motion policy learned in simulation still finds the blind spots of a real printed attack, seen through a real sensor on a real arm.
We argue that the main obstacle is not the usual visual gap between rendered and real pixels. It is a gap in where attacks fail. The angle at which a printed pattern stops fooling the detector depends on specular highlights, print quality, exposure and lens blur, and none of these are rendered faithfully. A policy that has learned "attacks die at yaw 60° on the left" will steer to the wrong place on hardware. We propose to make the policy indifferent to this by randomizing the attack's angular envelope during training, alongside the usual randomization of appearance and actuation. The envelope is the range of viewpoints over which an attack works. With it randomized, the policy must read the evidence in front of it rather than recall where blind spots used to be. We then test zero-shot transfer on a tabletop robot arm viewing scale-model cars covered in physically printed camouflage.
Core Claim
An active defense trained with envelope randomization will transfer zero-shot to physical hardware substantially better than the same policy trained on a fixed bank of simulated attacks. A policy trained on a fixed bank implicitly memorizes where those attacks fail. Envelope randomization means sampling, in each training episode, an attack whose effective yaw/pitch range, falloff sharpness and occlusion pattern are drawn from a wide distribution. A second claim, which we can also check, is that the advantage over a naive fixed camera sweep is largest under a tight budget of views. The advantage should shrink as the budget grows, because exhaustive looking eventually finds the blind spot anyway.
What Prior Work Establishes and Leaves Open
The motivating evidence comes from two places. On geometry, Patch Attack Invariance measures how patch attacks degrade under 3D pose. Widening yaw training from ±0° to ±60° only lifts mean attack success over transformations from 0.34 to 0.52, and success collapses past 60°, while roll is easy to make invariant. On occlusion, Adversarial Texture shows that localized patterns become invisible once the target turns. These results tell us blind spots exist, but they measure them only digitally.
The defenses we build on are Embodied Active Defense and REIN-EAD. The first moves a camera in yaw and pitch, fuses views in a recurrent belief, and trains through a differentiable renderer against randomly sampled patches. The second replaces greedy one-step planning with reinforcement learning over a multi-step horizon, which removes the need for a differentiable renderer and allows training in CARLA. It also trains against a precomputed bank of diverse adversarial patches. Both are evaluated only in simulation. Neither randomizes the camera's actuation or sensor, and both sample attacks from a fixed generator, so the distribution of blind-spot locations seen in training is whatever that generator happens to produce. Our contribution is targeted at exactly that last point, plus the hardware test neither paper ran.
On the attack side, DTA and FCA supply the physical threats we print. DTA learns a neural stand-in for CARLA's renderer to optimize a tiled camouflage and tests it on 1:10 scale cars. FCA wraps a full vehicle mesh and tests on 1:32 toy cars. Both evaluate only single-frame detectors and never ask whether a moving camera defeats them. Full-coverage camouflage is also the hardest case for us, since there is no unpainted side to turn toward. REIN-EAD itself concedes that total coverage can defeat viewpoint search. We treat this as a constraint and report it separately rather than hiding it in an average.
Domain randomization supplies the method. (CAD)$^2$RL flew a real drone using only randomized low-fidelity renders. Asymmetric Actor Critic gave the value network privileged simulator state while the policy saw only randomized images, and transferred to a real Fetch arm with 5/5 success. Sim-to-Real quadruped locomotion randomized latency and motor properties. We reuse all three ideas: appearance randomization, actuation randomization, and an asymmetric critic. The critic is allowed to see the true attack envelope of the current episode, which the camera policy never sees.
Research Program
The work has three parts.
Measuring the envelope gap. Before building anything, we measure the gap the method is meant to address. For each printed attack, we record detector confidence on a dense yaw-pitch grid in two settings. The first is CARLA, using the protocol of PADetBench, which controls hemispherical viewpoints, distance, weather and sun. The second is a physical rig: a 6- or 7-degree-of-freedom arm carrying a consumer camera around the scale models under indoor lighting. PADetBench explicitly leaves this physical correlation unmeasured. We report how far the angle at which each attack breaks shifts between simulation and reality, and the correlation between the two confidence surfaces. If the shift turns out to be small, envelope randomization is unnecessary, and we will say so.
Training with envelope randomization. We train a policy in the style of REIN-EAD in CARLA, with three additions. First, each episode's attack is drawn from a bank produced by optimizing patches and camouflages under randomized yaw ranges, randomized pitch ranges and randomized coverage. The yaw ranges extend Lennon et al.'s range-widening into a sampled hyperparameter. A random "envelope warp" is then applied that modulates attack strength as a function of viewing angle, so that the same pattern breaks at different angles in different episodes. Second, we randomize appearance: specularity, exposure, white balance, blur and sensor noise. Third, we randomize actuation: latency, pose error and joint-limited reachable sets. The critic receives the true envelope and the clean ground truth; the policy receives only images.
Physical evaluation. The physical test reuses the rig from the first part. The camera starts at a random pose and is given a budget of $k$ moves before it must commit to a detection decision.
Baselines
The naive reference point is the undefended detector judged from the single starting view. We use YOLOv4 and EfficientDetD0 against DTA-style camouflage and YOLO-v5 against FCA-style camouflage, matching the original papers. The starting views come from the same seeded distribution used for every method. This establishes how much harm the printed attacks do on our rig. We expect numbers of the order DTA reports physically: on its 1:10 Tesla, EfficientDet AP fell from 0.94 to 0.34 and YOLOv4 AP from 0.96 to 0.61. FCA reports YOLO-v5 accuracy of 65.28% on its 1:32 model.
The strongest existing method is REIN-EAD trained in CARLA with its own patch bank and reward shaping, then transferred zero-shot to the arm. It is the only active defense already trained in a non-differentiable simulator and so the fairest direct competitor. It gets the same detector, the same simulator hours, the same number of environment steps, the same hyperparameter-search budget, and the same view budget $k$ on hardware. The only reported numbers for this family are from simulation. On CelebA-3D, EAD cut 3DAdv attack success from 98% to 13.7% within 4 steps, and REIN-EAD reports attack success reductions of up to 95%. We found no result on Lacuna for any active defense on physical hardware or on physically printed vehicle camouflage. Beating it means a statistically reliable gain in recall of attacked cars after $k$ views on the physical rig, with no loss in clean-car recall and no rise in false alarms on uncamouflaged scenes.
The passive competitor is a fixed sweep. The camera visits $k$ poses spaced evenly across the reachable arc, and predictions are aggregated by maximum or mean confidence. A tuned version picks the $k$ poses that worked best in simulation. Per-frame filtering is represented by Segment and Complete and PatchZero, applied to the single starting view and, for fairness, also to the fixed sweep.
Four ablations isolate the proposal's ingredients. The first removes envelope randomization but keeps appearance and actuation randomization; it is the key ablation. The second removes actuation randomization. The third replaces the privileged critic with a standard one. The fourth adds envelope randomization without any appearance randomization, which tests whether the envelope matters on its own.
Why not just…?
Why not just sweep the camera along a fixed arc and average? This is the real threat. Lennon et al. show patches die past roughly 60° of yaw, so a sweep wide enough will eventually include a broken view. The claim that active selection is useful rests on budgets: if the robot can afford only two to four views, choosing them well should matter. We therefore report recall as a function of $k$ from 1 to 8 for both the sweep and the learned policy. If the sweep matches the policy at every budget on hardware, we will conclude the learned policy is unnecessary for these attacks. The envelope-gap measurement from the first part of the program would then still stand as a contribution.
Why not just adversarially fine-tune the detector on randomized renders? It is cheap and needs no robot. However, Segment and Complete reports that adversarially training Faster R-CNN dropped clean COCO mAP from 49.0% to 40.2%. PADetBench also finds that 3D-aware camouflages cut vehicle recall by up to 50% across 48 detectors trained with standard objectives. We include a fine-tuned detector on the starting view as an additional reference and report its clean-accuracy cost. We also run our policy on top of it, since the two approaches are complementary rather than exclusive.
Why not just make the simulator more faithful, for example with a learned renderer stand-in like DTA's? That would shrink the envelope gap at its source. But a learned stand-in is tied to one simulator and one vehicle mesh, a limitation DTA's own design implies. OmniObject3D shows that even real scans leave a style gap. The ablation that adds envelope randomization without appearance randomization tests the opposite bet. If fidelity were what mattered, the policy with only appearance randomization would transfer as well as the full method, and our ablations would reveal that.
Why not just filter each frame with a patch segmenter? Masking cannot work against full-coverage camouflage: blanking the pattern blanks the car. Segment and Complete also notes that masks over on-object patches remove the object's own features. We still run both filters so the comparison is empirical rather than argued.
Decisive Checks
Three outcomes would settle the question. The first is the size of the envelope gap: if simulated and physical break-angles agree closely, the core premise is wrong. The second is the key ablation on hardware: if REIN-EAD with only appearance and actuation randomization transfers as well as the full method, envelope randomization adds nothing. The third is the budget curve against the fixed sweep. The proposal succeeds only if the full method beats both REIN-EAD and the sweep at small $k$ on physically printed DTA- and FCA-style camouflage. Results on full-coverage FCA-style wraps will be reported separately, as the regime where all viewpoint defenses are expected to struggle.
References
- Patch Attack Invariance: How Sensitive are Patch Attacks to 3D Pose?
- Adversarial Texture for Fooling Person Detectors in the Physical World
- Embodied Active Defense: Leveraging Recurrent Feedback to Counter Adversarial Patches
- Reinforced Embodied Active Defense: Exploiting Adaptive Interaction for Robust Visual Perception in Adversarial 3D Environments
- DTA: Physical Camouflage Attacks using Differentiable Transformation Network
- FCA: Learning a 3D Full-Coverage Vehicle Camouflage for Multi-View Physical Adversarial Attack
- CAD2RL: Real Single-Image Flight Without a Single Real Image
- Asymmetric Actor Critic for Image-Based Robot Learning
- Sim-to-Real: Learning Agile Locomotion For Quadruped Robots
- PADetBench: Towards Benchmarking Physical Attacks against Object Detection
- Segment and Complete: Defending Object Detectors against Adversarial Patch Attacks with Robust Patch Detection
- PatchZero: Defending against Adversarial Patch Attacks by Detecting and Zeroing the Patch