SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2302.07106 · CVPR · 2023

Normalizing Flow based Feature Synthesis for Outlier-Aware Object Detection

T Dresden, Nishant Kumar, Siniša Šegvić, Abouzar Eslami, Stefan Gumhold, ~~~~~~~~~~^^f

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2302.07106.json · badge: /api/ran/2302.07106.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
nish03/ffs canonical (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
FunctionStatusWhere it lives
fpr_and_fdr_at_recall Ran
ran on a synthesized input
nish03/ffs/Flow-Feature-Synthesis/detection/metric_utils.py
code served (permissive licence) · get_code("1e4534a223543409")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create binary classification data
# y_true: binary labels (0 or 1)
# y_score: confidence scores for the positive class
n_samples = 20

# Generate true labels (binary: 0 or 1)
y_true = np.array([0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 
                    1, 0, 1, 1, 0, 1, 0, 0, 1, 1], dtype=np.int32)

# Generate scores that are somewhat predictive
np.random.seed(0)
y_score = np.random.rand(n_samples)
# Make scores somewhat correlated with true labels to get meaningful results
y_score = y_score + 0.5 * y_true
y_score = y_score.astype(np.float32)

ARGS = {
    'y_true': y_true,
    'y_score': y_score,
    'recall_level': 0.95,
    'pos_label': None,
    'return_index': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
get_measures Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nish03/ffs/Flow-Feature-Synthesis/detection/metric_utils.py
code served (permissive licence) · get_code("d9461049c5aa79fc")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
import sklearn.metrics as sk

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample data for testing
# _pos: positive examples (in-distribution)
_pos = np.random.randn(10) + 2.0  # Shifted positive, smaller sample

# _neg: negative examples (out-of-distribution)
_neg = np.random.randn(15) - 2.0  # Shifted negative, smaller sample

# recall_level: controls the threshold for recall in the function
recall_level = 0.95

# return_index: whether to return indices for ID/OOD samples
return_index = False

# plot: whether to create plots (set to False to avoid file I/O)
plot = False

ARGS = {
    "_pos": _pos,
    "_neg": _neg,
    "recall_level": recall_level,
    "return_index": return_index,
    "plot": plot,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
permute_to_N_HWA_K Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nish03/ffs/Flow-Feature-Synthesis/detection/inference/retinanet_predictor.py
code served (permissive licence) · get_code("573ab018aa3f2e6f")
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) and returned Tensor, ndim 3, dtype family float, shape (2, 90, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# The function expects:
# - tensor: a 4D tensor of shape (N, (Ai x K), H, W)
# - K: an integer representing the last dimension size

# Let's construct a valid tensor:
# N=2 (batch size)
# Ai=3 (number of anchors)
# K=4 (feature dimension)
# H=5 (height)
# W=6 (width)
# So the tensor shape should be (2, 3*4, 5, 6) = (2, 12, 5, 6)

N = 2
Ai = 3
K = 4
H = 5
W = 6

tensor = torch.randn(N, Ai * K, H, W)

ARGS = {
    "tensor": tensor,
    "K": K,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 90, 4) — shape (2, 90, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
stable_cumsum Ran
ran, honoured the contract we drafted
nish03/ffs/Flow-Feature-Synthesis/detection/metric_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from fanghenshaometeor/ood-kernel-pca-ext, is pointer only (licence: NONE) · get_code("d4acb3120a027622")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from fanghenshaometeor/ood-kernel-pca-ext, 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.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 1 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
stable_cumsum 29 other papers
10 dated earlier, 18 later, 1 same year, order not determinable · 1 only as an assembly brick
1911.11132 (2019-11)
Scaling Out-of-Distribution Detection for Real-World Settings
2003.08440 (2020-03)
Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentation
2104.08812 (2021-04)
Contrastive Out-of-Distribution Detection for Pretrained Transformers
and 26 more not named here
get_measures 5 other papers
1 dated earlier, 3 later, 1 same year, order not determinable
2202.01197 (2022-02)
VOS: Learning What You Don't Know by Virtual Outlier Synthesis
2405.18635 (2024-05)
When and How Does In-Distribution Label Help Out-of-Distribution Detection?
and 2 more not named here
permute_to_N_HWA_K 5 other papers
1 dated earlier, 3 later, 1 same year, order not determinable
2206.11134 (2022-06)
Open Vocabulary Object Detection with Proposal Mining and Prediction Equalization
2303.06500 (2023-03)
Diffusion-Based Hierarchical Multi-Label Object Detection to Analyze Panoramic Dental X-rays
and 2 more not named here

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-22.

Repositories linked to this paper

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

Abstract

Real-world deployment of reliable object detectors is crucial for applications such as autonomous driving. However, general-purpose object detectors like Faster R-CNN are prone to providing overconfident predictions for outlier objects. Recent outlier-aware object detection approaches estimate the density of instance-wide features with classconditional Gaussians and train on synthesized outlier features from their low-likelihood regions. However, this strategy does not guarantee that the synthesized outlier features will have a low likelihood according to the other classconditional Gaussians. We propose a novel outlier-aware object detection framework that distinguishes outliers from inlier objects by learning the joint data distribution of all inlier classes with an invertible normalizing flow. The appropriate sampling of the flow model ensures that the synthesized outliers have a lower likelihood than inliers of all object classes, thereby modeling a better decision boundary between inlier and outlier objects. Our approach significantly outperforms the state-of-the-art for outlier-aware object detection on both image and video datasets.

For agents

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

get_harvested_code_for_paper("2302.07106")
get_code_for_paper("2302.07106")
have("2302.07106")

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

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

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

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

Connect an agent — have() is free.