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.
Initial read subtotal = $1,300.00 + tax = $144.00 ≠ total = $1,944.00.
CP-SAT narrows /subtotal to exact target [$1,800.00, $1,800.00]. High-DPI crop resolves smudged 3 → 8.
{
"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)
}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.
| Capability | Generic Vision LLMs | doc2x.ai (CP-SAT + MUC) |
|---|---|---|
| Accounting & Tax Math | Probabilistic; silently outputs mismatched totals | Fixed-point int64 sums, products & rate bands |
| Hallucination Risk | Autoregressive decoding invents plausible numbers | Zero autoregressive generation; every value grounded to a page box |
| Degraded Scans & Phone Photos | Single low-res pass; guesses blurry digits | Homography straightening + automated 350-DPI MUC crop repair |
| Exception Auditability | Analysts must inspect all 80 fields manually | Exact violated_rule_ids + implied target intervals |
| Deployment Footprint | Third-party cloud API only; PII leaves VPC | Cloud API (ZDR) or self-hosted CPU/GPU Docker container in your VPC |
How It Works
Four deterministic stages from raw document to proven JSON
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.
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.
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.
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.