arXiv:2608.25608cs.CVAug 2026

Manuscript Offprint

arXiv:2608.25608

When Should a Network Emit Geometry, and When Should It Detect It? Readout, Reconciliation, and Representation in Floorplan Vectorization

He Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

A network trained to recover the walls, openings, and rooms of a rasterized floorplan can produce its output in two ways: by emitting the geometry as an autoregressive coordinate sequence, or by detecting it on dense junction and centerline heatmaps and assembling a graph. We compare the two readouts on the same trained network. On real scans (CubiCasa5K) detection is better on every wall measure (+2.7 wall F1 at tolerance 0.05, +5.1 at 0.015; paired bootstrap intervals exclude zero), and reading an opening heatmap the decoder never used raises opening F1 by 2.6× without retraining. Within real scans the readout's advantage grows with plan size and reverses on small plans; on clean vector renders sequence decoding is better by 5 to 8 points where its training covered the render style, while under full domain shift the readout, given calibrated thresholds, stays ahead; neither ink density nor plan size explains the reversal. With matched data and recipe, a room-centric system with a reconciliation step and a wall-first sequence model reach comparable wall quality, so the output representation matters less than is usually assumed. A prior from the other family helps at the output but not at the input: deterministic fusion of the two outputs raises wall F1 by 7 points, whereas conditioning one model on the other's output gives no gain in three forms, including two ground-truth-content controls. We also provide an edit-cost metric that scores a draft by the human work needed to correct it, corrected CubiCasa5K annotations, and ResPlan-FP, a CC BY 4.0 benchmark of 16,998 plans with frozen splits and three baseline tracks. Code, the benchmark, and the corrected annotations are available at https://github.com/Cyprinus12138/fpvec-lab.

1 Introduction

Converting a rasterized floorplan into an editable vector model, consisting of walls, openings, and labeled rooms, is a prerequisite for CAD workflows, indoor navigation, real-estate digitization, and design tools [1–3]. In practice the output is a draft that a person then corrects in an editor. The quantity that matters downstream is therefore the cost of that correction rather than the F1 score of the draft, and existing IoU and F1 benchmarks do not measure it.

Once a network has been trained on this task, there are two ways to get the geometry out of it. It can emit the walls as an autoregressive sequence of coordinates, as sequence-based vectorizers do [4–6], or it can detect them: take the peaks of a junction heatmap as nodes, decide edges from a centerline heatmap, and assemble a graph. The two readouts can be compared on one and the same trained network, which removes the usual confounds of architecture and training data. We do this for a wall-first network that has both a sequence decoder and dense heads. On real scans (CubiCasa5K) the graph readout is better on every wall measure, by 2.7 points of wall F1 at tolerance 0.05 and 5.1 at 0.015 (paired bootstrap 95% intervals [1.4, 4.0] and [3.7, 6.4]), with the largest gain at the strict tolerance where coordinate precision matters most. On clean vector renders (ResPlan, and a synthetic open-plan tier) the order reverses and sequence decoding is ahead by 5 to 8 points where its training covered the render style, while under full domain

A PREPRINT

shift the readout, once its four thresholds are calibrated, stays ahead. Within real scans the readout's advantage grows with plan size and reverses on small plans; neither ink density (the fraction of dark pixels, defined in Section 6.1) nor plan size explains the cross-domain reversal. Openings show the same pattern as walls on real scans. The network had always trained an opening heatmap that the decoder never read; reading it raises opening F1 from 0.25 to 0.64 with no retraining (Section 6.1). The practical rule, stated empirically: detect on large real scans and decode on small ones; on clean renders, decode where the decoder has trained on the style, otherwise detect with in-domain-calibrated thresholds.

The question of readout is usually overshadowed by the question of output representation. Room-centric vectorizers [4, 7–9] predict each room as a separate polygon and derive walls afterwards, which appears to produce double walls and walls on open-plan boundaries; wall-first serializations [5, 10] make those errors impossible to express and are credited with the resulting topological validity. This was also our own starting assumption. In a comparison with matched data, recipe, and supervision (Section 6.2), the representation turns out to be secondary. The room-centric system, after a deterministic reconciliation step, produces no double walls, reaches wall precision around 0.9 and watertightness of 0.92–0.94, and has an edit cost about 30% below native wall-first emission. The failure modes we had attributed to the representation (wall precision 0.22 with double walls throughout, in an early zero-shot audit) are accounted for by three factors that the controlled comparison removes, namely the ground-truth convention, the reconciliation step, and domain shift; we did not run an arm that isolates training supervision alone. The representational effect that remains is a coverage limit: walls that bound no room cannot be recovered from room output (recall 0.30 vs. 0.66), which accounts for about 4 points of aggregate recall and says nothing about topological quality.

The two families are still complementary, and where that complementarity can be used turns out to matter. Feeding one system's output to the other as a conditioning input does not help: in three forms (a rasterized room-outline channel, a rasterized fused-wall-draft channel, and a symbolic coordinate prefix), run under a stop rule fixed in advance, no arm improved on its zero-content control, and two controls that supply ground-truth content moved the score by at most 0.3 points (Section 6.4). A draft of this kind is another extractor's reading of the same image, and a model that already sees the image gains nothing from it. Combining the two outputs after prediction, by deterministic fusion of room-derived and wall-detected walls, raises wall F1 by 7 points over the better system alone (paired 95% interval [5.9, 8.3]; Section 6.3).

Contributions. (1) A comparison of emitting and detecting on a fixed trained network, showing that the better readout depends on plan size within real scans and on the domain across domains, with a practical rule (detect on large real scans and decode on small ones; on clean renders, decode where the decoder has trained on the style, otherwise detect with in-domain-calibrated thresholds) and the observation that, with edge chaining off, the readout's thresholds transfer across domains for networks used in or finetuned to their training domain, while under domain shift the thresholds are what calibration must supply (Section 6.1). (2) A negative result on input-side conditioning, with a stop rule fixed in advance and an explanation of why the prior cannot add information, together with the observation that the same prior is useful as output-level fusion (Sections 6.3 and 6.4). (3) A controlled study with matched data and recipe, showing that the representation-first account of floorplan topological quality does not hold in our setting: on wall precision, double walls, and watertightness, room emission followed by reconciliation matches or exceeds native wall-first sequence emission, and the failure modes previously attributed to the room-centric representation are accounted for by the evaluation convention, the reconciliation step, and domain shift (Section 6.2). (4) An edit-cost metric that scores drafts by the human work needed to correct them, with a weight-sensitivity check, and corrected CubiCasa5K annotations (skv4) with the correction tooling (Sections 3, F and 6.5). (5) ResPlan-FP, a CC BY 4.0 benchmark of 16,998 plans with frozen, fingerprinted splits, a published render and evaluation protocol, and baseline tracks for zero-shot, finetuned, and LLM systems (Section 6.6).

References (37)