Manuscript Offprint

arXiv:2609.05880

Grounded and Faithful P&ID Reasoning: Constraining Vision-Language Models with Recovered Evidence Graphs

Prathamesh Gadekar, Sagar Srinivas Sakhinana, Venkataramana Runkana

Abstract

Piping and Instrumentation Diagrams (P&IDs) are the authoritative maps of process plants: isolation, maintenance, and HAZOP decisions depend on what connects to what. Vision-language models describe these sheets fluently, yet they often invent or miss process connections—and an invented or missed link can reverse an isolation or reachability call, so a plant decision cannot trust a fluent answer that was never checked against the linework. We instead recover an explicit graph of the drawing—its symbols, the process connections between them, and the tags that name them—and then require the model to answer only by querying that graph through seven read-only operators, so a topology claim is returned only when it cites the query results that support it. On TopoPID-VQA, a new suite of 3000 topology questions over these sheets, Graph-Grounded Harness (Ours) raises exact-match accuracy from 36.7–41.3% under image-only prompting to 74.3–76.0% for Qwen3-VL-4B, Qwen3-VL-8B, and Gemma-4-E4B. It does so on an imperfect substrate: on Digitize-PID dataset the recovered graph scores F1F_1 0.742 on exact process connections, and 0.801 once symbols and tags are pooled in. The residual errors track that gap—grounding pays off where the recovered graph is right, and perception error still breaks topology questions where it is not.

1 Introduction

Piping and Instrumentation Diagrams (P&IDs) are the working drawings of process plants: they record which equipment, valves, and instruments share process lines and control loops [Paliwal et al., 2021, Rahul et al., 2019]. Oil and gas, chemicals, power generation, pharmaceuticals, water treatment, and aerospace propulsion or ground-test facilities all keep P&IDs as the authoritative map for isolation, maintenance, HAZOP, and as-built checks. Those sheets are how a plant is licensed, modified, and shut down safely; an invented or missed connection is an operational error, not a caption glitch. Engineers query them for isolation planning, tag tracing, routing checks, and other calls that depend on what connects to what, not on a free-form description of the drawing.

Most plant archives still hold P&IDs as rasters. Reading topology from those pixels is slow for people and unreliable for vision-language models (VLMs): a model may name symbols fluently yet invent a path between mark A and mark B with no check against the linework. On a P&ID that invented edge can reverse an isolation or reachability call.

A useful P&ID assistant therefore needs two things. First, an explicit process graph recovered from the sheet so connectivity is a stored fact rather than a guessed relation. Second, a way to answer English questions that forces every topology claim to cite those graph facts. We ask how much accuracy that grounding buys on topology questions over these sheets, and how much remains limited by the quality of the recovered graph itself.

Preprint.

Figure

Figure 1: Grounding converts a plausible prediction into an auditable answer. An image-only VLM may invent a process connection without checking the underlying linework (left). A graph-grounded harness conditions the answer on recovered topology and returns inspectable evidence identifiers (right).

Real sheets make the difficulty concrete: hundreds of near-identical symbols, long pipe runs, fly-over crossings, and tags that look alike. Pixel-only reading is a poor fit; process topology is what the decisions depend on.

Our system has two stages. Stage 1 recovers a grounding substrate: finetuned perception finds symbols, lines, and text; deterministic rules (intersection noding, sheet-adaptive junction snap, first-symbol linker walk, tag association) build the typed process graph GautoG_{auto}. An optional signal-edge layer can attach instrument links on dashed polylines; we report its recovery separately, and TopoPID-VQA questions use process edges only. Stage 2 is Graph-Grounded Harness (Ours): a VLM plans over seven fact-returning graph operators, grounds marks and tags on the sheet, and returns a structured answer that cites the supporting graph entities. Answers without cited evidence are rejected. Figure 1 contrasts the two regimes.

References (19)