Asking a Frozen Vision-Language Model Only the Hard Questions in Borderless Tables

Tables without ruling lines, common in financial filings, scientific papers and historical registers, mark their cells only through whitespace and alignment. Most of their structure is easy to recover from geometry alone. Accuracy is lost on a small set of genuinely ambiguous calls: whether a gap is an empty cell or padding, and whether a wrapped line continues a cell or starts a new row. Current systems handle these calls in one of two costly ways. Purely visual split-merge models ignore what the text says. Generative vision-language models instead write out the entire table token by token, after being fine-tuned on table markup. That makes them slow, prone to hallucinating rows, and untested for what the fine-tuning does to the model's general abilities.

We propose a division of labor. A fast geometric model proposes candidate separator lines and flags the decisions it is unsure about. A frozen, general-purpose vision-language model then answers only those flagged decisions. Its output is restricted by an input-dependent grammar, meaning a set of rules built per table, so that every answer it can produce corresponds to a valid, rectangular table consistent with the geometric candidates. The model never emits coordinates and never writes the full table, and its weights never change. Our bet is that this combination generalizes better to unseen document domains than fine-tuned specialists, at zero cost to general capability.

Core Claim

In borderless tables, structure errors from strong geometric recognizers are concentrated in a small number of low-confidence decisions that need reading, not just seeing. A frozen vision-language model can resolve those decisions under domain shift better than a fine-tuned model, provided two conditions hold. Its output space must be cut down by grammar-constrained decoding, which masks illegal next tokens during generation, so that it can only choose among structurally valid resolutions. And the continuous geometry must stay with a regression model rather than being turned into coordinate tokens.

Three things are new relative to prior work. The first is applying grammar constraints to a table-structure language rather than to one-dimensional text tasks. The second is shrinking the generated sequence from a full table to a short list of decisions, which removes the length and latency problems of generative table parsers. The third is measuring the specialization trade-off in table parsing, which no cited table paper reports.

Positioning Against Prior Work

The geometric half reuses existing methods. SEMv3 regresses separator-line offsets from keypoints instead of predicting pixel masks. This lets lines bridge blank space, and it reports 37.9% versus 18.5% grid F1 against instance segmentation on wireless iFLYTAB tables. Its merge step is a local four-way classification, and it uses no language. TABLET frames splitting as sequence labeling and merging as grid classification in the OTSL cell language. OTSL encodes a table as a grid of cell, merge-left and merge-up symbols. TABLET reports 88.18% accuracy on FinTabNet, but it depends on external OCR and cannot use the text to resolve ambiguity. We keep both as proposal generators and add only what they lack: semantic adjudication of the decisions they are unsure about.

Generative parsers motivate the work by exposing its failure modes. UniTabNet adds a language guider to disambiguate multi-line cells and reaches 84.9 tree-edit structure similarity (TEDS-Struct) on the text-heavy wireless iFLYTAB-DP set. It does so by fine-tuning a decoder that must emit the whole table, and it truncates large tables. TabPedia fine-tunes a 7B model on a canonical box-sequence output but never measures what that tuning does to the backbone. Our design differs from both: the language model is frozen, sees only flagged decisions, and outputs neither markup nor coordinates.

The constraint mechanism comes from Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning. Its input-dependent grammars restrict outputs to per-input vocabularies and guarantee syntactic validity without touching weights, though the authors note this does not fix semantics. We use the guarantee for validity and rely on the frozen model's reading ability for semantics, implemented with epfl-dlab/GCD.

Two papers motivate the decoupling. Feather-SQL found that small models collapse to 0% compliance when forced to reason and format at once, and recovered by splitting a reasoning model from a syntax specialist. Model Editing Harms General Abilities shows that even sparse weight updates can wreck general reasoning.

Finally, the LIBERO-Gen study supplies a hypothesis we test rather than assume. In robot manipulation, discretely tokenized actions dropped to 0.0% success under spatial rearrangement, while continuous flow-matching kept 64.0%. That evidence comes from a different domain, so whether coordinate tokenization hurts document parsers under layout shift is an open empirical question here.

Research Program

The first step is diagnostic. We train SEMv3 and TABLET on PubTables-1M and PubTabNet, run them on FinTabNet, iFLYTAB-DP and the wireless iFLYTAB subsets, and attribute each structure error to individual separator and merge decisions. If, for example, the lowest-confidence 10% of decisions do not account for most of the lost structure similarity, the premise fails and we stop.

If the premise holds, we build the adjudication interface in four steps:

  1. Flag uncertain decisions. For each uncertain decision, the geometric model supplies a small set of alternatives, such as keeping or dropping a candidate row line, or merging or not merging a cell pair.
  2. Present the decision to the language model. The model sees the table image with the relevant region marked, the OCR words on either side, and a numbered list of alternatives.
  3. Constrain the answer with a per-table grammar. The grammar permits only decision strings whose combined effect still yields a valid OTSL grid. For example, merges must form rectangles, and rows must have consistent column counts once spans are counted. Because the grammar is recompiled per table, it encodes the global constraints that local merge classifiers cannot see.
  4. Reconstruct the table. The decisions are applied to the continuous geometry to produce the final structure.

We run this with open vision-language models of two sizes, since logit access is required, and with no gradient updates.

Baselines

Naive reference. The geometric proposer alone, with every uncertain decision resolved by its own argmax. This is SEMv3 or TABLET used as published, so the comparison isolates exactly what adjudication adds. Beating it on cross-domain TEDS-Struct, by a margin larger than seed variance, is the minimum bar.

Strongest existing method on wireless text-heavy tables. UniTabNet, at 84.9 TEDS-Struct on iFLYTAB-DP and 97.50 TEDS-Struct on PubTabNet (UniTabNet). It is the strongest competitor because it already uses text semantics for exactly our ambiguity. For fair comparison we retrain it on the same PubTables-1M and PubTabNet training data and evaluate it on the same held-out domains. We will check whether its in-distribution number matches the paper; if it does not, we report the discrepancy. For other domains we cite the reported anchors: TABLET's 88.18% FinTabNet accuracy, and SEMv3's 95.1% F1 on WTW (Wired Table in the Wild, tables photographed with tilt and deformation) and 89.3% on the ICDAR-2019 cTDaR historical registers. No reported result was found on Lacuna for any of these methods under train-on-PubTables, test-on-FinTabNet or iFLYTAB transfer, so we produce those numbers ourselves.

Fine-tuned adjudicator. The same vision-language model, trained with low-rank adapters (LoRA) and with full fine-tuning on the decision task, using the same training tables and a matched tuning budget. This tests whether freezing costs in-domain accuracy and what it buys out of domain.

Ablations. Four ablations each isolate one ingredient:

  • Grammar off: free generation followed by parsing the answer, Feather-SQL's extraction strategy. This isolates the grammar.
  • Text only: a language model given OCR words and positions but no image. This isolates vision.
  • Full-table generation: the frozen model writes the entire OTSL table under the grammar, with no geometric proposer. This isolates the decision-only interface.
  • Coordinate-token geometry: the proposer replaced by a model that emits quantized coordinate tokens. This tests the tokenization hypothesis.

Why not just…?

Why not just use SEMv3 or TABLET alone, since they already output valid structures by construction? This is the most serious threat, because validity is not the problem these models have. The diagnostic in our first step settles the question. If their errors are not concentrated in text-dependent decisions, or if adjudication does not beat their argmax on iFLYTAB-DP and FinTabNet, then geometry suffices and the proposal is wrong.

Why not just fine-tune UniTabNet or TabPedia on more domains? They may win in-domain. But they emit full sequences that truncate on large tables (UniTabNet), and their effect on general capability is unmeasured. The cross-domain comparison and the forgetting measurements below test whether specialization buys accuracy at a cost elsewhere.

Why not just LoRA-tune the adjudicator, since adapters may forget little? This is plausible, and the fine-tuned-adjudicator baseline measures it directly. If LoRA matches the frozen model out of domain and leaves general scores within noise, we will say freezing is unnecessary, and the contribution reduces to the decision-only grammar interface.

Why not just prompt a frontier commercial model with a JSON schema? Such models lack logit masking, so validity cannot be guaranteed. TabPedia also reports GPT-4V at only 27.2% on table question answering (ComTQA), against its own 53.5% (TabPedia). We still include the grammar-off ablation with an open model to show what validity is worth.

Decisive Checks

Every system trains on PubTables-1M and PubTabNet. Evaluation covers four held-out sets: FinTabNet, iFLYTAB-DP plus the wireless iFLYTAB subsets, WTW for deformation, and cTDaR for historical registers. We report:

  • TEDS-Struct, the tree-edit similarity of predicted and true table structure;
  • accuracy restricted to flagged decisions;
  • rate of malformed outputs;
  • wall-clock time against table size.

For forgetting, we score each adjudicator variant before and after on ComTQA and on the base model's standard general reasoning suite, sampled with the same prompts.

The proposal succeeds if three things hold together. The frozen, grammar-constrained adjudicator beats the geometric argmax and retrained UniTabNet on at least FinTabNet and iFLYTAB-DP. It has zero malformed outputs where grammar-off does not. And it matches the LoRA variant out of domain with no general-score loss, while the full fine-tune shows one. If the coordinate-token ablation degrades much more than the regression proposer on WTW, that would extend the LIBERO-Gen finding to documents. If it does not, we report that the robotics analogy does not transfer.