<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tia Saxena on Medium]]></title>
        <description><![CDATA[Stories by Tia Saxena on Medium]]></description>
        <link>https://medium.com/@tia.saxena041202?source=rss-f9ef7f6bf176------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FCFOxGx89HEVV_L0RIPzOQ.jpeg</url>
            <title>Stories by Tia Saxena on Medium</title>
            <link>https://medium.com/@tia.saxena041202?source=rss-f9ef7f6bf176------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:50:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tia.saxena041202/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Past OCR, Toward Agents: A New Era of Touchless Document Intelligence]]></title>
            <link>https://medium.com/@tia.saxena041202/past-ocr-toward-agents-a-new-era-of-touchless-document-intelligence-b3100b824081?source=rss-f9ef7f6bf176------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3100b824081</guid>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[llm-applications]]></category>
            <dc:creator><![CDATA[Tia Saxena]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 16:27:52 GMT</pubDate>
            <atom:updated>2026-02-22T17:01:11.663Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Problem: Why Traditional OCR Falls Short</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5f6OwJ_1NUd7DdrpLePQNg.png" /></figure><p><strong>Agentic Document Intelligence</strong><br>The financial services industry processes billions of documents annually, including bank statements, invoices, tax forms, and compliance records. For decades, Optical Character Recognition (OCR) served as the backbone of this digitization effort. But traditional OCR has a fundamental limitation: it extracts text without understanding context.</p><p>Traditional OCR engines treat documents as flat streams of characters. They miss the spatial relationships between table headers and data cells, lose the semantic meaning of merged columns, and require rigid templates for every new document format. When a bank statement from Chase looks different from one from Wells Fargo because of different layouts, different terminology, different summary structures, traditional OCR pipelines break. Every new format demands new templates, new rules, and new maintenance overhead.​</p><p><strong>We set out to build something fundamentally different: an Agentic Document Intelligence capability that rather than treating documents as static layouts, the system decomposes them into semantic chunks, contextualizes each element, and detects latent transaction‑intelligence patterns. Our bank statement template agnostic system processes documents with zero-template configuration, extracts structured financial data with mathematical precision.</strong></p><p><strong>Architecture Approach: Agentic AI, Reinforced by Embedded Guardrails</strong></p><p><strong>The Generalization Strategy</strong></p><p>The core design philosophy behind is a hybrid approach where agentic AI serves as the capability enabler rather than the sole decision-maker. We deliberately architect the system so that the LLM handles what it does best: visual understanding, semantic normalization, entity resolution and contextual extraction across unstructured content, while guardrail‑backed deterministic logic ensures accurate metric validation, schema integrity, standardized formats, and full compliance with business rules.</p><p>In practice, this means that the agent is never trusted to <em>compute</em> financial truths; it is only trusted to <em>surface</em> structured signals from raw documents. For example, in a bank statement workflow, the agent extracts normalized transaction records, while average daily balances, cash flow summaries, deposit classifications, and compliance indicators are computed via audited, deterministic pipelines. This design eliminates probabilistic behavior from all financially material logic, ensuring that numerical correctness is governed by code, not inference.</p><p><strong>Essential Practices and Strategic Principles: Quality vs Cost Discipline</strong></p><p>Selecting a foundation model for production document intelligence is not a benchmark leaderboard decision, it is a systems engineering tradeoff.</p><p>In a financial document pipeline, three forces operate simultaneously:</p><ol><li><strong>Extraction fidelity</strong> : layout interpretation, table reconstruction, semantic normalization</li><li><strong>Economic efficiency</strong> : per-document inference cost at scale</li></ol><p>Optimizing for any one dimension in isolation creates instability in the others. The correct choice lies on the cost–quality frontier, not at the absolute peak of any single metric.</p><p><strong>Evaluation Framework</strong></p><p>We evaluated leading multimodal models across three axes:</p><ul><li>Public document-understanding benchmarks (e.g., OCRBench-style tasks)</li><li>Internal extraction accuracy across 500+ bank statements spanning 100+ layouts</li></ul><p>Importantly, we did not measure raw reasoning scores in isolation. We measured:</p><ul><li>Field-level precision and recall</li><li>Structured schema compliance</li><li>Token efficiency, optimized by distributing work across multi‑layer reasoning elements.</li><li>Variance under ambiguous layouts</li></ul><p>In production systems, consistency under distributional shift is often more valuable than peak benchmark accuracy.</p><h3>Observations &amp; Findings</h3><p>Higher-capacity models demonstrated stronger layout reasoning and semantic extraction in edge cases, particularly with merged cells, nonstandard headers, and noisy scans. However, these gains came with:</p><ul><li>Increased token consumption</li><li>Higher latency variance</li><li>Greater per-document cost</li></ul><p>Conversely, lighter-weight models offered superior throughput and cost characteristics but occasionally required structured reasoning scaffolding (e.g., constrained prompts, chunking strategies) to match extraction robustness.</p><p>The practical question became:</p><p>Can architectural controls compensate for marginal reasoning gaps more efficiently than upgrading model capacity?</p><p>In many workflows, the answer was yes.</p><h3>Model Selection: Multi-Criteria Decisioning</h3><p>The decision ultimately favored the model that provided:</p><ul><li>Strong multimodal layout comprehension</li><li>Native PDF/image ingestion</li><li>Configurable reasoning depth</li><li>Stable latency under parallel chunking</li><li>Competitive token efficiency</li></ul><p>Rather than selecting the highest raw benchmark scorer, we selected the model that best aligned with our hybrid architecture: one where deterministic layers absorb financial computation and the LLM is constrained to interpretive extraction.</p><p>Because our system externalizes numerical correctness into audited code paths, model selection prioritizes interpretive accuracy and operational stability over theoretical reasoning maxima.</p><h3>Agentic Design Governs Cost vs Quality</h3><p>A common misconception in document intelligence is that stronger models eliminate the need for system design.</p><p>In practice:</p><ul><li>Chunking strategy affects cost more than parameter count</li><li>Prompt modularization affects hallucination rate more than model family</li><li>Deterministic reconciliation affects financial correctness more than reasoning depth</li></ul><p>The model is a capability layer, not the system itself.</p><p>By engineering around cost, latency, and deterministic validation, we ensure that model upgrades are incremental improvements, not architectural dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7CYNpzDrQIVNInekU9pww.png" /></figure><h3>Intelligent Chunking: Task-Aware Routing Meets Parallel Execution</h3><p>Although modern foundation models expose million-token context windows that enable full-document ingestion in principle, real-world production environments are constrained by latency budgets, timeout thresholds, and throughput requirements that render monolithic inference calls economically and operationally suboptimal. Our empirical analysis across thousands of bank statements reveals a more scalable design pattern: <strong>chunking should be driven by task semantics rather than document length.</strong> By allowing the downstream objective to determine which sections are processed and how they are parallelized, the system achieves both higher efficiency and stronger SLA adherence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*f6YL7XcSXb1tYDeM3DfZOA.png" /></figure><p>For example, for computation-heavy workflows (e.g., transaction parsing, average daily balance, debt analysis), the system performs full-document parsing via boundary-aware chunking, dispatching parallel agents and reconciling outputs through a deterministic aggregation pipeline to ensure mathematical correctness. For classification tasks (e.g., SIC/MCC prediction, entity identification), only the first N pages are processed, as they empirically contain sufficient signal.</p><p>This task-aware routing architecture is the quiet multiplier behind our SLA compliance. Rather than treating every document as a monolithic inference problem, the system classifies the intent; dynamically selecting between full parallel fan-out and surgical single-chunk extraction. <strong>The result: we never over-process when a lightweight pass suffices, and we never under-process when completeness is non-negotiable.</strong></p><h3>Structured Reasoning: Constraining the Model’s Cognitive Surface Area</h3><p>In high-stakes financial systems, correctness is not merely a function of output quality, it is a function of reasoning discipline.</p><p>Large language models are inherently generative systems. Left unconstrained, they may interpolate, infer missing structure, or compress multi-step reasoning into opaque shortcuts. In consumer applications this may be acceptable. In financial extraction, it is not.</p><p>Our objective is not to increase reasoning depth. It is to bound reasoning freedom.</p><h3>Constrained Chain-of-Thought</h3><p>We employ structured, step-bounded reasoning patterns for interpretive tasks that require multi-hop semantic inference such as layout disambiguation, header normalization, and contextual classification.</p><p>However, reasoning is explicitly constrained by:</p><ul><li>Predefined step ordering</li><li>Explicit intermediate checkpoints</li><li>Clear separation between interpretive inference and deterministic computation</li></ul><p>The model is allowed to reason only within scoped interpretive domains. It is never permitted to derive, aggregate, or compute financially material values.</p><p>This converts chain-of-thought from an open-ended generative process into a controlled interpretive protocol.</p><h3>Internal vs. Operational Reasoning</h3><p>We distinguish between two layers:</p><ul><li><strong>Interpretive reasoning (ephemeral)</strong><br> Used internally by the model to resolve ambiguity.</li><li><strong>Operational output (authoritative)</strong><br> Strictly typed, schema-bound, and validated downstream.</li></ul><p>Reasoning traces are treated as scaffolding, not as system state. Only structured, schema-compliant outputs propagate to deterministic layers. This ensures that interpretive flexibility does not leak into financial truth.</p><h3>The Principle</h3><p>Unstructured prompts maximize expressive capability. Production systems require constrained expressiveness.</p><p>By combining:</p><ul><li>Step-bounded reasoning</li><li>Explicit exclusion rules</li><li>Schema enforcement</li><li>Deterministic post-processing</li></ul><p>we reduce the model’s cognitive surface area while preserving interpretive strength.</p><p>The model is permitted to think, but only within clearly engineered boundaries.</p><h4>The Deterministic vs. Probabilistic Split</h4><p>This is perhaps one of the impactful architectural decisions. We categorize every activity in the extraction pipeline as either probabilistic (best handled by the LLM) or deterministic (must be handled by code).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wsTqTcYXzB2AWqdwRi_tg.png" /></figure><h3>Key Takeaways</h3><p>Building a production-grade Agentic Document Intelligence Platform demands systems engineering discipline as much as model capability. The value emerges not from model complexity alone, but from the architectural orchestration that surrounds it: deterministic computation, cost–quality balancing, intelligent routing, and disciplined reasoning control.</p><p>The three principles that guided our architecture:</p><ol><li><strong>Template-Free Generalization as a Competitive Moat<br></strong>Semantic document decomposition eliminates layout rigidity, turning every new document format from a maintenance liability into zero additional overhead. At scale, this compounds into a structural advantage competitors running template-dependent pipelines simply cannot replicate.</li><li><strong>Model Selection Is a Systems Engineering Decision, Not a Benchmark Decision</strong> <br>The right question is never “which model is strongest?” — it is “which model best complements the system’s deterministic scaffolding?” Cost-quality frontier engineering outperforms leaderboard chasing every time.</li><li><strong>Auditability Is Engineered, Not Assumed<br></strong>Separating interpretive inference from schema-bound, deterministically validated output produces results that are not just accurate — but defensible to regulators, auditors, and risk functions. That distinction is what separates a prototype from a production-grade financial platform.</li></ol><p>The result is an architecture where model intelligence is harnessed, not trusted, thereby, yielding a platform that generalizes across formats, scales economically, and guarantees financial accuracy by design.</p><p><strong>Acknowledgement:<br></strong>I would like to thank my mentor, <a href="https://www.linkedin.com/in/bijay-kumar-63592711/">Bijay Kumar</a> for his valuable guidance and insights during the conceptualization of this work. His perspectives on agentic system design and production-grade document intelligence architectures significantly influenced the direction and clarity of this approach.</p><p><em>Engineering Blog</em><br><a href="https://www.linkedin.com/in/tiasaxena/"><em>Tia Saxena</em></a><em>, AI Engineer</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3100b824081" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>