I-201Texture Synthesis Detection

Pixel Analysisimage2017

Detects neural texture synthesis patterns characteristic of AI generation — Gram matrix-based style transfer leaves measurable statistical fingerprints (Gatys et al., 2015).

Neural Texture Synthesis Analysis
This method identifies images that contain textures generated by neural style transfer or neural texture synthesis:\n\n1. Gram Matrix Residual Analysis: Neural texture synthesis (Gatys et al., 2015) matches Gram matrices of feature maps from a VGG network to reproduce texture statistics. This optimization process produces textures that match second-order statistics (correlations between feature channels) but differ in higher-order statistics. The method extracts VGG-19 feature maps at layers conv1_1 through conv5_1, computes their Gram matrices, and compares the resulting correlation structure against the statistics of natural textures. Synthesized textures show unnaturally perfect Gram matrix matching at the optimization layers while deviating at non-optimized layers — a signature that natural textures do not exhibit.\n\n2. Patch-Level Near-Duplicate Detection: Neural texture synthesis generates output by iteratively optimizing a noise image. The resulting texture contains local patches that closely resemble patches from the style source but are never exact copies (unlike copy-paste). The method uses PatchMatch (Barnes et al., 2009) to find the nearest neighbor of each 7×7 patch within the same image. In synthesized textures, the distribution of nearest-neighbor distances shows a characteristic peak at small but non-zero distances, distinct from both natural textures (broader distribution) and copy-paste forgeries (peak at zero distance).\n\n3. Phase Randomization Test: Natural textures maintain specific phase relationships in the Fourier domain that are perceptually important. Neural synthesis with Gram matrix optimization preserves magnitude spectrum statistics but produces phase distributions that differ from natural textures. The method performs a phase randomization test: it compares the original image's phase spectrum against a randomized-phase version and measures the perceptual difference using SSIM. Synthesized textures show smaller SSIM differences under phase randomization because their phase relationships are already partially randomized by the optimization process.\n\n4. Multi-Scale Texture Stationarity: Natural textures show scale-dependent stationarity — they may be stationary at one scale but non-stationary at larger scales (e.g., a fabric pattern that has global variations). Neural texture synthesis typically produces textures that are stationary at all scales because the Gram matrix optimization enforces global statistics uniformly. The method tests stationarity at multiple scales by comparing texture statistics (variance, skewness, kurtosis of filter bank responses) across non-overlapping blocks at each scale. Unnaturally perfect stationarity across all scales indicates neural synthesis.
VGG-19 layers: conv1_1, conv2_1, conv3_1, conv4_1, conv5_1\nPatch size for PatchMatch: 7×7 pixels\nNearest-neighbor distance metric: normalized L2\nPhase randomization iterations: 10\nStationarity test block sizes: 32, 64, 128 pixels\nSSIM window: 11×11 pixels\nMinimum image size: 128×128 pixels
80–88% detection accuracy for Gatys-style neural texture synthesis. PatchMatch analysis achieves F1-score of 0.84 for distinguishing synthesized from natural textures. Phase randomization test provides AUC of 0.86. Performance decreases for adversarial training-based synthesis methods (StyleGAN textures) where the discriminator enforces more realistic statistics.
• Gram matrix analysis directly targets the mechanism of neural texture synthesis\n• PatchMatch reveals near-duplicate patterns invisible to human observers\n• Phase analysis provides a physics-based detection signal\n• Multi-scale stationarity test captures a fundamental difference between natural and synthetic textures\n• Method is effective regardless of the specific texture content
• Newer synthesis methods (StyleGAN3, diffusion models) produce textures with more natural higher-order statistics\n• JPEG compression destroys subtle phase relationships needed for phase analysis\n• Highly regular natural textures (wallpaper, tiled surfaces) may trigger false positives on stationarity test\n• VGG feature extraction requires GPU for reasonable processing speed\n• Adversarial attacks can modify Gram matrix residuals to evade detection
Detecting AI-generated images that use neural style transfer or texture synthesis. Identifying inpainted regions that use neural texture filling. Authenticating artworks and photographs against neural style manipulation. Forensic analysis of image backgrounds for synthetic texture replacement.