[Paper Review] On the Out-of-distribution Generalization of Probabilistic Image Modelling
This paper proposes a Local Autoregressive model that improves out-of-distribution (OOD) generalization in probabilistic image modeling by focusing exclusively on local image features. By modeling local dependencies, the method achieves state-of-the-art performance in unsupervised OOD detection and enables a new lossless image compressor, NeLLoC, which achieves top compression rates with highly efficient parallel decompression.
Out-of-distribution (OOD) detection and lossless compression constitute two problems that can be solved by the training of probabilistic models on a first dataset with subsequent likelihood evaluation on a second dataset, where data distributions differ. By defining the generalization of probabilistic models in terms of likelihood we show that, in the case of image models, the OOD generalization ability is dominated by local features. This motivates our proposal of a Local Autoregressive model that exclusively models local image features towards improving OOD performance. We apply the proposed model to OOD detection tasks and achieve state-of-the-art unsupervised OOD detection performance without the introduction of additional data. Additionally, we employ our model to build a new lossless image compressor: NeLLoC (Neural Local Lossless Compressor) and report state-of-the-art compression rates and model size.
Motivation & Objective
- To investigate the factors dominating out-of-distribution (OOD) generalization in probabilistic image models, particularly in likelihood-based applications.
- To address the lack of understanding in why deep generative models generalize to OOD data despite being trained on in-distribution data.
- To improve OOD detection performance without requiring additional data by enhancing model generalization through local feature modeling.
- To design a new lossless image compressor, NeLLoC, that leverages local autoregressive modeling for high compression efficiency and parallel decompression.
- To establish a connection between OOD detection and lossless compression through shared principles of likelihood-based generalization.
Proposed method
- Proposes a Local Autoregressive model that conditions each pixel's distribution on a local receptive field rather than the full image, reducing dependency on global context.
- Uses a local autoregressive structure where each pixel is predicted based on a small, fixed-size neighborhood, enabling parallel decompression via patch-wise processing.
- Employs a learnable local context encoder to extract features from the local region, which are then used to predict the pixel distribution via a normalizing flow or similar density model.
- Applies the model to two tasks: unsupervised OOD detection using likelihood thresholds and lossless image compression using arithmetic coding based on estimated likelihoods.
- Introduces NeLLoC (Neural Local Lossless Compressor), a lossless image compressor built on the local autoregressive model, with model size and compression rate as key design metrics.
- Enables parallel decompression by splitting images into non-overlapping patches, each processed independently using the local model, achieving up to 400× speedup with minimal rate penalty.
Experimental results
Research questions
- RQ1What features primarily drive the out-of-distribution generalization ability of probabilistic image models?
- RQ2Why do deep generative models assign high likelihood to OOD data despite being trained on in-distribution data?
- RQ3Can modeling only local image features improve OOD generalization in likelihood-based tasks?
- RQ4Can a local autoregressive model achieve state-of-the-art performance in unsupervised OOD detection without additional data?
- RQ5Can such a model be used to build a highly efficient, parallelizable lossless image compressor with competitive compression rates and small model size?
Key findings
- Local features dominate OOD generalization in probabilistic image models, as global context and semantic features are less predictive for OOD data.
- The proposed Local Autoregressive model achieves state-of-the-art unsupervised OOD detection performance on CIFAR10 and ImageNet32 without using additional data.
- NeLLoC achieves state-of-the-art compression rates: 3.24 BPD on ImageNet64 and 3.25 BPD on ImageNet when trained on ImageNet32, with a model size of only 2.75 MB.
- Splitting images into 400 patches for decompression increases BPD by only 0.11 (from 3.25 to 3.34), enabling up to 400× speedup with minimal rate degradation.
- The model achieves 3.25 BPD on ImageNet64 when trained on CIFAR10 and tested on OOD data, demonstrating strong OOD generalization.
- NeLLoC achieves 2.13 BPD on SVHN (OOD) when trained on CIFAR10, outperforming prior methods like HiLLoC (2.29 BPD) and L3C (3.17 BPD), confirming improved OOD generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.