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

update docs

Browse files
Files changed (4) hide show
  1. LICENSE.md +408 -0
  2. README.md +152 -134
  3. REPRODUCE.md +111 -42
  4. submitted_2048/README.md +18 -8
LICENSE.md ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. Copyright and Similar Rights means copyright and/or similar rights
88
+ closely related to copyright including, without limitation,
89
+ performance, broadcast, sound recording, and Sui Generis Database
90
+ Rights, without regard to how the rights are labeled or
91
+ categorized. For purposes of this Public License, the rights
92
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
93
+ Rights.
94
+ d. Effective Technological Measures means those measures that, in the
95
+ absence of proper authority, may not be circumvented under laws
96
+ fulfilling obligations under Article 11 of the WIPO Copyright
97
+ Treaty adopted on December 20, 1996, and/or similar international
98
+ agreements.
99
+
100
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
101
+ any other exception or limitation to Copyright and Similar Rights
102
+ that applies to Your use of the Licensed Material.
103
+
104
+ f. Licensed Material means the artistic or literary work, database,
105
+ or other material to which the Licensor applied this Public
106
+ License.
107
+
108
+ g. Licensed Rights means the rights granted to You subject to the
109
+ terms and conditions of this Public License, which are limited to
110
+ all Copyright and Similar Rights that apply to Your use of the
111
+ Licensed Material and that the Licensor has authority to license.
112
+
113
+ h. Licensor means the individual(s) or entity(ies) granting rights
114
+ under this Public License.
115
+
116
+ i. NonCommercial means not primarily intended for or directed towards
117
+ commercial advantage or monetary compensation. For purposes of
118
+ this Public License, the exchange of the Licensed Material for
119
+ other material subject to Copyright and Similar Rights by digital
120
+ file-sharing or similar means is NonCommercial provided there is
121
+ no payment of monetary compensation in connection with the
122
+ exchange.
123
+
124
+ j. Share means to provide material to the public by any means or
125
+ process that requires permission under the Licensed Rights, such
126
+ as reproduction, public display, public performance, distribution,
127
+ dissemination, communication, or importation, and to make material
128
+ available to the public including in ways that members of the
129
+ public may access the material from a place and at a time
130
+ individually chosen by them.
131
+
132
+ k. Sui Generis Database Rights means rights other than copyright
133
+ resulting from Directive 96/9/EC of the European Parliament and of
134
+ the Council of 11 March 1996 on the legal protection of databases,
135
+ as amended and/or succeeded, as well as other essentially
136
+ equivalent rights anywhere in the world.
137
+
138
+ l. You means the individual or entity exercising the Licensed Rights
139
+ under this Public License. Your has a corresponding meaning.
140
+
141
+
142
+ Section 2 -- Scope.
143
+
144
+ a. License grant.
145
+
146
+ 1. Subject to the terms and conditions of this Public License,
147
+ the Licensor hereby grants You a worldwide, royalty-free,
148
+ non-sublicensable, non-exclusive, irrevocable license to
149
+ exercise the Licensed Rights in the Licensed Material to:
150
+
151
+ a. reproduce and Share the Licensed Material, in whole or
152
+ in part, for NonCommercial purposes only; and
153
+
154
+ b. produce, reproduce, and Share Adapted Material for
155
+ NonCommercial purposes only.
156
+
157
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
158
+ Exceptions and Limitations apply to Your use, this Public
159
+ License does not apply, and You do not need to comply with
160
+ its terms and conditions.
161
+
162
+ 3. Term. The term of this Public License is specified in Section
163
+ 6(a).
164
+
165
+ 4. Media and formats; technical modifications allowed. The
166
+ Licensor authorizes You to exercise the Licensed Rights in
167
+ all media and formats whether now known or hereafter created,
168
+ and to make technical modifications necessary to do so. The
169
+ Licensor waives and/or agrees not to assert any right or
170
+ authority to forbid You from making technical modifications
171
+ necessary to exercise the Licensed Rights, including
172
+ technical modifications necessary to circumvent Effective
173
+ Technological Measures. For purposes of this Public License,
174
+ simply making modifications authorized by this Section 2(a)
175
+ (4) never produces Adapted Material.
176
+
177
+ 5. Downstream recipients.
178
+
179
+ a. Offer from the Licensor -- Licensed Material. Every
180
+ recipient of the Licensed Material automatically
181
+ receives an offer from the Licensor to exercise the
182
+ Licensed Rights under the terms and conditions of this
183
+ Public License.
184
+
185
+ b. No downstream restrictions. You may not offer or impose
186
+ any additional or different terms or conditions on, or
187
+ apply any Effective Technological Measures to, the
188
+ Licensed Material if doing so restricts exercise of the
189
+ Licensed Rights by any recipient of the Licensed
190
+ Material.
191
+
192
+ 6. No endorsement. Nothing in this Public License constitutes or
193
+ may be construed as permission to assert or imply that You
194
+ are, or that Your use of the Licensed Material is, connected
195
+ with, or sponsored, endorsed, or granted official status by,
196
+ the Licensor or others designated to receive attribution as
197
+ provided in Section 3(a)(1)(A)(i).
198
+
199
+ b. Other rights.
200
+
201
+ 1. Moral rights, such as the right of integrity, are not
202
+ licensed under this Public License, nor are publicity,
203
+ privacy, and/or other similar personality rights; however, to
204
+ the extent possible, the Licensor waives and/or agrees not to
205
+ assert any such rights held by the Licensor to the limited
206
+ extent necessary to allow You to exercise the Licensed
207
+ Rights, but not otherwise.
208
+
209
+ 2. Patent and trademark rights are not licensed under this
210
+ Public License.
211
+
212
+ 3. To the extent possible, the Licensor waives any right to
213
+ collect royalties from You for the exercise of the Licensed
214
+ Rights, whether directly or through a collecting society
215
+ under any voluntary or waivable statutory or compulsory
216
+ licensing scheme. In all other cases the Licensor expressly
217
+ reserves any right to collect such royalties, including when
218
+ the Licensed Material is used other than for NonCommercial
219
+ purposes.
220
+
221
+
222
+ Section 3 -- License Conditions.
223
+
224
+ Your exercise of the Licensed Rights is expressly made subject to the
225
+ following conditions.
226
+
227
+ a. Attribution.
228
+
229
+ 1. If You Share the Licensed Material (including in modified
230
+ form), You must:
231
+
232
+ a. retain the following if it is supplied by the Licensor
233
+ with the Licensed Material:
234
+
235
+ i. identification of the creator(s) of the Licensed
236
+ Material and any others designated to receive
237
+ attribution, in any reasonable manner requested by
238
+ the Licensor (including by pseudonym if
239
+ designated);
240
+
241
+ ii. a copyright notice;
242
+
243
+ iii. a notice that refers to this Public License;
244
+
245
+ iv. a notice that refers to the disclaimer of
246
+ warranties;
247
+
248
+ v. a URI or hyperlink to the Licensed Material to the
249
+ extent reasonably practicable;
250
+
251
+ b. indicate if You modified the Licensed Material and
252
+ retain an indication of any previous modifications; and
253
+
254
+ c. indicate the Licensed Material is licensed under this
255
+ Public License, and include the text of, or the URI or
256
+ hyperlink to, this Public License.
257
+
258
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
259
+ reasonable manner based on the medium, means, and context in
260
+ which You Share the Licensed Material. For example, it may be
261
+ reasonable to satisfy the conditions by providing a URI or
262
+ hyperlink to a resource that includes the required
263
+ information.
264
+
265
+ 3. If requested by the Licensor, You must remove any of the
266
+ information required by Section 3(a)(1)(A) to the extent
267
+ reasonably practicable.
268
+
269
+ 4. If You Share Adapted Material You produce, the Adapter's
270
+ License You apply must not prevent recipients of the Adapted
271
+ Material from complying with this Public License.
272
+
273
+
274
+ Section 4 -- Sui Generis Database Rights.
275
+
276
+ Where the Licensed Rights include Sui Generis Database Rights that
277
+ apply to Your use of the Licensed Material:
278
+
279
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
280
+ to extract, reuse, reproduce, and Share all or a substantial
281
+ portion of the contents of the database for NonCommercial purposes
282
+ only;
283
+
284
+ b. if You include all or a substantial portion of the database
285
+ contents in a database in which You have Sui Generis Database
286
+ Rights, then the database in which You have Sui Generis Database
287
+ Rights (but not its individual contents) is Adapted Material; and
288
+
289
+ c. You must comply with the conditions in Section 3(a) if You Share
290
+ all or a substantial portion of the contents of the database.
291
+
292
+ For the avoidance of doubt, this Section 4 supplements and does not
293
+ replace Your obligations under this Public License where the Licensed
294
+ Rights include other Copyright and Similar Rights.
295
+
296
+
297
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
298
+
299
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
300
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
301
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
302
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
303
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
304
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
305
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
306
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
307
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
308
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
309
+
310
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
311
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
312
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
313
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
314
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
315
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
316
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
317
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
318
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
319
+
320
+ c. The disclaimer of warranties and limitation of liability provided
321
+ above shall be interpreted in a manner that, to the extent
322
+ possible, most closely approximates an absolute disclaimer and
323
+ waiver of all liability.
324
+
325
+
326
+ Section 6 -- Term and Termination.
327
+
328
+ a. This Public License applies for the term of the Copyright and
329
+ Similar Rights licensed here. However, if You fail to comply with
330
+ this Public License, then Your rights under this Public License
331
+ terminate automatically.
332
+
333
+ b. Where Your right to use the Licensed Material has terminated under
334
+ Section 6(a), it reinstates:
335
+
336
+ 1. automatically as of the date the violation is cured, provided
337
+ it is cured within 30 days of Your discovery of the
338
+ violation; or
339
+
340
+ 2. upon express reinstatement by the Licensor.
341
+
342
+ For the avoidance of doubt, this Section 6(b) does not affect any
343
+ right the Licensor may have to seek remedies for Your violations
344
+ of this Public License.
345
+
346
+ c. For the avoidance of doubt, the Licensor may also offer the
347
+ Licensed Material under separate terms or conditions or stop
348
+ distributing the Licensed Material at any time; however, doing so
349
+ will not terminate this Public License.
350
+
351
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
352
+ License.
353
+
354
+
355
+ Section 7 -- Other Terms and Conditions.
356
+
357
+ a. The Licensor shall not be bound by any additional or different
358
+ terms or conditions communicated by You unless expressly agreed.
359
+
360
+ b. Any arrangements, understandings, or agreements regarding the
361
+ Licensed Material not stated herein are separate from and
362
+ independent of the terms and conditions of this Public License.
363
+
364
+
365
+ Section 8 -- Interpretation.
366
+
367
+ a. For the avoidance of doubt, this Public License does not, and
368
+ shall not be interpreted to, reduce, limit, restrict, or impose
369
+ conditions on any use of the Licensed Material that could lawfully
370
+ be made without permission under this Public License.
371
+
372
+ b. To the extent possible, if any provision of this Public License is
373
+ deemed unenforceable, it shall be automatically reformed to the
374
+ minimum extent necessary to make it enforceable. If the provision
375
+ cannot be reformed, it shall be severed from this Public License
376
+ without affecting the enforceability of the remaining terms and
377
+ conditions.
378
+
379
+ c. No term or condition of this Public License will be waived and no
380
+ failure to comply consented to unless expressly agreed to by the
381
+ Licensor.
382
+
383
+ d. Nothing in this Public License constitutes or may be interpreted
384
+ as a limitation upon, or waiver of, any privileges and immunities
385
+ that apply to the Licensor or You, including from the legal
386
+ processes of any jurisdiction or authority.
387
+
388
+ =======================================================================
389
+
390
+ Creative Commons is not a party to its public
391
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
392
+ its public licenses to material it publishes and in those instances
393
+ will be considered the β€œLicensor.” The text of the Creative Commons
394
+ public licenses is dedicated to the public domain under the CC0 Public
395
+ Domain Dedication. Except for the limited purpose of indicating that
396
+ material is shared under a Creative Commons public license or as
397
+ otherwise permitted by the Creative Commons policies published at
398
+ creativecommons.org/policies, Creative Commons does not authorize the
399
+ use of the trademark "Creative Commons" or any other trademark or logo
400
+ of Creative Commons without its prior written consent including,
401
+ without limitation, in connection with any unauthorized modifications
402
+ to any of its public licenses or any other arrangements,
403
+ understandings, or agreements concerning use of licensed material. For
404
+ the avoidance of doubt, this paragraph does not form part of the
405
+ public licenses.
406
+
407
+ Creative Commons may be contacted at creativecommons.org.
408
+
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 and full of claudeisms [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](https://huggingface.co/datasets/BuildingWorld/BuildingWorld) help? One attempt at "pretraining" run on BuildingWorld didn't help, but maybe you can make it work or perhaps mixing 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? Quick measurement to motivate this: the current priority-sampling-to-2048-points pipeline can only reach ~67% of GT vertices (within 0.5m), vs ~85% if the full COLMAP PCD were available - so the input pipeline is a hard ceiling on vertex recall, regardless of how good the model gets.
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.