Deep Neural Networks Tend To Extrapolate Predictably

Katie Kang, Amrith Rajagopal Setlur, Claire J. Tomlin, Sergey Levine
2/12/2026

No official code found. Best implementation: katiekang1998/cautious_extrapolation (11 stars, last commit 2023-10-02).

Abstract

Conventional wisdom suggests that neural network predictions tend to be unpredictable and overconfident when faced with out-of-distribution (OOD) inputs. Our work reassesses this assumption for neural networks with high-dimensional inputs. Rather than extrapolating in arbitrary ways, we observe that neural network predictions often tend towards a constant value as input data becomes increasingly OOD. Moreover, we find that this value often closely approximates the optimal constant solution (OCS), i.e., the prediction that minimizes the average loss over the training data without observing the input. We present results showing this phenomenon across 8 datasets with different distributional shifts (including CIFAR10-C and ImageNet-R, S), different loss functions (cross entropy, MSE, and Gaussian NLL), and different architectures (CNNs and transformers). Furthermore, we present an explanation for this behavior, which we first validate empirically and then study theoretically in a simplified setting involving deep homogeneous networks with ReLU activations. Finally, we show how one can leverage our insights in practice to enable risk-sensitive decision-making in the presence of OOD inputs.

View on arXivView PDF

Code Implementations(1)

111Shell, PythonMay 26, 20233 years ago

Similar Papers

Cite this paper

@article{kang2026deep,
  title  = {Deep Neural Networks Tend To Extrapolate Predictably},
  author = {Katie Kang and Amrith Rajagopal Setlur and Claire J. Tomlin and Sergey Levine},
  year   = {2026},
  eprint = {2310.00873},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.00873},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.00873.svg)](https://codeofpaper.com/paper/2310.00873)

Discussion