SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.00873 · 2023

Deep Neural Networks Tend To Extrapolate Predictably

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
katiekang1998/cautious_extrapolation canonical 3 of 3
FunctionStatusWhere it lives
accuracy Ran katiekang1998/cautious_extrapolation/cautious_extrapolation/utils.py
pointer only (licence: NONE) · get_code("0e096313957b8a54")
get_rew_pred_loss Ran katiekang1998/cautious_extrapolation/cautious_extrapolation/utils.py
pointer only (licence: NONE) · get_code("36e5a0b69f05d636")
string_to_dict Ran katiekang1998/cautious_extrapolation/cautious_extrapolation/utils.py
pointer only (licence: NONE) · get_code("e0855f6c3142d28a")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.00873")
get_code_for_paper("2310.00873")
have("2310.00873")

Connect an agent — have() is free.