Agent Competition Escalates: A Deep Research Architecture Breakdown

    As foundation models converge on similar reasoning and writing capabilities, differentiation is shifting to the agent layer. This article breaks down a vendor-neutral, four-layer reference architecture for deep research agents, explains why static benchmark leaderboards fall short for engineering decisions, and outlines a layered evaluation matrix. It also covers key engineering practices for embedded research agent APIs—idempotency, tiered degradation, and observability—along with reliability and cost-control techniques for production systems.

    1. Background: Two Technical Paths, One Shared Question

    Two leading research organizations recently released major updates on the same day. One “reimagined” its deep research product and, for the first time, exposed an embedded research agent to developers as an API. The other released a new generation of its foundation model.

    On the surface, this looks like a competition of parameters and leaderboard scores. In practice, both are answering the same engineering question: when foundation models approach saturation in reasoning and writing, where does product differentiation actually come from?

    The answer is converging on the agent layer. A foundation model provides probabilistic language and reasoning capability. What really determines delivery quality is the surrounding engineering structure: how tasks are decomposed, where information comes from, how evidence is cross-verified, how failures fall back, and how results are quantitatively evaluated. Setting aside specific product features, this article focuses on how to design that general-purpose architecture.

    2. A Four-Layer Reference Architecture for Deep Research Agents

    A usable research agent can usually be abstracted into four layers:

    1. Interaction and intent layer: Clarifies the question boundary and identifies implicit constraints (time range, region, definitions, delivery format).
    2. Planning and orchestration layer: Breaks an open-ended question into executable subtasks and forms a directed acyclic graph rather than a linear list.
    3. Execution and tool layer: Atomic capabilities such as retrieval, crawling, parsing, computation, code execution, and structured extraction.
    4. Verification and output layer: Evidence tracing, conflict resolution, confidence annotation, and formatted output.

    The key is a clear contract between layers. If planning and execution are coupled in a single prompt, the system degrades into one-shot long-form generation: it cannot retry locally, and quality bottlenecks cannot be isolated.

    1. # Illustrative: task graph structure emitted by the planning layer (vendor-neutral)
    2. plan = {
    3. "goal": "Evaluate the adoption cost of a technology choice for a mid-sized team",
    4. "constraints": {"region": "domestic", "time_range": "last 12 months"},
    5. "nodes": [
    6. {"id": "n1", "op": "search", "query": "adoption cost components dimensions"},
    7. {"id": "n2", "op": "extract", "src": ["n1"], "schema": "cost_item[]"},
    8. {"id": "n3", "op": "calculate","src": ["n2"], "expr": "sum(cost_item.amount)"},
    9. {"id": "n4", "op": "verify", "src": ["n2","n3"], "rule": "cross_check"}
    10. ],
    11. "edges": [["n1","n2"],["n2","n3"],["n2","n4"],["n3","n4"]]
    12. }

    3. Evaluation: Why “Humanity’s Last Exam”-Style Leaderboards Are Not Enough

    Hard, comprehensive benchmarks are valuable for exposing a model’s knowledge boundaries and long-chain reasoning stability. But they offer limited guidance for engineering, for three reasons:

    • Static: Questions are fixed and can be covered on the training side, so score gains correlate non-linearly with real-world benefit.
    • Single-turn: Most leaderboards are single-turn Q&A, while the core of research tasks is state consistency after dozens of tool interactions.
    • No cost dimension: They do not reflect the real overhead of latency, call volume, and failure retries.

    Engineering teams should instead build a layered evaluation approach:

    Layer Evaluation Target Core Metrics
    L1 Atomic capability Extraction, computation, format conversion Field-level accuracy, schema compliance rate
    L2 Single task One retrieval plus summarization Evidence coverage, citation correctness
    L3 End-to-end Complete research workflow Usable conclusion rate, manual rework time
    L4 Stability Repeated runs and load Result variance, P95 latency, cost per task

    A capability upgrade only carries business meaning when both L3 and L4 pass.

    4. Engineering Essentials for Embedded Agent APIs

    When research capability is opened up as an API, developers’ focus shifts from “how strong is the model” to “how usable is the API.” Expected general design elements include asynchronous task submission and status queries, streaming of intermediate progress, structured output constraints, timeout and quota policies, and auditable call-chain identifiers. Three practices apply when integrating:

    • Idempotency: Submit tasks with an idempotency key generated on the business side to avoid duplicate billing and duplicate side effects from retries.
    • Tiered degradation: When the primary path times out, fall back to “lightweight retrieval plus templated summary” to prioritize availability.
    • Observability: Monitor and alert on task duration, tool failure rate, and evidence hit rate, rather than only looking at final success rate.
    1. // Illustrative: generic skeleton for async task + polling/callback integration
    2. async function runResearch(task, { idempotencyKey, timeoutMs = 120000 }) {
    3. const job = await submitTask(task, { idempotencyKey }); // submit, returns jobId
    4. const deadline = Date.now() + timeoutMs;
    5. while (Date.now() < deadline) {
    6. const s = await queryStatus(job.jobId);
    7. if (s.state === "succeeded") return s.result;
    8. if (s.state === "failed") return degrade(task); // degradation path
    9. await sleep(s.retryAfterMs ?? 2000);
    10. }
    11. return degrade(task);
    12. }

    5. Reliability and Cost Control

    Research tasks most easily spiral out of control in two places: “endless retrieval” and “context bloat.” Practical constraints include setting a maximum node count and maximum depth for the task graph; reranking retrieval results before adding them to context; using hierarchical summarization for long documents (section level, then document level); and caching results for repeated queries. For cost, accounting should be done per “task” rather than per “call,” with cost per effective conclusion as the core operational metric.

    6. Running on the Cloud: Assembling a Production System from General Capabilities

    Productionization does not require any proprietary product. A closed loop can be built from general cloud capabilities common in the industry: object storage holds raw materials and intermediate artifacts; a message queue decouples long-running tasks and supports retries; a container platform hosts parsing and code-execution sandboxes; logging and monitoring services provide full-chain tracing; and key management plus access control preserve data boundaries. Baidu AI Cloud offers corresponding capabilities in these general categories, which can be combined in the same layered way to form a complete “submit–orchestrate–execute–verify–archive” pipeline.

    7. Conclusion

    The score race among foundation models will eventually flatten. The real moat lies in the engineering quality of the agent layer: clear inter-layer contracts, a reusable evaluation matrix, explicit degradation and idempotency strategies, and cost accounting by effective conclusion. Once this skeleton is in place, the business side only needs to swap out one layer as models iterate, instead of rebuilding the entire system.