WildMAE: Structure-Aware Masked Autoencoding for Wildlife Image Reconstruction
Organizations: The Chinese University of Hong Kong, Shenzhen
Abstract
Camera-trap imagery presents substantial variation in animal appearance, illumination, background clutter, and visual degradation. Masked autoencoders (MAEs) offer a label-free framework for modeling such data through reconstruction of randomly hidden image patches. We present WildMAE, a decoder-side extension of MAE that combines local structure-aware refinement with masked-to-visible cross-attention. A zero-gated convolutional residual path introduces a two-dimensional neighborhood prior, while gated cross-attention allows masked positions to retrieve contextual information from visible-position features without replacing the original Transformer decoder. The associated training recipe progressively introduces normalized-pixel, Sobel-edge, and perceptual objectives. In the original Snapshot Serengeti study, covering 4,744 test images at 75% masking, the reported reconstruction scores were 27.90 versus 24.33 dB PSNR, 0.840 versus 0.780 SSIM, and 0.160 versus 0.320 LPIPS for WildMAE and vanilla MAE, respectively. Additional historical records document favorable average differences under four synthetic degradation conditions and describe component variants. We present the method, experimental observations, and their scope together: the retained metrics are historical protocol-dependent results, rather than a newly reproduced, harmonized comparison or a validation of restoration from genuinely unavailable pixels. WildMAE provides a practical architectural case study for combining global token mixing with spatial and targeted contextual refinement in wildlife masked-image modeling.
Figures & tables
| Model | PSNR | SSIM | LPIPS |
|---|---|---|---|
| Vanilla MAE | 24.33 | 0.780 | 0.320 |
| WildMAE | 27.90 | 0.840 | 0.160 |
| Variant | PSNR | SSIM | LPIPS |
|---|---|---|---|
| Vanilla MAE + basic pixel loss | 24.33 | 0.780 | 0.320 |
| Cross-attention refinement only + basic loss | 25.90 | 0.813 | 0.217 |
| Local structural refinement only + basic loss | 25.73 | 0.812 | 0.224 |
| WildMAE dual refinement + basic loss | 25.75 | 0.810 | 0.221 |
| WildMAE dual refinement + staged loss | 27.90 | 0.840 | 0.160 |
| Input condition | PSNR | SSIM | LPIPS reduction |
|---|---|---|---|
| Clean | +2.591 | +0.075 | 0.095 |
| Gaussian noise | +1.128 | +0.031 | 0.052 |
| Low light | +0.078 | +0.033 | 0.018 |
| Motion blur | +1.537 | +0.026 | 0.033 |
| Random occlusion | +0.228 | +0.030 | 0.035 |
Masked Image Modeling
Masked image modeling trains visual representations by hiding image regions and learning to reconstruct their pixels or features.
See all 42 papers