arXiv:2610.28590cs.CVOct 2026

Manuscript Offprint

arXiv:2610.28590

WildMAE: Structure-Aware Masked Autoencoding for Wildlife Image Reconstruction

Yicheng Zhang, Yujie Jin, Ke Zhang, Jiaxin Wu

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.

Keywords: masked autoencoders; wildlife camera traps; image reconstruction; cross-attention; structural refinement.

1 Introduction

Camera traps make it possible to observe wildlife at scale without continuous human presence, but the resulting images vary substantially in illumination, background, object scale, occlusion, and motion. In resources such as Snapshot Serengeti [1], even adjacent frames can depict challenging combinations of animals and cluttered natural scenes. This variability motivates image modeling approaches that can exploit visual structure without relying exclusively on species or behavior annotations. Masked image modeling is particularly appealing: a network receives a sparse set of visible patches and learns to predict those withheld during training.

Masked autoencoders (MAEs) [2] use an asymmetric Vision Transformer (ViT) [3] encoder–decoder, processing only visible patches in the encoder and reconstructing masked targets with a lightweight decoder. The full-sequence decoder already integrates positional embeddings and global self-attention; however, its patch sequence need not explicitly prioritize local two-dimensional adjacency after token mixing. For wildlife imagery, spatial continuity and targeted access to the remaining scene may be useful when predicting silhouettes, contours, and textured regions from sparse observations. This motivates an additional decoder-side inductive bias rather than a replacement of the MAE pathway.

We study WildMAE, which retains the global MAE decoder and appends two complementary refinements (Figure 1). First, a zero-gated local convolutional block processes decoder patch tokens on their restored spatial grid. Second, masked-position queries attend directly to features at visible positions, followed by a separately gated feed-forward update. In the accompanying training design, pixel reconstruction is established before edge and perceptual supervision are introduced. The intent is to combine the global context of self-attention, the locality of spatial convolution, and information retrieval targeted at masked regions.

The original project investigated this design on a 47,349-image checked subset of Snapshot Serengeti, reporting a 75%-masking comparison, component variants, and evaluations with synthetic degradations. The present manuscript turns that study into a self-contained method and results account while retaining the original measurements and specifying the evaluation setting more precisely. In particular, it distinguishes normalized-patch prediction from RGB reconstruction that uses full-input patch statistics, an important distinction when interpreting the image-quality scores.

The contributions of this work are:

  • A decoder refinement architecture combining a local spatial residual branch and masked-to-visible cross-attention while preserving the original MAE decoder pathway.

• An explicit description of the zero-gated refinement updates and a progressive pixel-edge-perceptual training formulation.

  • An organized presentation of the original wildlife-image reconstruction, component, and synthetic-degradation observations, together with clear boundaries on their interpretation and reproducibility.