---
title: "Why ReLU Networks Yield High-Confidence Predictions Far"
description: "Why ReLU classifiers become confident on unfamiliar inputs, what the paper proves, and how adversarial confidence training helps."
canonical: "https://research.elamur.ai/free/en/papers/hein-2019-why-relu-networks-yield-high/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/hein-2019-why-relu-networks-yield-high/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Why ReLU Networks Yield High-Confidence Predictions Far Away From the Training Data and How to Mitigate the Problem

# Why ReLU Networks Yield High-Confidence Predictions Far Away From the Training Data and How to Mitigate the Problem

Paper · 2019 · Matthias Hein, Maksym Andriushchenko and Julian Bitterwolf

**Authors:** [Matthias Hein](https://md.research.elamur.ai/free/en/authors/matthias-hein/), [Maksym Andriushchenko](https://md.research.elamur.ai/free/en/authors/maksym-andriushchenko/) and Julian Bitterwolf · **Year:** 2019 · **Venue:** IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**428** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2905485203) · [IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings](https://openalex.org/S4210176548) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1812.05720)
- [DOI 10.1109/cvpr.2019.00013](https://doi.org/10.1109/cvpr.2019.00013)
- [arXiv 1812.05720](https://arxiv.org/abs/1812.05720)
- [OpenAlex](https://openalex.org/W2905485203)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Why ReLU Networks Yield High-Confidence Predictions Far Away From the Training Data and How to Mitigate the Problem

Why ReLU classifiers become confident on unfamiliar inputs, what the paper proves, and how adversarial confidence training helps. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A classifier can recognize familiar examples accurately while responding with unjustified certainty to inputs that have little connection to its training data. A digit recognizer, for instance, may assign a strong digit prediction to an image containing no digit at all. The problem is especially serious when confidence helps determine whether a system should act, consult another source of evidence, or request human review. This paper asks why such confidence arises in ReLU networks and whether training can reduce it without sacrificing performance on the intended task.

The theoretical answer concerns how these networks extend their predictions across the input space. Networks assembled from the operations studied in the paper produce scores that are affine within finitely many regions: inside each region, a matrix transformation plus an offset describes the output. Along almost every direction, moving sufficiently far from the origin eventually leaves the input inside a single unbounded region. Under a mild condition on the score slopes, a class then pulls increasingly far ahead of its competitors. Softmax converts that growing separation into confidence approaching certainty. The result concerns the architecture’s behavior over an unbounded domain, instead of a particular training failure or an unusual collection of weights.

The authors also give a contrasting result for radial basis function networks. Their distance-dependent contributions diminish away from the training examples, bringing class scores together and producing probabilities close to a uniform distribution. This establishes that the behavior found for ReLU networks is not unavoidable for every classifier. It also clarifies an important limit: fixed temperature rescaling cannot remove the ReLU result, because a finite rescaling does not stop score differences from growing indefinitely.

For image classification, where valid inputs occupy a bounded domain, the paper proposes adversarial confidence enhancing training, abbreviated ACET. Training combines ordinary labeled examples with artificial noise. Rather than merely requesting low confidence on the sampled noise, ACET searches nearby for inputs that maximize confidence and trains against those difficult cases. Across experiments using MNIST, SVHN, CIFAR-10, and CIFAR-100, the authors report substantial improvements in confidence behavior while finding little change in classification error. The strongest distinction from ordinary noise augmentation appears on adversarially modified noise. ACET also helps distinguish some adversarial examples from clean inputs, despite not being trained on adversarial versions of the original task’s examples. These are practical improvements within the evaluated settings; ACET does not overturn the architectural theorem or guarantee reliable uncertainty everywhere.

### Ideas worth borrowing

Separate score competition from evidence of familiarity. Softmax measures how strongly the available classes compete with each other. It does not independently establish that an input belongs to the kind of data on which the classifier was trained. A class can win decisively because its score extrapolates faster than the others, even when the input carries no relevant evidence. This distinction is useful whenever a system uses a normalized prediction score to decide whether an answer is trustworthy. It encourages separate evaluation of task accuracy, confidence on unfamiliar inputs, and the usefulness of confidence for rejection.

Inspect the behavior outside the sampled data. The paper’s architectural argument does not begin with a collection of embarrassing predictions. It examines what the scoring function must do along rays extending through input space. That change of viewpoint turns isolated failures into an explanation of a recurring phenomenon. Researchers can borrow this habit by asking what their function becomes beyond the regions covered by training observations. A good fit near the data says little about whether distant extrapolation becomes neutral, unstable, or increasingly decisive.

Train on difficult neighborhoods. Confidence enhancing data augmentation, or CEDA, asks for uncertainty at sampled noise inputs. ACET strengthens the request by searching around those inputs for a more confident prediction. The difference matters because good behavior at isolated training points can coexist with nearby failures. The reusable idea is to identify a behavior that should persist under permitted variation, search for local violations, and train against those violations. Here, the desired behavior is low confidence around artificial noise, rather than correct classification around a labeled image.

Use simple negative data with a clear purpose. The authors generate artificial images rather than requiring a separate collection representing every possible unfamiliar task. The noise does not try to describe the entire outside world. It supplies training locations where confident assignment to the original classes is inappropriate. This is useful when collecting representative negative examples is difficult, provided the artificial inputs are plausibly outside the intended distribution. The paper also supplies the necessary caution: success on such negatives must be checked against other kinds of unfamiliar data.

Evaluate an uncertainty method adversarially. Random noise alone gives an incomplete picture of whether confidence has become reliable. The authors therefore optimize noise inputs to increase confidence at evaluation time, using a stronger search than during training. This exposes a weakness in CEDA that ordinary noise evaluation can obscure. The broader lesson is that an uncertainty mechanism should face examples selected to challenge its decision rule, alongside ordinary held-out data. A favorable average on easy negatives does not establish resistance to deliberate search.

Keep absolute confidence and ranking quality distinct. Mean maximum confidence describes the values a classifier assigns. AUROC describes how well those values order familiar and unfamiliar inputs. A classifier can improve one property without making the other satisfactory. The paper’s confidence histograms add another view by revealing whether an average conceals a smaller collection of highly confident failures. Together, these measurements offer a useful pattern for evaluating systems that use scores both as probabilities and as signals for deciding when to abstain.

Respect genuine overlap between tasks. Some handwritten letters resemble digits closely enough that a digit recognizer’s confident response is understandable. Treating every example from a differently named dataset as deserving uniform confidence would ignore that visual overlap. The authors’ inspection of EMNIST examples makes this issue concrete. The idea transfers to evaluation design: unfamiliar dataset membership and absence of relevant evidence are different conditions. An uncertainty benchmark becomes more informative when its interpretation accounts for similarities that a system can legitimately recognize.

### How Mova uses it

For Mova, a small, transparent language system implemented in Rust, the most useful contribution is a way to reason about confidence boundaries. The paper provides no evidence of an implemented Mova feature, and its experiments concern image classifiers. Any application to Mova should therefore be described as a design possibility. The direct lesson is that a decisive score should be accompanied by an account of what supports it.

A possible application would be to distinguish the strongest available interpretation from the decision to accept that interpretation. Suppose a component ranks candidate analyses of an input. A large separation between the leading candidates may show that one analysis fits better than its competitors. It need not show that any candidate is appropriate. The ReLU theorem demonstrates a precise version of this problem for a particular architecture and softmax scoring rule. For Mova, it motivates checking whether the system has adequate evidence for making the decision at all.

Transparency could make that distinction visible. A future confidence mechanism could expose the observations or rules supporting an interpretation, along with the conditions under which the system declines to commit. This would be an engineering response to the paper’s concern, rather than an implementation of ACET itself. The paper does not establish that a rule-based score, a retrieval score, or any other Mova component shares the same mathematical failure. That would require examining the actual scoring function and its input domain.

The contrast between CEDA and ACET also suggests an evaluation strategy. If a language component should remain uncertain on unsupported inputs, checking a collection of arbitrary strings would be only a starting point. A more demanding assessment would search for variations that make the component unusually decisive while leaving the underlying evidence inadequate. The transferable principle is the search for failures around negative examples. The paper’s pixel perturbations and image-space distance constraint cannot simply be carried over to language.

Defining those variations would be a substantive part of any Mova experiment. In the image study, artificial noise provides a relatively clear source of inputs outside the intended task. In language, an unfamiliar form can still carry a valid meaning, and a small surface change can alter an answer legitimately. A proposed test would therefore need an explicit account of which inputs lack sufficient support and which changes preserve that condition. The paper motivates this requirement but does not solve it for text.

Mova could also borrow the paper’s separation of evaluation questions. A confidence feature should be checked for its effect on ordinary task performance, its behavior on unsupported inputs, and its ability to rank acceptable decisions above questionable ones. Looking at individual failures would remain valuable even when an average improves. This follows the role played by the paper’s confidence histograms and its inspection of the most confident unfamiliar images.

The architectural result offers a final discipline for a transparent implementation: explain what a score guarantees. If Mova eventually uses a ReLU scoring component with softmax outputs, the theorem would become relevant under its stated assumptions. If it uses a different mechanism, the appropriate question would be what that mechanism does outside its supported cases. The paper supplies a rigorous warning against equating numerical decisiveness with justified knowledge, together with a practical example of how training and evaluation can address part of that gap.

### The problem and its context

#### Accuracy leaves an unanswered question

A successful classifier learns to distinguish the categories represented in its training data. Ordinary testing asks whether those distinctions generalize to new examples from the same task. That is necessary, but it leaves another question unresolved: what happens when the input should not be assigned confidently to any of the available categories?

The paper treats this as a basic reliability requirement. A system deployed in a medical setting or an autonomous vehicle may encounter an input unlike anything its training task covered. In such a situation, a confident prediction can interfere with the decision to seek additional evidence. Low confidence would not itself diagnose the problem, but it could allow another sensor or a human expert to take over.

The difficulty is that the classifier still produces an output. A network trained to choose among a fixed set of classes has no automatic guarantee that an unfamiliar input will receive a cautious response. Its scoring function extends beyond the training examples, and the normalization applied to those scores continues operating there. The paper investigates what that extension implies for a widely used family of architectures.

This belongs to the broader concern of [bias, fairness and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/), but the paper isolates a specific technical issue. It does not ask whether a prediction is socially appropriate or whether the training data represents a population adequately. It asks whether a classifier can become extremely confident where its task provides little reason for such certainty.

#### Different kinds of overconfidence

The introduction distinguishes unfamiliar-input confidence from overconfidence on the original task. A classifier can assign probabilities that are too strong even when evaluated on examples drawn from the distribution it was trained to handle. Calibration methods address that relationship between predicted probability and observed correctness.

Out-of-distribution detection asks a different question. Here, the input may belong to another task or may be artificial noise. A well-calibrated classifier on familiar data does not automatically become a reliable detector of such inputs. The authors cite earlier work reporting that uncertainty methods useful within a task can fail when asked to recognize data outside it.

Adversarial examples form another related problem. These are constructed by modifying an input slightly so that the classifier’s decision changes. The paper connects this line of research to [Explaining and Harnessing Adversarial Examples](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-explaining-harnessing-adversarial-examples/) and other work on adversarial manipulation. The defining feature is the small change relative to an original example, rather than great distance from the training distribution.

These distinctions matter because an intervention can address one problem without resolving the others. Improving probability calibration on clean examples does not establish low confidence on noise. Reducing confidence on random noise does not establish resistance to adversarial modifications of that noise. Improving confidence on adversarial examples does not establish that the classifier now predicts their labels correctly.

#### What earlier approaches attempted

The paper describes several existing approaches to uncertainty and unfamiliar-input detection. Some adjust the classifier’s outputs, including temperature rescaling of softmax scores. Others use ensembles or dropout-based uncertainty estimates. These methods offer ways to change or interpret confidence, but the authors question whether output adjustment can overcome the extrapolation behavior they establish.

Another group of approaches introduces a generative component. Such a component may represent the intended data distribution or produce examples near its boundary. Training can then encourage the classifier to distinguish familiar inputs from the generated alternatives.

The authors regard this as a significant direction while noting a difficulty reported in the work they cite: a generative system can assign unexpectedly high density to inputs outside the class of data it is supposed to represent. A high density estimate is therefore not automatically reliable evidence of familiarity. Their proposed method avoids depending on a generative description of the full image distribution.

A rejection option provides a further response. Instead of always issuing a class decision, a classifier can decline when its uncertainty is sufficiently high. Yet rejection requires a useful signal. If an unfamiliar input receives almost complete softmax confidence, a rule based on low confidence has no reason to reject it. The paper’s negative result concerns this failure of the signal, rather than the general desirability of allowing abstention.

#### Why architecture enters the argument

The authors focus on networks whose operations yield continuous piecewise affine scores. ReLU and leaky ReLU activations belong to this setting. So do the fully connected, convolutional, and residual constructions considered in the paper, together with average or max pooling.

This scope is broader than a plain stack of dense layers. Residual connections do not remove the relevant structure. The experiments accordingly include a residual architecture associated with [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/).

A piecewise affine function can behave differently in different regions, but it has a simple form inside any fixed region. The paper uses that fact to move from a description of network operations to a statement about distant confidence. Its central explanation is therefore structural: the observed failures follow from how the score function continues across space.

The contrasting radial basis function result sharpens the argument. It shows a scoring mechanism whose class differences vanish as an input becomes sufficiently distant from its training centers. The authors use this as evidence that cautious distant behavior is mathematically possible, while leaving open how to obtain a similarly useful guarantee for a suitable neural architecture.

### The method, step by step

The paper develops its method through a theoretical diagnosis followed by a training intervention. The diagnosis explains why distant confidence appears in ReLU networks. The intervention addresses the practically relevant bounded image domain by teaching the classifier to remain uncertain around artificial negative examples.

From architectural diagnosis to confidence training The steps in order.

#### Begin with class scores

Let an input be represented by a vector. The network produces a score for each available class. These scores are not yet probabilities. Softmax turns them into a positive distribution whose entries sum to unity.

```
Pₖ(x) = exp(fₖ(x)) / ∑ᵣ₌₁ᴷ exp(fᵣ(x))
```

Here, x is the input, K is the number of classes, and fₖ(x) is the network’s score for class k. The index r runs through all classes in the denominator. Pₖ(x) is the resulting confidence assigned to class k, and exp is the exponential function.

The paper studies what happens when one score increasingly exceeds the others. Because softmax depends on relative scores, a large common value shared by every class would not create a preferred class. The crucial quantity is the separation between competing scores.

That observation also explains why low confidence means something specific in this work. The target for an unfamiliar input is a distribution close to uniform across the available labels. It does not introduce a new category meaning “unfamiliar.” Instead, it suppresses the strength of the preference among the original classes.

#### Express the hidden layers

For the theoretical analysis, the authors write the network as a sequence of affine transformations and activations. The ReLU activation passes positive values through and sets negative values to zero.

```
σ(t) = max{0, t}
```

The symbol t denotes a scalar pre-activation value, and σ denotes the activation function. The maximum selects the larger of zero and t.

The input becomes the initial hidden representation.

```
g⁽⁰⁾(x) = x
```

Here, g⁽⁰⁾ is the representation before any learned layer, and x is the original input vector.

Each hidden layer first applies its weights and offset.

```
f⁽ᵏ⁾(x) = W⁽ᵏ⁾g⁽ᵏ⁻¹⁾(x) + b⁽ᵏ⁾
```

The superscript k identifies the layer. W⁽ᵏ⁾ is its weight matrix, b⁽ᵏ⁾ is its offset vector, and g⁽ᵏ⁻¹⁾(x) is the preceding layer’s activated representation. The vector f⁽ᵏ⁾(x) contains values before the current activation.

```
g⁽ᵏ⁾(x) = σ(f⁽ᵏ⁾(x))
```

The function σ now acts on each component of f⁽ᵏ⁾(x). The resulting vector g⁽ᵏ⁾(x) is passed onward. The paper uses L hidden layers and a final output layer.

```
f⁽ᴸ⁺¹⁾(x) = W⁽ᴸ⁺¹⁾g⁽ᴸ⁾(x) + b⁽ᴸ⁺¹⁾
```

The symbols W⁽ᴸ⁺¹⁾ and b⁽ᴸ⁺¹⁾ identify the final layer’s weights and offset. Its output contains the class scores. This final transformation has no ReLU applied afterward in the representation used for the argument.

The key simplification comes from fixing which hidden units are active. Once that pattern is fixed, each ReLU behaves as either an identity operation or a zeroing operation. The entire composition then becomes affine.

#### Describe an affine region

The authors encode the activation pattern with diagonal matrices. A matrix Σ⁽ˡ⁾ records whether each hidden unit is active. Its relevant diagonal entry is unity when that unit’s pre-activation is positive and zero otherwise. Another diagonal matrix, Δ⁽ˡ⁾, records pre-activation signs.

These matrices allow the network’s layerwise expressions to be collected into an effective matrix and offset. Within a region where the activation pattern remains fixed, the output has the following form.

```
f(z) = Vz + a
```

Here, z is an input within the region, V is the effective matrix obtained from the network weights and activation choices, and a is the effective offset. The function f produces all class scores. Although the network may contain many layers, its restriction to that region has this simple expression.

The region itself is determined by inequalities saying that the hidden units retain their activation signs. The paper collects those constraints as an intersection of half-spaces.

```
Q(x) = ⋂ₗ₌₁ᴸ ⋂ᵢ₌₁ⁿˡ Γₗ,ᵢ
```

The set Q(x) is the region containing input x. The index l identifies a hidden layer, nˡ denotes its number of units, and i identifies a unit within that layer. Each Γₗ,ᵢ is the half-space enforcing the corresponding activation-sign constraint.

The number of such constraints follows the total number of hidden units.

```
N = ∑ₗ₌₁ᴸ nₗ
```

In this expression, N counts hidden units, L counts hidden layers, and nₗ is the width of layer l. The paper later also uses N for the number of training examples; the meaning follows the surrounding construction.

This geometric description matters because the regions are convex and there are finitely many of them. The proof uses those properties instead of requiring an explicit enumeration of all activation patterns.

#### Follow a ray to its final region

Take an input direction and scale it outward. The authors first prove that the resulting ray eventually stays within a single region. Intuitively, a convex region cannot be left and then entered again farther along the same ray while an intervening segment lies elsewhere. With finitely many regions available, endless switching is impossible.

After that final transition, the score for each class changes affinely with the scaling factor. The matrix row associated with a class determines its slope along the chosen direction. Unless competing rows produce an exceptional tie, a class has the greatest slope.

The theorem assumes that the affine matrix in each region has no identical class rows. Under this condition, the directions producing a slope tie form an exceptional set of measure zero. This is the mathematical content behind the statement that the result holds for nearly every direction.

For sufficiently large scaling, the class with the greatest slope dominates. The probability guarantee can be written as follows.

```
Pₖ(αx) ≥ 1 − ε
```

Here, x specifies a direction, α is a positive scale factor, k is the class that eventually dominates, and ε is any positive tolerance. The theorem says that a sufficiently large α exists for nearly every x under the stated condition.

The limiting claim is stronger than reaching a particular high threshold.

```
lim₍α→∞₎ Pₖ(αx) = 1
```

The limit describes what happens as the scale α grows without bound. The winning class’s softmax confidence approaches unity.

The mechanism becomes clear by dividing the softmax numerator and denominator by the winning exponential.

```
Pₖ(αx) = 1 / [1 + ∑ₗ≠ₖ exp(α⟨vₗ − vₖ, x⟩ + aₗ − aₖ)]
```

The vectors vₗ and vₖ are rows of the effective matrix in the final region. The values aₗ and aₖ are the corresponding offsets. The brackets ⟨·,·⟩ denote an inner product, and l ranges over competing classes.

For the dominant class k, every slope difference inside those exponentials is negative. Increasing α drives the competing terms toward zero. Nothing in this argument requires the scaled input to resemble a training example. Confidence emerges from score extrapolation.

#### Understand why temperature is insufficient

Temperature rescaling replaces the softmax score by a scaled version.

```
Pₖ,T(x) = exp(fₖ(x)/T) / ∑ₗ₌₁ᴷ exp(fₗ(x)/T)
```

The positive quantity T is the temperature, while Pₖ,T(x) is the resulting class confidence. All other symbols retain their earlier meanings.

A fixed positive temperature can soften a finite score separation. It cannot stop a separation that grows indefinitely along the ray. The authors therefore conclude that this adjustment cannot eliminate the theorem’s distant high-confidence inputs.

This conclusion has a precise scope. It concerns the softmax confidence derived from the affected scores. It does not establish that no external information could recognize an unfamiliar input. Rather, the original confidence values cannot be relied on to provide that recognition in the constructed cases.

#### Compare a distance-decaying classifier

The radial basis function comparison starts with scores assembled from training-centered responses.

```
fₖ(x) = ∑ₗ₌₁ᴺ αₖₗ exp(−γ‖x − xₗ‖₂²)
```

Here, x is the evaluated input, xₗ is training example l, and N is the number of training examples. The coefficient αₖₗ controls the contribution of center l to class k. The positive parameter γ controls distance decay. The expression ‖x − xₗ‖₂ is Euclidean distance.

As the input moves away from every center, each exponential contribution diminishes. The theorem quantifies how far is sufficient by considering the nearest center.

```
r_min = minₗ₌₁,…,ᴺ ‖x − xₗ‖₂
```

The quantity r_min is the distance from x to its closest training example. It captures the requirement that the input be far from all centers, rather than merely far from a selected example.

The bound also depends on differences between class coefficients.

```
α = maxᵣ,ₖ ∑ₗ₌₁ᴺ |αᵣₗ − αₖₗ|
```

In this formula, α is a bound derived from the coefficients, rather than the scaling factor used in the ReLU argument. The indices r and k range over classes, and l ranges over training centers. The absolute values measure coefficient differences.

The sufficient distance condition is:

```
r_min² ≥ (1/γ) log[α / log(1 + Kε)]
```

The symbols γ and α describe the RBF classifier, K is its class count, and ε is the allowed deviation from uniform probability. The logarithm is denoted by log.

Under that condition, every class satisfies the following bound.

```
1/K − ε ≤ Pₖ(x) ≤ 1/K + ε
```

The quantity 1/K is the uniform class probability. The result therefore controls all class confidences, not just the largest.

The authors do not present this theorem as evidence that the tested image systems should simply be replaced by RBF classifiers. Its role is conceptual and mathematical: it demonstrates a form of distant behavior that meets the desired uncertainty requirement.

#### Add an unfamiliar-input objective

For the practical method, the authors assume access to an artificial distribution whose overlap with the intended data distribution is absent or negligible. They denote these distributions by p_out and p_in.

The ordinary classification loss is cross-entropy.

```
L_CE(yᵢ, f(xᵢ)) = −log Pᵧᵢ(xᵢ)
```

The pair xᵢ, yᵢ contains training input i and its correct label. The term Pᵧᵢ(xᵢ) is the softmax confidence assigned to that label. Minimizing L_CE encourages accurate, confident classification of labeled examples.

For an artificial input, the paper penalizes the greatest log confidence.

```
L_out(f, z) = maxₗ₌₁,…,ᴷ log Pₗ(z)
```

The input z comes from the artificial distribution, f is the scoring function, and l ranges over classes. Minimizing this loss reduces the largest class probability. Since the probabilities must sum to unity, the uniform distribution is the desired minimum-confidence allocation.

CEDA combines the objectives directly.

```
(1/N) ∑ᵢ₌₁ᴺ L_CE(yᵢ, f(xᵢ)) + λ E_Z[L_out(f, Z)]
```

Here, N is the number of labeled training examples, λ controls the relative contribution of artificial inputs, and E_Z denotes expectation over Z drawn from p_out. The first term preserves the classification task; the second discourages confidence on the sampled negatives.

The paper describes minibatch training with B original examples and an added number of artificial examples determined by the ceiling of λB. In the experiments, λ=1, so the training batches contain 50% original examples and 50% noise examples.

#### Replace isolated negatives with difficult neighbors

CEDA can succeed at sampled noise points while leaving confident predictions nearby. ACET changes the objective by considering the worst confidence inside a neighborhood.

```
(1/N) ∑ᵢ₌₁ᴺ L_CE(yᵢ, f(xᵢ)) + λ E_Z[max‖u−Z‖ₚ≤ε L_out(f, u)]
```

The variable u is a candidate modification of artificial input Z. The norm ‖·‖ₚ defines the neighborhood, and ε sets its radius. The inner maximum searches for the nearby input with the largest unfamiliar-input loss.

In the experiments, p=∞. This norm limits the largest absolute change in an individual input coordinate. The paper uses ε=0.3 for the artificial-input neighborhoods across the datasets.

For each sampled noise image, training approximately solves the inner problem.

```
max‖u−z‖ₚ≤ε L_out(f, u)
```

Here, z is the sampled image and u is its modified version. The network parameters are held fixed during this search. The resulting difficult input then contributes to the training update.

The implementation adapts the projected gradient procedure used in adversarial training. The search tries to increase confidence while remaining within the allowed neighborhood. Training then acts in the opposite direction, reducing confidence on the selected input.

This should not be confused with ordinary adversarial training on labeled images. ACET’s adversarial inputs begin from noise, and its target is uncertainty. It does not train the network to recover the correct label of a perturbed original example.

#### Construct the noise and train

The artificial distribution combines randomly permuted training images with uniformly generated images. Pixel permutation disrupts the original spatial arrangement. Uniform generation supplies another kind of artificial input without depending on the original image’s structure.

The authors then smooth these images with a Gaussian filter whose standard deviation σ lies in [1.0,2.5]. Smoothing introduces more low-frequency structure. Because it reduces contrast, they rescale the image globally so its range again reaches [0,1].

This construction matters because purely independent pixel noise is only a narrow kind of negative example. The filtering and permutation introduce variation while retaining the authors’ preference for a task-agnostic artificial distribution. The method still assumes these inputs are overwhelmingly outside the intended task.

The experiments use a LeNet architecture for MNIST and a ResNet architecture for the other training datasets. All conditions receive weight decay with parameter 5 · 10⁻⁴. The authors describe this as important because weight decay itself can reduce excessive confidence, making the ordinary-training baseline stronger.

ACET uses 40 projected gradient iterations with stepsize 0.0075 during training. Each training condition runs for 100 epochs. MNIST uses [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/), while the other training tasks use stochastic gradient descent with momentum.

The MNIST initial learning rate is 10⁻³. For SVHN and CIFAR-10, the stated initial rate is 0.1. At epochs 50, 75, and 90, the schedule divides the learning rate by 10. Ordinary augmentation includes random crops throughout, with random mirroring for the CIFAR tasks. The authors also release an official implementation of the training and evaluation procedure.

### Experiments and results

#### Compare the training choices on several tasks

The main comparison holds the classification task and architecture fixed while changing how confidence is trained. Plain training supplies the baseline. CEDA adds sampled artificial inputs with a low-confidence objective. ACET adds the search for difficult neighbors around those artificial inputs.

Training takes place separately on MNIST, SVHN, CIFAR-10, and CIFAR-100. The authors then evaluate ordinary task performance and confidence on other inputs. This structure tests whether the intervention can improve unfamiliar-input behavior without relying on the unfamiliar evaluation dataset during training.

For MNIST, the unfamiliar natural-image evaluations include EMNIST, Fashion MNIST, and grayscale CIFAR-10. These comparisons cover different degrees of similarity. Handwritten letters can resemble digits, whereas grayscale natural images are more clearly separated from the digit-recognition task.

For the other training tasks, the evaluation draws from alternative image datasets, including an ImageNet subset constructed to exclude classes resembling CIFAR-10. The classroom portion of LSUN also supplies unfamiliar images. The authors use the applicable datasets that were not used as the training task.

This is an important condition on the results. The method does not select a separate parameter configuration for each unfamiliar dataset, and those evaluation datasets do not provide the negative examples used in training. The reported transfer therefore concerns confidence learned from the artificial noise distribution.

#### Measure confidence in several ways

Test error measures whether the intervention preserves ordinary classification performance. The authors also report mean maximum confidence, abbreviated MMC.

```
MMC = meanₓ[maxₖ₌₁,…,ᴷ Pₖ(x)]
```

The maximum selects the most confident class for each evaluated input x. The mean averages those values over the evaluation set. K is the number of classes, and Pₖ(x) is the softmax confidence.

For familiar inputs, high confidence can be appropriate when predictions are correct. For clearly unrelated inputs, lower MMC is the intended behavior. The same number therefore needs different interpretation depending on the evaluated data.

AUROC measures a different property. The authors vary a threshold on maximum confidence and assess how well it separates familiar inputs from unfamiliar ones. Better ranking produces a better detection curve, even if the absolute confidence values remain imperfect.

They also report the false positive rate at 95% true positive rate. In this setting, the threshold is chosen to retain the specified proportion of familiar inputs, and the false positive rate describes how frequently unfamiliar inputs pass that threshold. Lower values are preferable.

The appendix explains why these metrics need not agree. AUROC evaluates ordering instead of the absolute probability scale. Histograms reveal whether confidence values cluster near uniformity, remain concentrated at high values, or contain a mixture of easy and difficult cases. The paper uses these distributions to interpret the aggregate results.

#### Use stronger searches at evaluation time

The evaluation includes ordinary generated noise, adversarially modified noise, and adversarial versions of the original task’s test images. These should be read as separate tests.

For adversarial noise, the objective is to maximize confidence around an artificial image. Evaluation uses 200 projected gradient iterations with stepsize 0.0075 and radius ε=0.3 under the infinity norm. This search is stronger in iteration count than the 40-iteration search used during ACET training.

For adversarial examples based on familiar test images, the authors use 80 iterations. On MNIST, the settings are ε=0.3 and stepsize 0.0075. For the other tasks, they use ε=0.1 and stepsize 0.0025.

The noise attack tests whether the classifier has merely learned to be uncertain at typical sampled negatives. The attack on familiar examples asks whether the confidence intervention also changes behavior near the original task. The latter is a possible secondary benefit rather than the direct training target.

#### Main outcomes across training conditions

The authors report little difference in test error between the training approaches. Within these experiments, requesting uncertainty on artificial inputs does not produce a substantial loss of ordinary generalization performance.

Plain training remains relatively confident on noise and performs poorly when that noise is optimized to increase confidence. This is the practical failure the intervention aims to address. The network can classify its intended task successfully while leaving large confidence values on inputs that do not warrant them.

CEDA reduces confidence on ordinary noise. Its weakness appears when evaluation searches around those noise images. Apart from the MNIST case, adversarial noise commonly recovers high-confidence predictions. The result shows why sampled negative examples alone provide an incomplete constraint.

ACET performs more consistently on the adversarial-noise evaluation. Its advantage is therefore more specific than a general benefit from adding extra data. The inner search during training changes how well uncertainty survives a later search for local failures.

On unrelated image datasets, CEDA and ACET typically improve MMC and AUROC. The authors identify strong qualitative gains for Fashion MNIST under a MNIST-trained classifier and for LSUN under an SVHN-trained classifier. They also emphasize that improvement is harder when the unfamiliar images resemble structures relevant to the original task.

#### A concrete comparison on grayscale natural images

The appendix examines individual predictions from classifiers trained on MNIST. Grayscale CIFAR-10 provides images that are visibly distinct from handwritten digits. Here, the ACET classifier’s average confidence is described as close to 10%, while individual examples can still receive noticeably higher values.

The following chart compares the largest individual confidences reported in that analysis. It concerns the inspected grayscale CIFAR-10 examples under MNIST-trained classifiers; it is not a comparison of test error or dataset-wide MMC.

MNIST-trained classifiers on grayscale CIFAR-10, highest reported individual confidence ACET greatly reduces the strongest reported confidence on these unrelated images.

**The numbers**

| System or setting | maximum class confidence % |
| --- | --- |
| Plain | 99.60 |
| ACET (this paper) | 40.41 |

This comparison illustrates both the gain and its limit. Ordinary training can be nearly certain about a digit label on an unrelated natural image. ACET makes that behavior much less extreme, but its most confident reported example remains above a uniform digit prediction.

The result is especially relevant because grayscale CIFAR-10 was not used as the negative training distribution. The improvement transfers from artificial noise to this unfamiliar collection. It does not show that every possible unrelated image receives uniform confidence.

#### Adversarial examples show a secondary benefit

The authors find improved AUROC for adversarial examples under ACET across the training datasets. This means confidence becomes more useful for distinguishing those attacked inputs from clean examples.

For MNIST, the appendix reports an average confidence of 85.4% on adversarial images under ACET. That remains high in absolute terms. The finding supports a relative improvement in confidence behavior, instead of a claim that adversarial examples generally become uncertain.

The confidence histograms show that ACET assigns low confidence to a meaningful portion of attacked MNIST inputs. CEDA has less benefit in this comparison. The distinction is interesting because neither confidence-enhancing procedure was trained on adversarial versions of MNIST examples; ACET’s difficult training inputs came from noise.

The paper interprets this as evidence that encouraging uncertainty away from the task can also affect some failures close to it. That interpretation should remain tied to the measurements. Detecting more attacks through confidence is different from preventing their label changes.

#### Scaling confirms the architectural result

The authors also test the construction used in the theorem. They sample uniform noise and search for the smallest scale α that produces 99.9% confidence. The reported scaling statistic is a median over 10,000 trials.

The outcome matches the theoretical prediction: scaling can produce extremely confident outputs for the ReLU architectures under every training condition. ACET requires substantially greater scaling than plain training, showing that the intervention changes distant behavior while leaving the asymptotic phenomenon intact.

These scaled inputs often leave the valid image domain. The authors therefore perform a related experiment that projects scaled inputs back into [0,1]ᵈ and measures the fraction exceeding 95% confidence. ACET produces a much smaller fraction than plain training across the datasets.

The distinction between these experiments is essential. Unrestricted scaling probes the theorem directly. Projection probes a bounded image-domain construction whose behavior is empirical. Together, they show why an architectural impossibility and a useful practical mitigation can coexist.

### What the ablations show

The paper’s main controlled comparison is between plain training, CEDA, and ACET. It does not present a broad component-by-component study of the noise generator or an extensive sweep over neighborhood sizes. Instead, it combines the training comparison with adversarial evaluation, scaling experiments, confidence distributions, and inspections of individual images.

#### Noise exposure explains part of the improvement

Comparing plain training with CEDA isolates the effect of adding artificial inputs and requesting uncertainty on them. CEDA frequently makes predictions much less confident on ordinary noise and improves behavior on unfamiliar image collections.

This establishes that direct negative confidence supervision has value even without the robust optimization step. The network does not need a separate generative account of the unfamiliar evaluation datasets to learn a more cautious response to some of them.

The result is also bounded by what the experiment changes. CEDA uses both a particular noise construction and a particular confidence loss. The paper does not separately establish how much improvement comes from permutation, smoothing, contrast restoration, or uniform noise. The comparison supports the combined augmentation procedure.

#### Adversarial noise reveals the remaining gaps

The difference between CEDA and ACET becomes clearest when the evaluation actively searches for confident neighbors of noise. CEDA can look effective on a sampled point while failing nearby.

That pattern is the paper’s practical argument for robust optimization. Training on many negative points does not necessarily constrain the intervening or neighboring regions sufficiently. The inner maximization identifies locations that ordinary sampling may miss.

The stronger evaluation search makes this comparison more informative. ACET trains with 40 iterations but is tested with 200 iterations on adversarial noise. Its advantage therefore survives an increase in the search effort used to challenge it.

This does not prove that the inner maximization has been solved globally. It does show that the training benefit is not limited to matching the exact iteration budget used during training. The evaluation supplies a more demanding empirical check.

MNIST is an important qualification. CEDA already performs well on adversarial noise there, whereas its failures are more pronounced on the other tasks. The added value of ACET depends on the task and the behavior of the underlying classifier, even though its overall pattern is more consistent.

#### Related data tests the meaning of uncertainty

The EMNIST inspection asks whether apparently undesirable confidence may sometimes be justified. Letters and digits are different labels in different datasets, but their written forms can overlap.

The authors note that a handwritten “o” can look like a digit “0,” and an “i” can resemble “1.” They therefore inspect letters such as “a,” “b,” “c,” and “d,” whose usual forms are less directly identical to digits.

Even among those letters, the most confident examples frequently resemble digits. Both the plain and ACET classifiers can therefore make strong predictions that are understandable from the image itself. Dataset membership alone is insufficient to declare every such response unreasonable.

This analysis explains why EMNIST gains are weaker than gains on more clearly unrelated data. An ideal uncertainty system should not necessarily suppress genuine digit-like evidence merely because the image originated in a letter dataset. The evaluation has to distinguish label-set mismatch from absence of relevant structure.

#### Individual images expose what averages conceal

The appendix examines low-confidence MNIST predictions as well as high-confidence unfamiliar predictions. For the original task, the least confident images tend to be ambiguous, broken, rotated, or otherwise difficult. This suggests that uncertainty remains connected to recognizable difficulty on the intended data.

For grayscale CIFAR-10, the contrast is different. Ordinary training assigns extreme confidence to images without a digit-like appearance. ACET reduces those responses markedly, although some individual values remain above the near-uniform average.

This is why the individual inspection adds information beyond MMC. A low average can coexist with a tail of much more confident outputs. If deployment decisions depend on avoiding rare but decisive mistakes, that tail deserves attention.

The histograms serve a related purpose. On several evaluations they reveal shifts toward lower confidence under CEDA and a further shift under ACET. For CIFAR-100 adversarial noise, the authors describe an especially sharp pattern: the attack tends either to reach 100% confidence or to make no improvement. It succeeds frequently against CEDA and only rarely against ACET.

#### Scaling separates mitigation from prevention

The unrestricted scaling analysis acts as a controlled test of the central theoretical mechanism. It does not ask whether random unfamiliar examples happen to receive high confidence. It deliberately follows the construction that should eventually produce it.

ACET delays the point at which the target confidence is reached. That is evidence that the training intervention affects regions far beyond the ordinary examples. Yet the target remains reachable, confirming that training has not removed the architectural behavior.

Projection back into the image box asks a different question: whether a related construction remains troublesome when inputs are forced to satisfy image-range constraints. The lower fraction of overconfident ACET outputs supports practical mitigation within that bounded setting.

Neither analysis alone would tell the whole story. The unbounded experiment could make the practical method appear futile, while the bounded experiment could encourage an overly broad claim of resolution. Their combination shows the intended distinction.

#### Confidence separation gets harder on some tasks

The ROC analyses reveal that benefits vary across datasets. CIFAR-10 presents a harder confidence-separation problem than MNIST or SVHN. For LSUN under CIFAR-10 training, ordinary training is even slightly better in the reported ROC discussion.

CIFAR-100 shows a similar qualitative pattern to CIFAR-10, but confidence is less effective for distinguishing familiar from unfamiliar examples. The authors suggest that its greater class count and higher test error contribute to more overlap between the confidence distributions.

This is an interpretation offered by the authors, instead of an isolated causal test. The experiments do not vary only the number of classes while holding the rest of the problem fixed. Even so, the observation usefully limits the conclusion: confidence enhancement does not make confidence equally informative across tasks.

### Limitations

#### The authors’ stated boundaries

The most important stated boundary concerns the input domain. The ReLU theorem allows the input scale to grow without limit. Images lie inside [0,1]ᵈ, so the theorem does not directly prove arbitrarily confident failures within the valid image box.

The authors address this distinction explicitly. ACET is motivated as a practical response for bounded image inputs, while the scaling experiment illustrates the unbounded architectural result. These are complementary claims with different kinds of support.

The theorem also has a condition on the affine matrices. Competing class rows must be distinct within the regions covered by the statement. The authors regard this as a weak restriction for ordinarily trained networks, but it remains an assumption. Directions with tied slopes are excluded through the almost-everywhere qualification.

They further acknowledge that changing the training objective cannot eliminate the asymptotic result for the studied architecture. Their own scaling experiments demonstrate this. ACET changes how readily extreme confidence is reached; it does not establish that such confidence becomes impossible.

The noise method assumes that artificial inputs have negligible overlap with the intended distribution. The robust neighborhood creates a related concern: a confidence-maximizing neighbor could enter a region that genuinely belongs to the task. The authors argue that this should have negligible probability for their generic noise construction. That is part of their justification for the method, not a universal guarantee for arbitrary negative distributions.

Finally, related datasets create a stated interpretive limit. Some unfamiliar examples can look like valid members of the original classes. The paper does not demand uniform confidence whenever a dataset name changes, and its EMNIST discussion explains why such a demand would be inappropriate.

#### Limits visible in the experimental design

The experiments concern image classification. They do not establish that the same noise construction, distance measure, or perturbation radius is suitable for language, structured data, or another input type. ACET’s general objective can be written broadly, but useful negative examples and meaningful neighborhoods remain task-dependent choices.

The evaluation covers several unfamiliar image collections and artificial inputs, rather than all possible departures from the training distribution. Transfer to grayscale CIFAR-10 is encouraging, but it cannot establish universal unfamiliar-input detection. A different kind of unfamiliar example could interact with the learned score geometry differently.

The attacks are numerical searches. Stronger evaluation than training improves the credibility of the comparison, but finite projected gradient runs do not certify the absence of more confident inputs elsewhere in the neighborhood. ACET’s empirical robustness should therefore be distinguished from a proved confidence bound.

The method does not provide a general measure of distance from the true data distribution. Training noise is treated as safely outside the task, and other datasets supply additional tests. Neither construction supplies a complete geometric map of where the task begins and ends.

The main training comparison also leaves several design questions open. It does not establish an optimal smoothing range, a universally appropriate negative distribution, or the best balance between classification and uncertainty losses. The reported settings show that the proposed procedure works well in the tested conditions.

#### Better confidence does not settle every reliability question

Unchanged test error is valuable because it shows that the confidence intervention need not damage ordinary classification in these experiments. It does not mean that every original example retains the same prediction or confidence. Aggregate preservation and instance-level invariance are different claims.

Likewise, improved AUROC means that confidence gives a better ordering for a detection task. It does not guarantee a satisfactory operating point for every application. The false positive rate at a specified true positive rate helps address that issue, while the histograms show why a ranking metric alone is incomplete.

Reduced confidence on adversarial examples does not imply adversarial classification robustness. The paper studies the confidence attached to those attacked inputs and the ability to separate them from clean data. It does not establish that the original class decision is preserved.

Uniform confidence also has a particular meaning. It expresses lack of preference among the available labels. It does not explain why the input is unfamiliar, identify an appropriate new class, or specify a safe response. A deployment system would still need a policy for what happens after confidence falls.

The RBF theorem provides a constructive mathematical contrast, but the paper does not demonstrate a replacement architecture that combines its distant guarantee with all the practical properties of the tested ReLU systems. Developing an architecture with provable distant uncertainty remains part of the authors’ proposed research direction.

### What came after

[Shortcut Learning in Deep Neural Networks](https://md.research.elamur.ai/free/en/papers/geirhos-2020-shortcut-learning-deep-neural-networks/) appeared in 2020 and cites this paper. That citation establishes a later connection to research concerned with how neural systems reach their decisions. The citation record alone does not establish that the later work adopted ACET, reproduced its experiments, or extended its theorem.

The contribution available for later work is nevertheless clear. This paper separates strong task performance from justified confidence, explains a distant-input failure through score geometry, and tests a training intervention with deliberately challenging unfamiliar inputs. Those are distinct contributions that can inform subsequent studies without being treated as interchangeable.

Its theoretical result gives later analyses a concrete mechanism to examine: a decisive prediction can arise because a score grows fastest outside the observed data. Its experimental design supplies another reusable standard: evaluate an uncertainty method on ordinary negatives, optimized negatives, and the original task, then inspect both confidence values and their ordering.

The enduring question is the one the paper leaves open. A useful classifier should make confident distinctions where evidence supports them and become noncommittal where that support disappears. ACET shows that training can improve this behavior substantially on bounded image tasks. The theorem explains why, for the ReLU architecture studied, that practical success remains different from a global guarantee.

## Cite

Cite as Matthias Hein, Maksym Andriushchenko and Julian Bitterwolf. 2019. Why ReLU Networks Yield High-Confidence Predictions Far Away From the Training Data and How to Mitigate the Problem. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/cvpr.2019.00013](https://doi.org/10.1109/cvpr.2019.00013) · [arXiv 1812.05720](https://arxiv.org/abs/1812.05720)

```bibtex
@inproceedings{hein2019why,
  title = {{Why ReLU Networks Yield High-Confidence Predictions Far Away From the Training Data and How to Mitigate the Problem}},
  author = {Matthias Hein, Maksym Andriushchenko and Julian Bitterwolf},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2019},
  doi = {10.1109/cvpr.2019.00013},
  eprint = {1812.05720},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr.2019.00013}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
