SemanticALLI: Caching Reasoning, Not Just Responses, in Agentic Systems
Varun Chillara, Dylan Kline, Christopher Alvares, Evan Wooten, Huan Yang, Shlok Khetan, Cade Bauer, Tré Guillory, Tanishka Shah, Yashodhara Dhariwal, Volodymyr Pavlov, George Popstefanov
TL;DR
SemanticALLI targets the Latency-Utility Gap in enterprise agentic pipelines by caching internal reasoning rather than final outputs. It introduces a two-stage decomposition, Analytic Intent Resolution (AIR) and Visualization Synthesis (VS), with a Hybrid Retrieval Engine that combines exact hashing, dense semantic indexing, and lexical constraints. Empirical results show VS achieves up to $83.10\%$ hit rate and AIR up to $38.7\%$, bypassing thousands of LLM calls and reducing latency, with tokens per invocation dramatically lowered for cached steps. This internal caching yields substantial token and latency savings compared with monolithic prompt->output caching, suggesting a generalizable principle for multi-step AI workflows in BI and beyond. The work points to future directions in broader deployment, cross-tenant reuse, and more sophisticated invalidation strategies.
Abstract
Agentic AI pipelines suffer from a hidden inefficiency: they frequently reconstruct identical intermediate logic, such as metric normalization or chart scaffolding, even when the user's natural language phrasing is entirely novel. Conventional boundary caching fails to capture this inefficiency because it treats inference as a monolithic black box. We introduce SemanticALLI, a pipeline-aware architecture within Alli (PMG's marketing intelligence platform), designed to operationalize redundant reasoning. By decomposing generation into Analytic Intent Resolution (AIR) and Visualization Synthesis (VS), SemanticALLI elevates structured intermediate representations (IRs) to first-class, cacheable artifacts. The impact of caching within the agentic loop is substantial. In our evaluation, baseline monolithic caching caps at a 38.7% hit rate due to linguistic variance. In contrast, our structured approach allows for an additional stage, the Visualization Synthesis stage, to achieve an 83.10% hit rate, bypassing 4,023 LLM calls with a median latency of just 2.66 ms. This internal reuse reduces total token consumption, offering a practical lesson for AI system design: even when users rarely repeat themselves, the pipeline often does, at stable, structured checkpoints where caching is most reliable.
