Zero-Autoregressive Combinatorial Document Extraction

Mathematically verified JSON from tax forms, PDFs & phone photos.

Generic vision LLMs hallucinate digits and silently return line items that don't add up. doc2x.ai pairs single-pass neural extraction with an exact CP-SAT solver—proving every sum, product, and checksum, auto-repairing OCR errors at 350 DPI, and returning pixel-level bounding-box provenance.

No signup needed for demoZero Data Retention (in-memory)Sub-second on CPU
POST /v1/extract · MUC Trace
OPTIMAL · 15/15 checks
1. Initial OCR Conflict Caughtrule: c_total

Initial read subtotal = $1,300.00 + tax = $144.00 ≠ total = $1,944.00.

2. Stage 1.5 MUC Implied Bound350-DPI ROI Crop

CP-SAT narrows /subtotal to exact target [$1,800.00, $1,800.00]. High-DPI crop resolves smudged 3 → 8.

3. Verified Output + Provenancerepaired: true
{
  "subtotal": 1800.00,  // page 1 [0.62, 0.41, 0.78, 0.44]
  "tax":       144.00,  // page 1 [0.64, 0.47, 0.78, 0.50]
  "total":    1944.00   // c_total: PASSED (int64 exact)
}
96.9%
Micro-F1 on U.S. Tax Benchmark
tax-box-rope v1 (test split)
100%
Hard Constraint Satisfaction
Independent verifier CSR %
845 ms
Mean Extraction Latency
CPU-only — zero GPU cluster required
24+
Pre-Built IRS Tax Schemas
W-2, 1040, 1099s, K-1, 941, 1120-S

Built for Straight-Through Processing

98% accuracy still forces 100% manual review—unless you know which 2% failed.

In lending, tax preparation, and accounts payable, silent OCR errors poison downstream ledgers. doc2x.ai proves every hard rule mathematically so your pipeline can auto-approve OPTIMAL documents and route only INFEASIBLE exceptions straight to the 1–2 conflicting bounding boxes.

CapabilityGeneric Vision LLMsdoc2x.ai (CP-SAT + MUC)
Accounting & Tax MathProbabilistic; silently outputs mismatched totalsFixed-point int64 sums, products & rate bands
Hallucination RiskAutoregressive decoding invents plausible numbersZero autoregressive generation; every value grounded to a page box
Degraded Scans & Phone PhotosSingle low-res pass; guesses blurry digitsHomography straightening + automated 350-DPI MUC crop repair
Exception AuditabilityAnalysts must inspect all 80 fields manuallyExact violated_rule_ids + implied target intervals
Deployment FootprintThird-party cloud API only; PII leaves VPCCloud API (ZDR) or self-hosted CPU/GPU Docker container in your VPC

How It Works

Four deterministic stages from raw document to proven JSON

01

Ingest & Straighten

Extracts exact vector characters from digital PDFs (~2 ms/page) or straightens handheld phone photos via homography & curl dewarping before running ONNX PP-OCRv4.

02

Single-Pass Neural Scoring

Zero autoregressive token decoding. A single forward pass (Box-RoPE or VLM + LoRA) scores OCR candidates for every schema field and nested table row in parallel.

03

Joint CP-SAT Optimization

OR-Tools CP-SAT selects every field simultaneously in fixed-point int64 math—enforcing sums, products, rate bands, reading order, and EIN/SSN/IBAN checksums.

04

350-DPI MUC Self-Repair

When an OCR error contradicts a constraint, a Minimal Unsatisfiable Core (MUC) pinpoints the exact slot, computes implied math bounds, and re-reads a 350-DPI crop.

Managed Cloud API with Zero Data Retention

Send PDFs, PNGs, JPEGs, or multi-page TIFFs over TLS to a single POST /v1/extract endpoint. Documents are processed strictly in memory and discarded immediately after the response—never stored to disk and never used for training.

Self-Hosted Docker / VPC Container

Because tax-box-rope v1 is a compact 40 MB model + ONNX OCR + OR-Tools CP-SAT, it runs completely offline on standard CPU or GPU nodes inside your own AWS, GCP, or Azure VPC. Keep SSNs, EINs, and financial filings 100% inside your security perimeter.