I-064Attention Map Consistency

Sensor Forensicsimage2021

Analyzes the spatial distribution of visual detail, sharpness, and local contrast across an image to detect the unnatural attention allocation patterns characteristic of AI generation. In authentic photographs, detail distribution follows predictable optical physics: areas in the focal plane are sharp while out-of-focus areas are uniformly blurred according to the depth-of-field. AI-generated images routinely violate this principle, producing images where certain regions receive disproportionately high detail (e.g., hyper-sharp eyes in a portrait) while adjacent areas at the same depth exhibit inexplicable softness or over-smoothing—a hallmark of the generator's uneven 'attention' during synthesis.

Multi-Scale Spatial Attention Distribution Analysis
The algorithm computes three separate maps: a local sharpness map (via Laplacian variance), a local contrast map (via standard deviation in sliding windows), and a detail density map (via high-frequency energy). These three maps are then analyzed at multiple scales (fine, medium, coarse) to construct a cross-scale correlation matrix. In authentic images, the three maps are tightly correlated—sharp areas are also high-contrast and detail-rich. AI images frequently show decorrelation: an area might be sharp but lack fine texture detail, or have high contrast but unnaturally smooth internal gradients. The system flags these cross-scale decorrelation anomalies.
Analysis: Multi-Scale Sharpness/Contrast/Detail Density Maps
Metrics: Cross-Scale Correlation Matrix, Decorrelation Anomaly Index

Output: 0-100 Attention Inconsistency Score
Medium-High — 78-90% across diverse image types. Strongest on portrait and product photography, weakest on abstract art or heavily stylized images.
• Captures high-level semantic artifacts that survive compression and resizing.
• Works across all major generation methods (GAN, Diffusion, VAE).

• Multi-scale analysis provides robustness against localized perturbations.

• Produces interpretable attention maps that can be visually inspected.
• Requires sufficient image complexity; may struggle with intentionally minimalist or simple-scene compositions.
• Artistic post-processing (heavy vignetting, radial blur effects) can naturally decorrelate the attention maps.

• Performance is somewhat dependent on the specific AI generation model's architecture.
Detecting AI-generated portraits, product shots, and architectural photos where the unnatural distribution of visual attention creates subtle but perceptible 'uncanny valley' effects.