SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2105.14399 · 2021

Enhanced Isotropy Maximization Loss: Seamless and High-Performance Out-of-Distribution Detection Simply Replacing the SoftMax Loss

arXiv · PDF · Open in the Atlas

Code that ran

4 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 1 failure of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2105.14399.json · badge: /api/ran/2105.14399.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
dlmacedo/entropic-out-of-distribution-detection canonical (classifier label)
classifier basis: census
4 ran · 5 no recorded run
FunctionStatusWhere it lives
ResNet110 Ran
ran on a synthesized input
dlmacedo/entropic-out-of-distribution-detection/models/proper_resnet.py
code served (permissive licence) · get_code("2e1f852e640490f8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ResNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleLossFirstPart(nn.Module):
    """Minimal classifier layer that takes features and outputs logits"""
    def __init__(self, in_features, num_classes):
        super().__init__()
        self.linear = nn.Linear(in_features, num_classes)
    
    def forward(self, x):
        return self.linear(x)

ARGS = {
    'num_c': 10,
    'loss_first_part': SimpleLossFirstPart
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ResNet32 Ran
ran on a synthesized input
dlmacedo/entropic-out-of-distribution-detection/models/proper_resnet.py
code served (permissive licence) · get_code("5f5d80dbb2ac3d2d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ResNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal loss_first_part that acts as a classifier
class MinimalClassifier(nn.Module):
    def __init__(self, in_features, num_classes):
        super().__init__()
        self.linear = nn.Linear(in_features, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Create the arguments
loss_first_part = MinimalClassifier
num_c = 10

ARGS = {
    'num_c': num_c,
    'loss_first_part': loss_first_part
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ResNet56 Ran
ran on a synthesized input
dlmacedo/entropic-out-of-distribution-detection/models/proper_resnet.py
code served (permissive licence) · get_code("cd685832edf82a88")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ResNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple classifier module that takes features and outputs logits
class SimpleClassifier(nn.Module):
    def __init__(self, in_features, num_classes):
        super(SimpleClassifier, self).__init__()
        self.linear = nn.Linear(in_features, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Define the loss_first_part as a callable that returns a classifier
def loss_first_part(in_features, num_classes):
    return SimpleClassifier(in_features, num_classes)

# Define arguments for ResNet56
ARGS = {
    'num_c': 10,
    'loss_first_part': loss_first_part
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_time Ran
ran; our contract draft was wrong, not the code
dlmacedo/entropic-out-of-distribution-detection/tools.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from JunlinHan/YOCO, is pointer only (licence: NONE) · get_code("8d7ec010c29e813b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from JunlinHan/YOCO, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

getCIFAR10 Not yet run
unverified (harvested, no recorded run)
dlmacedo/entropic-out-of-distribution-detection/data_loader.py
code served (permissive licence) · get_code("976b8db044b3d56e")
How it ran

no invocation recorded.

getCIFAR100 Not yet run
unverified (harvested, no recorded run)
dlmacedo/entropic-out-of-distribution-detection/data_loader.py
code served (permissive licence) · get_code("cc1807df0262cc5b")
How it ran

no invocation recorded.

getSVHN Not yet run
unverified (harvested, no recorded run)
dlmacedo/entropic-out-of-distribution-detection/data_loader.py
code served (permissive licence) · get_code("87ada4b019deb68f")
How it ran

no invocation recorded.

get_curve Not yet run
unverified (harvested, no recorded run)
dlmacedo/entropic-out-of-distribution-detection/calculate_log.py
code served (permissive licence) · get_code("73ff0adcd82b148b")
How it ran

no invocation recorded.

metric Not yet run
unverified (harvested, no recorded run)
dlmacedo/entropic-out-of-distribution-detection/calculate_log.py
code served (permissive licence) · get_code("b84ce30ecbbc77e4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 2 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
format_time 37 other papers
12 dated earlier, 2 the same month, 23 later
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1605.07146 (2016-05)
Wide Residual Networks
1805.11327 (2018-05)
Lightweight Probabilistic Deep Networks
and 34 more not named here
metric 2 other papers
1 dated earlier, 1 later
1912.12510 (2019-12)
Detecting Out-of-Distribution Examples with In-distribution Examples and Gram Matrices
2106.00948 (2021-06)
Unsupervised Out-of-Domain Detection via Pre-trained Transformers

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

Current out-of-distribution detection approaches usually present special requirements (e.g., collecting outlier data and hyperparameter validation) and produce side effects (e.g., classification accuracy drop and slow/inefficient inferences). Recently, entropic out-of-distribution detection has been proposed as a seamless approach (i.e., a solution that avoids all previously mentioned drawbacks). The entropic out-of-distribution detection solution uses the IsoMax loss for training and the entropic score for out-of-distribution detection. The IsoMax loss works as a drop-in replacement of the SoftMax loss (i.e., the combination of the output linear layer, the SoftMax activation, and the cross-entropy loss) because swapping the SoftMax loss with the IsoMax loss requires no changes in the model's architecture or training procedures/hyperparameters. In this paper, we perform what we call an isometrization of the distances used in the IsoMax loss. Additionally, we propose replacing the entropic score with the minimum distance score. Experiments showed that these modifications significantly increase out-of-distribution detection performance while keeping the solution seamless. Besides being competitive with or outperforming all major current approaches, the proposed solution avoids all their current limitations, in addition to being much easier to use because only a simple loss replacement for training the neural network is required. The code to replace the SoftMax loss with the IsoMax+ loss and reproduce the results is available at https://github.com/dlmacedo/entropic-out-of-distribution-detection.

For agents

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

get_harvested_code_for_paper("2105.14399")
get_code_for_paper("2105.14399")
have("2105.14399")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2105.14399.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2105.14399.svg)](https://syntology.ai/paper/2105.14399)

Connect an agent — have() is free.