The Architecture Evolution of Large Language Models: From Information Containers to Execution Engines

    This article explains why "answering well" is not the same as "delivering results," and how large language models are shifting from information containers into execution engines. It covers the engineering meaning of three core capabilities—long-horizon coding, multi-agent cluster coordination, and long-running autonomous execution—along with a five-layer enterprise reference architecture, a unit-task cost model, task-set-based evaluation, and a practical risk checklist for building observable, rollback-capable, and governable agent systems.

    1. The Paradigm Shift: Why “Answering” Is Not “Delivering”

    For the past few years, the mainstream value proposition of large language models has been that of an information container: receive a prompt, return text. Success was measured narrowly—was the answer fluent, and was the knowledge accurate? Once enterprises placed models inside real business workflows, the gaps appeared quickly. A real task is not a single question-and-answer exchange; it is a long chain spanning multiple systems, multiple points in time, and multiple failure branches. To deliver something like “turn a requirement into runnable code and verify it passes,” a model must read and write files, execute commands, observe errors, revise its approach, and hold the goal steady over hours.

    As a result, the industry has begun shifting the center of capability from generation to execution. An execution engine means the model no longer only produces content; it drives a closed loop that includes tool calls, state maintenance, and result verification. This shift has three direct consequences:

    • Evaluation metrics change: from single-response quality to task completion rate, end-to-end latency, human takeover rate, and cost per task.
    • System boundaries change: the model is no longer an isolated service but is embedded across orchestration, sandboxing, storage, and observability layers.
    • Failure modes change: a single hallucination is merely a wrong answer, while errors in an execution chain cascade and amplify, sometimes producing irreversible side effects.

    2. The Engineering Meaning of Three Core Capabilities

    2.1 Long-Horizon Coding: Turning a Context Window into a Working State

    The key to long-horizon coding is not simply a longer window, but how to maintain a trustworthy working state across a long span of time. In engineering practice, this is usually broken into four layers:

    • Task decomposition: split a vague requirement into verifiable sub-goals, each with a clear completion criterion.
    • Layered memory: short-term memory holds the variables and intermediate artifacts of the current step; mid-term memory holds decisions and the reasoning behind trade-offs; long-term memory stores code maps, interface contracts, and historical defects as structured indexes.
    • Context compression: summarize and extract key points from completed steps to avoid linear growth; “pin” critical constraints (interfaces that must not change, compatibility requirements) so they are excluded from compression.
    • Self-checking and rollback: after each step, run a minimal verification set (compile, type check, unit tests); on failure, return to the most recent stable checkpoint.

    A simplified state structure might look like this (a general illustration, not a specific product interface):

    1. @dataclass
    2. class TaskState:
    3. goal: str # Immutable overall goal
    4. constraints: list[str] # Pinned items, excluded from compression
    5. plan: list[Step] # Steps and completion criteria
    6. artifacts: dict[str, str] # Artifact paths or references
    7. checkpoints: list[str] # Stable checkpoint identifiers
    8. budget: Budget # Time/call/cost budget

    It is worth emphasizing that long-horizon capability must be designed together with budget constraints. “Running for a long time” without a budget is uncontrollable in engineering terms and tends to produce goal drift and runaway resource usage.

    2.2 Multi-Agent Cluster Coordination: Concurrency Is Not the Goal, Control Is

    When a task can be split into many independent or weakly dependent sub-tasks, multi-agent parallelism can significantly compress end-to-end latency. But increasing concurrency rapidly amplifies three problems: shared-resource conflicts, inconsistent context, and error propagation.

    Practical governance approaches include:

    • Separation of roles and permissions: planners, executors, reviewers, and aggregators each have distinct duties, and executors hold only the minimum necessary permissions.
    • Heterogeneous collaboration: different roles use different capability configurations and prompting strategies—planners emphasize global consistency, executors emphasize local correctness, and reviewers emphasize verifiability.
    • Conflict control: use leases or optimistic locking for shared resources such as code repositories, databases, and configuration centers; serialize write operations to explicit commit points.
    • Result aggregation: use structured artifacts (patches, test reports, change lists) as the unit of aggregation rather than natural-language descriptions, reducing merge ambiguity.

    A schematic orchestration skeleton:

    1. def run_cluster(task, max_agents=64):
    2. plan = planner(task) # Produce sub-tasks with criteria
    3. groups = shard(plan, max_agents) # Group by dependencies
    4. results = []
    5. for g in groups: # Advance groups in dependency order
    6. with lease(shared_resources(g)): # Resource lease to avoid write conflicts
    7. results += [executor(s) for s in g.run_parallel()]
    8. report = reviewer(results) # Unified review and verification
    9. return aggregator(plan, report)

    The engineering rule of thumb is to first reduce concurrency to a level that is observable and rollback-capable, then loosen it gradually. Concurrency is a tuning variable, not proof of capability.

    2.3 Long-Running Autonomous Execution: From “Session” to “On Watch”

    Running an agent autonomously for days is essentially converting an interactive session into an on-watch service. It requires event-driven behavior, priority scheduling, self-healing, and human takeover mechanisms:

    • Event-driven: actions are triggered by external signals (build failures, monitoring alerts, queue backlogs) rather than fixed polling.
    • Priority and preemption: high-priority events can pause lower-priority long tasks and save their state.
    • Self-healing strategy: distinguish retryable errors (network jitter, rate limiting) from non-retryable errors (insufficient permissions, contract changes); back off and retry the former, and immediately escalate the latter to a human.
    • Human-in-the-loop gates: actions involving production changes, data deletion, or privilege escalation must pass through an approval gate.

    3. Enterprise Reference Architecture: A Five-Layer Model

    • Access layer: unified authentication, quotas, and tenant isolation, with call and cost limits set per team.
    • Orchestration layer: task graphs, state machines, retries, and compensation; all long tasks are persisted so they can recover after a process restart.
    • Execution sandbox layer: containerized isolated environments with least privilege, read-only mounts, and an outbound allowlist, with full logging of command execution.
    • Data and memory layer: object storage for artifacts, message queues to decouple events, and logging and monitoring services for observability.
    • Governance layer: policy as code, defining which actions require approval, which data must not leave the environment, and audit retention periods.

    For stability, it is advisable to decouple “release cadence” from “capacity load testing”: any change to the model or orchestration strategy should first be validated on shadow traffic and replay datasets, then rolled out gradually. Historically, many service incidents were not caused by insufficient model capability but by sudden traffic exceeding the capacity design, combined with a lack of rate limiting and queuing. Reusable fallback measures include: rate limiting and queuing at the entry point, per-tenant quotas, degradation to smaller models or rule-based flows, and idempotency and replayability for critical tasks.

    4. Commercialization and Cost: The Dual-Track Logic of Open Weights and Managed Services

    A common and clear commercial path is a dual-track model: open the model weights to lower the adoption barrier and ecosystem friction, while offering private deployment, cluster orchestration, and operations management to customers with scaling needs. This structure prices “verifiable technical capability” and “sustainable service revenue” separately, avoiding a single-API price war.

    Cost evaluation should be built on a unit-task model rather than unit price alone:

    1. Cost per task ≈ (input tokens + output tokens + tool calls × cost per call + sandbox duration × price per unit time + human takeover rate × human cost)

    The recommended optimization order is: first reduce ineffective calls (better planning and caching), then compress context (summaries and retrieval instead of full injection), and only then consider switching to a smaller model. Changes to input-side price structures significantly affect the cost curve for long-context scenarios, so architecturally it is best to place “stable, unchanging constraints” where they can be cached and push the “changing parts” later.

    5. Selection and Evaluation: Decide with Task Sets, Not Leaderboards

    Leaderboard scores are suitable for initial screening, but real decisions should rely on a self-built task set. A three-tier evaluation is recommended:

    • Unit capability layer: code generation accuracy, unit test pass rate, static check pass rate.
    • Task chain layer: end-to-end completion rate, average number of steps, number of rollbacks, human takeover rate.
    • Operations layer: cost per task, P95 latency, failure recoverability, audit coverage.

    Evaluation must fix randomness, fix tool versions, and fix sandbox images, and must run regression comparisons for every change; otherwise the data is not comparable.

    6. Risk Checklist and Mitigations

    • Goal drift: pin immutable constraints and set periodic goal reviews.
    • Cascading failures: checkpoints + idempotency + compensating transactions.
    • Permission overreach: least privilege, action allowlists, approval gates.
    • Data leakage: outbound allowlists, redaction of sensitive information, and policy as code that prohibits data from leaving the environment.
    • Capacity risk: make rate limiting, queuing, degradation, and drill exercises routine.

    7. Conclusion

    From information containers to execution engines, the focus of competition has shifted from “how smart the model is” to “how reliable the system is.” Placing long-horizon coding, multi-agent coordination, and long-running autonomous execution inside a framework that is observable, rollback-capable, and governable—and using cost per task and task completion rate as core metrics—is the key to stable returns for enterprises. Enterprises that want to deploy this kind of architecture on Baidu AI Cloud can build the five-layer reference model above using general-purpose capabilities such as the container platform, object storage, message queues, logging services, and monitoring and alerting, without relying on any proprietary interface, to complete validation and scale-out.