Other
PyTorch
3d-reconstruction
wireframe
building
point-cloud
s23dr
cvpr-2026
jacklangerman commited on
Commit
f1956df
Β·
1 Parent(s): 4946666

update docs

Browse files
Files changed (3) hide show
  1. README.md +152 -134
  2. REPRODUCE.md +111 -42
  3. submitted_2048/README.md +18 -8
README.md CHANGED
@@ -9,6 +9,7 @@ tags:
9
  - s23dr
10
  - cvpr-2026
11
  datasets:
 
12
  - usm3d/s23dr-2026-sampled_4096_v2
13
  - usm3d/s23dr-2026-sampled_2048_v2
14
  metrics:
@@ -16,161 +17,178 @@ metrics:
16
  pipeline_tag: other
17
  ---
18
 
19
- # S23DR 2026 Learned Baseline
20
 
21
- A learned baseline for the **S23DR 2026** challenge (**S**tructured and **S**emantic **3D R**econstruction, or S^2 3DR), part of the [USM3D workshop](https://usm3d.github.io) at CVPR 2026. The model takes a fused point cloud of a building and predicts its wireframe as a set of 3D line segments.
 
 
 
 
 
22
 
23
- **Headline result: HSS = 0.382** on the 1024-sample validation set (shipped checkpoint).
24
 
25
- For context, the handcrafted baseline scores HSS = 0.307 on the same split.
 
 
 
 
 
26
 
27
- ## Quick start
28
 
29
- Run the submission pipeline directly (matches the competition eval harness):
30
-
31
- ```bash
32
  python script.py
33
  ```
34
 
35
- That loads `checkpoint.pt`, fuses the input views into a 4096-point cloud, runs the model, and writes the predicted wireframe for each scene.
 
 
 
 
36
 
37
- To reproduce the checkpoint from scratch on a single RTX 4090 (~3 hours):
 
38
 
39
- ```bash
40
- bash reproduce.sh
41
- ```
42
 
43
- Or for a bit-identical deterministic run (~5.5 hours, slower because it disables `torch.compile`):
44
-
45
- ```bash
46
- bash reproduce_deterministic.sh
 
 
 
 
 
 
 
 
 
 
47
  ```
48
 
49
- Both scripts run the full three-stage recipe described below. See `REPRODUCE.md` for the exact hyperparameters and the reproducibility notes.
50
 
51
- ## Architecture
 
 
 
 
 
 
52
 
53
- A Perceiver-style transformer that ingests the point cloud as a sequence of per-point tokens and decodes a fixed set of 3D line segments through cross-attention into a latent.
 
 
 
 
54
 
55
  ```
56
- Perceiver: hidden=256, ff=1024
57
- latent_tokens=256, latent_layers=7
58
- encoder_layers=4, decoder_layers=3, cross_attn_interval=4
59
- num_heads=4, kv_heads_cross=2, kv_heads_self=2
60
- qk_norm=L2, rms_norm=True, dropout=0.1
61
- segments=64, segment_param=midpoint_dir_len, segment_conf=True
62
- behind_emb_dim=8, vote_features=True, activation=gelu
63
  ```
64
 
65
- The decoder predicts 64 candidate segments, each parametrized as midpoint + direction + length with a confidence head. Training uses a Sinkhorn optimal-transport loss to match predicted segments to ground-truth, plus a symmetric endpoint L1 term in the cooldown stage.
66
-
67
- All architecture and optimizer settings live in `configs/base.json`.
68
-
69
- ## Training recipe
70
-
71
- The model ships with a three-stage recipe. Each stage starts from the previous stage's final checkpoint.
72
-
73
- | Stage | Input | Steps | LR | Batch | Notes | HSS |
74
- |---|---|---|---|---|---|---|
75
- | 1. 2048 from scratch | 2048 pts | 0 -> 125k | 3e-4, warmup 10k | 32 | Random init, sinkhorn only | 0.281 |
76
- | 2. 4096 finetune | 4096 pts | 125k -> 135k | 3e-5 constant | 64 | Gentle LR preserves representations | 0.351 |
77
- | 3. Endpoint cooldown | 4096 pts | 135k -> 170k | 3e-5 then linear decay | 64 | Adds endpoint L1 loss, tightens vertices | **0.382** |
78
-
79
- **Why 2048 first:** training directly on 4096 overfits (1.47x train/val ratio vs 1.19x for 2048). Starting on 2048 produces better-generalized representations that the 4096 finetune can then specialize.
80
-
81
- **Why a gentle LR on finetune:** LR > 1e-4 causes catastrophic forgetting of the 2048 geometry understanding.
82
-
83
- **Why endpoint loss only in stage 3:** the Sinkhorn loss operates on the midpoint/direction/length parametrization and doesn't directly penalize vertex position error. Adding a symmetric endpoint L1 against the detached Sinkhorn assignment tightens vertex precision in the cooldown.
84
-
85
- Full details, including the "what does not work" list (BuildingWorld pretraining, mixed training, high dropout, etc.), are in `REPRODUCE.md`.
86
-
87
- ## Evaluation
88
-
89
- > **About the numbers:** all val scores below are HSS at confidence threshold 0.7, averaged over the 1024-sample *internal validation split* we hold out from the published training data (`usm3d/s23dr-2026-sampled_{2048,4096}_v2:validation`). They are **not** test-set numbers. The only test-set number we have is the public leaderboard score of the older 2048 submission (see `submitted_2048/` and the last table below).
90
- >
91
- > All numbers below are freshly measured in this release against the checkpoints in this repo.
92
-
93
- ### Shipped model and reproductions
94
-
95
- | Model | Checkpoint | HSS @ 4096 | HSS @ 2048 |
96
- |---|---|---|---|
97
- | Handcrafted baseline | β€” | 0.307 | β€” |
98
- | **Current release (shipped)** | `checkpoint.pt` | **0.3819** | 0.3734 |
99
- | Closest compiled E2E repro (#4) | `repro_runs/e2e_repro4_hss379/` | 0.3736 | 0.3675 |
100
- | Best compiled repro from this codebase | `repro_runs/compiled_repro_hss376/` | 0.3757 | 0.3670 |
101
- | Deterministic E2E repro (bit-reproducible) | `repro_runs/deterministic_hss372/` | 0.3716 | 0.3665 |
102
-
103
- All repros use the exact 3-stage recipe on a single RTX 4090. The shipped `checkpoint.pt` was trained on the same recipe before this release branch was cut; the ~0.005-0.010 HSS gap between shipped and repros is compiled-mode run-to-run variance (see the Reproducibility section).
104
 
105
- ### Training progression (deterministic repro, all stages measured fresh)
106
-
107
- | Stage | Steps | HSS @ 4096 | HSS @ 2048 |
108
- |---|---|---|---|
109
- | 1. 2048 from-scratch | 125k | 0.2755 | 0.2812 |
110
- | 2. 4096 finetune | 135k | 0.3557 | 0.3510 |
111
- | 3. Endpoint cooldown | 170k | 0.3716 | 0.3665 |
112
-
113
- The stage 1 -> stage 2 jump (+0.08 HSS on 4096) is the biggest single improvement and motivates the 2048 -> 4096 transfer. Stage 3 (endpoint cooldown) adds another +0.016. Note how stage 1 is slightly better at 2048 than at 4096 (because it was only trained on 2048), while stages 2 and 3 invert that ordering after being finetuned on 4096.
114
-
115
- ### Previously submitted model (2048, single-stage)
116
-
117
- The `submitted_2048/` directory holds the checkpoint we actually sent to the public leaderboard. It was trained in a single stage on 2048-point data and is a direct ancestor of the current release.
118
-
119
- | Split | Metric | Score |
120
- |---|---|---|
121
- | **Public leaderboard (test)** | **HSS** | **0.427** |
122
- | Internal val @ 2048 | HSS | 0.3692 |
123
- | Internal val @ 4096 | HSS | 0.3665 |
124
-
125
- We do not have a test number for the current release, but the val-to-test gap observed on this 2048 submission was about **+0.06 HSS** (0.37 val -> 0.43 test). A similar gap on the current `checkpoint.pt` (0.382 val) would suggest a test score in the low 0.44s, though this is extrapolation and unverified.
126
-
127
- ## Reproducibility
128
-
129
- | Test | Result |
130
- |---|---|
131
- | Forward pass (same ckpt, same input) | bit-identical (0.00 diff) |
132
- | Deterministic mode, 3 independent runs | bit-identical (162 tensors, max_diff=0.0) |
133
- | Step 3 from same stage-2 ckpt (2 runs) | HSS=0.382, 0.384 |
134
- | Compiled-mode E2E variance across runs | ~0.03 HSS (Triton kernel nondeterminism) |
135
-
136
- `reproduce_deterministic.sh` produces byte-identical weights across runs with the same seed, at the cost of ~2x slower training (no `torch.compile`). Compiled mode has small run-to-run variance from Triton kernel selection that grows through chaotic SGD dynamics; E2E compiled repros land in the 0.349-0.379 range.
137
-
138
- A subtle iteration-order effect: the shipped `bad_samples.txt` has 156 non-empty entries (the file lacks a trailing newline so `wc -l` reports 155). Two additional bad samples were discovered after training - they are legitimately bad GT but adding them changes the batch iteration order and costs ~0.005 HSS in deterministic mode and ~0.04 in compiled mode. See the "Reproducibility Notes" section of `REPRODUCE.md` for the full story.
139
-
140
- ## Repository layout
141
 
142
  ```
143
- checkpoint.pt shipped HSS=0.382 model (step 170000), 4096-point input
144
- script.py competition inference entry point (uses checkpoint.pt)
145
- s23dr_2026_example/ training package (model, data, train loop, losses)
146
- configs/base.json shared training config
147
- reproduce.sh compiled-mode E2E reproduction (~3 hr)
148
- reproduce_deterministic.sh bit-reproducible E2E reproduction (~5.5 hr)
149
- REPRODUCE.md detailed recipe, results, ablations, notes
150
-
151
- submitted_2048/ the model we actually sent to the public leaderboard (HSS_test=0.427)
152
- checkpoint.pt single-stage 2048 model (step 160000)
153
- args.json full training args
154
- README.md training details and val/test scores
155
-
156
- repro_runs/ evidence that the 3-stage recipe reproduces
157
- e2e_repro4_hss379/ closest compiled E2E repro (val HSS=0.374)
158
- compiled_repro_hss376/ best compiled repro from this codebase (val HSS=0.376)
159
- deterministic_hss372/ bit-reproducible deterministic repro (val HSS=0.372)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  ```
161
 
162
- Each directory under `repro_runs/` contains the three stage-final checkpoints (125k / 135k / 170k) plus their `args.json`, so a participant can resume from any stage. Note the directory names carry the score at the time the directory was created, which may differ by ~0.002 from fresh evals in the table above due to random variation in post-processing and CUDA kernel selection.
163
-
164
- ## Related branches
165
-
166
- - `main` - this release
167
- - `best-4096-transfer` - working branch with full commit history and internal dev notes
168
- - `validation-archive` - cold archive of all validation runs (logs, final checkpoints, args) used to verify the release
169
-
170
- ## License
171
-
172
- **CC-BY-NC 4.0.** The model weights and code in this repository are released under the Creative Commons Attribution-NonCommercial 4.0 International license. You are free to use, share, and adapt this work for **non-commercial** purposes, provided you give appropriate **attribution**. The training and validation datasets (`usm3d/s23dr-2026-sampled_*`) have their own terms - see the S23DR 2026 competition page for details.
173
-
174
- ## Acknowledgements
175
-
176
- This checkpoint is released as a public learned baseline for participants of the **S23DR 2026** challenge, part of the [USM3D workshop](https://usm3d.github.io) at CVPR 2026.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  - s23dr
10
  - cvpr-2026
11
  datasets:
12
+ - usm3d/hoho22k_2026_trainval
13
  - usm3d/s23dr-2026-sampled_4096_v2
14
  - usm3d/s23dr-2026-sampled_2048_v2
15
  metrics:
 
17
  pipeline_tag: other
18
  ---
19
 
20
+ # S23DR 2026 - Learned Submission
21
 
22
+ A learned-model baseline for the
23
+ [S23DR 2026](https://huggingface.co/spaces/usm3d/S23DR2026) wireframe-estimation
24
+ challenge. Counterpart to
25
+ [`usm3d/handcrafted_submission_2026`](https://huggingface.co/usm3d/handcrafted_submission_2026):
26
+ the handcrafted entry is rule-based; this one is a Perceiver transformer
27
+ trained on fused 3D point clouds.
28
 
29
+ ## Task
30
 
31
+ Per scene from
32
+ [`usm3d/hoho22k_2026_trainval`](https://huggingface.co/datasets/usm3d/hoho22k_2026_trainval):
33
+ multi-view RGB, ADE20K and Gestalt segmaps, MoGe metric depth, COLMAP SfM
34
+ points and camera poses (BPO + COLMAP). Predict a 3D building wireframe -
35
+ a list of vertices and the edges connecting them. Scored by [HSS](https://arxiv.org/abs/2503.08208) on a held-out
36
+ test split.
37
 
38
+ ## Run inference
39
 
40
+ ```
 
 
41
  python script.py
42
  ```
43
 
44
+ The challenge harness provides `params.json` (with the test-dataset id) and
45
+ runs `script.py`. The script downloads the dataset to `/tmp/data`, loads
46
+ `checkpoint.pt`, iterates over the validation + test splits, and writes
47
+ `submission.json` - one entry per sample of the form
48
+ `{order_id, wf_vertices, wf_edges}`.
49
 
50
+ Requires a CUDA GPU plus `torch`, `huggingface_hub`, `datasets`, `numpy`,
51
+ `opencv-python`, `scipy`, and `tqdm`.
52
 
53
+ ## Pipeline
 
 
54
 
55
+ ```
56
+ raw multi-view sample
57
+ -> point fusion per-view depth unprojection + COLMAP, labeled
58
+ by ADE/Gestalt (point_fusion.py)
59
+ -> priority sampling subsample to 4096 pts: 3072 COLMAP + 1024 depth
60
+ (make_sampled_cache.py)
61
+ -> Perceiver hidden=256, 256 latents x 7 layers, 64 segment
62
+ queries; each query -> (midpoint, direction,
63
+ length) + confidence (model.py)
64
+ -> postprocess conf > 0.5 -> segments -> iterative vertex
65
+ merge -> snap to point cloud -> horizontal snap
66
+ (segment_postprocess.py,
67
+ postprocess_v2.py)
68
+ -> {order_id, wf_vertices, wf_edges} -> submission.json
69
  ```
70
 
71
+ ## Reproduce training
72
 
73
+ See [REPRODUCE.md](REPRODUCE.md) for the full recipe, ablations, and
74
+ reproduction notes. Three stages, ~3hr on a single RTX 4090. All HSS numbers
75
+ in this section are on **dev val** (the last 1024 scenes of the published
76
+ training set; see "Evaluation sets" in REPRODUCE.md). The per-stage column
77
+ below is from the **original training run**, not from re-running the
78
+ script - the original run is gone, and the published recipe does not exactly
79
+ reproduce it.
80
 
81
+ | Stage | Steps | LR | Batch | Dev val HSS (orig) |
82
+ |----------------------------------|------:|-------|------:|--------------------|
83
+ | 2048 from scratch | 125k | 3e-4 | 32 | 0.281 |
84
+ | 4096 finetune | 10k | 3e-5 | 64 | 0.351 |
85
+ | Cooldown + endpoint loss | 35k | 3e-5 | 64 | **0.382** |
86
 
87
  ```
88
+ bash reproduce.sh # ~3hr, torch.compile, dev val HSS typ. 0.375-0.379
89
+ bash reproduce_deterministic.sh # ~5.5hr, no compile, bit-reproducible at 0.372
90
+ bash make_datasets.sh # rebuild sampled datasets from raw tars
 
 
 
 
91
  ```
92
 
93
+ Documented compiled E2E runs from this codebase fall in **dev val HSS
94
+ 0.342-0.379**, with the modal cluster at 0.375-0.379 and low-side excursions
95
+ at 0.349 and 0.342; no run reaches the original 0.382. Best compiled repro is
96
+ **0.376** (`repro_runs/compiled_repro_hss376/`). The deterministic recipe is
97
+ bit-identical across runs at 0.372 but follows a different numerical
98
+ trajectory than compiled mode (it is not a reproduction of any compiled run).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
 
100
+ ## Layout
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  ```
103
+ script.py Submission entry: load checkpoint, run pipeline,
104
+ write submission.json.
105
+ checkpoint.pt Trained weights (~106 MB, Git LFS). Dev val
106
+ HSS=0.382 (original training run; not exactly
107
+ reproducible). Public test HSS=0.4470.
108
+ configs/base.json Shared training config (architecture + optimizer).
109
+ reproduce.sh 3-stage retraining (torch.compile, fast).
110
+ reproduce_deterministic.sh Bit-reproducible variant (no compile, ~2x slower).
111
+ make_datasets.sh Rebuild sampled datasets from raw hoho22k tars.
112
+ REPRODUCE.md Recipe, ablations, reproduction numbers.
113
+
114
+ s23dr_2026_example/ The pipeline as an importable package.
115
+ point_fusion.py Per-view fusion -> labeled 3D point cloud.
116
+ cache_scenes.py Stream raw shards -> per-scene .pt files.
117
+ make_sampled_cache.py .pt -> fixed-size .npz priority samples.
118
+ data.py Dataset wrapper + augmentation.
119
+ tokenizer.py Per-point tokens (xyz + Fourier + class + src
120
+ + behind + vote features).
121
+ model.py Perceiver encoder + segment decoder.
122
+ attention.py SDPA blocks with optional QK-norm.
123
+ losses.py Sinkhorn matching + endpoint L1 + confidence BCE.
124
+ sinkhorn.py Optimal-transport segment matcher.
125
+ varifold.py Segments -> vertices/edges; varifold loss kernels.
126
+ wire_varifold_kernels.py Varifold kernels (alternate loss, unused at 0.382).
127
+ segment_postprocess.py Iterative vertex merging.
128
+ postprocess_v2.py Snap-to-cloud and horizontal-edge alignment.
129
+ color_mappings.py ADE20K + Gestalt label palettes.
130
+ train.py Training loop driven by reproduce.sh.
131
+ bad_samples.txt 156 scenes excluded from training (misaligned GT).
132
+
133
+ repro_runs/ Three frozen reproduction runs:
134
+ compiled_repro_hss376/ best compiled run from this codebase
135
+ e2e_repro4_hss379/ closest end-to-end repro to original
136
+ deterministic_hss372/ bit-reproducible run
137
+
138
+ submitted_2048/ The earlier public-leaderboard checkpoint
139
+ (2048-only, public test HSS=0.4273). The current
140
+ top-level checkpoint.pt scored 0.4470 on test.
141
  ```
142
 
143
+ ## Submissions and scores
144
+
145
+ Two submissions have been evaluated on the public test set. Both are kept in
146
+ this repo. "Dev val" below is the last 1024 scenes of the published training
147
+ set, which is what we optimized against; we did not eval on the official
148
+ validation split. See "Evaluation sets" in REPRODUCE.md for the formal
149
+ definitions.
150
+
151
+ | Model | Path | script.py settings | Dev val HSS | **Public test HSS** |
152
+ |---|---|---|---:|---:|
153
+ | 2048 (single-resolution, earlier) | `submitted_2048/checkpoint.pt` | `SEQ_LEN=2048`, `CONF_THRESH=0.7`, single-pass merge | 0.369 @ 2048 | **0.4273** |
154
+ | 4096 (3-stage transfer, current) | `checkpoint.pt` | `SEQ_LEN=4096`, `CONF_THRESH=0.5`, iterative merge | 0.382 @ 4096 | **0.4470** |
155
+
156
+ The 4096 model is the better submission on both dev val (+0.013) and public
157
+ test (+0.020). The leaderboard is open; the test numbers above are what each
158
+ checkpoint scored when submitted at its corresponding commit (`f4487da` for
159
+ 2048, `4946666` for 4096). Note that *three* things change between the two
160
+ submissions - the model, the inference `SEQ_LEN`, and the merge / confidence
161
+ postprocessing - so the +0.020 test gain is not attributable to the model
162
+ alone.
163
+
164
+ ## Notes
165
+
166
+ - The model predicts line *segments* in per-scene-normalized coordinates
167
+ (parametrized as midpoint + half-vector, decoded as endpoint pairs). The
168
+ script multiplies by the scene scale and adds the center to lift them to
169
+ world space before extracting vertex/edge lists; merging and snapping
170
+ postprocessing then run in world space. Output vertices are in the same
171
+ world frame as the COLMAP / ground-truth reconstruction.
172
+ - The pipeline returns a 2-vertex / 1-edge dummy wireframe for any sample
173
+ where fusion fails or no segment passes the confidence threshold.
174
+ - There is (unfortunately) a fair amount of run-to-run variation: both
175
+ *interrun* (same seed, different runs of `reproduce.sh` give dev val HSS
176
+ in 0.342-0.379 due to `torch.compile` picking different Triton kernels -
177
+ see REPRODUCE.md) and *interseed* (varying `--seed` gives non-trivially
178
+ different final dev val HSS as well).
179
+
180
+
181
+ ## Ideas / Suggestions / Thoughts
182
+
183
+ - There is a messy repo with many experiments and a codebase that has more features, but is messier [here](https://github.com/JackLangerman/s23dr_2026_example)
184
+ - The training protocol, initialization, and architecture could probably all be tweaked to improve stability / interseed variation. Increasing sinkhorn eps at the beginning of training, and longer warmup both seemed to yield less variation between seeds, but worse absolute performance; can we improve both?
185
+ - Can training on Building World help? I tried a single "pretraining" run on BuildingWorld and it didn't help, but maybe training on both simultaneously would be better?
186
+ - What about training on image (Gestalt/ADE) patches + rays instead of fused points? Can you do better with less inductive bias?
187
+ - What about mixed 2048 / 4096 training (instead of sequential)? does it help?
188
+ - What about other loss functions? a better softHSS?
189
+ - Does a bigger model with more data (eg from building world) help? what about with better / different regularization or data augmentation?
190
+ - What about other modern DETR tricks?
191
+ - Can you output a graph directly instead of post-hoc vertex merging?
192
+ - bad_samples.txt doesn't include all the bad samples, but in quick tests, adding the two bad samples shown in REPRODUCE.md made scores worse. Can you make the score better while excluding these?
193
+
194
+ ### I'm sure there is a ton more cool stuff to do! Be creative! Excited to see what you come up with!
REPRODUCE.md CHANGED
@@ -28,6 +28,32 @@ Perceiver: hidden=256, ff=1024, latent_tokens=256, latent_layers=7
28
 
29
  All shared config lives in `configs/base.json`.
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  ### Step 1: 2048 Phase 1 (from scratch) β€” ~1.5hr
32
 
33
  ```
@@ -49,7 +75,7 @@ optimal transport loss learns to match predicted segments to ground truth.
49
  **Why 2048 first:** Training directly on 4096 overfits (1.47x train/val ratio
50
  vs 1.19x for 2048). The 2048 model learns better-generalized representations.
51
 
52
- **Output:** HSS ~0.28.
53
 
54
  ### Step 2: 4096 finetune (constant LR) β€” ~15min
55
 
@@ -66,9 +92,9 @@ Switches input from 2048 to 4096 points, increasing structural coverage from
66
  66% to 74%. The gentle lr (3e-5) preserves learned representations while
67
  adapting to the extra input. Higher LR (>1e-4) causes catastrophic forgetting.
68
 
69
- HSS jumps from 0.28 to 0.35 in ~5k steps. Plateaus by 10k steps.
70
 
71
- **Output:** HSS ~0.35.
72
 
73
  ### Step 3: Cooldown with endpoint loss β€” ~1hr
74
 
@@ -86,12 +112,18 @@ Adds symmetric endpoint L1 loss (using detached sinkhorn assignment) to
86
  tighten vertex precision. The sinkhorn loss alone operates on segment
87
  midpoint/direction/length and doesn't directly penalize endpoint position error.
88
 
89
- **Output:** HSS=0.382, F1=0.414.
90
 
91
  ### Key Numbers
92
 
93
- | Stage | Steps | HSS | F1 | What changed |
94
- |-------|-------|-----|-----|-------------|
 
 
 
 
 
 
95
  | After Step 1 | 125k | 0.281 | 0.156 | Learned geometry from 2048 pts |
96
  | After Step 2 | 135k | 0.351 | 0.190 | +74% coverage from 4096 pts |
97
  | After Step 3 | 170k | **0.382** | **0.411** | Vertex precision from endpoint loss |
@@ -111,53 +143,78 @@ midpoint/direction/length and doesn't directly penalize endpoint position error.
111
  directly penalizes vertex position errors, which sinkhorn loss alone
112
  doesn't do (it operates on midpoint/direction/length parametrization).
113
 
114
- ## What Doesn't Work
115
-
116
- - **Training 4096 from scratch:** overfits (1.47x train/val gap), peaks at 0.346
117
- - **BuildingWorld pretraining:** representations are orthogonal to S23DR (cosine sim = 0.05)
118
- - **Mixed BW+S23DR training:** BW data hurts due to domain gap
119
- - **High dropout / weight decay:** prevents overfitting but causes underfitting
120
- - **High finetune LR (>1e-4):** catastrophic forgetting of 2048 representations
121
- - **Steeper cooldown (1e-5, 20x drop):** slightly worse than 3e-5 for this checkpoint
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  ## Reproduction Results
124
 
125
  ### End-to-end reproductions
126
 
127
- | Model | HSS | F1 | IoU | Notes |
128
- |-------|-----|-----|-----|-------|
129
- | Original | 0.382 | 0.414 | 0.370 | Shipped checkpoint |
 
 
130
  | E2E repro #4 | 0.379 | 0.409 | 0.369 | Closest E2E, `repro_runs/e2e_repro4_hss379/` |
131
  | Compiled repro (from submission codebase) | 0.376 | β€” | β€” | Best compiled repro from this codebase, `repro_runs/compiled_repro_hss376/` |
132
  | E2E repro #3 | 0.375 | 0.404 | 0.367 | |
133
  | Deterministic E2E | 0.372 | 0.398 | 0.368 | Bit-reproducible, `repro_runs/deterministic_hss372/` |
134
- | E2E repro #5 | 0.349 | 0.373 | β€” | Outlier (early compile divergence) |
 
135
 
136
  ### Partial reproductions (isolating pipeline stages)
137
 
138
- | Test | Starting from | HSS | Gap to original |
139
- |------|--------------|-----|-----------------|
140
  | Step 3 from orig Step 2 (run A) | Original step135000.pt | 0.382 | 0.000 |
141
  | Step 3 from orig Step 2 (run B) | Original step135000.pt | 0.384 | +0.002 |
142
  | Step 2+3 from orig Step 1 | Original step125000.pt | 0.377 | -0.005 |
143
- | Step 1 from orig step 100k | Original step100000.pt | 0.285 (Step 1 HSS) | +0.004 vs 0.281 |
144
 
145
- Step 3 from the same checkpoint reproduces to within 0.002. The E2E variance
146
- (0.349-0.379) is dominated by torch.compile nondeterminism in Step 1.
 
147
 
148
  ### All benchmarks
149
 
150
- | Model | Input | HSS | F1 | IoU | Notes |
151
- |-------|-------|-----|-----|-----|-------|
 
 
 
152
  | Handcrafted baseline | raw views | 0.307 | 0.404 | 0.260 | |
153
- | h256+qk+ep (submitted) | 2048 | 0.365 | 0.388 | 0.360 | HSS=0.427 on test |
154
  | Original 3-step | 2048 | 0.373 | 0.404 | 0.363 | |
155
- | Original 3-step | 4096 | 0.382 | 0.414 | 0.370 | Best ever |
156
- | Step3 repro from orig S2 | 4096 | 0.384 | 0.414 | β€” | Near-exact repro |
157
  | E2E repro #4 | 4096 | 0.379 | 0.409 | 0.369 | |
158
  | Compiled repro (submission codebase) | 4096 | 0.376 | β€” | β€” | Best compiled from this exact codebase |
159
  | E2E repro #3 | 4096 | 0.375 | 0.404 | 0.367 | |
160
- | Deterministic E2E | 4096 | 0.372 | 0.398 | 0.368 | Bit-reproducible |
 
 
 
 
 
 
161
 
162
  ## Code Equivalence Verification
163
 
@@ -167,28 +224,40 @@ Step 3 from the same checkpoint reproduces to within 0.002. The E2E variance
167
  | Loss computation | Bit-identical (0.00 diff) |
168
  | Gradient computation | 5e-8 max diff |
169
  | Training from same seed | Bit-identical steps 1-44 |
170
- | Step 3 from same checkpoint (2 runs) | HSS=0.382, 0.384 |
171
  | Deterministic mode (2 runs) | Bit-identical (0.00 diff) |
172
 
173
  ## Reproducibility Notes
174
 
 
 
175
  **Default mode** (`reproduce.sh`): Uses torch.compile (~3x faster). Each run
176
  gets different Triton kernels, causing ~1e-8 floating-point divergence at a
177
- random step (31-45). This grows through chaotic SGD dynamics, giving HSS
178
- variance of ~0.03 across runs. E2E reproductions land in the 0.349-0.379 range.
179
-
180
- **Deterministic mode** (`--deterministic` flag): Disables torch.compile.
181
- Bit-identical across runs with the same seed. HSS=0.372 (slightly lower than
182
- compiled mode because eager-mode kernels follow a different numerical path).
 
 
 
 
 
 
 
183
 
184
  **bad_samples.txt**: The shipped file has 156 entries to match original training.
185
  (Note: `wc -l` reports 155 because the last line lacks a trailing newline.)
186
  Two additional bad samples (`47b0e0ce19b`, `4b2d56eb3ef`) were discovered after
187
  the original training run. They are legitimately bad (misaligned GT) but were
188
  included in the original training data. Adding them changes the batch iteration
189
- order and costs ~0.005 HSS in deterministic mode (0.372 -> 0.367) and ~0.04 in
190
- compiled mode due to compounded torch.compile variance. Participants training
191
- from scratch may wish to add these 2 entries for cleaner training data, but
192
- should expect slightly different scores due to the changed iteration order.
193
-
194
- The shipped `checkpoint.pt` is from the original training run (HSS=0.382).
 
 
 
 
28
 
29
  All shared config lives in `configs/base.json`.
30
 
31
+ ## Evaluation sets
32
+
33
+ Three distinct evaluation sets show up in this work. Every HSS / F1 / IoU
34
+ number below is from one of these three; we try to tag each number with which.
35
+
36
+ - **Dev val** = the last 1024 scenes of the published training set
37
+ (`hf://usm3d/s23dr-2026-sampled_*_v2:train`). This is what we actually
38
+ optimized against during development, and it is the set behind every
39
+ "HSS=0.382"-style number in this document, in `submitted_2048/README.md`,
40
+ and in the run-history files under `repro_runs/` and the validation-archive.
41
+ - **Official validation** = `hf://usm3d/s23dr-2026-sampled_*_v2:validation`
42
+ (equivalently the `*public*` tars in `usm3d/hoho22k_2026_test_x_anon`).
43
+ We did *not* eval on this split during development. No HSS number in this
44
+ repo refers to it.
45
+ - **Public test** = the `*private*` tars in `usm3d/hoho22k_2026_test_x_anon`,
46
+ scored by the competition harness and posted to the leaderboard. We have
47
+ two such numbers, both clearly labeled "public test" wherever they appear:
48
+ **0.4273** (2048 submission, commit `f4487da`) and **0.4470** (4096
49
+ submission, commit `4946666`).
50
+
51
+ Because we never validated against the official validation split, there is
52
+ some risk that the dev-val numbers are mildly overfit to the last-1024-train
53
+ slice. The +0.06 dev-val-to-public-test gap (consistent across both
54
+ submissions, see `submitted_2048/README.md`) is empirically positive, but it
55
+ is not a substitute for actually scoring on official val.
56
+
57
  ### Step 1: 2048 Phase 1 (from scratch) β€” ~1.5hr
58
 
59
  ```
 
75
  **Why 2048 first:** Training directly on 4096 overfits (1.47x train/val ratio
76
  vs 1.19x for 2048). The 2048 model learns better-generalized representations.
77
 
78
+ **Output:** dev val HSS ~0.28.
79
 
80
  ### Step 2: 4096 finetune (constant LR) β€” ~15min
81
 
 
92
  66% to 74%. The gentle lr (3e-5) preserves learned representations while
93
  adapting to the extra input. Higher LR (>1e-4) causes catastrophic forgetting.
94
 
95
+ Dev val HSS jumps from 0.28 to 0.35 in ~5k steps. Plateaus by 10k steps.
96
 
97
+ **Output:** dev val HSS ~0.35.
98
 
99
  ### Step 3: Cooldown with endpoint loss β€” ~1hr
100
 
 
112
  tighten vertex precision. The sinkhorn loss alone operates on segment
113
  midpoint/direction/length and doesn't directly penalize endpoint position error.
114
 
115
+ **Output:** dev val HSS=0.382, F1=0.414. Public test HSS=0.4470.
116
 
117
  ### Key Numbers
118
 
119
+ Per-stage **dev val** scores from the **original training run** (March 23-26),
120
+ which produced the shipped `checkpoint.pt`. Re-running `reproduce.sh` from
121
+ scratch does not hit these exact numbers - see "Reproduction Results" below for
122
+ the actual ranges. Compiled-mode re-runs of Step 3 land in dev val 0.342-0.379,
123
+ with the best run from this codebase at 0.376.
124
+
125
+ | Stage | Steps | Dev val HSS | Dev val F1 | What changed |
126
+ |-------|-------|-------------|------------|--------------|
127
  | After Step 1 | 125k | 0.281 | 0.156 | Learned geometry from 2048 pts |
128
  | After Step 2 | 135k | 0.351 | 0.190 | +74% coverage from 4096 pts |
129
  | After Step 3 | 170k | **0.382** | **0.411** | Vertex precision from endpoint loss |
 
143
  directly penalizes vertex position errors, which sinkhorn loss alone
144
  doesn't do (it operates on midpoint/direction/length parametrization).
145
 
146
+ ## What Doesn't Work (yet)
147
+
148
+ These are informal observations from one-off experiments during development.
149
+ The runs, args, and eval logs are mostly [here](https://github.com/JackLangerman/s23dr_2026_example),
150
+ but not all of them are preserved perfectly. The specific numbers below come from contemaranious notes,
151
+ but are not all trivially reproducable. Take them as directional guidance, not as benchmarks.
152
+
153
+ - **Training 4096 from scratch:** observed to overfit (~1.47x train/val loss
154
+ gap, vs ~1.19x for 2048) and peak around dev val HSS 0.346 in a single run.
155
+ - **BuildingWorld pretraining:** in one experiment, the representations were
156
+ near-orthogonal to S23DR (cosine sim ~0.05 between learned features) and
157
+ did not transfer.
158
+ - **Mixed BW+S23DR training:** mixing BW data into the S23DR loader hurt
159
+ dev val HSS in the runs we tried, presumed to be from domain gap.
160
+ - **High dropout / weight decay:** lowered the train/val gap but also lowered
161
+ dev val HSS in the configurations we tried.
162
+ - **High finetune LR (>1e-4):** dropped dev val HSS sharply in Step 2 in
163
+ single-run observations, consistent with disrupting the Step 1 representations.
164
+ - **Steeper cooldown (1e-5, 20x drop):** slightly worse than 3e-5 in the one
165
+ comparison we ran for this checkpoint.
166
 
167
  ## Reproduction Results
168
 
169
  ### End-to-end reproductions
170
 
171
+ All HSS / F1 / IoU below are on **dev val**.
172
+
173
+ | Model | Dev val HSS | Dev val F1 | Dev val IoU | Notes |
174
+ |-------|-------------|------------|-------------|-------|
175
+ | Original | 0.382 | 0.414 | 0.370 | Shipped checkpoint, original training run, not reproducible from this codebase |
176
  | E2E repro #4 | 0.379 | 0.409 | 0.369 | Closest E2E, `repro_runs/e2e_repro4_hss379/` |
177
  | Compiled repro (from submission codebase) | 0.376 | β€” | β€” | Best compiled repro from this codebase, `repro_runs/compiled_repro_hss376/` |
178
  | E2E repro #3 | 0.375 | 0.404 | 0.367 | |
179
  | Deterministic E2E | 0.372 | 0.398 | 0.368 | Bit-reproducible, `repro_runs/deterministic_hss372/` |
180
+ | E2E repro #5 | 0.349 | 0.373 | β€” | Compiled, low end of cluster |
181
+ | `reproduce.sh` smoketest | 0.342 | β€” | β€” | Single run of the published script end-to-end (validation-archive `runs/reproduce_smoketest/`) |
182
 
183
  ### Partial reproductions (isolating pipeline stages)
184
 
185
+ | Test | Starting from | Dev val HSS | Gap to original |
186
+ |------|--------------|-------------|-----------------|
187
  | Step 3 from orig Step 2 (run A) | Original step135000.pt | 0.382 | 0.000 |
188
  | Step 3 from orig Step 2 (run B) | Original step135000.pt | 0.384 | +0.002 |
189
  | Step 2+3 from orig Step 1 | Original step125000.pt | 0.377 | -0.005 |
190
+ | Step 1 from orig step 100k | Original step100000.pt | 0.285 (Step 1) | +0.004 vs 0.281 |
191
 
192
+ Step 3 from the same checkpoint reproduces to within 0.002 dev val HSS. The
193
+ full E2E dev val HSS variance (0.342-0.379, see All benchmarks below) is
194
+ dominated by torch.compile nondeterminism in Step 1.
195
 
196
  ### All benchmarks
197
 
198
+ The HSS / F1 / IoU columns below are all on **dev val**. Public-test scores
199
+ appear in the Notes column where available.
200
+
201
+ | Model | Input | Dev val HSS | Dev val F1 | Dev val IoU | Notes |
202
+ |-------|-------|-------------|------------|-------------|-------|
203
  | Handcrafted baseline | raw views | 0.307 | 0.404 | 0.260 | |
204
+ | h256+qk+ep (submitted) | 2048 | 0.365 | 0.388 | 0.360 | Public test HSS=0.4273 (commit f4487da) |
205
  | Original 3-step | 2048 | 0.373 | 0.404 | 0.363 | |
206
+ | Original 3-step | 4096 | 0.382 | 0.414 | 0.370 | Best ever, original training. **Public test HSS=0.4470** (commit 4946666) |
207
+ | Step3 repro from orig S2 | 4096 | 0.384 | 0.414 | β€” | Near-exact repro from a saved Step 2 ckpt |
208
  | E2E repro #4 | 4096 | 0.379 | 0.409 | 0.369 | |
209
  | Compiled repro (submission codebase) | 4096 | 0.376 | β€” | β€” | Best compiled from this exact codebase |
210
  | E2E repro #3 | 4096 | 0.375 | 0.404 | 0.367 | |
211
+ | Deterministic E2E | 4096 | 0.372 | 0.398 | 0.368 | Bit-reproducible across runs (different trajectory than compiled) |
212
+ | E2E repro #5 | 4096 | 0.349 | 0.373 | β€” | Compiled, low end of cluster |
213
+ | `reproduce.sh` smoketest | 4096 | 0.342 | β€” | β€” | Single E2E run of the published `reproduce.sh` |
214
+
215
+ The shipped 0.382 is by definition not reachable from this codebase (the
216
+ original training run is gone). Best compiled repro is **0.376**, mode of
217
+ compiled repros is around 0.375-0.379, and the lower tail extends to 0.342.
218
 
219
  ## Code Equivalence Verification
220
 
 
224
  | Loss computation | Bit-identical (0.00 diff) |
225
  | Gradient computation | 5e-8 max diff |
226
  | Training from same seed | Bit-identical steps 1-44 |
227
+ | Step 3 from same checkpoint (2 runs) | Dev val HSS=0.382, 0.384 |
228
  | Deterministic mode (2 runs) | Bit-identical (0.00 diff) |
229
 
230
  ## Reproducibility Notes
231
 
232
+ All HSS numbers in this section are on **dev val**.
233
+
234
  **Default mode** (`reproduce.sh`): Uses torch.compile (~3x faster). Each run
235
  gets different Triton kernels, causing ~1e-8 floating-point divergence at a
236
+ random step (31-45). This grows through chaotic SGD dynamics. Documented
237
+ compiled E2E runs from this codebase have produced dev val HSS in
238
+ **0.342-0.379**; the modal cluster is 0.375-0.379, with low-side excursions
239
+ at 0.349 and 0.342 (no high-side outliers, so the distribution is one-sided
240
+ rather than symmetric around a mean). Best compiled repro is 0.376, vs the
241
+ shipped 0.382 from the original (lost) training run.
242
+
243
+ **Deterministic mode** (`--deterministic` flag): Disables torch.compile and
244
+ forces CUDA deterministic ops. Bit-identical across runs with the same seed
245
+ (verified across 3 independent runs). Dev val HSS=0.372. Note: deterministic
246
+ mode **diverges from compiled mode at step 1** because eager and compiled
247
+ forward passes use different floating-point reduction orders - it is a
248
+ different numerical trajectory entirely, not a reproduction of any compiled run.
249
 
250
  **bad_samples.txt**: The shipped file has 156 entries to match original training.
251
  (Note: `wc -l` reports 155 because the last line lacks a trailing newline.)
252
  Two additional bad samples (`47b0e0ce19b`, `4b2d56eb3ef`) were discovered after
253
  the original training run. They are legitimately bad (misaligned GT) but were
254
  included in the original training data. Adding them changes the batch iteration
255
+ order and costs ~0.005 dev val HSS in deterministic mode (0.372 -> 0.367) and
256
+ ~0.04 in compiled mode (0.376 -> 0.335 in our `validate_155_compiled` vs
257
+ `validate_158_compiled` runs) due to compounded torch.compile variance.
258
+ Participants training from scratch may wish to add these 2 entries for cleaner
259
+ training data, but should expect slightly different scores due to the changed
260
+ iteration order.
261
+
262
+ The shipped `checkpoint.pt` is from the original training run
263
+ (dev val HSS=0.382, public test HSS=0.4470).
submitted_2048/README.md CHANGED
@@ -1,16 +1,19 @@
1
- # Submitted 2048 Model (public leaderboard entry)
2
 
3
- This is the checkpoint that was actually submitted to the S23DR 2026 public leaderboard. It trains on the 2048-point dataset only (single-stage, no 4096 transfer). The current top-level `checkpoint.pt` (HSS=0.382 val) is its direct descendant via the 3-step 2048 -> 4096 -> endpoint-cooldown recipe.
4
 
5
  | Split | Metric | Score |
6
  |---|---|---|
7
- | Public leaderboard (test) | HSS | **0.427** |
8
- | Internal val (2048, 1024 samples) | HSS_conf | 0.369 |
9
- | Internal val (4096, 1024 samples) | HSS_conf | 0.367 |
 
 
 
10
 
11
  ## Training details
12
 
13
- Single-stage training on `hf://usm3d/s23dr-2026-sampled_2048_v2:train`:
14
 
15
  - **Architecture:** same Perceiver as the current release (hidden=256, latent_tokens=256, latent_layers=7, segments=64)
16
  - **Input:** 2048 points
@@ -30,6 +33,13 @@ This checkpoint expects 2048-point input. To run it with the submission harness
30
 
31
  ## Why it is included
32
 
33
- The current release (`../checkpoint.pt`, HSS=0.382 val) is a strict improvement over this one, but only on the internal val split. The **0.427 public leaderboard score** is the only test-set number we have, so this checkpoint is preserved as the empirical anchor for the val-to-test gap.
 
 
 
 
 
 
 
34
 
35
- Val-to-test gap observed: **0.369 val -> 0.427 test** (about +0.06). The same train/val/test relationship should roughly carry over to the current 0.382-val release, but we do not have a test number for it since the leaderboard uses this older model.
 
1
+ # Submitted 2048 Model (earlier public leaderboard entry)
2
 
3
+ This is the **earlier** of two checkpoints submitted to the S23DR 2026 public leaderboard. It trains on the 2048-point dataset only (no 4096 transfer); within 2048 it is two-phase (phase 1 from scratch + phase 2 with endpoint loss and cooldown, resumed from `step125000.pt`). The current top-level `checkpoint.pt` (dev val HSS=0.382, public test HSS=0.4470) is its descendant via the 3-step 2048 -> 4096 -> endpoint-cooldown recipe and is the better submission on both dev val and public test.
4
 
5
  | Split | Metric | Score |
6
  |---|---|---|
7
+ | Public test (leaderboard) | HSS | **0.4273** |
8
+ | Dev val (last 1024 train scenes), 2048-pt input | HSS_conf | 0.369 |
9
+ | Dev val (last 1024 train scenes), 4096-pt input | HSS_conf | 0.367 |
10
+
11
+ We did not eval on the official validation split (`hf://usm3d/s23dr-2026-sampled_*_v2:validation`)
12
+ during development, so no number here refers to it. See "Evaluation sets" in `../REPRODUCE.md`.
13
 
14
  ## Training details
15
 
16
+ Two-phase 2048-only training on `hf://usm3d/s23dr-2026-sampled_2048_v2:train` (phase 1 from scratch to step 125k, phase 2 resumed from `step125000.pt` and trained to step 160k with endpoint loss and a 20k-step cooldown ending at step 160k):
17
 
18
  - **Architecture:** same Perceiver as the current release (hidden=256, latent_tokens=256, latent_layers=7, segments=64)
19
  - **Input:** 2048 points
 
33
 
34
  ## Why it is included
35
 
36
+ The current release (`../checkpoint.pt`, dev val HSS=0.382) is the better submission on both dev val and public test. This older checkpoint is preserved as the empirical anchor for the dev-val-to-public-test gap.
37
+
38
+ Dev-val-to-public-test gap observed across both submissions:
39
+
40
+ | Submission | Dev val HSS | Public test HSS | Gap |
41
+ |---|---|---|---|
42
+ | 2048 (this checkpoint) | 0.369 | 0.4273 | +0.058 |
43
+ | 4096 (`../checkpoint.pt`) | 0.382 | 0.4470 | +0.065 |
44
 
45
+ Both submissions show roughly the same +0.06 dev-val-to-public-test gap, so dev val HSS appears to be a reasonable proxy for public test HSS at this scale (subject to whatever distributional differences exist between the dev val split, the official validation split we did not eval on, and the public test split). Note that the inference pipeline also changed between the two submissions (`SEQ_LEN` 2048 -> 4096, `CONF_THRESH` 0.7 -> 0.5, single-pass merge -> iterative merge), so the +0.020 public test gain is not attributable to the model alone.