SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.20488 · ICCV · 2025

Adaptive Dual Uncertainty Optimization: Boosting Monocular 3D Object Detection under Test-Time Shifts

Xinzhu Ma, Xiaotong Li, Ling-Yu Duan, Zixuan Hu, Wenhan Yang, Shixiang Tang, Dongxiao Li

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2508.20488.json · badge: /api/ran/2508.20488.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
hzcar/DUO canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
affine_transform Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hzcar/DUO/MonoFlex-KITTI/model/heatmap_coder.py
code served (permissive licence) · get_code("65a16c264996059d")
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 ndarray, ndim 2, dtype family float, shape (3, 2) 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 numpy as np

# Create a small point array (multiple points)
point = np.array([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])

# Create a 3x3 affine transformation matrix
# For 2D points extended to homogeneous coordinates (x, y, 1),
# we need a 3x3 matrix that will be transposed before matrix multiplication
matrix = np.array([
    [1.0, 0.0, 0.5],
    [0.0, 1.0, 0.3],
    [0.0, 0.0, 1.0]
])

ARGS = {
    "point": point,
    "matrix": matrix
}
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 ndarray, ndim 2, dtype family float, shape (3, 2) — shape (3, 2) 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
cat Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hzcar/DUO/MonoFlex-KITTI/model/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xinyulyu/fgpl, is pointer only (licence: NONE) · get_code("6cbf46794989b731")
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 xinyulyu/fgpl, 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.

gaussian_radius Ran
ran, honoured the contract we drafted
hzcar/DUO/MonoFlex-KITTI/model/heatmap_coder.py
code served (permissive licence) · get_code("c044d44b5a7087e4")
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

# This function computes a gaussian radius given height and width
# It takes three numeric parameters: height, width, and min_overlap (with default 0.7)

ARGS = {
    "height": 32,
    "width": 64,
    "min_overlap": 0.7
}
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_transfrom_matrix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hzcar/DUO/MonoFlex-KITTI/model/heatmap_coder.py
code served (permissive licence) · get_code("194052ec40659a42")
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 ndarray, ndim 2, dtype family float, shape (3, 3) 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 numpy as np

# Create small example inputs
center = np.array([100.0, 120.0], dtype=np.float32)
scale = np.array([50.0, 60.0], dtype=np.float32)
center_scale = [center, scale]

output_size = (64, 48)

ARGS = {
    "center_scale": center_scale,
    "output_size": output_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 3) — shape (3, 3) 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
strip_prefix_if_present Ran
ran; our contract draft was wrong, not the code
hzcar/DUO/MonoFlex-KITTI/utils/model_serialization.py
pointer only (licence: MIT); the stored copy get_code serves, from BIT-DA/SDCA, is pointer only (licence: NONE) · get_code("5a951495ac113177")
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 BIT-DA/SDCA, 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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
cat 18 other papers
18 dated earlier · 3 only as an assembly brick
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2002.10111 (2020-02)
SMOKE: Single-Stage Monocular 3D Object Detection via Keypoint Estimation
and 15 more not named here
strip_prefix_if_present 14 other papers
14 dated earlier
2002.10111 (2020-02)
SMOKE: Single-Stage Monocular 3D Object Detection via Keypoint Estimation
2104.02323 (2021-04)
Objects are Different: Flexible Monocular 3D Object Detection
2105.05013 (2021-05)
Semantic Distribution-aware Contrastive Adaptation for Semantic Segmentation
and 11 more not named here
affine_transform 5 other papers
5 dated earlier
2104.02323 (2021-04)
Objects are Different: Flexible Monocular 3D Object Detection
2206.07372 (2022-06)
MonoGround: Detecting Monocular 3D Objects from the Ground
2207.04448 (2022-07)
Mix-Teaching: A Simple, Unified and Effective Semi-Supervised Learning Framework for Monocular 3D Object Detection
and 2 more not named here
gaussian_radius 5 other papers
5 dated earlier
2104.02323 (2021-04)
Objects are Different: Flexible Monocular 3D Object Detection
2206.07372 (2022-06)
MonoGround: Detecting Monocular 3D Objects from the Ground
2207.04448 (2022-07)
Mix-Teaching: A Simple, Unified and Effective Semi-Supervised Learning Framework for Monocular 3D Object Detection
and 2 more not named here
get_transfrom_matrix 5 other papers
5 dated earlier
2104.02323 (2021-04)
Objects are Different: Flexible Monocular 3D Object Detection
2206.07372 (2022-06)
MonoGround: Detecting Monocular 3D Objects from the Ground
2207.04448 (2022-07)
Mix-Teaching: A Simple, Unified and Effective Semi-Supervised Learning Framework for Monocular 3D Object Detection
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-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

Accurate monocular 3D object detection (M3OD) is pivotal for safety-critical applications like autonomous driving, yet its reliability deteriorates significantly under real-world domain shifts caused by environmental or sensor variations. To address these shifts, Test-Time Adaptation (TTA) methods have emerged, enabling models to adapt to target distributions during inference. While prior TTA approaches recognize the positive correlation between low uncertainty and high generalization ability, they fail to address the dual uncertainty inherent to M3OD: semantic uncertainty (ambiguous class predictions) and geometric uncertainty (unstable spatial localization). To bridge this gap, we propose Dual Uncertainty Optimization (DUO), the first TTA framework designed to jointly minimize both uncertainties for robust M3OD. Through a convex optimization lens, we introduce an innovative convex structure of the focal loss and further derive a novel unsupervised version, enabling label-agnostic uncertainty weighting and balanced learning for high-uncertainty objects. In parallel, we design a semantic-aware normal field constraint that preserves geometric coherence in regions with clear semantic cues, reducing uncertainty from the unstable 3D representation. This dual-branch mechanism forms a complementary loop: enhanced spatial perception improves semantic classification, and robust semantic predictions further refine spatial understanding. Extensive experiments demonstrate the superiority of DUO over existing methods across various datasets and domain shift types. The source code is available at https://github.com/hzcar/DUO.

For agents

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

get_harvested_code_for_paper("2508.20488")
get_code_for_paper("2508.20488")
have("2508.20488")

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

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

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

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

Connect an agent — have() is free.