Manuscript Offprint

arXiv:2608.29268

Learning to Ground Before Reading: Unified PCB Engineering Drawing Parsing with Compact Vision-Language Models

Jinghao Liu, Xingrun Liu, Gengchen Sun, Han Xiao, Xingyu Chen, Yuhui Deng

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

Jinghao Liu 2∗^{2*}, Xingrun Liu 2,∗^{2,*}, Gengchen Sun 1,2,3,4^{1,2,3,4}, Han Xiao 4^{4}, Xingyu Chen 4^{4}, and Yuhui Deng 1,2^{1,2}

1^{1} Guangdong Provincial Key Laboratory of Interdisciplinary Research and Application for Data Science, Zhuhai 519087, China

2^{2} Beijing Normal–Hong Kong Baptist University, Zhuhai 519087, China

3^{3} Faculty of Science, Hong Kong Baptist University, Hong Kong SAR 999077, China

4^{4} Hong Kong aiKnow Limited, Hong Kong SAR, China

{sungengchen, ivandeng}@bnbu.edu.cn

Abstract. PCB engineering drawings mix sparse graphics, dense tables, and text whose meaning depends on page position. Localizing the regions and sending crops to specialized recognizers are determined as the methods for most parsers, so missed regions cannot be recovered downstream. We train a compact VLM to read the full page and get a sequence of region classes, normalized boxes, and text or HTML content. Bounding boxes are converted to coordinate tokens for supervision. Inference uses no detector or crop parser. The joint target is difficult to optimize because class and box tokens are sparse relative to the much longer content sequences. Our localization-first curriculum learns the class-box format before adding content targets with content-aware resampling. On the fixed validation split of the Engineering Drawing Dataset (ED dataset), Localization-First improves strict localization F1 by 0.0955 over joint training (paired image-bootstrap 95% interval: [0.0350, 0.1572]). G-Unified has the lowest NED, highest cell F1, and only nonzero exact-match score. It provides a detector-free baseline for full-page PCB drawing parsing.

Keywords: Engineering drawings · document understanding · visual grounding · vision-language models · structured extraction

1 Introduction

PCB engineering drawings are usually highly informative, including graphical views, fabrication notes, layer stackups, drill schedules, and heterogeneous tables on a single high-resolution page. Experienced people can easily locate the wanted information, however, it is hard for the vision model, as this is more than the recognition problem: content must be interpreted together with its spatial context and semantic role. Beyond identifying where content occurs, explicit localization

∗^{*} These authors contributed equally to this work.

Authors Suppressed Due to Excessive Length

recovers the page layout required for downstream tracing, because relationships among drawing elements often have to be inferred from their relative positions and spatial arrangement rather than from content alone. A complete parser therefore needs to identify relevant regions, determine what each region represents, recover its textual or tabular content, and retain its location on the page.

Most existing document and engineering-drawing systems address these requirements with a cascaded pipeline. A detector or layout analyzer first localizes regions, after which individual crops are routed to Optical Character Recognition (OCR) engines or Vision-Language Models for recognition. Systems such as eDOCr2 combine geometry-driven segmentation with specialized recognition modules [21], while Hybrid-VL uses a trained YOLO11m-OBB detector before parsing detected crops with a VLM [10, 11, 23]. This decomposition creates a hard dependency between localization and recognition: a missed or incorrectly cropped region cannot be recovered by the downstream parser. It also introduces detector-specific training, crop-routing rules, and multiple inference stages.

We investigate whether this cascade can be replaced by a single compact VLM operating directly on the full page. Our Unified Grounding Training framework (G-Unified) formulates PCB parsing as structured sequence generation, where each predicted region is represented by its semantic class, bounding box, and textual or HTML content. The model therefore performs classification, localization, and parsing jointly in one autoregressive call, without detector inference, crop routing, or a second recognizer.

This unified formulation, however, introduces an optimization imbalance. Class and coordinate fields are short and highly structured, whereas text and table contents are substantially longer and more variable, causing ordinary joint training to be dominated by content tokens. We address this issue with Localization-First training, which first establishes region classes and locations before introducing the complete {class, box, content} target. In general, our contributions can be illustrated as follows:

  1. Unified full-page grounding and parsing. We formulate PCB engineering-drawing parsing as a single {class, box, content} generation task and train a compact VLM to jointly classify, localize, and parse regions directly from the full page, eliminating detector inference and crop-based recognition.

  2. Localization-First training. We introduce a two-phase training strategy that prioritizes sparse localization supervision before the longer content targets, improving the optimization of unified structured generation.

References (26)