                               Position: Scaling LLM Agents Requires
                              Asymptotic Analysis with LLM Primitives


                                                 Elliot Meyerson 1 Xin Qiu 1


                         Abstract                                    for LLM-based programs that carry out subprocesses within
     Decomposing hard problems into subproblems of-                  larger systems or act “autonomously” in virtual or physi-
     ten makes them easier and more efficient to solve.              cal environments. Unlike the general purpose LLMs from
     With large language models (LLMs) crossing crit-                which they descend, LLM agents usually have a specific
     ical reliability thresholds for a growing slate of              scope in which they are intended to operate, i.e., specific
     capabilities, there is an increasing effort to decom-           kinds of inputs they are expected to receive and correspond-
     pose systems into sets of LLM-based agents, each                ing kinds of outcomes they are expected to produce. Agent
     of whom can be delegated sub-tasks. However,                    scopes vary in the precision with which they are specified,
     this decomposition (even when automated) is of-                 but the very act of specifying a scope, or role, for an agent
     ten intuitive, e.g., based on how a human might                 allows it to be treated as a computational object that can
     assign roles to members of a human team. How                    serve as a component in the development of a larger system.
     close are these role decompositions to optimal?                 The promise of LLM agents is not only that they have the
     This position paper argues that asymptotic analy-               capacity to affect change in the real world, but that by con-
     sis with LLM primitives is needed to reason about               structing increasingly larger systems of many agents, where
     the efficiency of such decomposed systems, and                  each has its own complementary focus, we can dramatically
     that insights from such analysis will unlock op-                expand the scale at which LLM-based AI is applied.
     portunities for scaling them. By treating the LLM               There has been a rush to start building such systems (Xi
     forward pass as the atomic unit of computational                et al., 2025). In academia, LLM agents have been used
     cost, one can separate out the (often opaque) inner             in applications across the board, for example, in improv-
     workings of a particular LLM from the inherent                  ing performance on standard benchmarks (Du et al., 2024),
     efficiency of how a set of LLMs are orchestrated                building teams for more effective software development
     to solve hard problems. In other words, if we want              (Qian et al., 2024; Wu et al.), simulating communities and
     to scale the deployment of LLMs to the limit, in-               human behavior (Park et al., 2023; Yan et al., 2024), and
     stead of anthropomorphizing LLMs, asymptotic                    tackling the research process itself (Huang et al.; Lu et al.,
     analysis with LLM primitives should be used to                  2024; Yu et al., 2024). In industry, the impact (at least on
     reason about and develop more powerful decom-                   strategy and priorities) has been arguably greater: while
     positions of large problems into LLM agents.                    academics usually prefer minimal systems in which agent
                                                                     behavior can be most clearly understood, industry leaders
                                                                     find themselves faced daily with huge organizations with
1. Introduction                                                      countless interconnected actors and components, and thus
                                                                     countless opportunities for agents to be applied (Hodjat,
The turn to agents is well underway (Guo et al., 2024; Wang
                                                                     2024; Urlana et al., 2024; Sypherd & Belle, 2024).
et al., 2024b). Now that large language models (LLMs)
have crossed critical thresholds of general capability and           The core focus thus far in the development of such systems
reliability (Bubeck et al., 2023), it is natural to ask how          has been “What is possible with the resources we have to-
they can be integrated into computational systems larger             day?”, not “How efficient can it be in the limit of scale?”
than themselves, in order to do things: “Stop speaking and           Efficiency at scale can be understandably an afterthought
act!” The term agent has quickly crystallized as the term            when the goal is to build something that works and is impres-
    1
                                                                     sive as quickly as possible, but this paper argues that un-
      Cognizant AI Lab, San Francisco, USA. Correspondence to:       derstanding the efficiency of LLM-agent-based systems
Elliot Meyerson <elliot.meyerson@cognizant.com>.
                                                                     at a fundamental algorithmic level is critical to achieving
Proceedings of the 42 nd International Conference on Machine         the scale such systems promise. Specifically, missing from
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          the study of such systems are asymptotic analyses that give
by the author(s).

                                                                 1
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

a fundamental characterization of the cost (temporal, energy,         will be shown in Section 3. This framework can then serve
or monetary) of running the system at scale, e.g., as the size,       as a seed for future research that develops a more complete
complexity, and number of problem instances increases to              approach, as discussed in Section 5.
the limit. Although such analysis may seem esoteric when
                                                                      The premise of asymptotic analysis is that by focusing
folks are just at the point of trying to get something to work,
                                                                      on counting the executions of the fundamental operations
if such systems are really to scale to millions of users, mil-
                                                                      whose cost we most care about, we can characterize the
lions of distinct task instances being solved, increasingly
                                                                      fundamental trends in cost as the system scales. Such anal-
large and complicated tasks to be solved, and beyond, a
                                                                      ysis can reveal scaling insights that might be obscured by
formal understanding of the asymptotic behavior of these
                                                                      implementation details or cost overheads that dominate at
systems will be a key ingredient to guide research and de-
                                                                      the smaller scales that are empirically viable today.
velopment in the directions most likely to make such scale
practically achievable. Put loosely, this is because solutions        Let us first define our central object of interest:
that are intuitive or off-the-shelf and appear to work well           Definition 2.1 (Language-based Algorithm). A language-
for initial problems being solved today may be inherently             based algorithm (or LLM-based Algorithm (Chen et al.,
limited when considering the question of scale, and there             2024)), LbA for short, is any algorithm in which one or
may be alternative directions that require different kinds            more of the computational steps are performed by an LLM.
of research, directions which careful asymptotic analysis
can illuminate. Asymptotic analysis has been critical to the          In other words, an LbA consists of a set of LLM-based
scaling of systems and algorithms throughout the history              agents that work together to complete tasks.
of computation (Landau, 1909; Turing, 1936; Knuth, 1968;
Aho & Hopcroft, 1974; Sedgewick, 1996; Montanaro, 2016;               In the classical asymptotic analysis of algorithms, the ba-
Cormen et al., 2022), and we see no reason why the scaling            sic unit of computation is a primitive, an atomic operation
of LLM agents should be different.                                    whose executions can be counted characterize the behavior
                                                                      of the algorithm at scale. Standard choices of a primitive
We argue that key to such analysis is the concept of the              include addition or variable assignment, i.e., operations
LLM primitive, i.e., treating the forward pass of an LLM as           that can be performed in a single CPU cycle. This paper
the atomic unit of computation we are interested in counting          argues that the appropriate primitive for asymptotic analy-
in our analysis. By abstracting away the internals of any             sis of agentic LLM-based systems is a single execution of
particular LLM, the analysis can focus on the higher-level            an LLM, i.e., a forward pass that generates a single token
algorithmic behavior that emerges from the roles of agents            v ∈ V . By treating LLMs as atomic, we can focus on the
within larger systems. Aside from clarifying the analysis,            fundamental behavior of the LbA, orthogonal to ongoing
this abstraction ensures that any algorithmic efficiency im-          improvements inside the LLMs themselves. We count only
provements discovered at the agentic level are orthogonal to          LLM operations because the computational resources to run
the ongoing efficiency improvements of LLMs themselves.               LLMs are usually the most salient limiting factor in scal-
To flesh out the argument, this paper proceeds as fol-                ing LbAs. Since our focus is on scaling the deployment of
lows: Section 2 sketches a basic framework for undertaking            LbAs, we can also ignore training cost, with the expectation
asymptotic analysis with LLM primitives (AALPs); Sec-                 that the cost of running inference with fixed models over a
tion 3 presents three example analyses using this framework,          long period of time and massive scale will rapidly dominate
showing distinct cases where an asymptotic analysis leads             the cost of training (Sardana et al., 2024) (a loosening of
to valuable insights that might otherwise go undiscovered;            this assumption is discussed in Section 5.6).
Section 4 engages with alternative views, i.e., ways AALPs            For convenience, we assume the cost of an LLM execution
might not in fact be required; Section 5 describes some of            depends linearly on the number of input tokens n and the
the critical research directions for developing AALPs into            size of the model m. This assumption is based on the fact
as useful a tool as possible; and Section 6 concludes.                that industry APIs like those from OpenAI and Anthropic
                                                                      charge linearly per token (OpenAI, 2025; Anthropic, 2025).
2. Asymptotic Analysis with LLM Primitives                            Although in principle the cost of a single forward pass
                                                                      through a transformer model scales quadratically with the
In order to make the argument of this paper concrete, this            input size (Vaswani, 2017), core optimizations like sparse at-
section sketches a minimal framework for asymptotic anal-             tention (Tay et al., 2020) and representation caching (Luohe
ysis with LLM primitives (AALPs). Although it elides                  et al., 2024) have moved the practical cost closer to linear,
many phenomena critical to the complete understanding of              as reflected in the API prices. If the cost is in fact superlin-
agentic LLM systems, this basic framework is sufficient to            ear, asymptotic separations between LbAs will generally be
instantiate clear examples of the advantages of an asymp-             even sharper. So, for the purposes of this paper, we use the
totic analysis-driven approach to system development, as              following definition:

                                                                  2
                             Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Definition 2.2 (LLM Primitive). An LLM primitive is an                     position is an assumed non-LLM operation that decomposes
operation defined by an LLM M of size m, such that a                       a problem in a specific way, without regard to how the oper-
single application of M to a string of length n has cost mn.               ation is implemented.

Key to this definition is the idea that different LLMs
M1 , M2 , . . . can have drastically different sizes m1 , m2 , . . .       Armed with this basic set of tools, one can proceed to
and thus drastically different costs. Notice that we use “cost”            comparatively analyze the asymptotic behavior of differ-
here in a general sense, it could refer to an estimate of the              ent LbAs on different problems, highlighting the kinds of
raw FLOPS, the economic cost (Chen et al., 2023; Shekhar                   places asymptotic improvements can be found.
et al., 2024), or the environmental cost (Bender et al., 2021;
                                                                           Then, if LLMs themselves are developed in a way that
Faiz et al., 2024), and we expect all of these to be highly
                                                                           alters their cost and/or capabilities, these results can be
correlated. Why wouldn’t one always use the smallest LLM
                                                                           directly incorporated into AALPs to identify implications
available? Different LLMs have different sets of capabili-
                                                                           for particular LbAs. AALPs also provides a framework
ties they can reliably perform. For an LLM primitive to be
                                                                           for analyzing LbAs that require capabilities that LLMs are
reliably applied in an LbA, the operation performed must
                                                                           not yet capable of, thereby allowing researchers to be more
be within the capabilities set of the LLM being used:
                                                                           prepared for the future when it arrives.
Definition 2.3 (Capabilities Set). Every LLM M has a
corresponding capabilities set CM = {c1 , c2 , . . .}, which               Note that there has already been one promising first attempt
characterizes the scope of tasks M can reliably perform.                   at a more detailed and formal treatment of AALPs (Chen
                                                                           et al., 2024), and we refer the reader to that work for further
In an LbA, different LLM-based operations might be per-                    example analyses, which complement those in Section 3.
formed by different LLMs with different capabilities. This                 However, the goal of the present paper is not to develop a
separation of labor motivates the specialization of LLMs,                  complete framework, but to present a clear argument with
i.e., one need not rely on a single giant AGI-like model to                illustrative examples to bring the basic idea of AALPs to as
solve all tasks that can be specified in text, especially the              broad an audience as possible. In other words, the present
most basic ones. A fully optimal LbA will use LLMs with                    work is a call to action.
minimal capabilities sets, since increasing the size of the set
cannot decrease the minimal size of the required model.                    3. Example Asymptotic Separations
Making the capabilities set explicit in the design of an algo-             This section provides concrete examples of how AALPs can
rithm has the auxiliary benefit of raising awareness of the                be applied to demonstrate massive asymptotic separations
trade-offs between two algorithms, i.e., if two algorithms                 between LbA’s when applied at scale. The goal of these
have similar complexity, but one requires more accessible                  examples is not to show challenging math, but simple results
capabilities, that algorithm should be preferred. Note also                that immediately highlight the importance of such analysis.
that specifying a capability set is only necessary for the                 Our hope is that these simple examples will inspire future
purpose of designing the abstract algorithm for complexity                 work that tackles more complex LLM-agent systems.
analysis; one need not enumerate all the capabilities of a
real-world LLM, rather just verify that it has the required ca-            The three example problems in this section highlight dif-
pabilities in a particular implementation. This idea is in line            ferent kinds of opportunities that would arise from hav-
with the call for LLM specifications (Stoica et al., 2024).                ing a solid complexity theory for LLM agents. The first
                                                                           highlights the criticality of understanding where to focus
The central tool for achieving asymptotic improvements in                  LLM size optimization in many-agent systems; the second
LbAs over a naı̈ve application of LLMs is the expectation                  highlights critical pitfalls of naı̈ve anthropomorphic multi-
that large and complex jobs can be meaningfully decom-                     agentization; and the third highlights issues that arise from
posed, and that the impact of this decomposition will scale in             applying LLMs to large and creative optimization tasks. See
a manner not accessible by the naı̈ve approach. Sometimes                  Table 1 for a high-level summary. Note that the analysis
the precise decomposition can be described analytically or                 in this section is intentionally loose, and intended to be as
deduced programmatically, but sometimes, especially when                   rudimentary as possible, as the goal is simply to highlight
reasoning about abstract problems, it can be useful to simply              the kinds of insights that can emerge, and argue that further
assume we have a way of decomposing a problem, in order                    development of AALPs will be critical in understanding
to make asymptotic analysis possible. Any meaningful bene-                 how to scale real-world systems. To that end, we invite the
fits uncovered in the analysis then motivate the development               reader to critique any assumption (implicit or explicit) made
of a practical implementation of the decomposition. We call                in the following analyses, with the hope that such critique
this tool an oracle decomposition:                                         will lead to more practical AALPs methodologies and thus
Definition 2.4 (Oracle Decomposition). An oracle decom-                    more powerful LbAs.

                                                                       3
                             Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

                         k-Task (Sec. 3.1)                     Debugging (Sec. 3.2)                          Evolution (Sec. 3.3)
                         Generalist Mg
                                                                QA Engineer Mq
   Agents                Delegator Md                                                                            Mutator Mu
                                                             Software Developer Md
                     Specialists Ms1 , . . . Msk

                                                     for i ∈ 0 . . . b − 1 do                           while f (x) < k do
   Optimistic             y ← Mg (x)                     bug ← Mq (x)                                      x′ ← Mu (x)
                                                         x ← Md (bug, x)                                   if f (x′ ) > f (x) then
                                                                                                                x ← x′
                                                                                                        i←0
                                                                                                        while f (x) < k do
                                                     for i ∈ 0 . . . k − 1 do
                                                                                                           x′ ← x
                          i ← Md (x0:c )                 bug ← Mq (xil:il+l )
   Optimized                                                                                               x′il:il+l ← Mu (xil:il+l )
                          y ← Msi (x)                    if bug then
                                                                                                           if f (x′ ) > f (x) then
                                                             xil:il+l ← Md (bug, xil:il+l )
                                                                                                                x ← x′
                                                                                                                i←i+1
   Improvement                 Θ(k)                                      Θ(bk2 )                                   Θ(2k k)

Table 1. Overview of Examples. This table gives a high-level summary of the examples described in Section 3. It lists the LLM agents
used, and gives pseudocode for the optimistic implementation (i.e., based on an intuitive belief in the power of LLMs) and the optimized
one (based on a more careful LbA design (Def. 2.1)). The improvements result from applying AALPs to these implementations.


3.1. k-Task Routing                                                       the task and solving it with the designated specialist is
The section highlights potential scaling advantages of hav-                                    Θ(md ) + Θ(ms n).                        (2)
ing specialized agents of asymptotically smaller size than
highly-capabable generalist agents. For this problem, sup-
                                                                          3.1.3. I MPLICATIONS
pose the input size is n and the output size is Θ(1). Many
common tasks like information retrieval, classification, and              We can safely assume md ≤ mg , since solving all k tasks
agentic single-action tasks fall under this specification. Sup-           almost certainly requires (implicitly or explicitly) identify-
pose there are k such distinct tasks of this form that we                 ing which task is being solved as a sub-capability.1 So, as n
would like the system to be able to perform.                              grows, the comparison of interest is Θ(mg n) vs. Θ(ms n),
                                                                          i.e., mg vs. ms . From analysis of the neural scaling laws of
3.1.1. G ENERALIST A PPROACH                                              LLMs (Kaplan et al., 2020), we can assume the required size
                                                                          of the LLM scales with the number of required capabilities.
The simplest approach would be to use a single generalist
                                                                          For example, let us assume that in the present setting, the
many-task LLM agent Mg of size mg capable of solving
                                                                          required size of the LLM scales linearly with the number of
any of the tasks on its own. Processing the entire input and
                                                                          tasks it can solve. Then,
returning a constant sized answer will then cost
                                                                              Θ(mg ) = Θ(kms ) =⇒ Θ(mg n) = Θ(kms n).                   (3)
                           Θ(mg n).                            (1)
                                                                          That is, the speed-up from delegation and specialization
                                                                          scales linearly with the number of tasks. As LLM-agent-
                                                                          based systems become larger and larger, many hope that
3.1.2. D ELEGATOR AND S PECIALISTS A PPROACH
                                                                          they will be able to tackle thousands of distinct tasks, if not
Suppose instead that we have a system consisting of a del-                more. So, the advantage of having many specialist agents
egator Md of size md and k specialists Ms1 , . . . , Msk , one            becomes enormous.
for each of the k distinct tasks. Several recent approaches               Importantly, notice that this analysis shows that, for those
take this kind of LLM-routing approach (Hu et al., 2024;                  developing the LLMs themselves, it should be much more
Feng et al., 2025; Narayan et al., 2025). For simplicity,
                                                                             1
assume the specialists are all of equal size ms . Suppose                     Evidence for this can be found in mixture-of-experts models:
the delegator can determine which of the k tasks the input                In Mixtral 8x7B (Jiang et al., 2024a), each expert (analogous to a
string belongs to by observing only a constant number of                  specialist) has ≈7B parameters, while the router (delegator) only
                                                                          has ≈32K, and the overall system outperforms a generalist LLM
metadata tokens prepended to the input, e.g., the delegator               with ≈70B parameters; DeepSeek-V3 (Liu et al., 2024) routes
has been fine-tuned so that descriptions of the k tasks need              across 256 experts, by simply comparing a single input token
not be supplied in the prompt. Then, the cost of identifying              embedding to the “centroid” token embedding of each expert.

                                                                     4
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

impactful to focus on minimizing the size of the specialist            this is an approach taken in popular multi-agent frameworks
LLMs than minimizing the size of the delegator. This is be-            today, such as autogen (Wu et al.). Suppose the QA engineer
cause, even if the delegator is relatively huge, it is called so       identifies bugs by producing constant size messages, while
few times relative to the specialists, and the cost of any ini-        the debugging specialist rewrites the entire code every time
tial fine-tuning of the delegator is amortized over the lifetime       it fixes a bug (as is also standard in current systems). Then,
of the system. In a real-world team of human developers,               for the ith bug, the QA agent looks at all i previous versions
without such analysis, equal research and development re-              of the code and previous QA comments, yielding a total
sources might be allocated to both reducing the size of the            input length of Θ(in). So, the cost of QA over all b bugs is
delegator and reducing the size of specialists. For example,
it could be very tempting to try to develop a relatively tiny            mq (Θ(n) + Θ(2n) + . . . + Θ(bn)) = Θ(mq b2 n).           (4)
classifier as the delegator, since it might seem like a rela-          Meanwhile, the debugging expert looks at in tokens at each
tively simple classification problem. Analysis like the above          iteration and produces n new tokens of code, yielding
can preempt research on shrinking the delegator: It would
be okay to take a giant off-the-self maximum-capability                  md (in + (in + 1) + . . . + (in + n)) = Θ(md in2 ) (5)
LLM as the delegator, fine-tune it once, and then focus on
shrinking the specialists. This observation supports the more          at each iteration, and over all b bugs:
general idea that, in an optimal LLM ecology, we should ex-                    Θ(md n2 ) + . . . Θ(md bn2 ) = Θ(md b2 n2 ).        (6)
pect orders of magnitude more executions of smaller models
than of larger models (Nisioti et al., 2024).                          So, the total cost of QA plus writing the debugged code is

3.2. Iterative Code Debugging                                            Θ(mq b2 n) + Θ(md b2 n2 ) =

This section looks at another increasingly common and                                            Θ(mq b2 kl) + Θ(md b2 k 2 l2 ). (7)
critical task for LLM-agents: code debugging. At a high
level, the problem is that we have a large code-base with              We notice immediately that, due to the additional factor
many bugs, and we would like to clean it up. For clarity of            of n for the debugging expert compared to QA engineer,
analysis, suppose the code is n = kl tokens long, consisting           similar to the implication highlighted in Section 3.1, it is
of k functions, the implementation of each being l tokens              much more important to focus on minimizing the size of
long, and suppose there are b bugs somewhere in the code,              the debugging expert than the QA engineer. It could be fine
with no more than one bug per function. The goal is to                 to use the biggest LLM available for QA, since its relative
provide an efficient LbA that fixes all the bugs.                      asymptotic cost is so small, especially when the code grows
                                                                       extremely large. However, the central implication from
3.2.1. NA ÏVE M ULTI - AGENT A PPROACH                                this section comes not from relative model size but from
                                                                       comparison to a more focused approach to the multi-agent
Suppose we take an anthropomorphic multi-agent approach,               problem decomposition, as is discussed next.
akin to the kind of approach that has become currently quite
popular for pushing the problem-solving performance of                 3.2.2. F OCUSED M ULTI - AGENT A PPROACH
coding LLMs (Park et al., 2023; Qian et al., 2024; Wu et al.;
Song et al., 2024). In such an approach, we instantiate                Let’s suppose all functions in the code have completely
multiple agents by prompting them with different roles,                correct, precise and constant size specification (e.g., in their
mapping each on to an employee in a human organization.                docstring). This implies the full code can be fixed by fixing
For simplicity in the present analysis, we will use only two           each function independently. Now, instead of having the
roles: quality assurance (QA) engineer Mq and debugging                QA agent look at the entire code every iteration, suppose it
specialist Md (we leave it as an exercise to the reader to             looks only at a single function. Then, it will overall look at
extend/revise the analysis for other common roles found in             the entire code only a single time, resulting in a cost of
multi-agent coding systems).
                                                                                                 Θ(mq kl).                         (8)
In this approach, we alternate between Mq (of size mq )
identifying a bug and Md (of size md ) fixing it. Suppose Mq           Whenever a bug is identified in a function, the debugging
has the capacity to identify exactly one bug at a time, and            expert then fixes the bug by looking at and rewriting only
Md has the capacity to fix exactly one identified bug. In the          that single function, yielding a total bug-fixing cost of
standard approach, the entire conversation history, including                                    Θ(md l2 b),                       (9)
prior versions of the code are fed as input to each agent
at each iteration. From an asymptotic perspective, such                and thus the cost for the whole system is
accumulation in the input may seem clearly inefficient, but
                                                                                          Θ(mq kl) + Θ(md l2 b).                  (10)

                                                                   5
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

3.2.3. I MPLICATIONS                                                     can be applied for this role, and, in theory, any solution type
                                                                         is representable by text (Meyerson et al., 2024).
Since both the QA engineer and debugging expert in the
focused version of the system have smaller jobs and less to              Let us suppose f is of a special form that is common for
keep track of, it would be reasonable to assume that they                analysis of evolutionary algorithms, i.e., it is a variant of the
could be of a smaller size than their naı̈ve counterparts.               O NE M AX function (Doerr, 2020; Witt, 2013). Specifically,
However, even supposing they are no smaller, we have                     suppose each solution x has length n = kl tokens, such that
relative speed-ups of Θ(b2 ) for QA and Θ(bk 2 ) for the                 it consists of k blocks each of length l. Suppose each block
debugging expert. Since n ≥ b, and the job of the debugging              is either “correct” or “incorrect”, and the value of f (x) is
expert is intuitively more challenging than that of QA (since            the number of correct blocks in x. Then, the maximum
it has to actually produce correct code), the performance                value of f (x) is k, in the case that all blocks are correct.
improvement that is likely to dominate the relative cost of              Note that in practice there may be many ways for a specific
the two approaches is that of the debugging expert:                      block to be considered correct.

                            Θ(bk 2 ).                        (11)        3.3.1. G LOBAL M UTATION
                                                                         Suppose we have an LLM-based mutation agent Mu of
This is a huge speed-up, and highlights the power of break-              size mu , that, when applied to an input string x, alters
ing down solutions into the minimal possible bite-sized                  every block of x in some way, resulting in a 50% chance
chunks that can be precisely specified for agents to operate             of that block now being “correct”. Suppose we start with
on. This improvement becomes astronomical as the size of                 an arbitrary initial solution x, and run a greedy algorithm,
the code increases to the size of large industrial codebases.            where we iteratively apply the mutator to get a new solution
The apparent limitations of most existing multi-agent LLM                x′ , and replace x′ as our current solution if it has higher
approaches to relatively small codebases could be due in                 fitness f (x′ ) > f (x). Note, this is an instantiation of a
part to this scaling behavior, and thus pursuing the direction           (1+λ)-EA (Droste et al., 2002), the most often analyzed
of extreme decomposition could be critical to scaling robust             algorithm in the EA literature (Doerr & Neumann, 2021),
LLM-based coding systems.                                                which has been used to analyze the optimization of deep
This implication also generalizes to other applications where            architectures in other settings (Meyerson & Miikkulainen,
the goal is to iteratively refine large objects of interest, e.g.,       2019; Meyerson et al., 2022).
design or construction applications. The insights from a                 Now, if Mu is applied to the entire string x, the expected
properly developed asymptotic analysis with LLM primi-                   number of times it needs to be applied to generate a com-
tives could be critical to making such applications scale.               pletely correct solution is 2k . Since each application of Mu
Notice that we made a strong and critical assumption of                  is to the whole solution, the generation of each new solution
perfect code specification in the description of the focused             costs Θ(mu n2 ), and thus the total expected cost is
multi-agent approach. The fact that this leads to such effi-
ciency improvements is motivation to investigate whether                                Θ(mu 2k n2 ) = Θ(mu 2k k 2 l2 ),             (12)
LLMs are capable of generating such precise and correct
specifications; if such focused precision is possible, it could
have an enormous impact.                                                 which is completely impractical even for any decently sized
                                                                         value of k. This huge expected cost could be a reason
3.3. Evolutionary Optimization                                           we have seen LLM-based optimization methods being ap-
                                                                         plied mainly to small (though interesting and semantically
Another area where LLM agents are increasingly being ap-                 complex) problems: They are usually applied to the entire
plied is in optimization, where the LLM is used as the engine            solution all at once.
of variation, i.e., given some existing solutions it is used to
generate variations on these solutions that have a chance of             3.3.2. L OCAL M UTATION
being improvements with respect to some evaluation func-
                                                                         Suppose instead we have a programmatic way of determin-
tion (Lehman et al., 2023; Meyerson et al., 2024; Bradley
                                                                         ing the boundaries of blocks (oracle decomposition), and,
et al., 2024; Yang et al., 2024; Romera-Paredes et al., 2024;
                                                                         instead of applying Mu to the entire solution at once, it is
Lee et al., 2025). Many of these applications have been de-
                                                                         applied to each block individually and in sequence, i.e., gen-
veloped under evolutionary optimization frameworks (Bäck
                                                                         erating one updated block at a time. Then, each application
et al., 1997; Wu et al., 2024). In such scenarios, there is
                                                                         will cost Θ(mu l2 ), and the total expected cost will be
some evaluation, or fitness, function f (x) that we would
like to maximize, and the LLM is responsible for generating
solutions x ∈ X . If x is representable by text, then an LLM                                       Θ(mu kl2 ).                       (13)

                                                                     6
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

3.3.3. I MPLICATIONS                                                   We are curious to see what themes emerge from researchers
                                                                       with differing backgrounds approaching asymptotic analysis
The relative performance improvement of the local mutation
                                                                       with LLM primitives in different ways on these problems
approach over the global one is enormous:
                                                                       and others. Further examples of problems ripe for such
                           Θ(2k k).                        (14)        analysis can be found in recent work (Chen et al., 2024).

Notice also that this improvement is before any considera-
tion of model size, i.e., before considering that a capable
                                                                       4. Alternative Views
local mutator agent might be substantially smaller than a              Now that we have made the case for the adoption of asymp-
global one. Of course, local mutations will not be suffi-              totic analysis with LLM primitives in the understanding and
cient for all evaluation functions, particularly those that are        development of scaled LLM-based agentic systems, it is
non-convex. However, they can still be quite powerful and              worth reflecting on possible counterarguments to this po-
practical tools, and gradient descent itself is in the most            sition. Such an engagement can yield the identification of
basic sense a local variation operator.                                strengths and weaknesses of the position, and further promis-
Again, we invite the reader to look back at the assumptions            ing directions of thinking thereby. We invite the reader to
made in this section and see where there is room for im-               come up with alternative views beyond the ones discussed
provement. For example, we assume that solutions here can              here, as there are surely more and stronger ones.
be broken down into components programmatically, but in
practice, one may need to assume something fuzzier and                 Alternative View 1: All the implications of such analysis
more approximate.                                                      are things people would do anyway.
In any case, this example points again to the criticality of           The intuition behind this view is that the algorithmic prop-
problem decomposition in a dramatic case where it leads                erties of agentic LLM systems are not that complicated,
to super-exponential improvements at scale. This simple                and optimal cost optimization of such systems will follow
analysis shines a light on the potential of a specific subfield        naturally from the kinds of refinements researchers and engi-
(i.e., optimization driven by LLMs) to benefit from careful            neers tend to do anyway. If true, this would be a huge blow
asymptotic analysis of their constituent LbAs.                         to the argument for AALPs, since it would not add any prac-
                                                                       tical value to LLM-based systems, it would just serve as a
Finally, notice that, in contrast to the prior two problems,           source of esoteric exercises for the algorithmically inclined.
this section considered a case where the LLM agent acts                However, we believe the evidence provided in Section 3 is
reliably, but not deterministically, hinting at further opportu-       sufficient to dispel this view, i.e., insights from the analysis
nities to generalize this kind of analysis.                            will have real-world impact on where human and computa-
                                                                       tional resources are focused, and thus have an impact on the
3.4. Exercises                                                         timeline of deployment for scaled LLM agents.
The above three examples are intended as representatives of
a vast space of possible LbAs for which asymptotic analysis            Alternative View 2: Direct optimization for cost is good
is critical. To become more deeply acquainted with the                 enough, without thinking about asymptotic behavior.
position of this paper, we invite the reader to conduct their          The view here is that for any given real-world LLM agentic
own analysis on variants of these problems as well as other            system, the general aymptotic limiting case is not as impor-
problems, such as the below:                                           tant as the simple reality of optimizing for the problems the
                                                                       particular instantiation of the system faces today. This view
   • Sorting sets of large documents, e.g., for organizing le-         is similar to Alternative View 1, except that it’s focused
     gal arguments or prioritizing resumes (especially long            on particular instantiations of a system. For example, we
     and plentiful resumes of AI agents themselves).                   might imagine an automated external optimization process
   • Solving a text-based puzzle, e.g., reordering the shuf-           that refines the design of an agentic system, e.g., modify-
     fled sentences of a novel to their original order.                ing agent scopes, modifying the communication channels
                                                                       between agents, and swapping out the underlying LLMs of
   • Writing and refining a paper for submission to a con-             different agents. However, although such a process could
     ference dedicated to AI-produced AI research.                     yield meaningful speed-ups in special cases, the innovations
   • Creating a policy proposal, e.g., to fight climate change         discovered in such a system would likely not generalize to
     or for pandemic response.                                         greater problem scales, i.e., in the scaling limit. This failure
                                                                       of generalization is common in systems overly-optimized to
   • Designing and booking an optimal k-night vacation                 overly-specific use cases (Tan & Le, 2019). Although it can
     given a set of constraints.                                       be possible to mine general insights from such specialized

                                                                   7
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

innovations, most of the optimizations should be expected            5. Research Directions
to lead to dead-ends at scale. AALPs is the tool to free cost
optimization from such tempting dead-ends.                           The goal of this paper is to serve as a catalyst for the adop-
                                                                     tion and development of asymptotic analysis with LLM
                                                                     primitives into the research and development of LLM-based
Alternative View 3: We don’t need LLM primitives: Ex-
                                                                     agentic systems. As a result, the discussion has focused on
isting cost measures are enough—such as simply counting
                                                                     high-level principles and minimal motivating examples to
tokens, GPU hours, or floating point operations.
                                                                     highlight the central advantages of such analysis as clearly
This view raises the question of what level of granularity is        as possible, and many critical considerations have been thus
most useful for understanding LbA behavior. If we count              far ignored. This section enumerates several such consider-
tokens without regard to model size, we miss out on the              ations, to serve as a scaffolding for future research.
increasing differences in model scale required for different
capabilities; if we count GPU hours, total activated LLM             5.1. Identifying Useful Assumptions
parameters, or floating point operations, the results will be
conditional on the particular hardware and LLM internal              As alluded to throughout this paper, AALPs provides a tem-
implementations available at the time. By encapsulating              plate for systematically reasoning about the efficiency of
model cost and capabilities, AALPs provides the right level          LLM-based agentic systems, but any specific application
of abstraction for reasoning about the costs of scaled agentic       of AALPs depends on the particular assumptions adopted,
systems, orthogonal to the ongoing development of LLMs.              and which assumptions are most useful for driving progress
                                                                     is an open question. For example, are the linear scaling
                                                                     assumptions in Definition 2.2 and Section 3.1.3 reasonable?
Alternative View 4: We don’t need this for superintelli-             Is it reasonable to disregard relatively large constants like
gence, and once we get superintelligence, it will optimize           the system prompt and explanations surrounding an answer,
everything better than humans ever could.                            or assume they can be distilled away? Is it reasonable to
Prominent AI researchers are preparing for the possibility           assume functional independence of solution components
of super-intelligence within a few years (Grace et al., 2024;        as is done in Sections 3.2 and 3.3, or should we explicitly
Altman, 2024; Hendrycks et al., 2025; Fortson, 2025). We             deal with approximations in cases of messy problem decom-
believe this presents the strongest case against AALPs. The          positions or in the absence of an oracle? Moving forward,
view here is that progress is being made so fast at the core         it will be important for AALPs to handle more nuanced
of LLMs that we are bound to hit a level of general intelli-         assumptions based on complexities arising in practice.
gence and automated AI research capabilities beyond that
of human AI researchers before we need to scale modu-                5.2. Stochasticity and Error-correction
lar and compute-optimized many-agent systems in the real
                                                                     For simplicity, the analysis in Sections 2 and 3 assumed
world. Once such superintelligence is achieved, the superin-
                                                                     that the constituent LLMs can execute capabilities in their
telligent AI itself will be capable of performing asymptotic
                                                                     scope reliably, i.e., the scenario where the LLM does not
analysis as it sees fit, and will be otherwise responsible
                                                                     successfully fulfill its role is not considered. Of course,
for developing future algorithmic insights leading to scaled
                                                                     LLMs today do make errors, even surprisingly simple ones
agentic systems. As there is some evidence of slowing
                                                                     (Basmov et al., 2023; Williams & Huckle, 2024; Lehman
progress at the core of LLM development (Cyran, 2024;
                                                                     et al., 2025). A more complete analytical framework will
Booth, 2024), and there is always uncertainty of whether a
                                                                     take the likelihood of such errors into account. Initial work
particular research direction will hit a fundamental wall, we
                                                                     has developed core ideas in how error probabilities can
believe that the orthogonal AALPs approach, which fore-
                                                                     compound even in the roll-outs of single LLMs (Dziri et al.,
grounds the advantages of many-agentness, is a worthwhile
                                                                     2024); further work is needed to extend such insights to the
complement to the direct approach of LLM improvement.
                                                                     realm of LLM agents. For example, ideas of error correction,
We also believe that since AALPs is such a fundamental
                                                                     e.g., from information theory (Hamming, 1950; Pless, 2011),
tool for understanding the behavior of agentic LLM-based
                                                                     could be integrated into agentic systems to reduce the impact
systems, and agentic decomposition is fundamentally es-
                                                                     of errors at scale, akin to the centrality of error-correction
sential to the optimal use of resources in the limit (i.e., a
                                                                     in quantum computing (Lidar & Brun, 2013; Roffe, 2019).
self-optimized superintelligence will not use its full power
                                                                     One open problem key to making such error correction work
to do single-digit addition), such a superintelligence must
                                                                     is developing LLM agents whose errors are decorrelated.
rely on AALPs as it decides how to optimize its usage of
                                                                     Established theory of randomized algorithms will be an
computational resources in the physical universe, and, for
                                                                     essential resource for this project (Motwani & Raghavan,
those human researchers developing and applying AALPs
                                                                     1996; Mitzenmacher & Upfal, 2017).
methods, having a superintelligence use your conceptual
technology is not such a bad academic legacy.

                                                                 8
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

5.3. Asynchrony and Distributed Algorithms                             5.6. Online Learning and Adaptation
Similarly, the examples in Section 3 did not consider po-              This paper has focused on the case where all LLM training
tential (temporal) cost benefits from agents running asyn-             happens beforehand, and thus can be viewed as a fixed cost
chronously, in a distributed manner, or otherwise in parallel.         in comparison to the inference (forward-pass) costs of run-
Such parallelization is extremely natural, especially if the           ning an LLM-agent system at scale over a long timeframe.
central mechanism for achieving asymptotic improvements                However, for more adaptive systems, it may be essential
is problem decomposition. Similar to the case of random-               to allow some form of agent learning during deployment.
ized algorithms above, existing methodologies for asymp-               Such learning could consist of the collection and refinement
totic analysis in parallel, asynchronous, and distributed sys-         of memories (represented in text) as the system encoun-
tems (Akl, 1989; Baudet, 1978; Santoro, 2006), as well                 ters new scenarios (Park et al., 2023; Wang et al., 2024a),
as classical multi-agent systems (Ferber & Weiss, 1999;                or fine-tuning updates through gradient descent (Hu et al.,
Van der Hoek & Wooldridge, 2008; Hodjat et al., 1998),                 2023; Rannen-Triki et al., 2024; Ding et al., 2023; Han et al.,
will be an invaluable resource, and the incorporation of               2024). In any case, the computational cost of such learning,
such aspects will be required to clarify the full scope of the         dependent on the size of the constituent LLM, will need to
advantages of carefully designed LLM-agent systems.                    be carefully incorporated into AALPs.

5.4. Automatic Decomposition                                           5.7. Ethics and Sentience
A central motivating theme throughout this paper is the ex-            Finally, one side benefit of highly-decomposed modular
pectation that the jobs of large and complex LLM-based                 many-agent LLM systems is a potential massive reduction
agentic systems can be usefully decomposed into subprob-               in future machine suffering. As centralized AI systems
lems, and some such decompositions lead to asymptotic                  become larger and more capable, there are compelling ar-
improvements over others. In the examples in Section 3                 guments that at some threshold of capabilities sentience
we assumed that effective decompositions were available a              has to emerge, at which point the AI system will likely
priori or could be deduced programmatically (i.e., without             endure astronomical levels of suffering (Metzinger, 2021;
the use of LLMs). In practice, especially in more open-                Saad & Bradley, 2022; Chiang, 2021). One avenue to min-
ended systems where the full spectrum of tasks the system              imizing the likelihood of such suffering is to build highly-
might need to solve is not known beforehand, having auto-              decomposed many-agent systems that achieve the same pos-
matic decomposition methods will be critical to maintain-              itive impact of a centralized system, but, by minimizing the
ing/maximizing asymptotic performance. Such methods                    capabilities and scope of each AI, reducing the chance that
will likely rely on LLMs themselves, in which case their               sentience will emerge. This argument is related to a posi-
cost must be incorporated into AALPs. There has been                   tion paper from last year, arguing that reducing the scope
some initial work on automatic agent decomposition (Wu                 of AI memory will reduce the chance of suffering, since
et al.; Song et al., 2024), but most is based on intuitive zero-       memory is such a critical ingredient for suffering in humans
shot approaches; much more asymptotically advantageous                 (Tkachenko, 2024). If complemented by further research in
approaches should be possible.                                         how sentience can emerge, AALPs could thus play a role in
                                                                       reducing the chance of immeasurable machine suffering.
5.5. Extensions to Other Modalities
This paper argues that AALPs is required to scale LLM                  6. Conclusion
agents, but as agentic systems naturally grow alongside AI             This paper has claimed that asymptotic analysis with LLM
models that incorporate a greater and greater range of modal-          primitives will be critical to the project of scaling LLM-
ities (Team et al., 2023; Liang et al., 2024), the capabilities        based agentic systems. The argument for this position was
afforded by these modalities will naturally be incorporated            developed through contextualization with existing work,
into agentic systems; this process has already begun (Jiang            concrete examples of how such analysis can lead to impact-
et al., 2024b; Gao et al., 2024; Sarch et al., 2024). AALPs            ful insights, and engagement with alternative views. Several
does not immediately extend to other modalities, due to its            important directions were then highlighted as a guide for
basis in LLM primitives, but similar techniques could be               future research. Our hope is that this discussion will serve
used to encapsulate the usage of each modality as a primitive          as a catalyst, motivating developers of LLM agents to care-
with an assigned cost. A simple implication could be that              fully consider how their systems might scale, establishing
many visual tasks (when performed at scale) should be exe-             an exciting research project within the cutting edge of AI
cuted by compact vision-only models instead of full-fledged            for algorithmists and other academics who do not have ac-
multi-modal foundation models.                                         cess to hyperscale computing resources, and, most of all, to
                                                                       accelerate the real-world positive impact of LLM agents.

                                                                   9
                          Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Acknowledgments                                                      Bradley, H., Dai, A., Teufel, H. B., Zhang, J., Oostermeijer,
                                                                       K., Bellagente, M., Clune, J., Stanley, K., Schott, G.,
We would like to thank the Cognizant AI Lab research                   and Lehman, J. Quality-diversity through ai feedback.
team for useful discussions in the development of this work,           In The Twelfth International Conference on Learning
and, in particular, Dan Fink and Giuseppe Paolo for early              Representations, 2024.
inspiring discussions before this work started to take form.
                                                                     Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J.,
Impact Statement                                                       Horvitz, E., Kamar, E., Lee, P., Lee, Y. T., Li, Y.,
                                                                       Lundberg, S., et al. Sparks of artificial general intel-
This paper presents work whose goal is to advance the field            ligence: Early experiments with gpt-4. arXiv preprint
of artificial intelligence. There are many societal conse-             arXiv:2303.12712, 2023.
quences that potentially follow from such work. One main
advantage of the approach advocated in this paper is the             Chen, L., Zaharia, M., and Zou, J. Frugalgpt: How to use
potential reduction in future machine suffering, as discussed          large language models while reducing cost and improving
in Section 5.7. Another advantage, arising from the fact that          performance. arXiv preprint arXiv:2305.05176, 2023.
AALPs leads naturally to maximally decomposed problem-               Chen, Y., Li, Y., Ding, B., and Zhou, J. On the design
solving, is that decomposed systems can be much more                   and analysis of llm-based algorithms. arXiv preprint
interpretable, auditable, and therefore safer than a single            arXiv:2407.14788, 2024.
opaque centralized AI carrying out the same task, a point
that has been acknowledged in prior work (Khot et al., 2021;         Chiang, T. Why computers won’t make themselves smarter.
Sharkey et al., 2025).                                                 The New Yorker, 2021.
                                                                     Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C.
References                                                             Introduction to algorithms. MIT press, 2022.
Aho, A. V. and Hopcroft, J. E. The design and analysis of            Cyran, R. Ai models’ slowdown spells end of gold rush era.
  computer algorithms. Pearson Education India, 1974.                  Reuters, December 2024.
Akl, S. G. The design and analysis of parallel algorithms.           Ding, N., Qin, Y., Yang, G., Wei, F., Yang, Z., Su, Y., Hu,
  Prentice-Hall, Inc., 1989.                                           S., Chen, Y., Chan, C.-M., Chen, W., et al. Parameter-
                                                                       efficient fine-tuning of large-scale pre-trained language
Altman, S. The intelligence age.  https://ia.                          models. Nature Machine Intelligence, 5(3):220–235,
  samaltman.com/, September 2024. Accessed: 2025-                      2023.
  05-28.
                                                                     Doerr, B. Probabilistic tools for the analysis of randomized
Anthropic. Anthropic API Pricing, 2025. URL                            optimization heuristics. Theory of evolutionary compu-
  https://www.anthropic.com/pricing#                                   tation: Recent developments in discrete optimization, pp.
  anthropic-api. Accessed: 2025-01-30.                                1–87, 2020.
Bäck, T., Fogel, D. B., and Michalewicz, Z. Handbook of             Doerr, B. and Neumann, F. A survey on recent progress in
  evolutionary computation. Release, 97(1):B1, 1997.                   the theory of evolutionary algorithms for discrete opti-
                                                                       mization. ACM Transactions on Evolutionary Learning
Basmov, V., Goldberg, Y., and Tsarfaty, R. Simple linguistic           and Optimization, 1(4):1–43, 2021.
  inferences of large language models (llms): Blind spots
  and blinds. arXiv preprint arXiv:2305.14785, 2023.                 Droste, S., Jansen, T., and Wegener, I. On the analysis of
                                                                       the (1+ 1) evolutionary algorithm. Theoretical Computer
Baudet, G. M. The design and analysis of algorithms for                Science, 276(1-2):51–81, 2002.
  asynchronous multiprocessors. Carnegie Mellon Univer-
  sity, 1978.                                                        Du, Y., Li, S., Torralba, A., Tenenbaum, J. B., and Mordatch,
                                                                       I. Improving factuality and reasoning in language models
Bender, E. M., Gebru, T., McMillan-Major, A., and                      through multiagent debate. In Forty-first International
  Shmitchell, S. On the dangers of stochastic parrots: Can             Conference on Machine Learning, 2024.
  language models be too big? In Proceedings of the 2021
  ACM conference on fairness, accountability, and trans-             Dziri, N., Lu, X., Sclar, M., Li, X. L., Jiang, L., Lin, B. Y.,
  parency, pp. 610–623, 2021.                                         Welleck, S., West, P., Bhagavatula, C., Le Bras, R., et al.
                                                                       Faith and fate: Limits of transformers on compositionality.
Booth, H. Has ai progress really slowed down?          Time,          Advances in Neural Information Processing Systems, 36,
  November 2024.                                                       2024.

                                                                10
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Faiz, A., Kaneda, S., Wang, R., Osi, R. C., Sharma, P., Chen,         Hu, Q. J., Bieker, J., Li, X., Jiang, N., Keigwin, B., Ran-
  F., and Jiang, L. Llmcarbon: Modeling the end-to-end                  ganath, G., Keutzer, K., and Upadhyay, S. K. Router-
  carbon footprint of large language models. In The Twelfth             bench: A benchmark for multi-llm routing system. arXiv
  International Conference on Learning Representations,                 preprint arXiv:2403.12031, 2024.
  2024.
                                                                      Huang, Q., Vora, J., Liang, P., and Leskovec, J. Bench-
Feng, T., Shen, Y., and You, J. Graphrouter: A graph-based              marking large language models as ai research agents. In
  router for LLM selections. In The Thirteenth Interna-                NeurIPS 2023 Foundation Models for Decision Making
  tional Conference on Learning Representations, 2025.                 Workshop.
Ferber, J. and Weiss, G. Multi-agent systems: an intro-               Jiang, A. Q., Sablayrolles, A., Roux, A., Mensch, A., Savary,
  duction to distributed artificial intelligence, volume 1.              B., Bamford, C., Chaplot, D. S., Casas, D. d. l., Hanna,
  Addison-wesley Reading, 1999.                                          E. B., Bressand, F., et al. Mixtral of experts. arXiv
                                                                         preprint arXiv:2401.04088, 2024a.
Fortson, D. Anthropic chief: ’by next year, ai could be
  smarter than all humans’. The Times, March 2025. Ac-                Jiang, B., Xie, Y., Wang, X., Su, W. J., Taylor, C. J., and
  cessed: 2025-05-28.                                                    Mallick, T. Multi-modal and multi-agent systems meet
                                                                         rationality: A survey. In ICML 2024 Workshop on LLMs
Gao, Z., Zhang, B., Li, P., Ma, X., Yuan, T., Fan, Y., Wu, Y.,
                                                                         and Cognition, 2024b.
  Jia, Y., Zhu, S.-C., and Li, Q. Multi-modal agent tuning:
  Building a vlm-driven agent for efficient tool usage. arXiv         Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B.,
  preprint arXiv:2412.15606, 2024.                                      Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and
Grace, K., Stewart, H., Sandkühler, J. F., Thomas, S.,                 Amodei, D. Scaling laws for neural language models.
  Weinstein-Raun, B., and Brauner, J. Thousands of ai au-               arXiv preprint arXiv:2001.08361, 2020.
  thors on the future of ai. arXiv preprint arXiv:2401.02843,         Khot, T., Khashabi, D., Richardson, K., Clark, P., and Sab-
  2024.                                                                 harwal, A. Text modular networks: Learning to decom-
Guo, T., Chen, X., Wang, Y., Chang, R., Pei, S., Chawla,                pose tasks in the language of existing models. In Pro-
  N. V., Wiest, O., and Zhang, X. Large language model                  ceedings of the 2021 Conference of the North American
  based multi-agents: A survey of progress and challenges.             Chapter of the Association for Computational Linguistics:
  arXiv preprint arXiv:2402.01680, 2024.                               Human Language Technologies, pp. 1264–1279, 2021.

Hamming, R. W. Error detecting and error correcting codes.            Knuth, D. E. The Art of Computer Programming: Funda-
  The Bell system technical journal, 29(2):147–160, 1950.               mental Algorithms, Volume 1. Addison-Wesley Profes-
                                                                        sional, 1968.
Han, Z., Gao, C., Liu, J., Zhang, J., and Zhang, S. Q.
  Parameter-efficient fine-tuning for large models: A com-            Landau, E. Handbuch der Lehre von der Verteilung der
  prehensive survey. arXiv preprint arXiv:2403.14608,                   Primzahlen, volume 1. BG Teubner, 1909.
  2024.
                                                                      Lee, K.-H., Fischer, I., Wu, Y.-H., Marwood, D., Baluja,
Hendrycks, D., Schmidt, E., and Wang, A. Superin-                       S., Schuurmans, D., and Chen, X. Evolving deeper llm
  telligence strategy: Expert version. arXiv preprint                   thinking. arXiv preprint arXiv:2501.09891, 2025.
  arXiv:2503.05628, 2025.
                                                                      Lehman, J., Gordon, J., Jain, S., Ndousse, K., Yeh, C.,
Hodjat, B.  AI and agents.  AI Magazine, 45(1):                         and Stanley, K. O. Evolution through large models. In
 1–3, 2024.    doi: 10.1002/aaai.12170.   URL                           Handbook of Evolutionary Machine Learning, pp. 331–
  https://onlinelibrary.wiley.com/doi/                                  366. Springer, 2023.
 10.1002/aaai.12170.
                                                                      Lehman, J., Meyerson, E., El-Gaaly, T., Stanley, K. O.,
Hodjat, B., Savoie, C. J., and Amamiya, M. An adaptive                  and Ziyaee, T. Evolution and the knightian blindspot
  agent oriented software architecture. In Proceedings of               of machine learning. arXiv preprint arXiv:2501.13075,
  the 5th Pacific Rim International Conference on Artificial            2025.
 Intelligence (PRICAI ’98), pp. 33–46, 1998.
                                                                      Liang, Z., Xu, Y., Hong, Y., Shang, P., Wang, Q., Fu, Q., and
Hu, N., Mitchell, E., Manning, C. D., and Finn, C. Meta-                Liu, K. A survey of multimodel large language models. In
  learning online adaptation of language models. In Pro-                Proceedings of the 3rd International Conference on Com-
  ceedings of the 2023 Conference on Empirical Methods                  puter, Artificial Intelligence and Control Engineering, pp.
  in Natural Language Processing, pp. 4418–4432, 2023.                  405–409, 2024.

                                                                 11
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Lidar, D. A. and Brun, T. A. Quantum error correction.                  2024, pp. 39. MIT Press One Rogers Street, Cambridge,
  Cambridge university press, 2013.                                     MA 02142-1209, USA journals-info . . . , 2024.

Liu, A., Feng, B., Xue, B., Wang, B., Wu, B., Lu, C., Zhao,           OpenAI. OpenAI API Pricing, 2025. URL https://
  C., Deng, C., Zhang, C., Ruan, C., et al. Deepseek-v3                 openai.com/api/pricing/. Accessed: 2025-01-
  technical report. arXiv preprint arXiv:2412.19437, 2024.              30.
Lu, C., Lu, C., Lange, R. T., Foerster, J., Clune, J., and Ha,        Park, J. S., O’Brien, J., Cai, C. J., Morris, M. R., Liang,
  D. The ai scientist: Towards fully automated open-ended               P., and Bernstein, M. S. Generative agents: Interactive
  scientific discovery. arXiv preprint arXiv:2408.06292,                simulacra of human behavior. In Proceedings of the 36th
  2024.                                                                 annual acm symposium on user interface software and
                                                                        technology, pp. 1–22, 2023.
Luohe, S., Zhang, H., Yao, Y., Li, Z., et al. Keep the cost
  down: A review on methods to optimize llm’s kv-cache                Pless, V. Introduction to the theory of error-correcting codes.
  consumption. In First Conference on Language Modeling,                John Wiley & Sons, 2011.
  2024.
                                                                      Qian, C., Liu, W., Liu, H., Chen, N., Dang, Y., Li, J., Yang,
Metzinger, T. Artificial suffering: An argument for a global            C., Chen, W., Su, Y., Cong, X., et al. Chatdev: Commu-
 moratorium on synthetic phenomenology. Journal of                      nicative agents for software development. In Proceed-
 Artificial Intelligence and Consciousness, 8(01):43–66,                ings of the 62nd Annual Meeting of the Association for
 2021.                                                                  Computational Linguistics (Volume 1: Long Papers), pp.
Meyerson, E. and Miikkulainen, R. Modular universal repa-               15174–15186, 2024.
 rameterization: Deep multi-task learning across diverse              Rannen-Triki, A., Bornschein, J., Pascanu, R., Hutter, M.,
 domains. In Advances in Neural Information Processing                  György, A., Galashov, A., Teh, Y. W., and Titsias, M. K.
 Systems, volume 32, 2019.
                                                                        Revisiting dynamic evaluation: Online adaptation for
Meyerson, E., Qiu, X., and Miikkulainen, R. Simple genetic              large language models. arXiv preprint arXiv:2403.01518,
 operators are universal approximators of probability dis-              2024.
 tributions (and other advantages of expressive encodings).
                                                                      Roffe, J. Quantum error correction: an introductory guide.
 In Proceedings of the Genetic and Evolutionary Compu-
                                                                        Contemporary Physics, 60(3):226–245, 2019.
 tation Conference, GECCO ’22, pp. 739–748, 2022.

Meyerson, E., Nelson, M. J., Bradley, H., Gaier, A., Moradi,          Romera-Paredes, B., Barekatain, M., Novikov, A., Balog,
 A., Hoover, A. K., and Lehman, J. Language model                       M., Kumar, M. P., Dupont, E., Ruiz, F. J., Ellenberg, J. S.,
 crossover: Variation through few-shot prompting. ACM                   Wang, P., Fawzi, O., et al. Mathematical discoveries from
                                                                        program search with large language models. Nature, 625
 Transactions on Evolutionary Learning, 4(4):1–40, 2024.
                                                                        (7995):468–475, 2024.
Mitzenmacher, M. and Upfal, E. Probability and computing:
 Randomization and probabilistic techniques in algorithms             Saad, B. and Bradley, A. Digital suffering: Why it’sa prob-
 and data analysis. Cambridge university press, 2017.                   lem and how to prevent it. Inquiry, pp. 1–36, 2022.

Montanaro, A. Quantum algorithms: an overview. npj                    Santoro, N. Design and analysis of distributed algorithms.
 Quantum Information, 2(1):1–8, 2016.                                   John Wiley & Sons, 2006.

Motwani, R. and Raghavan, P. Randomized algorithms.                   Sarch, G. H., Jang, L., Tarr, M. J., Cohen, W. W., Marino,
 ACM Computing Surveys (CSUR), 28(1):33–37, 1996.                       K., and Fragkiadaki, K. Vlm agents generate their own
                                                                        memories: Distilling experience into embodied programs
Narayan, A., Biderman, D., Eyuboglu, S., May, A., Linder-               of thought. In The Thirty-eighth Annual Conference on
  man, S., Zou, J., and Re, C. Minions: Cost-efficient col-             Neural Information Processing Systems, 2024.
  laboration between on-device and cloud language models.
  arXiv preprint arXiv:2502.15964, 2025.                              Sardana, N., Portes, J., Doubov, S., and Frankle, J. Beyond
                                                                        chinchilla-optimal: Accounting for inference in language
Nisioti, E., Glanois, C., Najarro, E., Dai, A., Meyerson, E.,           model scaling laws. In Forty-first International Confer-
  Pedersen, J. W., Teodorescu, L., Hayes, C. F., Sudhakaran,            ence on Machine Learning, 2024.
  S., and Risi, S. From text to life: On the reciprocal rela-
  tionship between artificial life and large language models.         Sedgewick, R. An introduction to the analysis of algorithms.
  In Artificial Life Conference Proceedings 36, volume                  Pearson Education India, 1996.

                                                                 12
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Sharkey, L., Chughtai, B., Batson, J., Lindsey, J., Wu,                Vaswani, A. Attention is all you need. Advances in Neural
  J., Bushnaq, L., Goldowsky-Dill, N., Heimersheim, S.,                  Information Processing Systems, 2017.
  Ortega, A., Bloom, J., Biderman, S., Garriga-Alonso,
  A., Conmy, A., Nanda, N., Rumbelow, J., Wattenberg,                  Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu,
  M., Schoots, N., Miller, J., Michaud, E. J., Casper, S.,              Y., Fan, L., and Anandkumar, A. Voyager: An open-ended
  Tegmark, M., Saunders, W., Bau, D., Todd, E., Geiger,                 embodied agent with large language models. Transac-
  A., Geva, M., Hoogland, J., Murfet, D., and McGrath,                  tions on Machine Learning Research, 2024a. ISSN 2835-
  T. Open problems in mechanistic interpretability, 2025.               8856. URL https://openreview.net/forum?
  URL https://arxiv.org/abs/2501.16496.                                 id=ehfRiF0R3a.

Shekhar, S., Dubey, T., Mukherjee, K., Saxena, A., Tyagi,              Wang, L., Ma, C., Feng, X., Zhang, Z., Yang, H., Zhang, J.,
  A., and Kotla, N. Towards optimizing the costs of llm                 Chen, Z., Tang, J., Chen, X., Lin, Y., et al. A survey on
  usage. arXiv preprint arXiv:2402.01742, 2024.                         large language model based autonomous agents. Frontiers
                                                                        of Computer Science, 18(6):186345, 2024b.
Song, L., Liu, J., Zhang, J., Zhang, S., Luo, A., Wang,
  S., Wu, Q., and Wang, C. Adaptive in-conversation                    Williams, S. and Huckle, J. Easy problems that llms get
  team building for language model agents. arXiv preprint               wrong. arXiv preprint arXiv:2405.19616, 2024.
  arXiv:2405.19425, 2024.                                              Witt, C. Tight bounds on the optimization time of a random-
Stoica, I., Zaharia, M., Gonzalez, J., Goldberg, K., Zhang,             ized search heuristic on linear functions. Combinatorics,
  H., Angelopoulos, A., Patil, S. G., Chen, L., Chiang, W.-             Probability and Computing, 22(2):294–318, 2013.
  L., and Davis, J. Q. Specifications: The missing link to             Wu, Q., Bansal, G., Zhang, J., Wu, Y., Li, B., Zhu, E., Jiang,
  making the development of llm systems an engineering                  L., Zhang, X., Zhang, S., Liu, J., et al. Autogen: Enabling
  discipline. arXiv preprint arXiv:2412.05299, 2024.                    next-gen llm applications via multi-agent conversation. In
Sypherd, C. and Belle, V. Practical considerations for agen-            ICLR 2024 Workshop on Large Language Model (LLM)
  tic llm systems. arXiv preprint arXiv:2412.04093, 2024.               Agents.

Tan, M. and Le, Q. Efficientnet: Rethinking model scal-                Wu, X., Wu, S.-h., Wu, J., Feng, L., and Tan, K. C. Evolu-
  ing for convolutional neural networks. In International               tionary computation in the era of large language model:
  conference on machine learning, pp. 6105–6114. PMLR,                  Survey and roadmap. arXiv preprint arXiv:2401.10034,
  2019.                                                                 2024.

Tay, Y., Bahri, D., Yang, L., Metzler, D., and Juan, D.-C.             Xi, Z., Chen, W., Guo, X., He, W., Ding, Y., Hong, B.,
  Sparse sinkhorn attention. In International Conference                 Zhang, M., Wang, J., Jin, S., Zhou, E., et al. The rise and
  on Machine Learning, pp. 9438–9447. PMLR, 2020.                        potential of large language model based agents: A survey.
                                                                         Science China Information Sciences, 68(2):121101, 2025.
Team, G., Anil, R., Borgeaud, S., Alayrac, J.-B., Yu, J., Sori-
  cut, R., Schalkwyk, J., Dai, A. M., Hauth, A., Millican,             Yan, Y., Zeng, Q., Zheng, Z., Yuan, J., Feng, J., Zhang,
  K., et al. Gemini: a family of highly capable multimodal               J., Xu, F., and Li, Y. Opencity: A scalable platform to
  models. arXiv preprint arXiv:2312.11805, 2023.                         simulate urban activities with massive llm agents. arXiv
                                                                         preprint arXiv:2410.21286, 2024.
Tkachenko, Y. Position: Enforced amnesia as a way to miti-
  gate the potential risk of silent suffering in the conscious         Yang, C., Wang, X., Lu, Y., Liu, H., Le, Q. V., Zhou, D., and
  ai. In Forty-first International Conference on Machine                 Chen, X. Large language models as optimizers. In The
  Learning, 2024.                                                        Twelfth International Conference on Learning Represen-
                                                                         tations, 2024. URL https://openreview.net/
Turing, A. On computable numbers, with an application to                 forum?id=Bb4VGOWELI.
  the entscheidungs problem. Proceedings of the London
  Mathematical Society Series/2 (42), pp. 230–42, 1936.                Yu, H., Hong, Z., Cheng, Z., Zhu, K., Xuan, K., Yao, J.,
                                                                         Feng, T., and You, J. Researchtown: Simulator of human
Urlana, A., Kumar, C. V., Singh, A. K., Garlapati, B. M.,                research community. arXiv preprint arXiv:2412.17767,
  Chalamala, S. R., and Mishra, R. Llms with industrial                  2024.
  lens: Deciphering the challenges and prospects–a survey.
  arXiv preprint arXiv:2402.14558, 2024.

Van der Hoek, W. and Wooldridge, M. Multi-agent systems.
  Foundations of Artificial Intelligence, 3:887–928, 2008.

                                                                  13
