RESEARCH / TECHNICAL REPORTS
← Technical reportsRESEARCH NOTE / 10

Perception robustness

Semantic Adversarial Patches: Testing Object Detection Robustness

Generate adversarial surface patterns to test object detector robustness.

Uncertain visual evidence

Changing illumination, occlusion and surface appearance make visual evidence difficult to trust.

Patch attribution · visual stress testing

THE CENTRAL IDEA

A robust perception test should vary meaningful appearance, preserve controlled comparisons, and measure how detection failures propagate into state estimation and action.

Semantic Adversarial Patches: Testing Object Detection Robustness

The challenge: appearance changes the perception loop

A robot working around a spacecraft must recognize components whose appearance changes with view angle, illumination, protective coverings, and the arrangement of nearby hardware. Surface markings can be visually prominent while carrying little geometric information. A detector may learn convenient appearance cues that remain stable in its training set but change during inspection or servicing. When that detector supplies the target for pose estimation, a missed component can alter the entire action sequence: the robot may wait unnecessarily, reacquire the wrong region, or proceed with an incomplete scene model.

This makes appearance stress testing a useful complement to nominal accuracy measurement. The goal of the engineering workflow developed here is to expose brittle recognition cues before they enter mission software. Instead of testing only random pixel noise, it asks whether coherent, recognizable surface content can disrupt the target detector. That question connects generative image modeling with robotics verification: a generator supplies structured variations, while a task-aware evaluation harness measures the consequences under controlled geometry and camera conditions.

Paper mechanism in focus

AdvLogo generates semantic adversarial patches using diffusion. It jointly adjusts the Fourier representation of the initial latent and the unconditional embedding, while fixing the prompt embedding. A detector-confidence objective guides optimization; approximate gradients reduce the denoising computation graph. The reviewed v2 evaluates seven detectors on INRIA Person. With YOLOv5 as surrogate, average black-box mAP is 40.76 for AdvLogo and 59.28 for NAP; lower indicates stronger disruption in this protocol.

01Controlled scene
02Semantic variation
03Matched rendering
04Perception + tracking
05Failure library
Proposed engineering workflow: controlled visual variation is evaluated through the robot’s perception and task stack.

Engineering analysis: separate semantics, geometry, and visibility

A proposed robotics test should separate three variables that are easy to confuse. Semantic appearance describes what a surface pattern resembles. Geometry describes where that pattern is attached and how it projects into the camera. Visibility describes how much of the target remains observable. If a test image covers an entire connector, a failure may simply reflect missing information. If the connector remains visible but its surrounding texture changes, the same failure suggests a different dependency. Test metadata should make this distinction explicit rather than placing every difficult frame into one robustness bucket.

In a local simulator, attach a texture to a named mesh region and retain the original camera pose, scene graph, and target mask. Create a matched control using an ordinary pattern with the same footprint and opacity. Render both through identical lighting and sensor settings. The paired design allows the analysis to attribute additional degradation to pattern content instead of the fact that a region has been covered. Repeat at several projected scales; an image-space patch ratio should be reported relative to the target as well as the full frame.

A controlled search objective for the test bench

The following is an engineering formulation for a robustness test bench, rather than a reproduction of the paper’s optimizer. Let x be a rendered scene, τ a candidate texture, and R the rendering transformation. Search for variations that increase a task-specific error E while respecting appearance and coverage constraints C. The constraints can enforce an approved attachment region, fixed maximum coverage, consistent color gamut, and preservation of the target’s geometric labels. The objective makes the purpose of generation auditable: it produces difficult test cases within a stated experimental envelope.

Keep search data and evaluation data separate. One set of component models, camera trajectories, and detector versions drives candidate selection; another set measures generalization. Otherwise, the generator can exploit a single render configuration and create a misleading impression of broad fragility. Save both successful and unsuccessful candidates with their seeds and configuration hashes. A test collection that retains only dramatic failures cannot establish failure frequency or support a fair comparison between perception updates.

τ* = argmax[τ ∈ C] Eₓ[E(R(x,τ))] — proposed test-bench objective / 本文测试平台目标

Measure the failure chain, not only detector scores

For a servicing task, detection quality is only the first measurement. Track whether the correct component was acquired, how long reacquisition took, whether instance identity changed, and how the pose estimator behaved after missed detections. A sequence with intermittent detections may produce unstable control references even when its frame-averaged score looks acceptable. Conversely, a tracker with a strong geometric prediction may bridge a brief gap. Sequence-level evaluation is therefore needed to identify which failures actually reach the planner.

A proposed report can present paired differences between the ordinary-texture control and the difficult-texture case: target recall change, pose-error increase, additional observation requests, and task completion change. Keep the sign convention explicit. Higher failure rate is worse for the robot even if it is useful for stress-test generation. Record recovery behavior as well: a robust system should distinguish between a valid target estimate, a request for another observation, and a condition that requires holding position. This connects perception analysis to operational behavior.

Turn hard cases into an improvement loop

The engineering value of a generated failure is the repair it enables. Group cases by mechanism: target evidence replaced by texture cues, confusion between nearby instances, localization drift, confidence collapse, or inconsistent temporal recovery. These categories lead to different interventions. Some call for additional training examples; others suggest changing image crops, adding temporal consistency checks, or combining visual classification with geometric matching. A single global augmentation policy may obscure these differences and consume training resources without resolving the relevant dependency.

After an update, rerun the untouched evaluation set and compare both robustness and nominal task performance. Preserve the clean-scene baseline: improving one stress-test family should not silently reduce sensitivity to small legitimate features. Maintain a versioned failure library with representative sequences, not merely isolated thumbnails. This makes the test assets useful across detector changes, camera upgrades, and task-planning revisions, and lets engineers see whether a fix addresses the failure mechanism or only memorizes one appearance pattern.

Review package and acceptance evidence

For local review, each generated case should carry its scene configuration, texture identifier, generation seed, camera trajectory, clean reference, matched control, and task trace. The review interface should display these views side by side. Annotate which metrics are measured and which design choices remain configurable. A useful acceptance report includes aggregate results across hardware instances, worst-case sequences, recovery latency distributions, and examples where a visually dramatic perturbation did not affect the robot. Successful resistance is as informative as failure.

The resulting workflow gives semantic appearance a defined place in space-robot verification. It moves from an abstract concern about neural-network brittleness to a reproducible question: under a specified surface, viewpoint, and task condition, does the system retain enough reliable information to perform the next operation? That question supports concrete engineering decisions about data coverage, sensor viewpoints, model choice, and recovery logic.

SOURCE PAPER & REFERENCE MATERIAL

AdvLogo: Adversarial Patch Attack against Object Detectors based on Diffusion Models

Boming Miao, Chunxiao Li, Yao Zhu, Weixiang Sun, Zizhe Wang, Xiaoyi Wang, Chuanlong Xie

arXiv preprint; v2 reviewed · 2024 · Zizhe Wang: Tsinghua University

Continue to the next report →