TRACE SERIES · REPORT 2

TRACE Commercial: Adapting Wall Recovery to Commercial Floor Plans

ABSTRACT
TRACE (Tokenized Representation of Architectural CAD Elements) is Foreman AI's wall-recovery model. It turns the vector CAD elements inside a PDF floor plan into line tokens, learns a representation for each token, decides which tokens are walls and which belong to the same wall, and emits measured wall runs in exact PDF coordinates. Its learned stages were trained on house plans, and on commercial sheets it misses walls and confuses exterior with interior. We built a commercial reference set from our corpus of nearly 98,000 real engineered plans (about 3.6 million pages), held out 5 sheets from 5 unseen projects for evaluation, and adapted TRACE's pixel wall model, RoomNet, by fine-tuning from its production weights with commercial examples sampled ten times as often. Held-out commercial pixel F1 rises from 0.889 to 0.943, driven by recall (0.859 to 0.971); house validation F1 falls from 0.914 to 0.900, so we keep separate house and commercial models. Through the complete production pipeline, found wall length on the held-out sheets rises from 77.4% to 93.0% of 6,482 LF and missed length falls from 1,466 to 455 LF, while invented length rises from 447 to 746 LF. Exterior/interior accuracy on matched walls rises from 78.7% to 84.1%. Beyond a modest amount of commercial data, adding more no longer moves the pixel metric. Retraining the downstream line picker on inputs computed with the commercial wall field lowers its held-out token loss by 12% but leaves full-pipeline results unchanged, which localizes the remaining error to the stages that admit invented walls rather than to wall detection.
construction takeoff · floor-plan understanding · wall recovery · vector geometry · domain adaptation · fine-tuning

1. Introduction

A takeoff starts with wall length. Stud counts, plates, sheathing, insulation, gypsum board and several finishes are derived directly from recovered wall geometry, so a wall model that is wrong in a systematic way propagates that error into every downstream quantity [2]. TRACE recovers walls from the vector primitives already present in a construction PDF [1]. Deterministic geometry proposes candidate wall lines; learned models decide which candidates are walls, where they end, which of them describe the same physical wall, and which side of the building each run faces.

TRACE was developed on residential construction drawings, and its learned stages, the pixel wall model RoomNet and the line picker QuantityNet, were trained on house plans [1]. On those populations it performs well. Commercial drawings differ in ways the house corpus rarely shows: poché-filled masonry, double-line demising and rated walls, dense casework, column grids, keynote tags, hatch fields, and scales from 1/8 in. to 3/8 in. per foot. In production these sheets failed in three visible ways: long runs traced as fragments, whole walls dropped, and interior partitions labelled exterior.

Most floor-plan work starts from raster images and predicts walls, rooms or junctions as pixels or graphs [6, 7]; blueprint vectorization has also been attempted directly on high-resolution drawings [8]. TRACE instead keeps the PDF's own vector primitives and uses learning only to verify them [1]. Adapting a trained network to a small new domain by fine-tuning is standard practice [9], with the known risk of forgetting the source domain [10]; both effects appear below.

This paper reports the first adaptation of TRACE to commercial plans. The contributions are:

  • a commercial reference set with checked scales and exterior, interior and opening classes, with evaluation sheets held out by project;
  • a fine-tuning recipe for RoomNet with ablations over commercial data volume, class weight, initialization, scale augmentation and seed;
  • a full-pipeline evaluation on held-out sheets that runs the production client and runtime code in a library environment matched to the production worker; and
  • a line picker retrained on production-path inputs and scored end to end, with a negative result that localizes the remaining error.

2. The TRACE model

The name describes the method. TRACE never draws walls from pixels. It first turns a sheet into tokens: each token is one candidate wall line recovered from the PDF's own vector CAD elements, such as parallel face pairs, filled wall bodies, stroke envelopes and bounded continuations. A token then receives a learned representation, and every output coordinate is inherited from a token rather than from a raster (Fig. 1).

TRACE architecture
Figure 1: TRACE stages. Gold boxes are learned. The wall field from RoomNet enters every later learned stage: the line picker samples it along each token, and the exterior/interior heads compute features from it. Changing RoomNet therefore changes the inputs of every downstream model.

RoomNet is a five-level U-Net [3] with encoder widths 12–24–48–96–128 and 810,096 parameters. It reads the sheet rendered in grayscale at 4 pixels per foot and emits four wall-probability channels for walls near 0°, 45°, 90° and 135°.

Token representation. For each token, a 5×17×48 strip is sampled along it at 8 px/ft: ink darkness plus the four RoomNet channels rotated into the token's frame, 2 ft wide and 48 samples long. Twenty-four numeric features add length, width, field statistics, face-pair support and extraction path.

QuantityNet, the line picker (231,588 parameters), maps the representation to a validity logit and trimmed span endpoints. A pair head receives two token embeddings and eight pair features and predicts whether overlapping parallel tokens are the same physical wall.

Compiler and heads. The compiler keeps RoomNet intervals at or above 0.90, vetoes tokens the line picker scores below 0.30, and merges tokens into runs by ownership. Two small MLP heads then label each run: a base head on 61 geometric and field features and a residual context head that adds 38 room-context features. Cleanup passes (tidy, room bridges, outline snap and a 1.5× second pass on 1/8 in. sheets) follow.

Because the wall field enters the line picker's strips and the heads' features, a new RoomNet changes the inputs of every later learned stage. This coupling determines the experimental order in Sec. 4.

3. Data

3.1 Commercial reference set

Sheets were drawn from Foreman AI's corpus of nearly 98,000 real engineered plans (about 3.6 million pages), choosing commercial floor plans across building types and drafting styles: clinics, a surgery center, restaurants, office and retail tenant improvements, a bank branch and a winery. Reference walls are centrelines tagged exterior, interior or bearing, with openings represented as spans along the wall line.

Every reference sheet carries a checked drawing scale; a wrong scale silently halves or doubles every quantity measured in feet. The five held-out sheets come from five projects, none shared with any training sheet, and range from 1/8 in. to 1/4 in. per foot and from a winery to a cardiology clinic (Table 1).

3.2 House check

The house models and their evaluation sets are unchanged from Report 1 [1]. The same 20 house development sheets serve as the house check in every experiment, so each result reports both what commercial gained and what houses lost.

Table 1: Held-out commercial evaluation sheets, one per project. Walls and openings are reference segments; LF are linear feet at the checked scale.
Held-out sheetScaleWallsOpen.Ext. LFInt. LFOpen. LF
H1 (urgent-care clinic)1/8"161614811,182145
H2 (winery)1/8"31227417382107
H3 (restaurant)1/4"1431517918170
H4 (angled plan)3/16"10555452682129
H5 (cardiology clinic)3/16"3471205841,947277
Total (5 sheets)1,0682782,1134,374728

4. Method

4.1 RoomNet fine-tuning

The selected recipe initialises RoomNet from its production weights and fine-tunes it on a mix of house and commercial sheets with the production four-direction targets, using AdamW [4] with cosine decay; commercial examples are sampled ten times as often as house examples. Ablations vary the amount of commercial data (progressively larger commercial subsets A, B and C), the commercial sampling weight, initialization from scratch versus production weights, scale augmentation and seed.

4.2 Evaluation

Pixel wall F1 at 1 ft compares RoomNet's thresholded field with the reference masks, counting a pixel as matched within one foot, in the spirit of buffer-based positional accuracy [5]. It isolates the wall model but ignores every later stage.

Full-pipeline wall length. Each held-out sheet runs through the production client and runtime (v16.2.4), with its PDF library and software environment matched package-for-package to the production worker. Reference and traced walls are drawn as one-pixel centrelines at 8 px/ft with openings excluded. With G the reference centrelines, T the traced centrelines, L(·) length and N1(·) the 1-ft neighbourhood:

found = L(G ∩ N1(T)),   missed = L(G) − found,
invented = L(T \ N1(G)).

Exterior/interior accuracy samples every traced wall each half foot and compares each sample within 1 ft of a reference wall with that wall's class, weighted by length.

The production sheet gate refuses two of the five held-out sheets, and the manual box fallback refuses a third because a hatch path crosses the box edge. To measure the models rather than the gate, every held-out run uses a box around the drawing whose redaction keeps every path that reaches it. The box stands in for a gate that accepts commercial plans.

4.3 Line-picker retraining

The production line picker never saw fields from the commercial RoomNet. We therefore retrained it on token features computed by the production runtime's own stages (vector extraction, the 4 px/ft render, the commercial RoomNet field and the QuantityNet input packer), so that training and inference see identical inputs. We compare fine-tuning from the production line picker, which keeps its input normalisation, with training from scratch under the original recipe, sampling commercial tokens with weight 1× or 3×. Both keep the original targets and losses: length-weighted validity cross-entropy, span regression and balanced same-wall cross-entropy.

5. Results

5.1 RoomNet

The production model's commercial errors are mostly misses: precision 0.922, recall 0.859. The selected fine-tune holds precision at 0.917 and raises recall to 0.971. Table 2 and Fig. 2 list every run on identical populations.

  • Commercial data helps immediately. The smallest commercial subset (A) lifts held-out commercial F1 from about 0.89 to 0.93; houses-only retrains of the same architecture reach 0.880 and 0.892.
  • Fine-tuning matches training from scratch with far less compute (0.928 versus 0.926 on subset A) and reaches 0.939–0.943 on subset B.
  • More data helps, then saturates. Moving from subset A to B gains about a point; moving from B to the larger subset C gains nothing measurable (0.935 and 0.940 over two seeds versus 0.943).
  • Weighting barely matters: commercial ×3, ×6 and ×10 land within 0.004.
  • Houses pay a small price. Every mix loses 1–1.7 points on the house set; commercial-only training keeps commercial F1 (0.935) but collapses houses to 0.740, the familiar forgetting of fine-tuned networks [10].
  • Scale augmentation hurts: randomly rescaling tiles to imitate 1/8 in. sheets lowered commercial F1 from 0.918 to 0.904 on an earlier, smaller held-out set.

Seed-to-seed spread on the commercial set is about half a point, so smaller differences are not interpreted.

Table 2: RoomNet runs, pixel wall F1 at 1 ft, all scored on the same five held-out commercial sheets, the 20 house development sheets and the 8 external house sheets of Report 1. Comm. A, B and C are progressively larger commercial training subsets. Selected run in bold.
RunTraining dataInitComm. ×Comm. F1Houses F1External-8 F1
Production RoomNethouses (production)––0.8890.9140.868
Houses only, retrainedhousesscratch–0.8920.9150.925
Houses only, other seedhousesscratch–0.8800.9100.891
First commercial mixhouses + comm. Ascratch×60.9260.9060.921
Fine-tunehouses + comm. Aproduction×30.9280.9080.919
Fine-tunehouses + comm. Aproduction×60.9330.9000.914
Fine-tunehouses + comm. Bproduction×30.9400.9010.896
Fine-tunehouses + comm. Bproduction×60.9390.8980.894
Fine-tune, seed 43houses + comm. Bproduction×60.9400.8980.894
Fine-tune (selected)houses + comm. Bproduction×100.9430.9000.894
Fine-tune, 2× longerhouses + comm. Bproduction×60.9410.8990.904
Commercial onlycomm. B onlyproduction–0.9350.7400.786
Fine-tunehouses + comm. Cproduction×100.9350.8970.882
Fine-tune, seed 43houses + comm. Cproduction×100.9400.8970.894
RoomNet ablations
Figure 2: RoomNet ablations on identical held-out populations (Table 2). Every run that includes commercial data gains on commercial sheets; every such run gives back 1–1.7 points on houses, and training on commercial sheets alone collapses house accuracy.

5.2 Full pipeline

Pixel F1 hides what a takeoff sees. With every stage except RoomNet left at production, found wall length on the held-out sheets rises from 77.4% to 93.0% and missed length falls by 69%, from 1,466 to 455 LF (Table 3, Figs. 3–4). Found length rises on all five sheets; the cardiology clinic moves from 69% to 94%. The cost is invented length, up from 447 to 746 LF, concentrated on casework, fixture outlines, grid stubs and dashed egress paths (Fig. 5). Figure 6 shows the mechanism: the production field fades on thin exterior walls and long corridor walls, and the commercial field does not.

found length per sheet
Figure 3: Reference wall length found per held-out sheet, full pipeline. Production (gray) versus the commercial RoomNet (gold); all other stages are production.
missed and invented length
Figure 4: Missed and invented wall length summed over the five held-out sheets. The retrained line picker (hatched) leaves both essentially unchanged.
Table 3: Full-pipeline wall length on held-out sheets (LF). Every column runs the complete production client and runtime; only the models differ.
Held-out sheetReference LFProduction: found / missed / inventedCommercial RoomNet: found / missed / invented+ line picker: found / missed / invented
H1 (urgent-care clinic)1,6701,550 / 121 / 331,654 / 17 / 501,653 / 18 / 63
H2 (winery)797747 / 50 / 139750 / 48 / 252757 / 40 / 237
H3 (restaurant)358248 / 110 / 67326 / 31 / 57327 / 31 / 61
H4 (angled plan)1,113708 / 405 / 140896 / 217 / 188901 / 212 / 204
H5 (cardiology clinic)2,5441,764 / 780 / 682,401 / 143 / 1992,404 / 140 / 201
Total6,4825,016 (77.4%) / 1,466 / 4476,028 (93.0%) / 455 / 7466,042 (93.2%) / 440 / 766

5.3 Exterior and interior

Exterior/interior accuracy also improves overall, from 78.7% to 84.1% (Table 4, Fig. 7). Part of the gain is that the commercial model finds walls the production heads then classify correctly. Per sheet the result is mixed: two sheets (H1, H2) lose three to four points while the other three gain seven to twenty-four. In every column the dominant error is an interior partition called exterior, the natural bias of heads trained only on houses, where long straight walls near the outline are usually exterior.

exterior interior accuracy
Figure 7: Exterior/interior accuracy per held-out sheet with production heads, before and after the RoomNet change.

5.4 Line picker

Table 5 and Fig. 8 score each line-picker variant on held-out tokens using the commercial field. Fine-tuning lowers commercial validity loss from 0.373 to 0.327 and keeps two to three points more real wall length at the production veto threshold; house loss also improves. Training from scratch peaks early and then overfits, ending worse than production on both populations by its final checkpoint. The pair head is the weak component on commercial sheets, separating same-wall from different-wall pairs only 60–67% of the time against about 76% on houses. The hard cases are walls within a foot of each other: demising walls, furring and chase walls.

line picker loss
Figure 8: Line-picker validity loss on held-out tokens. Fine-tuning from production weights lowers commercial loss; training from scratch overfits with longer training.

The token-level gain does not carry through. Run end to end, the fine-tuned line picker moves found length from 93.0% to 93.2%, missed length from 455 to 440 LF, invented length from 746 to 766 LF and exterior/interior accuracy from 84.1% to 84.4%, all inside the noise. The retrained model mainly raises its scores on real walls; its veto removes about as much non-wall length as before, and the walls the full pipeline invents pass the veto with either model.

Table 4: Exterior/interior accuracy over traced wall length within 1 ft of a reference wall; bearing walls count as interior.
Held-out sheetProduction: correct (LF compared)Commercial RoomNet: correct (LF compared)+ line picker: correct (LF compared)
H1 (urgent-care clinic)87.1% (1,316)83.7% (1,445)83.6% (1,417)
H2 (winery)85.3% (975)81.7% (956)82.5% (947)
H3 (restaurant)71.4% (239)78.2% (330)76.4% (343)
H4 (angled plan)59.2% (686)83.0% (898)81.6% (907)
H5 (cardiology clinic)77.2% (1,627)86.6% (2,322)87.8% (2,357)
All78.7% (4,843)84.1% (5,951)84.4% (5,971)
Interior called exterior (LF)937755752
Exterior called interior (LF)95190181
Table 5: Line picker on held-out tokens (C = commercial, 5 sheets, 9,194 tokens; H = houses, 20 development sheets, 27,675 tokens). Loss = length-weighted validity cross-entropy. Kept = real wall LF surviving the 0.30 veto; removed = non-wall LF vetoed; pair = balanced same-wall accuracy.
Line pickerC lossC keptC removedC pairH lossH keptH removedH pair
Production line picker (new field)0.37391.8%83.4%0.6000.29493.2%87.6%0.762
Fine-tune ×3, early checkpoint0.32794.2%82.0%0.6410.28195.3%85.5%0.773
Fine-tune ×3, full run0.33593.7%83.0%0.6220.28194.5%86.1%0.755
Fine-tune ×1, full run0.33593.6%82.6%0.6250.28194.3%86.8%0.761
Fine-tune ×3, higher LR, full run0.35493.1%83.5%0.5960.29993.8%86.7%0.743
Scratch ×3, best checkpoint0.31294.7%81.7%0.6730.26695.2%86.2%0.764
Scratch ×3, final checkpoint0.40291.4%84.1%0.5950.33793.0%88.5%0.745

6. Discussion

The central result is that the bottleneck moved. Beyond a modest commercial set the pixel model stopped improving on this test, and the full pipeline now finds 93% of commercial wall length. What remains is invented length and class errors. Because a better line picker did not remove the invented walls, either they are produced by stages it does not gate (cleanup passes, perimeter recovery, the 1/8 in. second pass), or the 0.30 veto is too permissive for commercial sheets. The next measurement should attribute each invented foot to the stage that produced it before any further training.

The house cost argues for two models. Every commercial mix gave back 1–1.7 points on houses, which remain most of the production traffic. The runtime should keep the house bundle and route commercial plans to a commercial bundle; the result cache is keyed on the wall-model file, so the two cannot share results.

Environment parity proved material. An earlier run of this comparison in a development environment with an older PDF library than the production worker showed exterior/interior accuracy falling from 83.3% to 67.1% on three sheets. With the worker's exact library version the same three sheets move from 87.1%, 85.3% and 71.4% to 83.7%, 81.7% and 78.2%. The class features read page text and drawings, and both change with the library version. Every result in this paper uses the matched environment.

7. Limitations and threats to validity

  1. Small commercial test set. Five held-out sheets from five projects detect effects of several points but cannot rank close variants.
  2. Selection on the test set. Line-picker checkpoints were chosen on the held-out tokens because five sheets leave no separate validation split; token-level numbers are optimistic.
  3. Bypassed gate. The held-out runs use a lenient box. Today's production path would refuse two of the five sheets outright.
  4. One reference convention. The reference set follows a single convention for what counts as a wall (for example, centrelines run through doors), so that convention is also the model's.
  5. Seed variance. Seed-to-seed spread of about half a point on commercial F1 limits every RoomNet comparison below that size.
H5 · production
H5 · production
H5 · commercial RoomNet
H5 · commercial RoomNet
H4 · production
H4 · production
H4 · commercial RoomNet
H4 · commercial RoomNet
foundmissedinvented
Figure 5: Held-out traces through the full pipeline. Top: H5, a cardiology clinic at 3/16", where production misses most of the exterior and many corridor walls. Bottom: H4, an angled plan, where found length rises from 708 to 896 of 1,113 LF. Orange marks invented walls, mostly casework and fixture outlines.
production RoomNet
production field
commercial RoomNet
commercial field
Figure 6: The wall field itself on H5 (strongest direction per pixel). The production field fades on the thin exterior and the long corridor walls; those fades are the red spans in Figure 5.

8. Reproducibility

The commercial reference set and sheet list, the training and evaluation code, the full-pipeline harness, and the scripts that regenerate every figure and number in this paper are retained by Foreman AI Research, together with checkpoint hashes for every run, including the selected commercial RoomNet. Test runtimes are copies of production runtime v16.2.4 with one model swapped and hash pins rewritten in the copy only. Nothing reported here has shipped; production still runs the house models.

9. Conclusion

A small commercial reference set was enough to adapt TRACE's wall model: on held-out commercial sheets the full pipeline now finds 93.0% of wall length instead of 77.4% and misses 455 LF instead of 1,466. The adaptation costs houses 1–2 pixel-F1 points, so the commercial model should be deployed alongside the house model rather than in place of it. The work also shows where effort should go next. More commercial examples no longer move the wall model, and a retrained line picker does not reduce invented length. The next gains will come from finding which stage admits invented walls, retraining the exterior/interior heads on commercial predictions, and fixing the sheet gate so commercial plans reach the model at all.

Data availability

The plan sheets come from Foreman AI's proprietary corpus and are not redistributed; sheets are identified by neutral IDs. Aggregate results, per-sheet scores and checkpoint hashes are retained by Foreman AI Research.

Competing interests

Kyle Rossignol is the founder of Foreman AI LLC, which develops commercial construction-estimating software incorporating the wall-recovery technology described here. This manuscript reports internal research and should be interpreted with that relationship disclosed.

Funding

The work was conducted as internal research and development by Foreman AI LLC. No external funding was received.

Author contributions

K.R. conceived the project, built the commercial reference set, and directed the experiments. Model training, evaluation and drafting of this manuscript were carried out with Claude (Anthropic), an AI model, under K.R.'s direction.

References

  1. K. Rossignol, “TRACE Residential: Candidate-Then-Verify Wall Recovery from Vector Construction Drawings,” Foreman AI Research, TRACE Series Report 1, Colorado, USA, Sep. 2026.
  2. K. Rossignol, “Measurement Practice for Automated Wall Recovery from Architectural Construction Drawings,” Foreman AI Research, Colorado, USA, technical report, Aug. 2026.
  3. O. Ronneberger, P. Fischer, and T. Brox, “U-Net: Convolutional Networks for Biomedical Image Segmentation,” in Medical Image Computing and Computer-Assisted Intervention (MICCAI), pp. 234–241, 2015.
  4. I. Loshchilov and F. Hutter, “Decoupled Weight Decay Regularization,” in International Conference on Learning Representations (ICLR), 2019.
  5. M. F. Goodchild and G. J. Hunter, “A simple positional accuracy measure for linear features,” International Journal of Geographical Information Science, vol. 11, no. 3, pp. 299–306, 1997.
  6. C. Liu, J. Wu, P. Kohli, and Y. Furukawa, “Raster-To-Vector: Revisiting Floorplan Transformation,” in Proc. IEEE International Conference on Computer Vision (ICCV), pp. 2195–2203, 2017.
  7. A. Kalervo, J. Ylioinas, M. Häikiö, A. Karhu, and J. Kannala, “CubiCasa5K: A Dataset and an Improved Multi-Task Model for Floorplan Image Analysis,” arXiv:1904.01920, 2019.
  8. W. Song, M. M. Abyaneh, M. A. A. Shabani, and Y. Furukawa, “Vectorizing Building Blueprints,” in Proc. Asian Conference on Computer Vision (ACCV), pp. 1044–1059, 2022.
  9. J. Yosinski, J. Clune, Y. Bengio, and H. Lipson, “How transferable are features in deep neural networks?,” in Advances in Neural Information Processing Systems (NeurIPS), pp. 3320–3328, 2014.
  10. J. Kirkpatrick et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the National Academy of Sciences, vol. 114, no. 13, pp. 3521–3526, 2017.