                                                                        Position: Scaling LLM Agents Requires
                                                                       Asymptotic Analysis with LLM Primitives


                                                                                         Elliot Meyerson 1 Xin Qiu 1


                                                                  Abstract                                    larger systems or act “autonomously” in virtual or physi-
                                                                                                              cal environments. Unlike the general purpose LLMs from
                                             Decomposing hard problems into subproblems of-
arXiv:2502.04358v1 [cs.CL] 4 Feb 2025




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

                                                                                                          1
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

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

                                                                  2
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

et al., 2024), or the environmental cost (Bender et al., 2021;        at a more detailed and formal treatment of AALPs (Chen
Faiz et al., 2024), and we expect all of these to be highly           et al., 2024), and we refer the reader to that work for further
correlated. Why wouldn’t one always use the smallest LLM              example analyses, which complement those in Section 3.
available? Different LLMs have different sets of capabili-            However, the goal of the present paper is not to develop a
ties they can reliably perform. For an LLM primitive to be            complete framework, but to present a clear argument with
reliably applied in an LbA, the operation performed must              illustrative examples to bring the basic idea of AALPs to as
be within the capabilities set of the LLM being used:                 broad an audience as possible. In other words, the present
Definition 2.3 (Capabilities Set). Every LLM M has a                  work is a call to action.
corresponding capabilities set CM = {c1 , c2 , . . .}, which
characterizes the scope of tasks M can reliably perform.              3. Example Asymptotic Separations
In an LbA, different LLM-based operations might be per-               This section provides concrete examples of how AALPs can
formed by different LLMs with different capabilities. This            be applied to demonstrate massive asymptotic separations
separation of labor motivates the specialization of LLMs,             between LbA’s when applied at scale. The goal of these
i.e., one need not rely on a single giant AGI-like model to           examples is not to show challenging math, but simple results
solve all tasks that can be specified in text, especially the         that immediately highlight the importance of such analysis.
most basic ones. A fully optimal LbA will use LLMs with               Our hope is that these simple examples will inspire future
minimal capabilities sets, since increasing the size of the set       work that tackles more complex LLM-agent systems.
cannot decrease the minimal size of the required model.
                                                                      The three example problems in this section highlight dif-
Making the capabilities set explicit in the design of an algo-        ferent kinds of opportunities that would arise from hav-
rithm has the auxiliary benefit of raising awareness of the           ing a solid complexity theory for LLM agents. The first
trade-offs between two algorithms, i.e., if two algorithms            highlights the criticality of understanding where to focus
have similar complexity, but one requires more accessible             LLM size optimization in many-agent systems; the second
capabilities, that algorithm should be preferred. Note also           highlights critical pitfalls of naı̈ve anthropomorphic multi-
that specifying a capability set is only necessary for the            agentization; and the third highlights issues that arise from
purpose of designing the abstract algorithm for complexity            applying LLMs to large and creative optimization tasks.
analysis; one need not enumerate all the capabilities of a            Note that the analysis in this section is intentionally loose,
real-world LLM, rather just verify that it has the required ca-       and intended to be as rudimentary as possible, as the goal
pabilities in a particular implementation. This idea is in line       is simply to highlight the kinds of insights that can emerge,
with the call for LLM specifications (Stoica et al., 2024).           and argue that further development of AALPs will be crit-
                                                                      ical in understanding how to scale real-world systems. To
The central tool for achieving asymptotic improvements in
                                                                      that end, we invite the reader to critique any assumption (im-
LbAs over a naı̈ve application of LLMs is the expectation
                                                                      plicit or explicit) made in the following analyses, with the
that large and complex jobs can be meaningfully decom-
                                                                      hope that such critique will lead to more practical AALPs
posed, and that the impact of this decomposition will scale in
                                                                      methodologies and thus more powerful LbAs.
a manner not accessible by the naı̈ve approach. Sometimes
the precise decomposition can be described analytically or
deduced programmatically, but sometimes, especially when              3.1. k-Task Routing
reasoning about abstract problems, it can be useful to simply         The section highlights potential scaling advantages of hav-
assume we have a way of decomposing a problem, in order               ing specialized agents of asymptotically smaller size than
to make asymptotic analysis possible. Any meaningful bene-            highly-capabable generalist agents. For this problem, sup-
fits uncovered in the analysis then motivate the development          pose the input size is n and the output size is Θ(1). Many
of a practical implementation of the decomposition. We call           common tasks like information retrieval, classification, and
this tool an oracle decomposition:                                    agentic single-action tasks fall under this specification. Sup-
Definition 2.4 (Oracle Decomposition). An oracle decom-               pose there are k such distinct tasks of this form that we
position is an assumed non-LLM operation that decomposes              would like the system to be able to perform.
a problem in a specific way, without regard to how the oper-
ation is implemented.                                                 3.1.1. G ENERALIST A PPROACH

Armed with this basic set of tools, one can proceed to                The simplest approach would be to use a single generalist
comparatively analyze the asymptotic behavior of differ-              many-task LLM agent Mg of size mg capable of solving
ent LbAs on different problems, highlighting the kinds of             any of the tasks on its own. Processing the entire input and
places asymptotic improvements can be found.                          returning a constant sized answer will then cost
Note that there has already been one promising first attempt                                    Θ(mg n).                         (1)

                                                                  3
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

3.1.2. D ELEGATOR AND S PECIALISTS A PPROACH                          3.2. Iterative Code Debugging
Suppose instead that we have a system consisting of a del-            This section looks at another increasingly common and
egator Md of size md and k specialists M1 , . . . , Mk , one          critical task for LLM-agents: code debugging. At a high
for each of the k distinct tasks. For simplicity, assume the          level, the problem is that we have a large code-base with
specialists are all of equal size ms . Suppose the delegator          many bugs, and we would like to clean it up. For clarity of
can determine which of the k tasks the input string belongs           analysis, suppose the code is n = kl tokens long, consisting
to by observing only a constant number of metadata tokens             of k functions, the implementation of each being l tokens
prepended to the input. Then, the cost of identifying the             long, and suppose there are b bugs somewhere in the code,
task and solving it with the designated specialist is                 with no more than one bug per function. The goal is to
                                                                      provide an efficient LbA that fixes all the bugs.
                    Θ(md ) + Θ(ms n).                      (2)
                                                                      3.2.1. NA ÏVE M ULTI - AGENT A PPROACH
                                                                      Suppose we take an anthropomorphic multi-agent approach,
3.1.3. I MPLICATIONS
                                                                      akin to the kind of approach that has become currently quite
We can safely assume md ≤ mg , since solving all k tasks              popular for pushing the problem-solving performance of
almost certainly requires (implicitly or explicitly) identify-        coding LLMs (Park et al., 2023; Qian et al., 2024; Wu et al.;
ing which task is being solved as a sub-capability. So, as n          Song et al., 2024). In such an approach, we instantiate
grows, the comparison of interest is Θ(mg n) vs. Θ(ms n),             multiple agents by prompting them with different roles,
i.e., mg vs. ms . From analysis of the neural scaling laws of         mapping each on to an employee in a human organization.
LLMs (Kaplan et al., 2020), we can assume the required size           For simplicity in the present analysis, we will use only two
of the LLM scales with the number of required capabilities.           roles: quality assurance (QA) engineer Mq and debugging
For example, let us assume that in the present setting, the           specialist Md (we leave it as an exercise to the reader to
required size of the LLM scales linearly with the number of           extend/revise the analysis for other common roles found in
tasks it can solve. Then,                                             multi-agent coding systems).
                                                                      In this approach, we alternate between Mq (of size mq )
   Θ(mg ) = Θ(kms ) =⇒ Θ(mg n) = Θ(kms n).                 (3)        identifying a bug and Md (of size md ) fixing it. Suppose Mq
                                                                      has the capacity to identify exactly one bug at a time, and
That is, the speed-up from delegation and specialization              Md has the capacity to fix exactly one identified bug. In the
scales linearly with the number of tasks. As LLM-agent-               standard approach, the entire conversation history, including
based systems become larger and larger, many hope that                prior versions of the code are fed as input to each agent
they will be able to tackle thousands of distinct tasks, if not       at each iteration. From an asymptotic perspective, such
more. So, the advantage of having many specialist agents              accumulation in the input may seem clearly inefficient, but
becomes enormous.                                                     this is an approach taken in popular multi-agent frameworks
                                                                      today, such as autogen (Wu et al.). Suppose the QA engineer
Importantly, notice that this analysis shows that, for those          identifies bugs by producing constant size messages, while
developing the LLMs themselves, it should be much more                the debugging specialist rewrites the entire code every time
impactful to focus on minimizing the size of the specialist           it fixes a bug (as is also standard in current systems). Then,
LLMs than minimizing the size of the delegator. This is               for the ith bug, the QA agent looks at all i previous versions
because, even if the delegator is relatively huge, it is called       of the code and previous QA comments, yielding a total
so few times relative to the specialists. In a real-world             input length of Θ(in). So, the total cost of QA over all b
team of human developers, without such analysis, equal                bugs is
research and development resources might be allocated to
both reducing the size of the delegator and reducing the size           mq (Θ(n) + Θ(2n) + . . . + Θ(bn)) = Θ(mq b2 n).         (4)
of specialists. For example, it could be very tempting to
try to develop a relatively tiny classifier as the delegator,
                                                                      Meanwhile, the debugging expert looks at in tokens at each
since it might seem like a relatively simple classification
                                                                      iteration and produces n new tokens of code, yielding
problem. Analysis like the above can preempt research on
shrinking the delegator: It would be okay to use a giant
off-the-self maximum-capability LLM as the delegator, and               md (in + (in + 1) + . . . + (in + n)) = Θ(md in2 ) (5)
focus on shrinking the specialists. This observation supports
the more general idea that, in an optimal LLM ecology,                at each iteration, and over all b bugs:
we should expect orders of magnitude more executions of
smaller models than of larger models (Nisioti et al., 2024).                  Θ(md n2 ) + . . . Θ(md bn2 ) = Θ(md b2 n2 ).      (6)

                                                                  4
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

So, the total cost of QA plus writing the debugged code is             chunks that can be precisely specified for agents to operate
                                                                       on. This improvement becomes astronomical as the size of
  Θ(mq b2 n) + Θ(md b2 n2 ) =                                          the code increases to the size of large industrial codebases.
                          Θ(mq b2 kl) + Θ(md b2 k 2 l2 ). (7)          The apparent limitations of most existing multi-agent LLM
                                                                       approaches to relatively small codebases could be due in
                                                                       part to this scaling behavior, and thus pursuing the direction
We notice immediately that, due to the additional factor
                                                                       of extreme decomposition could be critical to scaling robust
of n for the debugging expert compared to QA engineer,
                                                                       LLM-based coding systems.
similar to the implication highlighted in Section 3.1, it is
much more important to focus on minimizing the size of                 This implication also generalizes to other applications where
the debugging expert than the QA engineer. It could be fine            the goal is to iteratively refine large objects of interest, e.g.,
to use the biggest LLM available for QA, since its relative            design or construction applications. The insights from a
asymptotic cost is so small, especially when the code grows            properly developed asymptotic analysis with LLM primi-
extremely large. However, the central implication from                 tives could be critical to making such applications scale.
this section comes not from relative model size but from
                                                                       Notice that we made a strong and critical assumption of
comparison to a more focused approach to the multi-agent
                                                                       perfect code specification in the description of the focused
problem decomposition, as is discussed next.
                                                                       multi-agent approach. The fact that this leads to such effi-
                                                                       ciency improvements is motivation to investigate whether
3.2.2. F OCUSED M ULTI - AGENT A PPROACH
                                                                       LLMs are capable of generating such precise and correct
Let’s suppose all functions in the code have completely                specifications; if such focused precision is possible, it could
correct, precise and constant size specification (e.g., in their       have an enormous impact.
docstring). Now, instead of having the QA agent look at the
entire code every iteration, suppose it looks only at a single         3.3. Evolutionary Optimization
function. Then, it will overall look at the entire code only a
single time, resulting in a cost of                                    Another area where LLM agents are increasingly being ap-
                                                                       plied is in optimization, where the LLM is used as the engine
                          Θ(mq kl).                         (8)        of variation, i.e., given some existing solutions it is used to
                                                                       generate variations on these solutions that have a chance of
Whenever a bug is identified in a function, the debugging              being improvements with respect to some evaluation func-
expert then fixes the bug by looking at and rewriting only             tion (Lehman et al., 2023; Meyerson et al., 2024; Bradley
that single function, yielding a total debugging expert cost           et al., 2024; Yang et al., 2024; Romera-Paredes et al., 2024;
of                                                                     Lee et al., 2025). Many of these applications have been de-
                         Θ(md l2 b),                     (9)           veloped under evolutionary optimization frameworks (Bäck
and thus the cost for the whole system is                              et al., 1997; Wu et al., 2024). In such scenarios, there is
                                                                       some evaluation, or fitness, function f (x) that we would
                   Θ(mq kl) + Θ(md l2 b).                  (10)        like to maximize, and the LLM is responsible for generating
                                                                       solutions x ∈ X . If x is representable by text, then an LLM
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

                                                                   5
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

every block of x in some way, resulting in a 50% chance               be broken down into components programmatically, but in
of that block now being “correct”. Suppose we start with              practice, one may need to assume something fuzzier and
an arbitrary initial solution x, and run a greedy algorithm,          more approximate.
where we iteratively apply the mutator to get a new solution
                                                                      In any case, this example points again to the criticality of
x′ , and replace x′ as our current solution if it has higher
                                                                      problem decomposition in a dramatic case where it leads
fitness f (x′ ) > f (x). Note, this is an instantiation of a
                                                                      to super-exponential improvements at scale. This simple
(1+λ)-EA (Droste et al., 2002), the most often analyzed
                                                                      analysis shines a light on the potential of a specific subfield
algorithm in the EA literature (Doerr & Neumann, 2021),
                                                                      (i.e., optimization driven by LLMs) to benefit from careful
which has been used to analyze the optimization of deep
                                                                      asymptotic analysis of their constituent LbAs.
architectures in other settings (Meyerson & Miikkulainen,
2019; Meyerson et al., 2022).                                         Finally, notice that, in contrast to the prior two problems,
                                                                      this section considered a case where the LLM agent acts
Now, if Mu is applied to the entire string x, the expected
                                                                      reliably, but not deterministically, hinting at further opportu-
number of times it needs to be applied to generate a com-
                                                                      nities to generalize this kind of analysis.
pletely correct solution is 2k . Since each application of Mu
is to the whole solution, the generation of each new solution
costs Θ(mu n2 ), and thus the total expected cost is                  3.4. Exercises
                                                                      The above three examples are intended as representatives of
              Θ(mu 2k n2 ) = Θ(mu 2k k 2 l2 ),            (12)        a vast space of possible LbAs for which asymptotic analysis
                                                                      is critical. To become more deeply acquainted with the
which is completely impractical even for any decently sized
                                                                      position of this paper, we invite the reader to conduct their
value of k. This huge expected cost could be a reason
                                                                      own analysis on variants of these problems as well as other
we have seen LLM-based optimization methods being ap-
                                                                      problems, such as the below:
plied mainly to small (though interesting and semantically
complex) problems: They are usually applied to the entire
solution all at once.                                                    • Sorting sets of large documents, e.g., for organizing le-
                                                                           gal arguments or prioritizing resumes (especially long
3.3.2. L OCAL M UTATION                                                    and plentiful resumes of AI agents themselves).

Suppose instead we have a programmatic way of determin-                  • Solving a text-based puzzle, e.g., reordering the shuf-
ing the boundaries of blocks (oracle decomposition), and,                  fled sentences of a novel to their original order.
instead of applying Mu to the entire solution at once, it is
                                                                         • Writing and refining a paper for submission to ICML.
applied to each block individually and in sequence, i.e., gen-
erating one updated block at a time. Then, each application              • Creating a policy proposal, e.g., to fight climate change
will cost Θ(mu l2 ), and the total expected cost will be                   or for pandemic response.
                         Θ(mu kl2 ).                      (13)           • Modifying the analyses in Section 3 with the assump-
                                                                           tion that the cost of an LLM forward pass is quadratic
3.3.3. I MPLICATIONS                                                       in the input size instead of linear.

The relative performance improvement of the local mutation               • Designing and booking an optimal k-night vacation
approach over the global one is enormous:                                  given a set of constraints.

                          Θ(2k k).                        (14)        We are curious to see what themes emerge from researchers
                                                                      with differing backgrounds approaching asymptotic analysis
Notice also that this improvement is before any considera-
                                                                      with LLM primitives in different ways on these problems
tion of model size, i.e., before considering that a capable
                                                                      and others. Further examples of problems ripe for such
local mutator agent might be substantially smaller than a
                                                                      analysis can be found in recent work (Chen et al., 2024).
global one. Of course, local mutations will not be suffi-
cient for all evaluation functions, particularly those that are
non-convex. However, they can still be quite powerful and             4. Alternative Views
practical tools, and gradient descent itself is in the most
                                                                      Now that we have made the case for the adoption of asymp-
basic sense a local variation operator.
                                                                      totic analysis with LLM primitives in the understanding and
Again, we invite the reader to look back at the assumptions           development of scaled LLM-based agentic systems, it is
made in this section and see where there is room for im-              worth reflecting on possible counterarguments to this po-
provement. For example, we assume that solutions here can             sition. Such an engagement can yield the identification of

                                                                  6
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

strengths and weaknesses of the position, and further promis-          scale modular and compute-optimized many-agent systems
ing directions of thinking thereby. We invite the reader to            in the real world. Once such superintelligence is achieved,
come up with alternative views beyond the ones discussed               the superintelligent AI itself will be capable of performing
here, as there are surely more and stronger ones.                      asymptotic analysis as it sees fit, and will be otherwise re-
                                                                       sponsible for developing future algorithmic insights leading
Alternative View 1: All the implications of such analysis              to scaled agentic systems. As there is some evidence of slow-
are things people would do anyway.                                     ing progress at the core of LLM development (Cyran, 2024;
                                                                       Booth, 2024), and there is always uncertainty of whether a
The intuition behind this view is that the algorithmic prop-           particular research direction will hit a fundamental wall, we
erties of agentic LLM systems are not that complicated,                believe that the orthogonal AALPs approach, which fore-
and optimal cost optimization of such systems will follow              grounds the advantages of many-agentness, is a worthwhile
naturally from the kinds of refinements researchers and engi-          complement to the direct approach of LLM improvement.
neers tend to do anyway. If true, this would be a huge blow            We also believe that since AALPs is such a fundamental
to the argument for AALPs, since it would not add any prac-            tool for understanding the behavior of agentic LLM-based
tical value to LLM-based systems, it would just serve as a             systems, and agentic decomposition is fundamentally es-
source of esoteric exercises for the algorithmically inclined.         sential to the optimal use of resources in the limit (i.e., a
However, we believe the evidence provided in Section 3 is              self-optimized superintelligence will not use its full power
sufficient to dispel this view, i.e., insights from the analysis       to do single-digit addition), such a superintelligence must
will have real-world impact on where human and computa-                rely on AALPs as it decides how to optimize its usage of
tional resources are focused, and thus have an impact on the           computational resources in the physical universe, and, for
timeline of deployment for scaled LLM agents.                          those human researchers developing and applying AALPs
                                                                       methods, having a superintelligence use your conceptual
Alternative View 2: Direct optimization for cost is good               technology is not such a bad academic legacy.
enough, without thinking about asymptotic behavior.
The view here is that for any given real-world LLM agentic             5. Research Directions
system, the general aymptotic limiting case is not as impor-
                                                                       The goal of this paper is to serve as a catalyst for the adop-
tant as the simple reality of optimizing for the problems the
                                                                       tion and development of asymptotic analysis with LLM
particular instantiation of the system faces today. This view
                                                                       primitives into the research and development of LLM-based
is similar to Alternative View 1, except that it’s focused
                                                                       agentic systems. As a result, the discussion has focused on
on particular instantiations of a system. For example, we
                                                                       high-level principles and minimal motivating examples to
might imagine an automated external optimization process
                                                                       highlight the central advantages of such analysis as clearly
that refines the design of an agentic system, e.g., modify-
                                                                       as possible, and many critical considerations have been thus
ing agent scopes, modifying the communication channels
                                                                       far ignored. This section enumerates several such consider-
between agents, and swapping out the underlying LLMs of
                                                                       ations, to serve as a scaffolding for future research.
different agents. However, although such a process could
yield meaningful speed-ups in special cases, the innovations
                                                                       5.1. Stochasticity and Error-correction
discovered in such a system would likely not generalize to
greater problem scales, i.e., in the scaling limit. This failure       For simplicity, the analysis in Sections 2 and 3 assumed
of generalization is common in systems overly-optimized to             that the constituent LLMs can execute capabilities in their
overly-specific use cases (Tan & Le, 2019). Although it can            scope reliably, i.e., the scenario where the LLM does not
be possible to mine general insights from such specialized             successfully fulfill its role is not considered. Of course,
innovations, most of the optimizations should be expected              LLMs today do make errors, even surprisingly simple ones
to lead to dead-ends at scale. AALPs is the tool to free cost          (Basmov et al., 2023; Williams & Huckle, 2024; Lehman
optimization from such tempting dead-ends.                             et al., 2025). A more complete analytical framework will
                                                                       take the likelihood of such errors into account. Initial work
Alternative View 3: We don’t need this for superintelli-               has developed core ideas in how error probabilities can
gence, and once we get superintelligence, it will optimize             compound even in the roll-outs of single LLMs (Dziri et al.,
everything better than humans ever could.                              2024); further work is needed to extend such insights to the
                                                                       realm of LLM agents. For example, ideas of error correction,
We believe this is currently the strongest case against                e.g., from information theory (Hamming, 1950; Pless, 2011),
AALPs. The view here is that progress is being made so                 could be integrated into agentic systems to reduce the impact
fast at the core of LLMs that we are bound to hit a level of           of errors at scale, akin to the centrality of error-correction
general intelligence and automated AI research capabilities            in quantum computing (Lidar & Brun, 2013; Roffe, 2019).
beyond that of human AI researchers before we need to

                                                                   7
                            Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

One open problem key to making such error correction work              a primitive with an assigned cost. A simple implication
is developing LLM agents whose errors are decorrelated.                could be that many visual tasks (when performed at scale)
Established theory of randomized algorithms will be an                 should be executed by compact vision-only models instead
essential resource for this project (Motwani & Raghavan,               of full-fledged multi-modal foundation models.
1996; Mitzenmacher & Upfal, 2017).
                                                                       5.5. Online Learning and Adaptation
5.2. Asynchrony and Distributed Algorithms
                                                                       This paper has focused on the case where all LLM training
Similarly, the examples in Section 3 did not consider po-              happens beforehand, and thus can be viewed as a fixed cost
tential (temporal) cost benefits from agents running asyn-             in comparison to the inference (forward-pass) costs of run-
chronously, in a distributed manner, or otherwise in parallel.         ning an LLM-agent system at scale over a long timeframe.
Such parallelization is extremely natural, especially if the           However, for more adaptive systems, it may be essential
central mechanism for achieving asymptotic improvements                to allow some form of agent learning during deployment.
is problem decomposition. Similar to the case of random-               Such learning could consist of the collection and refinement
ized algorithms above, existing methodologies for asymp-               of memories (represented in text) as the system encoun-
totic analysis in parallel, asynchronous, and distributed sys-         ters new scenarios (Park et al., 2023; Wang et al., 2024a),
tems (Akl, 1989; Baudet, 1978; Santoro, 2006), as well                 or fine-tuning updates through gradient descent (Hu et al.,
as classical multi-agent systems (Ferber & Weiss, 1999;                2023; Rannen-Triki et al., 2024; Ding et al., 2023; Han et al.,
Van der Hoek & Wooldridge, 2008; Hodjat et al., 1998),                 2024). In any case, the computational cost of such learning,
will be an invaluable resource, and the incorporation of               dependent on the size of the constituent LLM, will need to
such aspects will be required to clarify the full scope of the         be carefully incorporated into AALPs.
advantages of carefully designed LLM-agent systems.
                                                                       5.6. Ethics and Sentience
5.3. Automatic Decomposition
                                                                       Finally, one side benefit of highly-decomposed modular
A central motivating theme throughout this paper is the ex-            many-agent LLM systems is a potential massive reduction
pectation that the jobs of large and complex LLM-based                 in future machine suffering. As centralized AI systems
agentic systems can be usefully decomposed into subprob-               become larger and more capable, there are compelling ar-
lems, and some such decompositions lead to asymptotic                  guments that at some threshold of capabilities sentience
improvements over others. In the examples in Section 3                 has to emerge, at which point the AI system will likely
we assumed that effective decompositions were available a              endure astronomical levels of suffering (Metzinger, 2021;
priori or could be deduced programmatically (i.e., without             Saad & Bradley, 2022; Chiang, 2021). One avenue to min-
the use of LLMs). In practice, especially in more open-                imizing the likelihood of such suffering is to build highly-
ended systems where the full spectrum of tasks the system              decomposed many-agent systems that achieve the same pos-
might need to solve is not known beforehand, having auto-              itive impact of a centralized system, but, by minimizing the
matic decomposition methods will be critical to maintain-              capabilities and scope of each AI, reducing the chance that
ing/maximizing asymptotic performance. Such methods                    sentience will emerge. This argument is related to a posi-
will likely rely on LLMs themselves, in which case their               tion paper from last year, arguing that reducing the scope
cost must be incorporated into AALPs. There has been                   of AI memory will reduce the chance of suffering, since
some initial work on automatic agent decomposition (Wu                 memory is such a critical ingredient for suffering in humans
et al.; Song et al., 2024), but most is based on intuitive zero-       (Tkachenko, 2024). If complemented by further research in
shot approaches; much more asymptotically advantageous                 how sentience can emerge, AALPs could thus play a role in
approaches should be possible.                                         reducing the chance of immeasurable machine suffering.

5.4. Extensions to Other Modalities                                    6. Conclusion
This paper argues that AALPs is required to scale LLM                  This paper has claimed that asymptotic analysis with LLM
agents, but as agentic systems naturally grow alongside AI             primitives will be critical to the project of scaling LLM-
models that incorporate a greater and greater range of modal-          based agentic systems. The argument for this position was
ities (Team et al., 2023; Liang et al., 2024), the capabilities        developed through contextualization with existing work,
afforded by these modalities will naturally be incorporated            concrete examples of how such analysis can lead to impact-
into agentic systems; this process has already begun (Jiang            ful insights, and engagement with alternative views. Several
et al., 2024; Gao et al., 2024; Sarch et al., 2024). The same          important directions were then highlighted as a guide for
techniques used for AALPs will naturally extend to other               future research. Our hope is that this discussion will serve
modalities, by encapsulating the usage of each modality as             as a catalyst, motivating developers of LLM agents to care-

                                                                   8
                          Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

fully consider how their systems might scale, establishing          Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J.,
an exciting research project within the cutting edge of AI            Horvitz, E., Kamar, E., Lee, P., Lee, Y. T., Li, Y.,
for algorithmists and other academics who do not have ac-             Lundberg, S., et al. Sparks of artificial general intel-
cess to hyperscale computing resources, and, most of all, to          ligence: Early experiments with gpt-4. arXiv preprint
accelerate the real-world positive impact of LLM agents.              arXiv:2303.12712, 2023.
                                                                    Chen, L., Zaharia, M., and Zou, J. Frugalgpt: How to use
Impact Statement                                                      large language models while reducing cost and improving
This paper presents work whose goal is to advance the field           performance. arXiv preprint arXiv:2305.05176, 2023.
of artificial intelligence. There are many societal conse-          Chen, Y., Li, Y., Ding, B., and Zhou, J. On the design
quences that potentially follow from such work. One main              and analysis of llm-based algorithms. arXiv preprint
advantage of the approach advocated in this paper is the              arXiv:2407.14788, 2024.
potential reduction in future machine suffering, as discussed
in Section 5.6. Another advantage of the fact that AALPs            Chiang, T. Why computers won’t make themselves smarter.
leads naturally to maximally decomposed problem-solving               The New Yorker, 2021.
is that decomposed systems can be much more interpretable,
                                                                    Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C.
auditable, and therefore safer than a single opaque central-
                                                                      Introduction to algorithms. MIT press, 2022.
ized AI carrying out the same task, a point that has been
acknowledged in prior work (Khot et al., 2021; Sharkey              Cyran, R. Ai models’ slowdown spells end of gold rush era.
et al., 2025).                                                        Reuters, December 2024.
                                                                    Ding, N., Qin, Y., Yang, G., Wei, F., Yang, Z., Su, Y., Hu,
References                                                            S., Chen, Y., Chan, C.-M., Chen, W., et al. Parameter-
Aho, A. V. and Hopcroft, J. E. The design and analysis of             efficient fine-tuning of large-scale pre-trained language
  computer algorithms. Pearson Education India, 1974.                 models. Nature Machine Intelligence, 5(3):220–235,
                                                                      2023.
Akl, S. G. The design and analysis of parallel algorithms.
  Prentice-Hall, Inc., 1989.                                        Doerr, B. Probabilistic tools for the analysis of randomized
                                                                      optimization heuristics. Theory of evolutionary compu-
Anthropic. Anthropic API Pricing, 2025. URL                           tation: Recent developments in discrete optimization, pp.
  https://www.anthropic.com/pricing#                                 1–87, 2020.
  anthropic-api. Accessed: 2025-01-30.
                                                                    Doerr, B. and Neumann, F. A survey on recent progress in
Bäck, T., Fogel, D. B., and Michalewicz, Z. Handbook of              the theory of evolutionary algorithms for discrete opti-
  evolutionary computation. Release, 97(1):B1, 1997.                  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           Droste, S., Jansen, T., and Wegener, I. On the analysis of
  and blinds. arXiv preprint arXiv:2305.14785, 2023.                  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-
                                                                    Du, Y., Li, S., Torralba, A., Tenenbaum, J. B., and Mordatch,
  sity, 1978.
                                                                      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
                                                                    Dziri, N., Lu, X., Sclar, M., Li, X. L., Jiang, L., Lin, B. Y.,
  ACM conference on fairness, accountability, and trans-
                                                                     Welleck, S., West, P., Bhagavatula, C., Le Bras, R., et al.
  parency, pp. 610–623, 2021.
                                                                      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.
Bradley, H., Dai, A., Teufel, H. B., Zhang, J., Oostermeijer,       Faiz, A., Kaneda, S., Wang, R., Osi, R. C., Sharma, P., Chen,
  K., Bellagente, M., Clune, J., Stanley, K., Schott, G.,             F., and Jiang, L. Llmcarbon: Modeling the end-to-end
  and Lehman, J. Quality-diversity through ai feedback.               carbon footprint of large language models. In The Twelfth
  In The Twelfth International Conference on Learning                 International Conference on Learning Representations,
  Representations, 2024.                                              2024.

                                                                9
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Ferber, J. and Weiss, G. Multi-agent systems: an intro-               Knuth, D. E. The Art of Computer Programming: Funda-
  duction to distributed artificial intelligence, volume 1.             mental Algorithms, Volume 1. Addison-Wesley Profes-
  Addison-wesley Reading, 1999.                                         sional, 1968.

Gao, Z., Zhang, B., Li, P., Ma, X., Yuan, T., Fan, Y., Wu, Y.,        Landau, E. Handbuch der Lehre von der Verteilung der
  Jia, Y., Zhu, S.-C., and Li, Q. Multi-modal agent tuning:             Primzahlen, volume 1. BG Teubner, 1909.
  Building a vlm-driven agent for efficient tool usage. arXiv
  preprint arXiv:2412.15606, 2024.                                    Lee, K.-H., Fischer, I., Wu, Y.-H., Marwood, D., Baluja,
                                                                        S., Schuurmans, D., and Chen, X. Evolving deeper llm
Guo, T., Chen, X., Wang, Y., Chang, R., Pei, S., Chawla,                thinking. arXiv preprint arXiv:2501.09891, 2025.
  N. V., Wiest, O., and Zhang, X. Large language model
  based multi-agents: A survey of progress and challenges.            Lehman, J., Gordon, J., Jain, S., Ndousse, K., Yeh, C.,
  arXiv preprint arXiv:2402.01680, 2024.                                and Stanley, K. O. Evolution through large models. In
                                                                        Handbook of Evolutionary Machine Learning, pp. 331–
Hamming, R. W. Error detecting and error correcting codes.              366. Springer, 2023.
  The Bell system technical journal, 29(2):147–160, 1950.
                                                                      Lehman, J., Meyerson, E., El-Gaaly, T., Stanley, K. O.,
Han, Z., Gao, C., Liu, J., Zhang, J., and Zhang, S. Q.                  and Ziyaee, T. Evolution and the knightian blindspot
  Parameter-efficient fine-tuning for large models: A com-              of machine learning. arXiv preprint arXiv:2501.13075,
  prehensive survey. arXiv preprint arXiv:2403.14608,                   2025.
  2024.
                                                                      Liang, Z., Xu, Y., Hong, Y., Shang, P., Wang, Q., Fu, Q., and
Hodjat, B.  AI and agents.  AI Magazine, 45(1):                         Liu, K. A survey of multimodel large language models. In
 1–3, 2024.    doi: 10.1002/aaai.12170.   URL                           Proceedings of the 3rd International Conference on Com-
  https://onlinelibrary.wiley.com/doi/                                  puter, Artificial Intelligence and Control Engineering, pp.
 10.1002/aaai.12170.                                                    405–409, 2024.
Hodjat, B., Savoie, C. J., and Amamiya, M. An adaptive                Lidar, D. A. and Brun, T. A. Quantum error correction.
  agent oriented software architecture. In Proceedings of               Cambridge university press, 2013.
  the 5th Pacific Rim International Conference on Artificial
 Intelligence (PRICAI ’98), pp. 33–46, 1998.                          Lu, C., Lu, C., Lange, R. T., Foerster, J., Clune, J., and Ha,
                                                                        D. The ai scientist: Towards fully automated open-ended
Hu, N., Mitchell, E., Manning, C. D., and Finn, C. Meta-                scientific discovery. arXiv preprint arXiv:2408.06292,
  learning online adaptation of language models. In Pro-                2024.
  ceedings of the 2023 Conference on Empirical Methods
  in Natural Language Processing, pp. 4418–4432, 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
Huang, Q., Vora, J., Liang, P., and Leskovec, J. Bench-                 consumption. In First Conference on Language Modeling,
  marking large language models as ai research agents. In               2024.
 NeurIPS 2023 Foundation Models for Decision Making
 Workshop.                                                            Metzinger, T. Artificial suffering: An argument for a global
                                                                       moratorium on synthetic phenomenology. Journal of
Jiang, B., Xie, Y., Wang, X., Su, W. J., Taylor, C. J., and            Artificial Intelligence and Consciousness, 8(01):43–66,
   Mallick, T. Multi-modal and multi-agent systems meet                2021.
   rationality: A survey. In ICML 2024 Workshop on LLMs
   and Cognition, 2024.                                               Meyerson, E. and Miikkulainen, R. Modular universal repa-
                                                                       rameterization: Deep multi-task learning across diverse
Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B.,                domains. In Advances in Neural Information Processing
  Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and             Systems, volume 32, 2019.
  Amodei, D. Scaling laws for neural language models.
  arXiv preprint arXiv:2001.08361, 2020.                              Meyerson, E., Qiu, X., and Miikkulainen, R. Simple genetic
                                                                       operators are universal approximators of probability dis-
Khot, T., Khashabi, D., Richardson, K., Clark, P., and Sab-            tributions (and other advantages of expressive encodings).
  harwal, A. Text modular networks: Learning to decom-                 In Proceedings of the Genetic and Evolutionary Compu-
  pose tasks in the language of existing models. In Pro-               tation Conference, GECCO ’22, pp. 739–748, 2022.
  ceedings of the 2021 Conference of the North American
 Chapter of the Association for Computational Linguistics:            Meyerson, E., Nelson, M. J., Bradley, H., Gaier, A., Moradi,
 Human Language Technologies, pp. 1264–1279, 2021.                     A., Hoover, A. K., and Lehman, J. Language model

                                                                 10
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

  crossover: Variation through few-shot prompting. ACM                 Santoro, N. Design and analysis of distributed algorithms.
  Transactions on Evolutionary Learning, 4(4):1–40, 2024.                John Wiley & Sons, 2006.

Mitzenmacher, M. and Upfal, E. Probability and computing:              Sarch, G. H., Jang, L., Tarr, M. J., Cohen, W. W., Marino,
 Randomization and probabilistic techniques in algorithms                K., and Fragkiadaki, K. Vlm agents generate their own
 and data analysis. Cambridge university press, 2017.                    memories: Distilling experience into embodied programs
                                                                         of thought. In The Thirty-eighth Annual Conference on
Montanaro, A. Quantum algorithms: an overview. npj                       Neural Information Processing Systems, 2024.
 Quantum Information, 2(1):1–8, 2016.
                                                                       Sardana, N., Portes, J., Doubov, S., and Frankle, J. Beyond
Motwani, R. and Raghavan, P. Randomized algorithms.                      chinchilla-optimal: Accounting for inference in language
 ACM Computing Surveys (CSUR), 28(1):33–37, 1996.                        model scaling laws. In Forty-first International Confer-
                                                                         ence on Machine Learning, 2024.
Nisioti, E., Glanois, C., Najarro, E., Dai, A., Meyerson, E.,
  Pedersen, J. W., Teodorescu, L., Hayes, C. F., Sudhakaran,           Sedgewick, R. An introduction to the analysis of algorithms.
  S., and Risi, S. From text to life: On the reciprocal rela-            Pearson Education India, 1996.
  tionship between artificial life and large language models.
  In Artificial Life Conference Proceedings 36, volume                 Sharkey, L., Chughtai, B., Batson, J., Lindsey, J., Wu,
  2024, pp. 39. MIT Press One Rogers Street, Cambridge,                  J., Bushnaq, L., Goldowsky-Dill, N., Heimersheim, S.,
  MA 02142-1209, USA journals-info . . . , 2024.                         Ortega, A., Bloom, J., Biderman, S., Garriga-Alonso,
                                                                         A., Conmy, A., Nanda, N., Rumbelow, J., Wattenberg,
OpenAI. OpenAI API Pricing, 2025. URL https://                           M., Schoots, N., Miller, J., Michaud, E. J., Casper, S.,
  openai.com/api/pricing/. Accessed: 2025-01-                            Tegmark, M., Saunders, W., Bau, D., Todd, E., Geiger,
  30.                                                                    A., Geva, M., Hoogland, J., Murfet, D., and McGrath,
                                                                         T. Open problems in mechanistic interpretability, 2025.
Park, J. S., O’Brien, J., Cai, C. J., Morris, M. R., Liang,
                                                                         URL https://arxiv.org/abs/2501.16496.
  P., and Bernstein, M. S. Generative agents: Interactive
  simulacra of human behavior. In Proceedings of the 36th              Shekhar, S., Dubey, T., Mukherjee, K., Saxena, A., Tyagi,
  annual acm symposium on user interface software and                    A., and Kotla, N. Towards optimizing the costs of llm
  technology, pp. 1–22, 2023.                                            usage. arXiv preprint arXiv:2402.01742, 2024.
Pless, V. Introduction to the theory of error-correcting codes.        Song, L., Liu, J., Zhang, J., Zhang, S., Luo, A., Wang,
  John Wiley & Sons, 2011.                                               S., Wu, Q., and Wang, C. Adaptive in-conversation
                                                                         team building for language model agents. arXiv preprint
Qian, C., Liu, W., Liu, H., Chen, N., Dang, Y., Li, J., Yang,
                                                                         arXiv:2405.19425, 2024.
  C., Chen, W., Su, Y., Cong, X., et al. Chatdev: Commu-
  nicative agents for software development. In Proceed-                Stoica, I., Zaharia, M., Gonzalez, J., Goldberg, K., Zhang,
  ings of the 62nd Annual Meeting of the Association for                 H., Angelopoulos, A., Patil, S. G., Chen, L., Chiang, W.-
  Computational Linguistics (Volume 1: Long Papers), pp.                 L., and Davis, J. Q. Specifications: The missing link to
  15174–15186, 2024.                                                     making the development of llm systems an engineering
                                                                         discipline. arXiv preprint arXiv:2412.05299, 2024.
Rannen-Triki, A., Bornschein, J., Pascanu, R., Hutter, M.,
  György, A., Galashov, A., Teh, Y. W., and Titsias, M. K.            Sypherd, C. and Belle, V. Practical considerations for agen-
  Revisiting dynamic evaluation: Online adaptation for                   tic llm systems. arXiv preprint arXiv:2412.04093, 2024.
  large language models. arXiv preprint arXiv:2403.01518,
  2024.                                                                Tan, M. and Le, Q. Efficientnet: Rethinking model scal-
                                                                         ing for convolutional neural networks. In International
Roffe, J. Quantum error correction: an introductory guide.               conference on machine learning, pp. 6105–6114. PMLR,
  Contemporary Physics, 60(3):226–245, 2019.                             2019.
Romera-Paredes, B., Barekatain, M., Novikov, A., Balog,                Tay, Y., Bahri, D., Yang, L., Metzler, D., and Juan, D.-C.
  M., Kumar, M. P., Dupont, E., Ruiz, F. J., Ellenberg, J. S.,           Sparse sinkhorn attention. In International Conference
  Wang, P., Fawzi, O., et al. Mathematical discoveries from              on Machine Learning, pp. 9438–9447. PMLR, 2020.
  program search with large language models. Nature, 625
  (7995):468–475, 2024.                                                Team, G., Anil, R., Borgeaud, S., Alayrac, J.-B., Yu, J., Sori-
                                                                         cut, R., Schalkwyk, J., Dai, A. M., Hauth, A., Millican,
Saad, B. and Bradley, A. Digital suffering: Why it’sa prob-              K., et al. Gemini: a family of highly capable multimodal
  lem and how to prevent it. Inquiry, pp. 1–36, 2022.                    models. arXiv preprint arXiv:2312.11805, 2023.

                                                                  11
                           Scaling LLM Agents Requires Asymptotic Analysis with LLM Primitives

Tkachenko, Y. Position: Enforced amnesia as a way to miti-            Yang, C., Wang, X., Lu, Y., Liu, H., Le, Q. V., Zhou, D., and
  gate the potential risk of silent suffering in the conscious          Chen, X. Large language models as optimizers. In The
  ai. In Forty-first International Conference on Machine                Twelfth International Conference on Learning Represen-
  Learning, 2024.                                                       tations, 2024. URL https://openreview.net/
                                                                        forum?id=Bb4VGOWELI.
Turing, A. On computable numbers, with an application to
  the entscheidungs problem. Proceedings of the London                Yu, H., Hong, Z., Cheng, Z., Zhu, K., Xuan, K., Yao, J.,
  Mathematical Society Series/2 (42), pp. 230–42, 1936.                 Feng, T., and You, J. Researchtown: Simulator of human
                                                                        research community. arXiv preprint arXiv:2412.17767,
Urlana, A., Kumar, C. V., Singh, A. K., Garlapati, B. M.,
                                                                        2024.
  Chalamala, S. R., and Mishra, R. Llms with industrial
  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.
Vaswani, A. Attention is all you need. Advances in Neural
  Information Processing Systems, 2017.
Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu,
 Y., Fan, L., and Anandkumar, A. Voyager: An open-ended
 embodied agent with large language models. Transac-
 tions on Machine Learning Research, 2024a. ISSN 2835-
 8856. URL https://openreview.net/forum?
 id=ehfRiF0R3a.
Wang, L., Ma, C., Feng, X., Zhang, Z., Yang, H., Zhang, J.,
 Chen, Z., Tang, J., Chen, X., Lin, Y., et al. A survey on
 large language model based autonomous agents. Frontiers
 of Computer Science, 18(6):186345, 2024b.
Williams, S. and Huckle, J. Easy problems that llms get
 wrong. arXiv preprint arXiv:2405.19616, 2024.
Witt, C. Tight bounds on the optimization time of a random-
 ized search heuristic on linear functions. Combinatorics,
 Probability and Computing, 22(2):294–318, 2013.
Wu, Q., Bansal, G., Zhang, J., Wu, Y., Li, B., Zhu, E., Jiang,
 L., Zhang, X., Zhang, S., Liu, J., et al. Autogen: Enabling
 next-gen llm applications via multi-agent conversation. In
 ICLR 2024 Workshop on Large Language Model (LLM)
 Agents.
Wu, X., Wu, S.-h., Wu, J., Feng, L., and Tan, K. C. Evolu-
 tionary computation in the era of large language model:
 Survey and roadmap. arXiv preprint arXiv:2401.10034,
 2024.
Xi, Z., Chen, W., Guo, X., He, W., Ding, Y., Hong, B.,
  Zhang, M., Wang, J., Jin, S., Zhou, E., et al. The rise and
  potential of large language model based agents: A survey.
  Science China Information Sciences, 68(2):121101, 2025.
Yan, Y., Zeng, Q., Zheng, Z., Yuan, J., Feng, J., Zhang,
  J., Xu, F., and Li, Y. Opencity: A scalable platform to
  simulate urban activities with massive llm agents. arXiv
  preprint arXiv:2410.21286, 2024.

                                                                 12
