Skip to main content
QUICK REVIEW

[Paper Review] Reasoner-Executor-Synthesizer: Scalable Agentic Architecture with Static O(1) Context Window

Ivan Dobrovolskyi|arXiv (Cornell University)|Mar 23, 2026
Topic ModelingComputer Science0 citations
TL;DR

Introduces RES, a three-layer agentic architecture that separates intent parsing, deterministic data retrieval, and narrative generation, achieving O(1) token complexity and eliminating data hallucination by never exposing raw records to the LLM.

ABSTRACT

Large Language Models (LLMs) deployed as autonomous agents commonly use Retrieval-Augmented Generation (RAG), feeding retrieved documents into the context window, which creates two problems: the risk of hallucination grows with context length, and token cost scales linearly with dataset size. We propose the Reasoner-Executor-Synthesizer (RES) architecture, a three-layer design that strictly separates intent parsing (Reasoner), deterministic data retrieval and aggregation (Executor), and narrative generation (Synthesizer). The Executor uses zero LLM tokens and passes only fixed-size statistical summaries to the Synthesizer. We formally prove that RES achieves O(1) token complexity with respect to dataset size, and validate this on ScholarSearch, a scholarly research assistant backed by the Crossref API (130M+ articles). Across 100 benchmark runs, RES achieves a mean token cost of 1,574 tokens regardless of whether the dataset contains 42,000 or 16.3 million articles. The architecture eliminates data hallucination by construction: the LLM never sees raw records. KEYWORDS LLM agents; agentic architecture; hallucination elimination; token optimization; context window; retrieval-augmented generation; deterministic execution; scholarly metadata; Crossref API; O(1) complexity.

Motivation & Objective

  • Motivate reducing hallucinations and token costs in LLM-driven autonomous agents that rely on large context windows.
  • Propose a three-layer architecture (Reasoner, Executor, Synthesizer) to separate concerns in data-intensive tasks.
  • Achieve constant token complexity with respect to dataset size while preserving accurate scholarly retrieval and synthesis.

Proposed method

  • Propose a three-layer RES architecture with strict separation of concerns: Reasoner (intent parsing), Executor (deterministic retrieval and aggregation), Synthesizer (narrative generation).
  • The Executor uses zero LLM tokens and passes fixed-size statistical summaries to the Synthesizer.
  • Formally prove that RES achieves O(1) token complexity with respect to dataset size.
  • Validate on ScholarSearch (Crossref API) with 130M+ articles.
  • Empirically evaluate across 100 benchmark runs, reporting stable token costs independent of dataset size (42,000 to 16.3 million articles).
  • Demonstrate elimination of data hallucination by construction since the LLM never sees raw records.

Experimental results

Research questions

  • RQ1Can a three-layer architecture (Reasoner, Executor, Synthesizer) bound token usage to O(1) with respect to dataset size?
  • RQ2Does deterministic data retrieval through the Executor reduce or eliminate LLM hallucinations in RAG-based agents?
  • RQ3What is the practical token cost for scholarly search tasks across very large corpora when using RES?

Key findings

  • RES achieves mean token cost of 1,574 tokens across 100 runs, regardless of dataset size (42k vs. 16.3M articles).
  • The Executor transmits fixed-size statistical summaries to the Synthesizer, avoiding LLM exposure to raw records (reducing hallucination risk).
  • Validation on ScholarSearch with Crossref API demonstrates scalability to large scholarly corpora.
  • The architecture provides O(1) token complexity with respect to dataset size, per formal analysis.
  • The approach maintains performance while significantly reducing token costs compared to context-window scaling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.