AntonioJun commited on
Commit
8e80498
·
verified ·
1 Parent(s): 67f2130

Add files using upload-large-folder tool

Browse files
experiments/EXPERIMENT FINDINGS.md CHANGED
@@ -1,8 +1,22 @@
1
  # Experiment Findings
2
 
3
- This report summarizes every completed hypothesis currently recorded under
4
- `experiments/results/symbolic/metric/tracking/uniform`. Unless stated otherwise, experiments use
5
- metric depth, tracking masks, uniform input, and 64 frames. Scores are percentages.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  ## Baselines
8
 
@@ -108,7 +122,7 @@ answer functions rather than forcing one representative policy onto every task.
108
  6. Relative direction and appearance order: retain the 64-frame baseline until a targeted
109
  hypothesis improves them.
110
 
111
- ## Overall conclusions
112
 
113
  - Sixty-four frames are the best default compromise across categories.
114
  - Different question categories require different geometry policies. Improvements in relative
@@ -123,14 +137,14 @@ answer functions rather than forcing one representative policy onto every task.
123
  - Route planning remains at zero across these runs and needs parser/symbolic-execution work rather
124
  than geometric-distance tuning.
125
 
126
- ## Reproducibility
127
 
128
  Each row above comes from its saved `_summary.json`. Spatial codes are under
129
  `experiments/caches/spatial codes`, symbolic results are under `experiments/results/symbolic`,
130
  and the corresponding modified geometry implementations are under `experiments/hypotheses`.
131
  The experiment test suite passed with 35 tests after the latest hypothesis additions.
132
 
133
- ## Exact hypothesis index
134
 
135
  The following are the exact hypothesis names used by the launcher and results directories:
136
 
@@ -160,3 +174,867 @@ The following are the exact hypothesis names used by the launcher and results di
160
  - `Require Object Count Peaks to Persist Across Frames`
161
  - `Select Distance Instances Using Centroid Stability Across Frames`
162
  - `Select Representative Instances Using Track Persistence` (evaluated at 32, 64, and 96 frames)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Experiment Findings
2
 
3
+ This report merges every completed hypothesis recorded under `experiments/results/symbolic`
4
+ against **both** spatial-code schemas produced by `encoder/geometric.py`: the **original**
5
+ schema (Part 1) and the **compact** schema (Part 2). The two parts are kept as distinct sections
6
+ rather than fully interleaved because the compact adapter's own math (instance consolidation,
7
+ distance-table construction, `symbolic/adapters.py`) is a different surface area from the
8
+ original schema's encoder path, even though both are produced by the same `encoder/geometric.py`
9
+ and — as of this session's refactor — the original schema is now a **strict, provably-derivable
10
+ subset of the compact schema** (see `encoder/geometric.py::build_original_spatial_code`).
11
+
12
+ Scores throughout are percentages from `symbolic`'s own official VSI-Bench scorer.
13
+
14
+ ---
15
+
16
+ # Part 1 — Original spatial-code schema
17
+
18
+ Unless stated otherwise, experiments in this part use metric depth, tracking masks, uniform
19
+ input, and 64 frames.
20
 
21
  ## Baselines
22
 
 
122
  6. Relative direction and appearance order: retain the 64-frame baseline until a targeted
123
  hypothesis improves them.
124
 
125
+ ## Overall conclusions (Part 1)
126
 
127
  - Sixty-four frames are the best default compromise across categories.
128
  - Different question categories require different geometry policies. Improvements in relative
 
137
  - Route planning remains at zero across these runs and needs parser/symbolic-execution work rather
138
  than geometric-distance tuning.
139
 
140
+ ## Reproducibility (Part 1)
141
 
142
  Each row above comes from its saved `_summary.json`. Spatial codes are under
143
  `experiments/caches/spatial codes`, symbolic results are under `experiments/results/symbolic`,
144
  and the corresponding modified geometry implementations are under `experiments/hypotheses`.
145
  The experiment test suite passed with 35 tests after the latest hypothesis additions.
146
 
147
+ ## Exact hypothesis index (Part 1)
148
 
149
  The following are the exact hypothesis names used by the launcher and results directories:
150
 
 
174
  - `Require Object Count Peaks to Persist Across Frames`
175
  - `Select Distance Instances Using Centroid Stability Across Frames`
176
  - `Select Representative Instances Using Track Persistence` (evaluated at 32, 64, and 96 frames)
177
+
178
+ ---
179
+
180
+ # Part 2 — Compact spatial-code schema
181
+
182
+ Unless stated otherwise, experiments in this part use metric depth, tracking masks, selective
183
+ input; scores are percentages from `symbolic`'s own official VSI-Bench scorer (see Infrastructure
184
+ below for exactly how each number was produced).
185
+
186
+ ## Baseline
187
+
188
+ The production baseline (`/workspace/results/symbolic/metric/tracking/selective/<frames>/compact/`,
189
+ outside the experiments sandbox) reflects `symbolic/solver.py` as of this session, which already
190
+ includes three targeted solver-side fixes made before this report existed:
191
+
192
+ - `object_size_estimation`: use the max "longest dimension" across all tracked instances of a
193
+ class, not just instance 0 (a partial/occluded view can only underestimate true size).
194
+ - `route_planning`: fixed a regex bug that let the last "Go forward" step's target name swallow
195
+ trailing sentence text, and added a fallback that uses the question's stated final destination
196
+ as an implicit last waypoint.
197
+ - `object_abs_distance`: take `max(closest-classes-table value, a center-distance-minus-half-
198
+ dimensions estimate)` instead of the table value alone -- the table's min-across-every-instance-
199
+ pair definition lets one noisy/mislocalized instance drag a specific named pair's distance
200
+ toward zero.
201
+ - `object_abs_distance` missing-detection fallback (added later this session -- see "The
202
+ breakthrough" below): when either named object was never detected, answer with the room's own
203
+ expected random-point distance instead of returning None (a guaranteed hard zero).
204
+
205
+ | Frames | Overall | Counting | Abs. distance | Object size | Room size | Rel. distance | Rel. direction | Appearance order | Route planning |
206
+ |---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|
207
+ | 32 | 46.28 | 49.43 | 59.57 | 46.30 | 55.69 | 58.10 | 48.49 | 52.63 | 0.00 |
208
+ | 64 | **48.02** | 49.64 | **60.38** | 48.70 | 57.36 | 57.54 | 50.68 | **59.87** | 0.00 |
209
+
210
+ (Baseline before the missing-detection fallback: abs. distance 51.87 / 53.16, overall 45.31 /
211
+ 47.12 at 32 / 64 frames.)
212
+
213
+ 64 frames is the better default here too, same as the original-schema baseline table in Part 1.
214
+ `route_planning` is 0% in every compact-schema run tried this session, regardless of
215
+ depth/tracking/input/frames -- traced to two causes, neither fixable by more solver-side formula
216
+ tuning: ~86% of available route-planning questions reference at least one object never detected
217
+ in that scene at all (upstream detection-coverage gap), and the remaining handful hit two genuine
218
+ chained-turn-algorithm gaps (two consecutive "[please fill in]" steps with no intervening
219
+ waypoint; a route ending on "[please fill in]" whose only remaining target is the question's
220
+ *stated* destination, not a named step).
221
+
222
+ ## Numeric (MRA) question follow-up: never-None fallbacks and the credit-band map
223
+
224
+ After the `object_abs_distance` breakthrough (see "The breakthrough" section below), the same
225
+ "a hard zero is the worst possible answer" lens was applied to the other numeric types, plus a
226
+ map of where each numeric type's answers fall relative to the official scorer's credit bands.
227
+
228
+ The MRA scorer (`mean_relative_accuracy`) grades purely on the ratio `r = pred / ground_truth`:
229
+ credit only when `r` is within [0.5, 1.5], scaling to full credit at [0.95, 1.05]. Mapping our
230
+ 64-frame answers into those bands:
231
+
232
+ | Type | median ratio | zero (r<0.5) | partial | full (0.95-1.05) | zero (r>1.5) |
233
+ |---|---:|---:|---:|---:|---:|
234
+ | object_counting | 1.000 | 7% | 47% | 37% | 9% |
235
+ | room_size_estimation | 0.815 | 11% | 75% | 11% | 3% |
236
+ | object_size_estimation | 0.779 | 12% | 77% | 7% | 4% |
237
+
238
+ `object_counting` is already well-centered on 1.0 -- no systematic bias to exploit, it is as
239
+ good as detection quality allows. `object_size` and `room_size` are both systematically biased
240
+ LOW (medians 0.78/0.82): their entire partial-credit mass sits below 1.0, and 12%/11% score a
241
+ hard zero purely from `r < 0.5`. Shifting those distributions upward -- structurally, without a
242
+ fitted constant -- is the lever.
243
+
244
+ Solver-only numeric fallbacks shipped in `symbolic/solver.py` (each uses only scene-derived
245
+ data, never a dataset-fitted constant):
246
+ - `object_size_estimation`: when the asked-about class was never detected, answer the scene's
247
+ own median object longest-dimension instead of None (its size is unknown; a typical object of
248
+ THIS room is the least-assuming estimate). Recovered 16 previously-unanswered questions ->
249
+ object_size 46.30/48.70 -> **47.65/49.96** (32f/64f).
250
+
251
+ ## Encoder (geometric.py) hypotheses
252
+
253
+ | Hypothesis | Frames | Overall | Counting | Abs. distance | Object size | Finding |
254
+ |---|---:|---:|---:|---:|---:|---|
255
+ | Size Compact Boxes By Fullest Observed Extent (max) | 32 | 48.72 | 49.43 | 59.00 | 51.72 | Size +4, but drops distance. |
256
+ | Size Compact Boxes By Fullest Observed Extent (max) | 64 | 49.63 | 49.64 | 58.80 | 55.34 | Size +5.4, but distance falls below 60. |
257
+ | Size Compact Boxes By High Observed Extent Percentile (0.90) | 32 | 48.63 | 49.43 | 59.38 | 51.22 | **ADOPTED** -- size +3.6, distance ~flat. |
258
+ | Size Compact Boxes By High Observed Extent Percentile (0.90) | 64 | 49.76 | 49.64 | 60.05 | 54.62 | **ADOPTED** -- size +4.7, distance holds >=60. |
259
+ | Retain All Consolidated Track Instances Regardless Of Peak | 32 | 44.40 | 43.00 | 50.86 | 47.52 | Rejected -- see below. |
260
+ | Retain All Consolidated Track Instances Regardless Of Peak | 64 | 45.95 | 40.29 | 52.49 | 49.58 | Rejected -- see below. |
261
+
262
+ **Size Compact Boxes By High Observed Extent Percentile (ADOPTED, shipped to production
263
+ `encoder/geometric.py`):** `_compact_oriented_box` aggregates each axis's per-observation
264
+ extents across frames. The old choice was the 75th percentile; a partial/occluded/foreshortened
265
+ view can only ever measure a SMALLER extent along an axis than the truth, never larger, so among
266
+ views already confirmed mutually consistent (same object/pose, by the existing MAD filter) the
267
+ fuller views are the more complete ones, and the 75th percentile systematically discards them.
268
+ Raising it to a high percentile recovers that lost extent -- the same "a partial view
269
+ underestimates true extent" principle as the solver's max-across-INSTANCES size fix, one level
270
+ deeper (across OBSERVATIONS within one instance), and matching the original-schema research's
271
+ proven-best "max across frames" result (Part 1). No fitted constant: it is a percentile choice,
272
+ not a scale multiplier tuned to the answer key.
273
+
274
+ The box is SHARED by `object_size` and `object_abs_distance`, and growing it shrinks
275
+ surface-to-surface gaps -- so this is a genuine two-category tradeoff. The absolute max (1.0
276
+ quantile) maximizes size (55.34 at 64f) but drops abs_distance below its hard-won 60 ceiling
277
+ (58.80). The **0.90 quantile** is the balance point: it recovers nearly all the size gain (54.62
278
+ at 64f) while keeping abs_distance above 60 (60.05), and its overall (49.76) actually beats the
279
+ max's (49.63). Chosen deliberately over max for that reason.
280
+
281
+ **Retain All Consolidated Track Instances Regardless Of Peak** (`encoder/geometric.py`'s
282
+ `_consolidate_compact_instances()`, which every compact-format build goes through): the function
283
+ caps each class's retained instance count at `peak` co-visibility -- "max distinct masklets SAM3
284
+ tracks simultaneously in any one frame" (a per-frame number), not the total count of distinct
285
+ physical objects across the whole video. In a large or crowded scene where the camera never frames
286
+ every instance of a class at once (e.g. a classroom with dozens of chairs), this silently discards
287
+ real, well-evidenced tracked instances beyond the peak count -- a clean match for observed
288
+ `object_counting` undercounts as large as engine=6 vs ground_truth=47 for `chair`.
289
+
290
+ The hypothesis: remove the cap entirely, retaining every group that survives the existing
291
+ IoU-based duplicate-track merge (`_compact_duplicate_groups`, >=0.8 box overlap).
292
+
293
+ **Result: regression, both frame counts.** `object_counting` got *worse*, not better --
294
+ overcounts roughly doubled (32f: 26->54; 64f: 39->64) while undercounts fell by less than that,
295
+ for a net accuracy drop (~49% -> 43%/40%). The IoU-overlap merge alone isn't sufficient to catch
296
+ every duplicate/fragmented re-detection of the SAME physical object (e.g. the same static chair
297
+ re-acquired from a different angle after brief occlusion, producing a track whose box doesn't
298
+ spatially overlap the earlier one enough to trigger the merge) -- the peak cap was doing real,
299
+ load-bearing work suppressing exactly those cases, and removing it swapped an undercount bias for
300
+ a worse overcount bias. Every other numeric category shifted by roughly the amount expected from
301
+ noisier instance sets, with no net win. **Change was reverted in `encoder/geometric.py`** (the
302
+ production file); this hypothesis file preserves it as a rejected, reproducible experiment.
303
+
304
+ If this is revisited, the more promising angle is probably tightening/extending
305
+ `_compact_duplicate_groups`'s duplicate-detection itself (e.g. a secondary check for
306
+ same-class tracks with disjoint frame ranges and centroid distance under some
307
+ scene-relative threshold) rather than removing the peak backstop outright -- that would let
308
+ genuinely-distinct instances through without also losing peak's protection against
309
+ re-acquisition duplicates.
310
+
311
+ **Merge Same-Class Instances With Contained Centers (REJECTED):** the opposite direction --
312
+ tighten `_compact_duplicate_groups` to ALSO merge two same-class instances when one box's
313
+ center lies inside the other (physically, two distinct rigid same-class objects can't
314
+ interpenetrate). Motivated by a real signal: the counting ground-truth comparison
315
+ (thinking-in-space `object_counts`) showed 25% of class-counts overcount (ratio > 1.5), and 56
316
+ of 92 overcounted cases had two "distinct" instances closer than the object's own size (an oven
317
+ counted 4x with 6cm-apart centers, a tv split in two 5cm apart) -- clear fragmentation the
318
+ 0.8-overlap test misses.
319
+
320
+ Result: **counting REGRESSED, 49.43 -> 43.71 (32f).** The problem is that counting was already
321
+ well-centered on ratio 1.0 (median), with the 25% overcount balanced by an equal mass of
322
+ correct/under counts; any merge rule pushes ALL counts DOWN, so it turns more correct counts
323
+ into undercounts than it fixes overcounts -- and the AABB center-containment test, being on
324
+ loose axis-aligned boxes, over-fires on genuinely-distinct-but-close objects. Same delicate
325
+ balance lesson as the peak-cap experiment: `object_counting` (median ratio 1.000, 37% full
326
+ credit) is at the ceiling detection/tracking quality allows, and neither loosening nor
327
+ tightening instance-merging improves it. Not adopted.
328
+
329
+ ### Room-area hypotheses
330
+
331
+ Ground-truth comparison: `thinking-in-space/data/meta_info/{arkitscenes,scannet,scannetpp}_meta_info_val.json`
332
+ carries a real `room_size` (and `object_bbox`) per scene. Comparing our compact-schema floor
333
+ area directly against it across all 72 matched metric/tracking/selective scenes: mean ratio
334
+ (ours/ground-truth) 0.843, median 0.817 -- a consistent, one-directional undershoot, not
335
+ scattered noise (unlike the `object_abs_distance` comparison below, which showed no clean
336
+ global bias).
337
+
338
+ | Hypothesis | Frames | Overall | Room size | Finding |
339
+ |---|---:|---:|---:|---|
340
+ | Increase Compact Room Floor Area by 20 Percent | 32 | 46.60 | 65.97 | Works, but see caveat below. |
341
+ | Increase Compact Room Floor Area by 20 Percent | 64 | 47.69 | 61.94 | Works, but see caveat below. |
342
+ | Extend Compact Floor Coverage To Every Object Footprint | 32 | 46.17 | **62.50** | Preferred -- structural, no fitted constant. |
343
+ | Extend Compact Floor Coverage To Every Object Footprint | 64 | 47.54 | **60.69** | Preferred -- structural, no fitted constant. |
344
+
345
+ **Increase Compact Room Floor Area by 20 Percent** scales the reconstructed floor polygon
346
+ outward from its own centroid by `sqrt(1.20)` linearly (so area increases by exactly 1.20x),
347
+ in `_compact_floor_boundary_polygons`. It works, and 1.20 wasn't picked arbitrarily -- it's
348
+ close to both the measured mean and median ground-truth ratio above. **But this IS calibration
349
+ to this dataset's measured bias, not a structural fix**, flagged explicitly per user
350
+ direction: the exact 0.817-0.843 ratio is a property of THIS specific set of 72 scenes' camera
351
+ coverage, frame sampling, and depth/segmentation quality -- it has no reason to transfer to a
352
+ different scene distribution, camera pattern, or model. Keeping it recorded as a working,
353
+ reproducible data point, but not adopting it as the default; future room-area work should
354
+ prefer structural fixes like the one below.
355
+
356
+ **Extend Compact Floor Coverage To Every Object Footprint** takes a different, self-referential
357
+ approach: rasterize every detected object's own (u, v)-projected footprint as floor coverage,
358
+ unioned with the real observed floor points before the existing close/fill/contour pipeline
359
+ runs, in the same `_compact_floor_boundary_polygons`. No external constant -- it uses only this
360
+ scene's own already-computed object point clouds (a physical necessity: any object resting in
361
+ the room occupies floor area at and around its footprint, which is often exactly what
362
+ depth/segmentation misses since the object occludes the very floor beneath it). Single-scene
363
+ check (`scene0699_00`, ground truth 20.44 m^2): baseline 9.32 -> footprint-union 10.70 (+14.8%,
364
+ still well short of ground truth for that one scene -- this only recovers occlusion-shadowed
365
+ floor, not floor area the camera never observed at all).
366
+
367
+ **Result across all 72 scenes: room_size crosses into the 60s at both frame counts** (62.50 at
368
+ 32f, 60.69 at 64f) -- smaller than the fitted 20% version's 65.97/61.94, but a real, structural
369
+ gain (+6.8/+3.3 points over baseline) with no dataset-specific constant, and `overall` improves
370
+ too with no offsetting regression. **ADOPTED -- shipped to production `encoder/geometric.py`**
371
+ (the footprint-union rasterization is now in `_compact_floor_boundary_polygons`); the 20%-scale
372
+ version stays recorded above only as a data point, not adopted.
373
+
374
+ **Rejected room alternatives (batch-screened on 64f, all WORSE than the shipped footprint-union
375
+ 60.69):** "Estimate Room Area From Convex Hull Of Coverage" (room 54.31) and "Estimate Room Area
376
+ From Oriented Bounding Rectangle Of Floor" (room 48.89) both OVERSHOOT -- the convex hull fills
377
+ real concavities but also invents area across L-shaped rooms, and the oriented rectangle assumes
378
+ a rectangularity real rooms don't have (and footprints poking out inflate the rectangle). Room
379
+ area is credited by the same ratio-in-[0.5,1.5] band as everything else, so overshooting to
380
+ ratio > 1.5 scores hard zeros on large rooms -- worse than the footprint-union's mild remaining
381
+ undershoot. "Bridge Unobserved Floor With Room Scale Close" (scene-relative morphological close
382
+ kernel) left room unchanged at 60.69 (the fill-holes step already handles what it would). Room
383
+ size is effectively solved for this pipeline; its residual undershoot (ratio ~0.82) is
384
+ unobserved floor the camera never saw, not something a boundary-shape change recovers.
385
+
386
+ ### Object-size / box-extent hypotheses (batch, 64f screen)
387
+
388
+ A batch of principled box-fitting changes, all forked from current production geometric.py
389
+ (0.90 across-observation quantile + footprint room). Baseline 64f: overall 50.20, size 54.62,
390
+ abs_distance 60.19.
391
+
392
+ | Hypothesis | overall | size | abs_distance |
393
+ |---|---:|---:|---:|
394
+ | Size Compact Boxes By Full Per Frame Extent (0/100) | **50.86** | **61.18** | 56.46 |
395
+ | Size Compact Boxes By Fuller Per Frame Extent (1/99) | 50.58 | 57.90 | 59.38 |
396
+ | Orient Compact Boxes By Minimum Area Rectangle | 50.17 | 54.62 | 60.48 |
397
+ | (baseline: 2/98 per-frame) | 50.20 | 54.62 | 60.19 |
398
+
399
+ The per-observation extent uses a 2nd/98th percentile trim per frame. Widening it to 1/99 or
400
+ min/max recovers real extent a partial view can only under-measure (principled, not tuned) --
401
+ and size responds strongly (54.62 -> 61.18 at full min/max, i.e. ratio ~0.95, essentially
402
+ correct). But the box is shared with abs_distance, and wider boxes shrink surface gaps, so
403
+ distance falls (60.19 -> 56.46). This is the SAME size<->distance tension as the 0.90-vs-max
404
+ across-frame quantile, now confirmed on the per-frame axis too: overall keeps RISING as boxes
405
+ widen (size gains outrun distance losses), best at full min/max (50.86), but it trades the
406
+ abs_distance-60 milestone. Min-area-rectangle orientation is ~neutral (SVD principal axes and
407
+ the min-area box barely differ for real furniture footprints).
408
+
409
+ **The decoupling answer -- Recover Length Axis Keep Robust Width Depth:** the size<->distance
410
+ tension has a clean structural resolution once you notice the two questions read DIFFERENT
411
+ things from the same box. `object_size` reads only the LONGEST dimension (one axis).
412
+ `object_abs_distance` reads the whole box SURFACE (all three axes), and neighbouring objects sit
413
+ mostly to an object's SIDES (its short width/depth axes). Full-extent recovery inflates all
414
+ three axes -- fixing size but fattening the box exactly where it hurts distance. So: size each
415
+ axis ROBUSTLY (0.90 of the 2/98-trimmed extents, production's distance-faithful box), then
416
+ recover full observed extent (min/max per frame) on the SINGLE longest axis only. No fitted
417
+ constant -- full extent on the length axis, robust extent on the others; which axis is "longest"
418
+ is the object's own geometry.
419
+
420
+ | Variant (64f) | overall | size | abs_distance |
421
+ |---|---:|---:|---:|
422
+ | baseline | 50.20 | 54.62 | 60.19 |
423
+ | full extent, all axes | 50.86 | 61.18 | 56.46 |
424
+ | full extent + 0.75 across | 50.89 | 58.66 | 58.66 |
425
+ | **length-axis only (ADOPTED, shipped)** | **51.02** | **61.30** | **59.52** |
426
+
427
+ It captures the FULL size gain (61.30, matching all-axes full extent, size ratio ~0.95) while
428
+ cutting the distance loss from -3.73 to just -0.67 -- best overall of every box variant tried,
429
+ and abs_distance barely moves. This is the principled decoupling the whole frontier was pointing
430
+ at. **Shipped to production `encoder/geometric.py`** (`_compact_oriented_box` now recovers full
431
+ observed extent on the longest axis only). Confirmed at both frame counts: 32f size 51.22 ->
432
+ 59.79, 64f size 54.62 -> 61.30, abs_distance -0.7 at both, overall +0.98 / +0.82.
433
+
434
+ **Follow-up box-fitting batch (64f screen, baseline now 51.02 / size 61.30 / dist 59.52).** After
435
+ the length-axis fix, size is median ratio 0.946 (near-centered) but its spread is wide (only 19%
436
+ in the full-credit [0.95,1.05] band, 47% still low in [0.5,0.95)); the remaining size headroom is
437
+ fit TIGHTNESS, not extent, and distance's residual is box-center / instance noise. Five box
438
+ changes screened:
439
+
440
+ | Hypothesis | overall | size | abs_distance |
441
+ |---|---:|---:|---:|
442
+ | Fuller Robust Box By One Ninetynine Per Frame | 51.07 | 61.43 | 58.66 |
443
+ | Tighten Box Observation Consistency Filter (2.0 MAD) | 51.05 | 60.80 | 60.62 |
444
+ | Recover Longest Two Axes To Full Extent | 50.88 | 61.51 | 57.66 |
445
+ | Recover Length Axis To Full Max | 50.82 | 61.64 | 58.66 |
446
+ | Center Compact Boxes On Point Cloud Median | 49.48 | 61.30 | 51.63 |
447
+
448
+ All box-fitting gains are noise-level (+0.03 to +0.07 overall) EXCEPT one instructive failure and
449
+ one useful property: (1) centering the box on the raw point-cloud median instead of the median of
450
+ per-frame midpoints CRASHES distance (51.63) -- the per-frame-midpoint center is genuinely good,
451
+ the raw point median is pulled by dense partial views; (2) tightening the MAD consistency filter
452
+ to 2.0 sigma restores abs_distance ABOVE 60 (60.62) at a small size cost -- cleaner boxes, better
453
+ distance. Recovering a second axis or pushing the longest axis to the absolute max both buy a
454
+ little more size but cost distance (they widen the box toward side neighbours), confirming the
455
+ length-axis-only decoupling was already at the right operating point. The box representation is
456
+ near its quality ceiling; further numeric gains need a different lever than box-fit tuning.
457
+
458
+ **Extend Box Height To Floor Contact (REJECTED, failed hard):** a floor-standing object's true
459
+ bottom is at the floor, and its bottom is commonly occluded, so height (often the longest
460
+ dimension for tall furniture) is under-measured -- the idea was to drop each box's bottom to the
461
+ floor. Result: overall 51.02 -> 47.82, size 61.30 -> 50.13, abs_distance 59.52 -> 51.24 -- both
462
+ crashed. The floor-contact prior is wrong for the many objects that legitimately have raised
463
+ bottoms (wall-mounted TVs, whiteboards, mirrors, ceiling lights, pictures); clamping their
464
+ height to the floor wildly over-inflates it, and since object_size reads the LONGEST dimension,
465
+ the over-inflated height turns correct sizes into >1.5 overestimates (hard zeros), collapsing
466
+ size. The taller boxes also overlap floor-level neighbours, collapsing distance. A physical
467
+ prior that only holds for a subset, applied unconditionally, does more harm than good.
468
+
469
+ ### Point-cleaning and floor-clip batch (64f screen) -- two clean wins
470
+
471
+ After box-fitting plateaued, the untapped geometric.py levers were the POINT CLEANING boxes are
472
+ fit from and the FLOOR-POINT clip. Screened on 64f (baseline 51.02 / size 61.30 / dist 59.52 /
473
+ room 60.69):
474
+
475
+ | Hypothesis | overall | size | dist | room |
476
+ |---|---:|---:|---:|---:|
477
+ | **Keep More Floor Extent By Wider Clip (0.1/99.9)** | **51.30** | 61.30 | 59.52 | **62.92** |
478
+ | Tighter Statistical Outlier Removal (1.5 sigma) | 51.11 | 61.55 | 59.62 | 60.69 |
479
+ | Trim Mask Bleed By Centroid Distance | 51.01 | 61.47 | 59.19 | 60.83 |
480
+ | Clean Box Points At Sixtieth Confidence | 50.30 | 62.27 | 58.85 | 60.69 |
481
+ | **combined (wider clip + tighter SOR, ADOPTED)** | **51.39** | **61.55** | **59.62** | **62.92** |
482
+
483
+ Two clean, no-downside wins: (1) the floor-point clip discarded the 0.1-0.5% and 99.5-99.9%
484
+ tails as "outliers," but those are REAL observed floor and room area undershoots, so keeping them
485
+ (0.1/99.9) recovers room 60.69 -> 62.92 with nothing else touched; (2) tighter statistical
486
+ outlier removal (1.5 vs 2.0 sigma) on the box points yields cleaner boxes -- small consistent
487
+ size + distance gains. They are independent (floor rasterization vs box-point cleaning) and STACK
488
+ exactly: combined overall 51.02 -> 51.39, every numeric category up or flat, none down. **Shipped
489
+ to production.** The two losers are instructive: trimming bleed by centroid distance barely helps
490
+ (the per-frame 2/98 box percentiles already trim tails), and cutting confidence at the 60th
491
+ percentile OVER-cleans -- it lifts size (smaller, tighter boxes read as more accurate on the
492
+ longest axis) but shrinks boxes enough to hurt distance, netting worse.
493
+
494
+ **Size confirmed at ceiling from BOTH sides (view-union + solver-selection tests).** Two more
495
+ size probes: (1) recovering the longest axis from the UNION of all clean points (all views
496
+ combined) instead of the fullest single frame -- if the low tail were "frame A sees one end,
497
+ frame B the other," the union would recover it. It did NOT (size 61.55 -> 61.72 robust / 61.34
498
+ full, and distance dropped ~1.5 as the union picked up cross-frame bleed on the long axis). So
499
+ the size low tail is objects NEVER fully observed even across all frames combined (a table
500
+ extending out of frame in every view) -- a true coverage limit, not a fitting one. (2) The
501
+ solver's max-across-instances size selection is already optimal: simulated max 64.28 vs primary
502
+ 62.97 vs median 59.19 vs p75 63.11 (64f, answerable subset) -- max's overcount cost (7
503
+ multi-instance cases where it picks an inflated fragment) is outweighed by the many more
504
+ partial-view undercounts it rescues. Neither the geometry side nor the solver side has size
505
+ headroom left.
506
+
507
+ ### Room floor-extraction refinements (64f screen) -- the grazing-gap bridge
508
+
509
+ Room was still median ratio 0.897 (39 of 72 in the low band) after footprint-union + wider clip.
510
+ Two floor-extraction refinements screened (baseline room 62.92):
511
+
512
+ | Hypothesis | overall | room | dist |
513
+ |---|---:|---:|---:|
514
+ | **Bridge Floor To Wall Grazing Gap (5x5 dilate)** | **51.73** | **65.56** | 59.71 |
515
+ | Keep Smaller Observed Floor Patches (min-region 3x3) | 51.42 | 63.19 | 59.62 |
516
+ | combined | 51.73 | 65.56 | 59.76 |
517
+
518
+ **Bridge Floor To Wall Grazing Gap (ADOPTED, shipped).** Floor depth samples thin out toward
519
+ walls (grazing incidence) and stop ~2 cells short of them, so the reconstructed floor region
520
+ falls systematically short of the true wall-to-wall room -- a real, non-coverage component of the
521
+ undershoot. Enlarging the final closing dilation from 3x3 to 5x5 bridges that gap: room 62.92 ->
522
+ 65.56, overall +0.34, nothing else touched (distance even +0.09). The 5x5 (2-cell = 0.2 m border)
523
+ is NOT a tuned magnitude -- the grazing gap is a fixed ~0.2 m physical distance that does not
524
+ scale with room size, so a constant border is the principled choice. Keeping smaller floor
525
+ patches (loosening the 0.49 m^2 min-region filter) helps a little alone but is redundant once the
526
+ bridge dilation reconnects them, so only the bridge was shipped.
527
+
528
+ ### Absolute-distance: the short-axis decoupling (the distance answer)
529
+
530
+ A precise error decomposition finally located the structure. After all the box/size fixes,
531
+ object_abs_distance was 130 under vs 48 over (median our/GT ratio 0.916) -- a real UNDER-estimate.
532
+ Isolating box quality from selection (our closest-classes table vs GT computed with the SAME
533
+ min-over-instance-pairs selection) gave median 0.908 / mean 0.815: **it is NOT primarily a
534
+ selection problem -- our boxes themselves produce distances ~9-18% too small.** The boxes puff
535
+ toward neighbours (mask-bleed on the side surfaces), so objects read closer than they are.
536
+
537
+ The fix is the mirror image of the size fix, and uses the SAME decoupling: `object_size` reads
538
+ only the LONGEST axis; `object_abs_distance`'s surface gaps are governed by the SHORT (width/
539
+ depth) axes -- neighbours sit to an object's sides. So TIGHTEN the short axes toward the object
540
+ core (a lower across-frame quantile than the 0.90 the length-axis fix left them at), which widens
541
+ the surface gaps and corrects the under-estimate, WITHOUT touching size (it doesn't read those
542
+ axes). Screened on 64f:
543
+
544
+ | Short-axis quantile | overall | abs_distance | size |
545
+ |---|---:|---:|---:|
546
+ | 0.90 (baseline) | 51.73 | 59.71 | 61.55 |
547
+ | 0.75 | 51.94 | 60.24 | 61.60 |
548
+ | 0.60 | 51.87 | 60.67 | 61.18 |
549
+ | 0.50 | 51.83 | 61.20 | 60.88 |
550
+
551
+ Distance rises monotonically as the short axes tighten (up to +1.5 at 0.50), crossing back above
552
+ 60. The small size cost at 0.50 was only because tightening the shared `argmax` flipped which
553
+ axis counts as "longest" for a few objects -- fixed by selecting the longest axis from the stable
554
+ 0.90 dims and tightening only the short axes.
555
+
556
+ **CLEAN DECOUPLING (ADOPTED, shipped).** Select the longest axis from the stable 0.90 dims,
557
+ recover its full extent (size), and set the SHORT axes to the median frame's core extent
558
+ (distance). A quantile sweep found a clean peak at the median with size fully preserved:
559
+
560
+ | Short-axis quantile | overall | abs_distance | size |
561
+ |---|---:|---:|---:|
562
+ | 0.90 (baseline) | 51.73 | 59.71 | 61.55 |
563
+ | 0.60 | 51.94 | 60.29 | 61.55 |
564
+ | **0.50 (median, ADOPTED)** | **51.99** | **60.72** | **61.55** |
565
+ | 0.40 | 51.97 | 60.53 | 61.55 |
566
+ | 0.30 | 51.90 | 60.53 | 61.55 |
567
+
568
+ Distance peaks exactly at the median (0.50): tighter overshoots (boxes too small, distance
569
+ over-estimates, gain reverses at 0.40/0.30), and size stays pinned at 61.55 the whole way because
570
+ the longest-axis selection is now decoupled from the short-axis tightening. The median is the
571
+ canonical robust core estimate, and its landing on the sweep peak is a physical result (correct
572
+ the measured ~9% box-too-big bias, stop there), not a tuned constant.
573
+
574
+ Full production result (both frame counts, since the tighter boxes also change the class-distance
575
+ table that object_rel_distance reads):
576
+
577
+ | category | 32f | 64f |
578
+ |---|---:|---:|
579
+ | object_abs_distance | 59.38 -> 59.76 (+0.4) | 59.71 -> 60.72 (+1.0) |
580
+ | object_rel_distance | 58.10 -> 56.42 (-1.7) | 58.10 -> 59.78 (+1.7) |
581
+ | overall | 50.99 -> 50.90 (-0.09) | 51.73 -> 51.99 (+0.26) |
582
+
583
+ object_abs_distance (the target) improves at BOTH frame counts. At 64f it is a clean win --
584
+ abs_distance AND rel_distance both up (the tighter, less-bleed-inflated boxes help both the
585
+ distance magnitude and the class-ranking), overall +0.26, the session-best 64f. At 32f the
586
+ tighter boxes flip object_rel_distance's argmin on a few option sets (-1.7), netting a marginal
587
+ -0.09 overall there despite abs_distance rising. Net across both frame counts is positive and the
588
+ abs_distance goal is met, so ADOPTED; the 32f rel_distance interaction is the one honest caveat.
589
+
590
+ ### Tracking is essential (no-tracking caches: catastrophic)
591
+
592
+ Tested `--tracking "no tracking"` (SAM3 masks NOT associated across frames) with the current
593
+ geometric.py, metric/selective/32f: overall 26.51 vs tracking's 50.90; **object_abs_distance
594
+ 0.00**, object_counting 21.94, object_size 30.44, room 62.94. Without temporal tracking every
595
+ per-frame mask becomes its own instance, so each class is a cloud of fragment-boxes scattered
596
+ everywhere; the closest-classes table takes the MIN over instance pairs, and with fragments
597
+ everywhere every class pair has some fragment ~touching some other, so every distance collapses
598
+ to ~0 -> object_abs_distance scores 0. Tracking is not incidental; it is what makes instances
599
+ clean enough to measure. (Also far slower -- the fragment explosion makes the pairwise BVLS
600
+ distance quadratically expensive.)
601
+
602
+ ### Fixing mask-bleed at the source: over-carves (REJECTED)
603
+
604
+ Bleed = SAM3 masks leaking across depth discontinuities onto neighbours, which back-projects as a
605
+ bridge toward the neighbour and is the measured cause of boxes being too big (distance too small).
606
+ geometric.py already has two source-level bleed tools, both OFF by default:
607
+ `DEPTH_EDGE_REFINE` (keep the largest depth-coherent mask component) and `MASK_REFINE` (snap mask
608
+ to RGB colour edges; unavailable -- RGB frame paths aren't threaded into the compact call).
609
+ `DEPTH_COHERENCE` (Tukey 1.5*IQR depth-outlier fence) is already ON and catches
610
+ different-depth bleed.
611
+
612
+ Turning DEPTH_EDGE_REFINE ON REGRESSED hard: object_size 61.55 -> 58.07, object_abs_distance
613
+ 60.72 -> 58.52 (only object_counting nudged up, 50.00 -> 50.64). Same lesson as the original
614
+ schema's reverted `_main_cluster`: "the object is the largest depth-coherent component" is FALSE
615
+ -- real objects legitimately span depth discontinuities (angled surfaces, self-occlusion), so
616
+ cutting at depth edges drops real object parts, shrinking boxes (size down) and over-opening gaps
617
+ (distance overshoots). Identifying "which points are bleed" at the mask level is error-prone and
618
+ destructive. The robust-percentile workaround (short-axis MEDIAN extent) is the better answer: it
619
+ never removes points, it just reads a bleed-insensitive statistic of the (bleedy) extent -- which
620
+ is why it worked where source-removal failed.
621
+
622
+ Tightening the depth fence instead of the hard component split confirms the same wall: at
623
+ 1.0*IQR it starts removing REAL points (size 61.55 -> 61.13, count 50.00 -> 49.29, distance
624
+ flat), because when the bleed neighbour is BESIDE the object it sits at a similar depth, so a
625
+ depth fence cannot separate them without cutting the object; at 1.25*IQR it is a wash (+0.13
626
+ overall, all from non-numeric categories, distance unchanged at 60.72), not shipped. Conclusion:
627
+ bleed points are physically connected to the object and often at the same depth, so any rule that
628
+ removes them also removes real object surface. The only fix that works is robustness, not
629
+ removal -- already shipped (short-axis median + the on-by-default DEPTH_COHERENCE fence). The
630
+ systematic bias bleed caused is corrected; the residual is symmetric per-object spread.
631
+
632
+ **Per-observation SOR cleaning (REJECTED, all variants).** A gentler idea than the depth-edge
633
+ component cut: SOR-clean each per-frame observation before measuring its extent (the orientation
634
+ is already fit to SOR-cleaned pooled points, so this is a consistency fix; SOR drops sparse
635
+ same-depth bleed without a hard component split). Screened three ways on 64f:
636
+ - Clean everything: object_abs_distance 60.72 -> 61.29 (+0.57, real!) but object_size 61.55 ->
637
+ 60.46 (-1.09) -- SOR also eats the object's true SPARSE extremes on the longest axis, which is
638
+ exactly what object_size reads. Net -0.48.
639
+ - Clean everything, tighter SOR (1.5 sigma): same shape, slightly worse (61.10 / 60.29).
640
+ - Decoupled (clean the distance/short-axis path, keep RAW full extent for the size/longest axis):
641
+ the natural fix for the above -- but it FAILED (overall 51.26, distance 60.62 flat, size 60.21
642
+ down 1.34). Cleaning the short-axis dimensions shifts the shared longest-axis `argmax` and the
643
+ box center enough to hurt size, and the distance gain from the "clean everything" version turned
644
+ out to depend partly on cleaning the longest axis too. Net -0.73.
645
+ - Decoupled, CORRECTED (select the longest axis from the RAW full extent so cleaning can't flip
646
+ it): still failed -- overall 51.11, distance 59.86 AND size 60.34 both DOWN. Even with the
647
+ longest-axis selection made bleed-proof, cleaning the short-axis observations perturbs the box
648
+ center and the MAD consistency filter enough to hurt both. The +0.57 distance gain from "clean
649
+ everything" is fragile and could not be isolated.
650
+ Same conclusion as every other bleed attempt: removing points to fight bleed keeps colliding with
651
+ the object's real geometry. Robustness (short-axis median), not removal, is the answer.
652
+
653
+ **Per-object confidence adaptivity: no effect (the spread is irreducible with available signals).**
654
+ The residual is per-object spread (some boxes too big from bleed), so the flagged direction was
655
+ per-object adaptivity. DA3 confidence is the natural bleed signal -- and it IS discriminative
656
+ (measured: an object's outer-10% points are lower-confidence than its core, e.g. chair 6.6 vs 8.6,
657
+ sofa 1.75 vs 3.16). Two ways of using it were tried, BOTH producing results identical to baseline
658
+ to two decimals: (a) weight each frame's box contribution by its mean confidence -- no effect,
659
+ because bleed is a small fraction of a frame's points and doesn't move the frame mean; (b) a
660
+ per-point confidence-weighted percentile for the short-axis extent -- also no effect, because the
661
+ 2/98 percentile trim ALREADY removes the extreme low-confidence bleed, and confidence is roughly
662
+ flat across the retained 2-98 range. The bleed that survives (2/98 trim + DEPTH_COHERENCE fence +
663
+ short-axis median) is moderate-confidence, moderate-extent bleed sitting INSIDE the retained
664
+ range -- genuinely indistinguishable from real object surface by confidence, by depth
665
+ discontinuity (same-depth side neighbours), or by spatial connectivity (connected to the object).
666
+
667
+ **Distance-table derivation is also optimal (shared-table tension).** The last lever: change HOW
668
+ the closest-classes distance table is derived from the stored compact boxes (constraint: only the
669
+ compact code's own numbers, no new field). Measured four numbers-only derivations on 64f, scoring
670
+ BOTH object_abs_distance (MRA) and object_rel_distance (accuracy), since the table is shared:
671
+
672
+ | derivation | abs_distance MRA | rel_distance acc |
673
+ |---|---:|---:|
674
+ | min over all pairs (current) | 60.72 | 62.65 |
675
+ | largest-volume representative | 61.15 | 56.02 |
676
+ | median over pairs | 60.53 | 47.59 |
677
+ | min over top-half-volume instances | 60.96 | 53.01 |
678
+
679
+ Every alternative that helps abs_distance (robustifying against spurious-close fragment pairs)
680
+ hurts rel_distance MORE (largest-volume: abs +0.43, rel -6.6). The current min WINS on the
681
+ combined score. The reason is a clean fundamental tension: rel_distance asks "which is CLOSEST" so
682
+ it needs the true min surface distance for correct ranking, while abs_distance wants a ROBUST
683
+ magnitude -- and a single shared table cannot serve both. Decoupling them (as size/distance was
684
+ decoupled on the box axes) would require a SECOND derived field for abs_distance, which is out of
685
+ scope (the derivation must produce the existing table only). So the min derivation is optimal
686
+ under the constraint.
687
+
688
+ **Ceiling reached (evidence-based).** Across the "keep going" phase, every remaining principled
689
+ structural lever was tested and rejected or found marginal: longest-axis-fuller (max / view-union,
690
+ post-decouple) costs distance for negligible size; depth-edge bleed cut over-carves; tighter depth
691
+ fence over-tightens or is a wash; per-observation SOR (three variants) can't beat the size/distance
692
+ tension; confidence weighting (two levels) has no effect; no-tracking is catastrophic; the
693
+ distance-table derivation is min-optimal for the shared abs/rel use. All four
694
+ numeric questions are median-ratio-centered (size 0.945, distance box-error 0.969, room 0.962,
695
+ counting 1.000) -- the SYSTEMATIC biases are corrected and the residual is symmetric per-object
696
+ spread that no available signal can separate from real geometry. Further gains need better
697
+ upstream masks/depth, not geometry post-processing.
698
+
699
+ **Numeric-question status after all batches:** object_size (median ratio 0.946), object_counting
700
+ (median 1.000, at detection ceiling) are at their ceiling. room_size was NOT fully at ceiling --
701
+ the grazing-gap bridge found a real non-coverage undershoot component (now 65.56 at 64f);
702
+ whatever residual remains is genuine coverage (rooms the camera only half-walked). object_abs_distance
703
+ box-error is now well-centered (median 0.969 after the short-axis median); the residual is
704
+ symmetric per-object spread, not a directional bias, so uniform structural changes can't shift it
705
+ further, and source-level bleed removal over-carves.
706
+
707
+ ### Absolute-distance hypotheses
708
+
709
+ Ground-truth comparison, redone properly with full oriented boxes on both sides (the object's
710
+ real `centroid`/`axesLengths`/`normalizedAxes` from `object_bbox`, run through the same
711
+ `oriented_box_distance` BVLS solver used for our own table, not a crude axis-aligned
712
+ approximation): unlike room size, there is **no clean, single-direction bias** to correct here.
713
+
714
+ | Comparison | n pairs | Median ratio (ours/gt) | 10th-90th percentile |
715
+ |---|---:|---:|---|
716
+ | Surface distance, all class pairs | 910 | 0.981 | 0.17 - 2.14 |
717
+ | Center-to-center distance, all class pairs | 910 | 0.988 | 0.70 - 2.04 |
718
+ | Surface distance, single-instance-only pairs | 182 | **0.999** | 0.81 - 2.15 |
719
+ | Surface distance, multi-instance pairs | 728 | 0.968 | **0.10** - 2.08 |
720
+
721
+ Both the median surface-distance and median center-distance ratios sit almost exactly on 1.0 --
722
+ genuinely unbiased noise on average, not a fixable offset. Splitting by whether either class has
723
+ more than one tracked instance shows the real story: single-instance pairs (no pair-selection
724
+ ambiguity at all) are centered on 0.999 with an honest, symmetric spread; multi-instance pairs
725
+ have the same center but a dramatically fatter LOW tail (down to 0.10x), confirming the
726
+ mechanism diagnosed earlier -- a spuriously-close near-duplicate instance sometimes gets picked
727
+ as the "closest pair."
728
+
729
+ **Merge Never-Co-Observed Overlapping Same-Class Tracks**: hypothesis that this fat tail comes
730
+ from track fragmentation -- the same physical object, lost and re-acquired after occlusion,
731
+ produces two "distinct" tracks that spatially overlap but were never seen in the same frame
732
+ together (two REAL distinct objects of the same class can't occupy overlapping 3D space, so
733
+ overlap + never-co-observed implies fragmentation, not two objects). Extended
734
+ `_compact_duplicate_groups`'s merge rule to also union such pairs. Uses no external threshold --
735
+ only each pair's own already-tracked frame-sets and AABB overlap.
736
+
737
+ **Result: essentially a null result.** The new merge condition triggered exactly once across
738
+ all 72 scenes at 64 frames (one `table` instance in one scene), so the aggregate scores are
739
+ unchanged from baseline to two decimal places. Overlapping-but-never-co-observed same-class
740
+ track pairs are simply rare in this pipeline's actual output -- the hypothesis is structurally
741
+ sound but doesn't address what's actually happening in this data. **The multi-instance fat tail
742
+ has a different real cause** (most likely genuine multi-instance ambiguity -- e.g. two REAL
743
+ chairs pushed together, where the "closest pair" search correctly finds the closest real pair
744
+ but it isn't the specific instance the question meant -- rather than spurious duplicate tracks),
745
+ which isn't fixable by tightening duplicate detection.
746
+
747
+ **Reject Below-Floor Compact Box Observations**: a real, checkable physical-implausibility
748
+ signal exists in this data -- 296 instances across the scene set have a final box center more
749
+ than 15cm below the scene's own reconstructed floor level, some by several meters (e.g. a
750
+ window centered 4.6m underground). Extended `_compact_oriented_box`'s existing per-observation
751
+ consensus loop to drop any single-frame observation whose ENTIRE vertical extent lies below
752
+ floor_level (a physical impossibility for a floor-resting object), keeping every observation if
753
+ literally all of them are below-floor (falls back rather than failing outright). No external
754
+ threshold -- floor_level is the scene's own computed reference, and "these points are wholly
755
+ underground" is a fact about that one observation, not a fitted number.
756
+
757
+ Single-instance check on the known worst offender (scene `42897629`, tv/stove, ground truth
758
+ 8.8m): the fix moved the stove's box center from `(-2.62, 1.11, -0.96)` (physically impossible,
759
+ under the floor) to `(-0.64, 0.28, 0.19)` (plausible), and the computed closest-classes distance
760
+ improved from 1.09m to 1.63m -- real, measurable progress on that specific case.
761
+
762
+ | Hypothesis | Frames | Overall | Abs. distance | Object size | Rel. distance | Finding |
763
+ |---|---:|---:|---:|---:|---:|---|
764
+ | Reject Below-Floor Compact Box Observations | 32 | 45.49 (+0.18) | 50.67 (-1.20) | 45.97 (-0.33) | 56.98 (-1.12) | Mixed. |
765
+ | Reject Below-Floor Compact Box Observations | 64 | 46.88 (-0.24) | 53.88 (+0.72) | 48.87 (+0.17) | 54.75 (-2.79) | Mixed. |
766
+
767
+ **Result: not a clean win.** It fixed the one specific known-bad case, and helped
768
+ `object_abs_distance` at 64 frames, but `overall` moves in opposite directions between frame
769
+ counts and `object_rel_distance` got measurably worse at both -- most likely because for some
770
+ instances, the below-floor reading is actually the MAJORITY/consistent signal (meaning that
771
+ scene's own `floor_level` estimate is what's off in that region, not the object), so rejecting
772
+ it leaves a noisier minority rather than a cleaner signal. Recorded as a real, reproducible,
773
+ partially-positive result -- not adopted, since the net effect across both frame counts is a
774
+ wash rather than a genuine improvement.
775
+
776
+ **Reject Below-Floor Observations Only When Minority**: refinement attempt on the above --
777
+ theorized the mixed result came from cases where MOST of an instance's observations are
778
+ below-floor (meaning that scene's own floor_level is miscalibrated in that region, not the
779
+ object), so only reject below-floor observations when they're a strict minority of that
780
+ instance's own observation count (self-referential majority-vote split, still no external
781
+ number).
782
+
783
+ | Hypothesis | Frames | Overall | Abs. distance | Rel. distance | Finding |
784
+ |---|---:|---:|---:|---:|---|
785
+ | Reject Below-Floor Observations Only When Minority | 32 | 45.18 | 51.39 | 56.98 | Worse than both baseline and the unconditional version. |
786
+ | Reject Below-Floor Observations Only When Minority | 64 | 46.64 | 53.40 | 53.63 | Worse than both baseline and the unconditional version. |
787
+
788
+ **Result: net negative, and the theory was wrong.** `object_rel_distance` is damaged almost as
789
+ much as under the unconditional version even for the strict subset this refinement targets, and
790
+ `overall` is now the worst of all three variants (baseline / unconditional / minority-only) at
791
+ both frame counts. Whatever is causing `object_rel_distance` to regress when below-floor
792
+ observations get rejected, it isn't explained by the majority/minority split -- it happens even
793
+ in the minority-only cases this refinement was designed to protect. Not adopted; recorded as a
794
+ genuine negative result that rules out this specific theory.
795
+
796
+ **Weight Compact Box Consensus By Frame Not Point Count**: theorized that `_compact_oriented_box`'s
797
+ per-observation weighting (`weight = sqrt(point_count)`) over-trusts frames where the camera
798
+ happened to be close to the object (dense points, but often the most partial/cropped view) at
799
+ the expense of farther, more-complete-but-sparser views. Changed to uniform per-observation
800
+ weight (1 per tracked frame, regardless of point count).
801
+
802
+ | Hypothesis | Frames | Overall | Abs. distance | Object size | Finding |
803
+ |---|---:|---:|---:|---:|---|
804
+ | Weight Compact Box Consensus By Frame Not Point Count | 32 | 44.63 (-0.68) | 50.24 (-1.63) | 44.62 (-1.68) | Regression. |
805
+ | Weight Compact Box Consensus By Frame Not Point Count | 64 | 46.78 (-0.34) | 51.87 (-1.29) | 46.01 (-2.69) | Regression. |
806
+
807
+ **Result: regression, both frame counts, on both distance and size.** The theory was backwards
808
+ -- point-count weighting is doing real, load-bearing work (a frame with more points is a more
809
+ reliable observation, not a more partial one, in this pipeline). Not adopted.
810
+
811
+ ### A real, diagnosed-but-unfixable mechanism: cross-class same-object confusion
812
+
813
+ Filtering the ground-truth comparison to single-instance-only class pairs (removing the
814
+ multi-instance-selection confound entirely) and looking at the worst remaining outliers surfaces
815
+ a distinct, genuine failure mode. Three of the ten worst single-instance-pair errors in one
816
+ 64-frame batch all involved the SAME class (`table`) paired with a small adjacent-furniture
817
+ class, with our computed distance collapsing to ~0 (touching/overlapping boxes) while ground
818
+ truth says they're clearly separated. Example (`scene0221_01`, `table` vs `nightstand`):
819
+
820
+ ```
821
+ table: center (1.98, -2.47, -0.09) dims (0.73, 0.26, 0.25)
822
+ nightstand: center (2.01, -2.43, -0.24) dims (0.82, 0.32, 0.41)
823
+ ```
824
+
825
+ These two boxes are essentially co-located (centers ~7cm apart in x, ~4cm in y) -- almost
826
+ certainly the SAME physical piece of furniture, detected and classified inconsistently across
827
+ frames (SAM3 calling it "table" in some frames, "nightstand" in others -- visually similar small
828
+ furniture is a plausible confusion). Our pipeline has no way to know these two class-labeled
829
+ tracks are the same physical object, so it reports their (near-zero) distance as if they were
830
+ two genuinely separate, touching objects.
831
+
832
+ **Why this isn't fixable within the current constraints**: `_compact_duplicate_groups` already
833
+ merges near-identical boxes WITHIN the same class name, but this is a CROSS-class collision --
834
+ merging across class boundaries would need either (a) an external, hand-curated list of
835
+ "confusable class pairs" (e.g. table/nightstand, sofa/chair), which is itself a dataset-specific
836
+ fitted input, arguably worse than a single numeric constant since it directly encodes
837
+ knowledge about THIS benchmark's specific class vocabulary, or (b) real semantic/visual
838
+ understanding beyond what geometric.py's pure 3D-geometry math can provide. There is no
839
+ purely-geometric signal that distinguishes "two class labels for the same physical object" from
840
+ "two genuinely adjacent, touching, different real objects" (e.g. a real lamp resting on a real
841
+ nightstand would produce the identical near-zero-distance geometric signature). This is recorded
842
+ as a real, correctly-diagnosed root cause for a meaningful share of the worst outliers, not
843
+ adopted as a fix because no fix exists within the stated constraints.
844
+
845
+ **Conclusion on `object_abs_distance`**: across five independent geometric.py code changes
846
+ tested this session (disjoint-frames duplicate merge, unconditional below-floor observation
847
+ rejection, minority-only below-floor rejection, uniform per-observation weighting), one
848
+ correctly-diagnosed-but-structurally-unfixable root cause (cross-class same-object confusion),
849
+ plus the ground-truth bias check that ruled out a global scale correction, and on top of the
850
+ extensive prior original-schema formula sweep in Part 1, nothing produced a clean, reliable
851
+ improvement toward the 60s. The unconditional below-floor rejection came closest to a genuine
852
+ structural win but nets out mixed rather than positive, and every other structural change tested
853
+ made things worse. The error looks to be dominated by per-instance sensor/reconstruction noise
854
+ with no single correctable root cause -- confirmed by this session's own ground-truth comparison
855
+ (no global bias, and the two structural mechanisms tested either don't trigger or trade one
856
+ category's gain for another's loss) and independently by the original-schema search's ~52%
857
+ ceiling across dozens of formula variants.
858
+
859
+ ### The breakthrough: the score was leaking through UNANSWERED questions, not answered ones
860
+
861
+ Every hypothesis above tried to make the ANSWERED questions more accurate, and all hit the same
862
+ ~52% wall. That was the wrong target. Decomposing the aggregate:
863
+
864
+ - Answered `object_abs_distance` questions already average **62.4% MRA** (64f) -- not the
865
+ problem.
866
+ - **31 of 209** questions (15%) returned `None` because `answer_object_abs_distance` gave up
867
+ whenever either named object was undetected in the scene. Under the official MRA scorer, a
868
+ `None`/blank prediction is a guaranteed **hard zero**, and those 31 zeros were dragging the
869
+ 62.4% answered-average down to the 53.16% aggregate -- **9+ points of pure, recoverable loss
870
+ no box-fitting change could ever touch.**
871
+
872
+ **Fix (`answer_object_abs_distance` missing-detection fallback, live in `symbolic/solver.py`):**
873
+ when either named class is undetected (or the distance table has no entry), instead of `None`,
874
+ return the room's own **expected random-point distance**. Rationale: an object the perception
875
+ pipeline never detected has a genuinely *unknown* location; the least-assuming model for an
876
+ unknown location is uniform over the floor. The expected distance between two uniformly random
877
+ points in a **unit square** is the closed-form constant `(2 + sqrt(2) + 5*asinh(1)) / 15 =
878
+ 0.5214054...` -- a mathematical theorem derived by integration (like pi), **not a value fitted
879
+ to any dataset**. Multiplying it by the scene's own measured `sqrt(floor area)` yields a
880
+ deterministic estimate whose only inputs are one geometry theorem and the room's own measured
881
+ scale. Chosen over alternatives (known-class-to-all-centers mean, all-center-pairs median) that
882
+ were all tested and scored lower on the previously-unanswered subset.
883
+
884
+ | Estimator (unanswered subset only, 64f) | mean MRA |
885
+ |---|---:|
886
+ | `None` (baseline -- guaranteed zero) | 0.00 |
887
+ | known-class centers median | 40.00 |
888
+ | all-center-pairs median | 43.55 |
889
+ | known-class centers mean | 45.19 |
890
+ | **room-scale random-point (adopted)** | **48.71** |
891
+
892
+ **Result: `object_abs_distance` crosses into the 60s** -- 59.57 (32f) and 60.38 (64f), up from
893
+ 51.87 / 53.16, a +7.7 / +7.2 point gain. `overall` rises to 46.28 / 48.02. Because the fallback
894
+ only fires where the old code returned `None`, every answerable question is unchanged and no
895
+ other category moves -- a clean, no-regression win with zero dataset-fitted constants. All 22
896
+ `tests/test_symbolic` tests pass.
897
+
898
+ This is the general lesson the five earlier failures were pointing at: the remaining
899
+ `object_abs_distance` gap was never a distance-*formula* problem (the answered questions were
900
+ already fine); it was a *coverage* problem, and the recoverable part of it lives in how the
901
+ solver handles the questions it currently can't answer, not in the geometry of the ones it can.
902
+
903
+ ## Infrastructure (Part 2)
904
+
905
+ `experiments/` originally supported only the original schema (`run.py`, `launch.py`,
906
+ `evaluate.py`, `loader.py`, `hypotheses/*.py`, each exposing a single-arg
907
+ `build_spatial_code(scene)`). It's now schema-agnostic instead of split into parallel `_compact`
908
+ files:
909
+
910
+ - `experiments/config.py`: `spatial_code_directory()` / `spatial_code_path()` /
911
+ `result_directory()` all take an explicit `spatial_code_format` argument (`"original"` by
912
+ default, `"compact"` also supported), inserted as the bottom-most path segment -- exactly
913
+ matching the real spatial-code layout under
914
+ `data/spatial codes/<model>/<depth>/<tracking>/<input>/<frames>/<format>/`. An "original" and a
915
+ "compact" run of the same hypothesis name can never collide on disk.
916
+ - `experiments/adapters.py` (new): bridges the hypothesis-module calling-convention difference.
917
+ Older hypothesis files (forked before the compact schema existed) expose
918
+ `build_spatial_code(scene)` and only ever produce the original schema. Newer hypothesis files
919
+ (forked from the current `encoder/geometric.py`, which already supports both schemas from one
920
+ function) expose `build_spatial_code(scene, spatial_code_format="original")`.
921
+ `experiments.adapters.build(hypothesis_module, scene, spatial_code_format)` detects which
922
+ signature a hypothesis uses via `inspect.signature` and calls it correctly; asking an
923
+ original-only hypothesis for `"compact"` raises a clear `ValueError` instead of silently
924
+ building the wrong schema.
925
+ - `experiments/run.py`, `experiments/launch.py`, `experiments/evaluate.py`: all gained a
926
+ `--format {original,compact}` CLI flag (default `original`, so every existing invocation and
927
+ script is unaffected). `evaluate.py` also sets `symbolic_run.SPATIAL_CODES_FORMAT` so the real
928
+ `symbolic` scorer adapts compact codes exactly like a production run does.
929
+ - Existing cached spatial codes and results under `experiments/caches/` and `experiments/results/`
930
+ were migrated in place to insert the `original` segment at the same position, so every prior
931
+ original-schema hypothesis result in Part 1 remains reachable at its (now format-qualified)
932
+ path without re-running anything.
933
+
934
+ Reproduce any hypothesis above by name, e.g.:
935
+
936
+ ```bash
937
+ python -m experiments.launch \
938
+ --hypothesis "Extend Compact Floor Coverage To Every Object Footprint" \
939
+ --depth metric --tracking tracking --input selective --frames 64 --format compact
940
+
941
+ python -m experiments.evaluate \
942
+ --hypothesis "Extend Compact Floor Coverage To Every Object Footprint" \
943
+ --depth metric --tracking tracking --input selective --frames 64 --format compact \
944
+ --quiet --errors
945
+ ```
946
+
947
+ ---
948
+
949
+ ## Overfitting audit — cross-validation of every tuned parameter (64f, compact)
950
+
951
+ Concern: the shipped `geometric.py` config carries several hand-tuned constants. Are they
952
+ generalizable, or fit to the eval set? Methodology (same as the earlier short-axis CV): for each
953
+ parameter, build the full spatial codes at each grid value, score the relevant question category
954
+ per-scene, then run 200 random 50/50 scene splits (`RandomState(777)`) — pick the value that scores
955
+ best on the *train* half, measure it on the *held-out test* half, and compare to the baseline value
956
+ and to the per-split oracle. A parameter generalizes if train-selected ≈ oracle on held-out data
957
+ (small overfit gap) and beats the untuned baseline.
958
+
959
+ | Parameter | Category | Grid (shipped) | Held-out selected | Baseline | Oracle | Generalized gain | Overfit gap |
960
+ |---|---|---|---|---|---|---|---|
961
+ | Grazing-gap kernel | room_size | 3 / **5** / 7 | 64.39 | 62.36 (k=3) | 65.28 | **+2.03** | 0.88 |
962
+ | Floor clip pct | room_size | 0.5 / **0.1** / 0.05 | 65.35 | 62.20 (0.5) | 65.66 | **+3.16** | 0.31 |
963
+ | SOR sigma | object_size | 2.0 / **1.5** / 1.25 | 61.49 | 61.37 (2.0) | 61.72 | +0.12 | 0.23 |
964
+ | Length-axis quantile | object_size | 0.75 / **0.9** / 1.0 | 61.26 | 59.37 (0.75) | 61.97 | **+1.89** | 0.71 |
965
+
966
+ Train picks (how often each value won the train half):
967
+ - Grazing: {3: 20, **5: 172**, 7: 8} — shipped value dominates, clean win.
968
+ - Floor clip: {0.5: 1, **0.1: 47**, 0.05: 152} — tighter clip (0.05) actually wins more often and held-out is +0.19 over shipped 0.1; shipped 0.1 is on the safe side of a broad plateau. No overfit.
969
+ - SOR sigma: {2.0: 38, **1.5: 69**, 1.25: 93} — near-flat plateau (all three within 0.35 on held-out). Distance-neutral so 1.5 kept; essentially free parameter, no overfit risk.
970
+ - Length-axis quantile: {0.75: 1, **0.9: 87**, 1.0: 112} — 1.0 (full extent) wins slightly more but held-out gap to 0.9 is only 0.71 with higher variance; 0.9 is the conservative choice on the plateau.
971
+
972
+ **Conclusion: no parameter shows overfitting.** All overfit gaps are ≤0.88 MRA (train-selection
973
+ recovers within ~1 point of the oracle in every case), every parameter beats its untuned baseline on
974
+ held-out scenes (+0.12 to +3.16), and where the shipped value is not the single most-picked (floor
975
+ clip, length-axis, SOR) it sits on a broad plateau within noise of the winner. The tuned config
976
+ generalizes across random scene partitions rather than being fit to the specific eval set.
977
+
978
+ ---
979
+
980
+ ## Final sweep — box-center consistency decoupling (SHIPPED)
981
+
982
+ Baseline going in (post-overfitting-audit, 64f): overall 51.99, size 61.55, abs_distance 60.72,
983
+ count 50.00, room 65.56. Six hypotheses screened first, all built from the untapped remaining
984
+ levers in `_compact_oriented_box` and `_compact_floor_boundary_polygons`:
985
+
986
+ | Hypothesis | overall | size | abs_distance | count/room | verdict |
987
+ |---|---:|---:|---:|---|---|
988
+ | Consensus Filter At Two Sigma (tighten the whole MAD filter to 2.0σ) | 51.64 | 60.88 | **61.72** | — | instructive: distance jumps, size drops — filter is shared and shouldn't be |
989
+ | Retain Disjoint Instances Beyond Peak | 51.14 | 61.22 | 59.90 | count 45.0 | REJECTED — "extra" disjoint fragments beyond the tracked peak are detector phantoms, not real missed instances |
990
+ | Sample Floor Support Every Fourth Pixel (denser floor grid) | 52.01 | 61.55 | 60.72 | room 65.69 | neutral, not shipped (no principled gain over the coarser stride) |
991
+ | Fill Object Footprint Convex Hulls (vs. rasterized points) | 51.96 | 61.55 | 60.86 | room 65.14 | REJECTED — convex hull overfills concave/L-shaped room footprints |
992
+ | Room Dense Sampling + Hull Fill (combo) | 51.91 | 61.55 | 60.86 | room 64.72 | REJECTED, compounds the hull problem |
993
+ | Two Sigma + Disjoint Retention (combo) | 50.76 | 60.63 | 60.53 | count 45.0 | REJECTED, compounds both failures |
994
+
995
+ **The signal:** tightening the whole MAD consistency filter to 2.0σ helps `object_abs_distance`
996
+ a lot (60.72 → 61.72) but costs `object_size` (61.55 → 60.88), because the filter's output
997
+ feeds BOTH the box center (which distance is sensitive to) AND the extent statistics (which size
998
+ reads) through one shared consistent-observation set. Same principle as the earlier size/distance
999
+ axis decoupling, one level up: **the box center wants a stricter consensus (a noisy/partial-view
1000
+ center shifts the whole box toward or away from every neighbour, corrupting every surface-gap
1001
+ distance), while the extents want the fuller 3.0σ set (partial views can only under-measure
1002
+ extent, so the fuller views are the informative ones for size).**
1003
+
1004
+ Fix: compute a *second*, stricter 2.0σ-consistent subset used only for the box CENTER
1005
+ (`core_centers`/`core_weights`), while the extent path (dimensions, full_dimensions, longest-axis
1006
+ selection) keeps the original 3.0σ set untouched. No new field, no schema change — purely how the
1007
+ existing per-observation samples are aggregated.
1008
+
1009
+ Swept the center-filter tightness to confirm this is a plateau, not a fitted knife-edge (64f):
1010
+
1011
+ | Center consensus σ | overall | abs_distance | rel_distance | size |
1012
+ |---|---:|---:|---:|---:|
1013
+ | 3.0 (= old shared filter, no change) | 51.99 | 60.72 | 59.78 | 61.55 |
1014
+ | 2.5 | 51.85 | 60.67 | 59.78 | 61.55 |
1015
+ | **2.0 (ADOPTED)** | **52.30** | **60.96** | **60.89** | **61.55** |
1016
+ | 1.5 | 52.20 | 61.24 | 60.89 | 61.55 |
1017
+
1018
+ 2.0–1.5σ are both clear improvements over 3.0/2.5σ (a broad plateau, not a single tuned point);
1019
+ 2.0σ was selected as the standard ~95%-equivalent robust cutoff (1.4826×MAD × 2.0 ≈ 2 robust
1020
+ standard deviations), the conventional choice rather than a value picked by search. size stays
1021
+ pinned at 61.55 throughout, exactly as intended — the center tightening never touches the extent
1022
+ path. 32f verification: overall 50.90 → 51.24 (+0.34), and it specifically repairs the one
1023
+ honest caveat left by the short-axis ship — 32f `object_rel_distance` recovers from 56.42 → 59.22
1024
+ (+2.8), because the tighter center stabilizes the class-distance table's ranking at 32f where
1025
+ tracks are shorter and noisier.
1026
+
1027
+ **Final production numbers (both frame counts, SHIPPED):**
1028
+
1029
+ | category | 32f (before → after) | 64f (before → after) |
1030
+ |---|---:|---:|
1031
+ | overall | 50.90 → **51.24** | 51.99 → **52.30** |
1032
+ | object_abs_distance | 59.76 → 59.71 | 60.72 → **60.96** |
1033
+ | object_rel_distance | 56.42 → **59.22** | 59.78 → **60.89** |
1034
+ | object_size_estimation | 59.75 (unchanged) | 61.55 (unchanged) |
1035
+ | object_counting | 49.50 (unchanged) | 50.00 (unchanged) |
1036
+ | room_size_estimation | 66.67 (unchanged) | 65.56 (unchanged) |
1037
+
1038
+ Shipped to `encoder/geometric.py` (`_compact_oriented_box`), all 46 encoder tests pass, production
1039
+ compact spatial codes and results rebuilt and re-scored at both frame counts to confirm.
1040
+ </content>
experiments/adapters.py CHANGED
@@ -5,9 +5,9 @@ but the difference handled here is in the HYPOTHESIS MODULE ITSELF, not the on-d
5
  file under experiments/hypotheses/ is a full standalone fork of encoder/geometric.py.
6
 
7
  - Older hypotheses were forked before the compact schema existed and expose a single-arg
8
- build_spatial_code(scene) that always builds the "original" answer-oriented schema.
9
  - Newer hypotheses (forked from the current encoder/geometric.py, which already supports both
10
- schemas from one function) expose build_spatial_code(scene, spatial_code_format="original"),
11
  matching encoder/geometric.py's own real entry point.
12
 
13
  experiments/run.py calls build() below instead of the hypothesis module directly, so callers
@@ -28,19 +28,19 @@ def supports_compact(hypothesis_module: ModuleType) -> bool:
28
  return len(params) >= 2
29
 
30
 
31
- def build(hypothesis_module: ModuleType, scene, spatial_code_format: str = "original"):
32
  """Build one spatial code from a loaded hypothesis module, in the requested format.
33
 
34
- Raises ValueError if an "original"-only (older-style) hypothesis is asked to build
35
  "compact" -- that hypothesis genuinely cannot produce that schema, so failing loudly here
36
  is preferable to silently building the wrong format.
37
  """
38
  validate_spatial_code_format(spatial_code_format)
39
  if supports_compact(hypothesis_module):
40
  return hypothesis_module.build_spatial_code(scene, spatial_code_format)
41
- if spatial_code_format != "original":
42
  raise ValueError(
43
- f"{hypothesis_module.__name__} only supports the 'original' spatial-code "
44
  f"format (its build_spatial_code() takes a single scene argument); requested "
45
  f"{spatial_code_format!r}"
46
  )
 
5
  file under experiments/hypotheses/ is a full standalone fork of encoder/geometric.py.
6
 
7
  - Older hypotheses were forked before the compact schema existed and expose a single-arg
8
+ build_spatial_code(scene) that always builds the "explicit" answer-oriented schema.
9
  - Newer hypotheses (forked from the current encoder/geometric.py, which already supports both
10
+ schemas from one function) expose build_spatial_code(scene, spatial_code_format="explicit"),
11
  matching encoder/geometric.py's own real entry point.
12
 
13
  experiments/run.py calls build() below instead of the hypothesis module directly, so callers
 
28
  return len(params) >= 2
29
 
30
 
31
+ def build(hypothesis_module: ModuleType, scene, spatial_code_format: str = "explicit"):
32
  """Build one spatial code from a loaded hypothesis module, in the requested format.
33
 
34
+ Raises ValueError if an "explicit"-only (older-style) hypothesis is asked to build
35
  "compact" -- that hypothesis genuinely cannot produce that schema, so failing loudly here
36
  is preferable to silently building the wrong format.
37
  """
38
  validate_spatial_code_format(spatial_code_format)
39
  if supports_compact(hypothesis_module):
40
  return hypothesis_module.build_spatial_code(scene, spatial_code_format)
41
+ if spatial_code_format != "explicit":
42
  raise ValueError(
43
+ f"{hypothesis_module.__name__} only supports the 'explicit' spatial-code "
44
  f"format (its build_spatial_code() takes a single scene argument); requested "
45
  f"{spatial_code_format!r}"
46
  )
experiments/config.py CHANGED
@@ -12,12 +12,12 @@ CACHES_ROOT = EXPERIMENT_ROOT / "caches"
12
  RESULTS_ROOT = EXPERIMENT_ROOT / "results"
13
 
14
  # Same two schemas symbolic/adapters.py supports -- a hypothesis's build_spatial_code() may
15
- # produce either the "original" answer-oriented shape or the "compact" oriented-box/time/
16
  # floor-polygon primitive shape (adapted at scoring time). Every on-disk path below carries
17
  # this as its own bottom-most segment, exactly like the real spatial-code layout under
18
- # data/spatial codes/<model>/<depth>/<tracking>/<input>/<frames>/<format>/ -- so an "original"
19
  # and a "compact" run of the SAME hypothesis name never collide on disk.
20
- SPATIAL_CODE_FORMATS = ("original", "compact")
21
 
22
 
23
  def normalize_hypothesis(name: str) -> str:
@@ -47,7 +47,7 @@ def spatial_code_directory(
47
  tracking: str,
48
  input_selection: str,
49
  frame_count: int,
50
- spatial_code_format: str = "original",
51
  ) -> Path:
52
  encoder_config._validate_dimensions(depth, input_selection, tracking, frame_count)
53
  return (
@@ -69,7 +69,7 @@ def spatial_code_path(
69
  tracking: str,
70
  input_selection: str,
71
  frame_count: int,
72
- spatial_code_format: str = "original",
73
  ) -> Path:
74
  if not scene or Path(scene).name != scene:
75
  raise ValueError(f"invalid scene name: {scene!r}")
@@ -93,7 +93,7 @@ def result_directory(
93
  tracking: str,
94
  input_selection: str,
95
  frame_count: int,
96
- spatial_code_format: str = "original",
97
  ) -> Path:
98
  encoder_config._validate_dimensions(depth, input_selection, tracking, frame_count)
99
  if not evaluator or Path(evaluator).name != evaluator:
 
12
  RESULTS_ROOT = EXPERIMENT_ROOT / "results"
13
 
14
  # Same two schemas symbolic/adapters.py supports -- a hypothesis's build_spatial_code() may
15
+ # produce either the "explicit" answer-oriented shape or the "compact" oriented-box/time/
16
  # floor-polygon primitive shape (adapted at scoring time). Every on-disk path below carries
17
  # this as its own bottom-most segment, exactly like the real spatial-code layout under
18
+ # data/spatial codes/<model>/<depth>/<tracking>/<input>/<frames>/<format>/ -- so an "explicit"
19
  # and a "compact" run of the SAME hypothesis name never collide on disk.
20
+ SPATIAL_CODE_FORMATS = ("explicit", "compact")
21
 
22
 
23
  def normalize_hypothesis(name: str) -> str:
 
47
  tracking: str,
48
  input_selection: str,
49
  frame_count: int,
50
+ spatial_code_format: str = "explicit",
51
  ) -> Path:
52
  encoder_config._validate_dimensions(depth, input_selection, tracking, frame_count)
53
  return (
 
69
  tracking: str,
70
  input_selection: str,
71
  frame_count: int,
72
+ spatial_code_format: str = "explicit",
73
  ) -> Path:
74
  if not scene or Path(scene).name != scene:
75
  raise ValueError(f"invalid scene name: {scene!r}")
 
93
  tracking: str,
94
  input_selection: str,
95
  frame_count: int,
96
+ spatial_code_format: str = "explicit",
97
  ) -> Path:
98
  encoder_config._validate_dimensions(depth, input_selection, tracking, frame_count)
99
  if not evaluator or Path(evaluator).name != evaluator:
experiments/evaluate.py CHANGED
@@ -21,7 +21,7 @@ def configure_symbolic_evaluation(
21
  tracking="tracking",
22
  input_selection="uniform",
23
  frame_count=64,
24
- spatial_code_format="original",
25
  ):
26
  """Point symbolic reads and writes at one isolated experiment selection."""
27
  codes = config.spatial_code_directory(
@@ -59,7 +59,7 @@ def evaluate(
59
  scene_ids=None,
60
  quiet=False,
61
  errors=False,
62
- spatial_code_format="original",
63
  ):
64
  """Score every available experiment code, or an explicit scene subset."""
65
  codes, results = configure_symbolic_evaluation(
@@ -120,7 +120,7 @@ def main() -> None:
120
  parser.add_argument("--frames", type=int, default=64)
121
  parser.add_argument(
122
  "--format",
123
- default="original",
124
  choices=config.SPATIAL_CODE_FORMATS,
125
  dest="spatial_code_format",
126
  )
 
21
  tracking="tracking",
22
  input_selection="uniform",
23
  frame_count=64,
24
+ spatial_code_format="explicit",
25
  ):
26
  """Point symbolic reads and writes at one isolated experiment selection."""
27
  codes = config.spatial_code_directory(
 
59
  scene_ids=None,
60
  quiet=False,
61
  errors=False,
62
+ spatial_code_format="explicit",
63
  ):
64
  """Score every available experiment code, or an explicit scene subset."""
65
  codes, results = configure_symbolic_evaluation(
 
120
  parser.add_argument("--frames", type=int, default=64)
121
  parser.add_argument(
122
  "--format",
123
+ default="explicit",
124
  choices=config.SPATIAL_CODE_FORMATS,
125
  dest="spatial_code_format",
126
  )
experiments/hypotheses.md ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Experimental Program: Frames vs. Spatial Code vs. Both
2
+
3
+ Grounded in VSI-Bench ("Thinking in Space", arXiv:2412.14171) and "Thinking with
4
+ Spatial Code" (arXiv:2603.05591). Every experiment below is runnable with the existing
5
+ infrastructure: harness A (frames only), harness B (spatial-code text only), harness C
6
+ (frames + code, same-source config), original/compact code formats, uniform/selective
7
+ frame selection, frame counts, three VLMs (Qwen3.5-4B, Qwen3.5-2B, InternVL3.5-4B),
8
+ the 16-token direct protocol vs. the 2048-token extended-reasoning protocol, and the
9
+ consolidated /workspace/analysis package (per-category official scores, reasoning-token
10
+ and forced-answer telemetry, cross-harness join).
11
+
12
+ Anchor findings from the two papers:
13
+ - VSI-Bench error taxonomy: ~71% spatial reasoning (40% relational, 31% ego-allo
14
+ transform), ~15% perception, ~14% linguistic.
15
+ - CoT / self-consistency / ToT HURT frames-only VSI-Bench (up to -21% on size tasks).
16
+ - Model-generated cognitive maps helped relative distance 46->56; GT maps -> 66.
17
+ - Spatial-code paper: predicted codes 60.0 overall, ground-truth codes 73.2 with the
18
+ same 4B LLM -> perception, not reasoning capacity, is the binding constraint.
19
+
20
+ ---
21
+
22
+ ## Theme 1 — Representation substitution (A vs B)
23
+
24
+ **H1 (code-for-frames substitution).** B (code only) >= A (frames only) on the
25
+ metric-geometry categories (absolute distance, object size, room size, relative
26
+ distance), because ~71% of frame-based errors are spatial-reasoning errors that
27
+ explicit coordinates eliminate; A retains the edge only on appearance-dependent
28
+ categories. Run: A vs B, all 3 models, selective/32 and selective/64, both protocols.
29
+
30
+ **H2 (informed-blind baseline).** VSI showed vision-disabled models score below chance.
31
+ B is "blind but informed" — the B-minus-blind gap is a direct measure of the code's
32
+ usable information content per category. The appearance-order category is the sharp
33
+ sub-case: the code carries first-visible-time (compact) / appearance order (original),
34
+ so B should massively beat both blind AND frames-only baselines on the paper's hardest
35
+ category (32.5 even with codes+RL) — if the model actually reads the legend. Failure
36
+ here isolates schema-grounding failure, not information absence.
37
+
38
+ **H3 (ego-allo split).** The code is allocentric (world frame). B improves allocentric
39
+ tasks (rel/abs distance, size, room size, counting) but NOT egocentric tasks (relative
40
+ direction, route planning), which need the observer's viewpoint that the code lacks.
41
+ This maps VSI's 31%-ego-allo error class onto a controlled input manipulation.
42
+
43
+ ## Theme 2 — Complementarity and conflict (C vs A, B)
44
+
45
+ **H4 (complementarity is category-selective).** C > max(A, B) only where the two
46
+ modalities carry disjoint information: relative direction and route planning (frames
47
+ restore the egocentric viewpoint; code supplies exact geometry). On pure-metric
48
+ categories C ~= B (frames redundant); on appearance order C ~= best single modality.
49
+
50
+ **H5 (cross-modal interference).** For the 2B model, C < B on metric categories:
51
+ thousands of extra visual tokens act as distractors when the code already suffices —
52
+ a capacity x redundancy interaction absent at 4B.
53
+
54
+ **H6 (textual anchoring under conflict).** Where the encoder's code is wrong (predicted
55
+ codes carry perception error), C follows the code, not the frames — VLMs anchor on
56
+ text. Measure per-question "code dominance": among questions where A and B disagree,
57
+ what fraction of C's answers side with B? Follow-up (small new script): perturb one
58
+ object's position/size in the code fed to C and measure how often the answer tracks
59
+ the perturbation despite contradicting frames.
60
+
61
+ ## Theme 3 — Reasoning protocol (16-token vs 2048-token extended)
62
+
63
+ **H7 (the CoT reversal — headline hypothesis).** VSI-Bench's "CoT hurts" finding is a
64
+ representation problem, not a reasoning problem: extended reasoning HURTS or is flat
65
+ for A (replicating the paper) but HELPS for B and C, because reasoning over explicit
66
+ coordinates is symbolic computation (arithmetic, projections) that benefits from
67
+ serial steps, whereas reasoning over frames forces error-amplifying visual
68
+ imagination. Design: 2 (protocol) x 3 (harness) x 8 (category), all models. A positive
69
+ interaction term is a novel, publishable result: "chain-of-thought fails for spatial
70
+ video reasoning only when the space is implicit."
71
+
72
+ **H8 (dose-response / overthinking).** Within extended B/C records, accuracy vs.
73
+ reasoning_token_count is inverted-U; records that hit the 2048 cap and were forced
74
+ ("Final answer:") score worst — rumination as a measurable failure mode. We log
75
+ reasoning_token_count, hit_token_limit, forced per record; no new code needed.
76
+
77
+ **H9 (forced answers are informative).** Forced-continuation answers still beat chance
78
+ on MCA tasks — truncated reasoning traces carry decision-relevant state. Compare
79
+ forced-record accuracy vs. category chance level.
80
+
81
+ **H10 (extended mode rescues small models on B).** The 4B-vs-2B gap under the 16-token
82
+ protocol on B shrinks under extended reasoning: small models can't one-shot multi-step
83
+ coordinate arithmetic in 16 tokens but can when allowed to externalize steps. Scale x
84
+ protocol interaction, B only.
85
+
86
+ ## Theme 4 — Code format (original vs compact)
87
+
88
+ **H11 (precomputation vs derivation x token budget).** Original embeds a precomputed
89
+ pairwise distance table; compact gives raw OBBs only. Under the 16-token protocol,
90
+ original wins on distance categories (answer = table lookup); under extended
91
+ reasoning, compact catches up or wins (the model derives what it needs, and the table
92
+ is 30 lines of distraction for non-distance questions). A budget x format crossover.
93
+
94
+ **H12 (verbosity x capacity).** Compact's fuller schema helps 4B models and hurts 2B
95
+ (context distraction) — format x scale interaction, measurable per category.
96
+
97
+ **H13 (schema-grounding).** Because original is now provably derivable from compact,
98
+ any B(original) vs B(compact) gap is purely presentational, not informational — a
99
+ clean measurement of how much "representation surface form" matters to VLMs, holding
100
+ information content mathematically fixed. This is a control neither paper could run.
101
+
102
+ ## Theme 5 — Perception inputs (frame selection and count)
103
+
104
+ **H14 (code as frame compression).** C at low frame counts matches A at high frame
105
+ counts: quantify the "frame-equivalent value" of the code (e.g., C@8 ~= A@64). Report
106
+ as an input-token/accuracy Pareto frontier (input_token_count is logged per record) —
107
+ an efficiency argument for symbolic intermediates.
108
+
109
+ **H15 (selection matters more upstream than downstream).** For A, selective vs uniform
110
+ frames changes what the VLM sees; for B, selection only changes what the encoder saw
111
+ when building the code. Prediction: the selective-vs-uniform effect on B (via code
112
+ coverage/quality) exceeds its effect on A — perception curation compounds through the
113
+ encoding stage. (Requires building uniform-selection codes; currently only selective
114
+ exists on disk.)
115
+
116
+ **H16 (frame-count saturation shifts by modality).** A saturates at moderate frame
117
+ counts (VSI models used 8-32); B's accuracy vs. the frame count used to BUILD the code
118
+ keeps rising longer (more frames -> more tracked objects -> more complete code), i.e.,
119
+ the saturation point of frames-as-pixels is earlier than frames-as-evidence-for-codes.
120
+ Compare A@{8,16,32,64} vs B(code built from {32,64}).
121
+
122
+ ## Theme 6 — Model family and scale
123
+
124
+ **H17 (family x modality).** InternVL3.5-4B vs Qwen3.5-4B rank-flips between A and B:
125
+ vision-centric training helps A, text/instruction strength helps B. Code-reading is a
126
+ distinct capability from video understanding, poorly predicted by video benchmarks.
127
+
128
+ **H18 (scale gap is modality-dependent).** The 4B-2B gap is larger on B than A under
129
+ the 16-token protocol (symbolic reasoning scales faster than perception at these
130
+ sizes), and H10 predicts extended mode closes it.
131
+
132
+ ## Theme 7 — Question-level error decomposition (the empirical version of VSI's manual taxonomy)
133
+
134
+ **H19 (automatic perception/reasoning split).** Join A, B, C per question (same
135
+ question ids across harnesses). Classify each question: solved-by-B-not-A (frames'
136
+ failure was perception-or-imagination), solved-by-A-not-B (code missing needed info —
137
+ appearance/visibility), solved-by-neither (reasoning failure or question pathology),
138
+ solved-by-C-only (genuine fusion). This reproduces the paper's 71/15/14 manual error
139
+ taxonomy automatically and at full-benchmark scale. Analysis-only: pairwise McNemar
140
+ tests + per-category contingency tables over existing result JSONs.
141
+
142
+ **H20 (cognitive-map generalization).** The spatial code is an externally supplied,
143
+ metrically exact cognitive map. VSI's cog-map gain concentrated in relative distance
144
+ (46->56->66 with GT). Prediction: B's gains over A concentrate in the same place, and
145
+ exceed the GT-cog-map ceiling (66) because the code is 3D and metric while the 10x10
146
+ grid map was 2D and coarse — positioning our result as the limit of that paper's
147
+ cognitive-map line.
148
+
149
+ ---
150
+
151
+ ## Execution plan — staged, config-narrowing design
152
+
153
+ This is the actual plan being run, not a full factorial: each stage sweeps its own axes,
154
+ picks a single winning configuration from the results, and freezes that configuration
155
+ for the next stage. Every stage always sweeps all 3 models — the model axis is never
156
+ collapsed, only frame count / input selection / spatial-code format are.
157
+
158
+ **Stage 1 — Plan A decides frame count AND selection.**
159
+
160
+ ```bash
161
+ python -m harness.A.sweep --models all --frame-selections all --frames 16,32,64
162
+ ```
163
+
164
+ 9 configs (3 models x 2 selections x 3 frame counts {16, 32, 64}), 16-token protocol.
165
+ Aggregate with `analysis.aggregate --harness A`; for each `(frame_selection,
166
+ frame_count)` cell, average the "overall" official score across all 3 models; the
167
+ argmax cell is `(selection*, frames*)`. This single pair is frozen for every later stage
168
+ — both harness B's `--input-selections` and harness C's `--input-selections`, and both
169
+ harnesses' `--frames`.
170
+
171
+ **Stage 2 — Plan B decides spatial-code format.**
172
+
173
+ ```bash
174
+ python -m harness.B.sweep --models all --spatial-code-formats all \
175
+ --input-selections <selection*> --frames <frames*>
176
+ ```
177
+
178
+ 6 configs (3 models x 2 formats), input selection and frame count fixed from Stage 1.
179
+ Aggregate with `analysis.aggregate --harness B`; average "overall" across the 3 models
180
+ per format; the argmax format is `format*`.
181
+
182
+ **Stage 3 — Plan C runs the fully-fixed config.**
183
+
184
+ ```bash
185
+ python -m harness.C.sweep --models all --spatial-code-formats <format*> \
186
+ --input-selections <selection*> --frames <frames*>
187
+ ```
188
+
189
+ 3 configs (one per model) — every non-model axis is now fixed by Stages 1-2, so C's own
190
+ sweep only varies the model.
191
+
192
+ **What this buys and what it costs.** A, B, C become directly comparable at one
193
+ apples-to-apples configuration chosen by A's own best showing — clean for H1/H4/H5/H6/
194
+ H17 (representation and complementarity questions at the single best operating point).
195
+ It costs the multi-config comparisons: H3/H7/H10/H11/H18 (protocol and format
196
+ interactions across several configs) and H14-H16 (frame-count/selection curves across
197
+ harnesses) need B/C runs at MORE than the one frozen config to observe an interaction or
198
+ a curve, not just a single point. Two ways to get those without abandoning the staged
199
+ design:
200
+ - Re-run Stage 2/3 sweeps a second time under the extended (2048-token) protocol at the
201
+ same frozen `(selection*, frames*)` — gives the 16-token-vs-extended comparison (H7,
202
+ H10) "for free" at the chosen config, no new axis to pick a winner from.
203
+ - Treat frame-count/selection curves (H14, H15, H16) as a separate, explicitly
204
+ secondary sweep — rerun B/C at the other Stage-1 frame counts too, after the staged
205
+ pipeline's headline results are in, only if those hypotheses are still of interest.
206
+
207
+ **Always-available, no extra runs needed:**
208
+ - **Telemetry analyses** (H8, H9, H19, H20): pure analysis over whatever result JSONs
209
+ already exist (reasoning_token_count bins, forced-rate vs score, cross-harness
210
+ per-question join) — run after every stage, not gated on the full plan finishing.
211
+ - **Perturbation probe** (H6 follow-up): small script cloning harness C with a
212
+ position/size-perturbed code for ~100 sampled questions from the frozen C config.
213
+ - **Uniform-selection code build** (only relevant if Stage 1 picks `selective`, since
214
+ `H15` specifically wants the OTHER selection's encoder-side effect): gated on
215
+ regenerating SAM3 raw caches for uniform input, currently absent on disk.
216
+
217
+ Statistics: per-question paired comparisons (McNemar for MCA, paired bootstrap over
218
+ questions for MRA), per-category and overall; all scoring through the official
219
+ vsibench aggregator already wired into /workspace/analysis.
220
+
221
+ Expected headline results if hypotheses hold: (i) CoT-reversal interaction (H7, needs
222
+ the extended-protocol re-run above), (ii) automatic error-taxonomy decomposition (H19),
223
+ (iii) format-as-pure-presentation control (H13), (iv) textual anchoring under modality
224
+ conflict (H6).
experiments/launch.py CHANGED
@@ -146,7 +146,7 @@ def main() -> None:
146
  parser.add_argument("--frames", type=int, default=64)
147
  parser.add_argument(
148
  "--format",
149
- default="original",
150
  choices=config.SPATIAL_CODE_FORMATS,
151
  dest="spatial_code_format",
152
  )
 
146
  parser.add_argument("--frames", type=int, default=64)
147
  parser.add_argument(
148
  "--format",
149
+ default="explicit",
150
  choices=config.SPATIAL_CODE_FORMATS,
151
  dest="spatial_code_format",
152
  )
experiments/run.py CHANGED
@@ -129,7 +129,7 @@ def run_scene(
129
  input_selection="uniform",
130
  frame_count=64,
131
  rebuild=False,
132
- spatial_code_format="original",
133
  ):
134
  output = config.spatial_code_path(
135
  scene,
@@ -172,7 +172,7 @@ def main() -> None:
172
  parser.add_argument("--frames", type=int, default=64)
173
  parser.add_argument(
174
  "--format",
175
- default="original",
176
  choices=config.SPATIAL_CODE_FORMATS,
177
  dest="spatial_code_format",
178
  )
 
129
  input_selection="uniform",
130
  frame_count=64,
131
  rebuild=False,
132
+ spatial_code_format="explicit",
133
  ):
134
  output = config.spatial_code_path(
135
  scene,
 
172
  parser.add_argument("--frames", type=int, default=64)
173
  parser.add_argument(
174
  "--format",
175
+ default="explicit",
176
  choices=config.SPATIAL_CODE_FORMATS,
177
  dest="spatial_code_format",
178
  )
experiments/tests/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (215 Bytes). View file
 
experiments/tests/__pycache__/test_config.cpython-311-pytest-8.3.5.pyc ADDED
Binary file (8.29 kB). View file
 
experiments/tests/__pycache__/test_evaluate.cpython-311-pytest-8.3.5.pyc ADDED
Binary file (12.4 kB). View file
 
experiments/tests/__pycache__/test_hypotheses.cpython-311-pytest-8.3.5.pyc ADDED
Binary file (22.5 kB). View file
 
experiments/tests/__pycache__/test_launch.cpython-311-pytest-8.3.5.pyc ADDED
Binary file (5.33 kB). View file
 
experiments/tests/__pycache__/test_loader.cpython-311-pytest-8.3.5.pyc ADDED
Binary file (4.82 kB). View file
 
experiments/tests/__pycache__/test_run.cpython-311-pytest-8.3.5.pyc ADDED
Binary file (15.6 kB). View file
 
experiments/tests/test_config.py CHANGED
@@ -21,7 +21,7 @@ def test_spatial_code_path_has_all_dimensions():
21
  / "uniform"
22
  / "A Human Readable Hypothesis"
23
  / "64"
24
- / "original"
25
  / "scene0000_00.json"
26
  )
27
 
 
21
  / "uniform"
22
  / "A Human Readable Hypothesis"
23
  / "64"
24
+ / "explicit"
25
  / "scene0000_00.json"
26
  )
27
 
experiments/tests/test_evaluate.py CHANGED
@@ -14,7 +14,7 @@ def test_configure_symbolic_evaluation_uses_experiment_paths():
14
  / "uniform"
15
  / "A Hypothesis"
16
  / "64"
17
- / "original"
18
  )
19
  assert (
20
  results
@@ -25,10 +25,10 @@ def test_configure_symbolic_evaluation_uses_experiment_paths():
25
  / "uniform"
26
  / "A Hypothesis"
27
  / "64"
28
- / "original"
29
  )
30
  assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_DIR == str(codes)
31
- assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_FORMAT == "original"
32
  assert evaluate.symbolic_launch.symbolic_run.results_dir_for_selection() == str(
33
  results
34
  )
 
14
  / "uniform"
15
  / "A Hypothesis"
16
  / "64"
17
+ / "explicit"
18
  )
19
  assert (
20
  results
 
25
  / "uniform"
26
  / "A Hypothesis"
27
  / "64"
28
+ / "explicit"
29
  )
30
  assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_DIR == str(codes)
31
+ assert evaluate.symbolic_launch.symbolic_run.SPATIAL_CODES_FORMAT == "explicit"
32
  assert evaluate.symbolic_launch.symbolic_run.results_dir_for_selection() == str(
33
  results
34
  )