--- title: 'LAMaS: A Modular Platform for Learning Low-Latency Multi-Agent Orchestration' authors: ['Xi Shi', 'Mengxin Zheng', 'Qian Lou'] date: 2026-11-10 categories: ['cs.MA', 'cs.AI', 'cs.CL'] tags: ['multi_agent', 'system_design'] source_id: '2601.10560' source_url: 'https://arxiv.org/abs/2601.10560' description: 'In a multi-agent system (MAS), removing an expensive agent call can save tokens without making the answer arrive sooner: latency depends on the longest chain of dependent calls. We present...' keywords: ['cs.MA', 'cs.AI', 'cs.CL', 'LAMaS', 'Modular', 'Platform'] canonical: 'https://dailyreading.cc/records/arxiv_2601.10560' --- # LAMaS: A Modular Platform for Learning Low-Latency Multi-Agent Orchestration ### Xi Shi Mengxin Zheng Qian Lou LoopLeap Lab, University of Central Florida {xi320101, mengxin.zheng, qian.lou}@ucf.edu GitHub: ![](figures/arxiv_2601.10560/_page_0_Figure_4.jpeg) Figure 1: LAMaS connects agent frameworks to model servers and returns an answer and execution trace for each query. We integrate the full pipeline into GDesigner and AgentDropout, retaining each framework's graph builder and retraining the execution controller on its traces. ## Abstract In a multi-agent system (MAS), removing an expensive agent call can save tokens without making the answer arrive sooner: latency depends on the longest chain of dependent calls. We present Latency-Aware Multi-agent System (LAMaS), a modular platform for learning low-latency orchestration. A framework can send a query to LAMaS and receive an answer and execution trace, or keep its own graph builder and use the platform's latency-optimized orchestration layer. During training, the layer gives operators on the critical path the greatest latency penalty while targeting a floor on expected accuracy. During inference, a lightweight controller uses partial results to decide whether to skip work that has yet to start. Across four benchmarks, LAMaS reduces end-to-end latency by over 50% relative to the evaluated learning-based MAS baselines while maintaining competitive or better accuracy. GDesigner and AgentDropout retain their graph builders and train the controller on their own traces; both achieve lower latency across the same benchmarks. ## 1 Introduction Multi-agent systems (MAS) use specialized agents to extend the reasoning capabilities of large language models (LLMs) [Li et al., 2023,](#page-11-0) [Wu et al., 2024,](#page-12-0) [Hong et al., 2024](#page-10-0). As the number of agents and interactions grows, inference latency becomes a bottleneck [Chen et al., 2025,](#page-10-1) [Shi et al.,](#page-11-1) Preprint. ![](figures/arxiv_2601.10560/_page_1_Figure_0.jpeg) Figure 2: Two execution graphs that produce the same answer at similar cost but differ in latency. Nodes denote agent invocations and arrows denote data flow; red edges mark the critical execution path, the longest chain of dependencies that must complete before an answer is available. Graph B has a shorter critical path and therefore lower wall-clock latency than Graph A. [2026,](#page-11-1) [Kabir et al., 2026a](#page-10-2)[,b](#page-10-3): tasks in computer use [Abhyankar et al., 2026](#page-10-4) and autonomous research [Kang et al., 2025](#page-10-5) can take 10–60 minutes. Quantization can speed up individual model calls [Lou](#page-11-2) [et al., 2020,](#page-11-2) [Zhao et al., 2021](#page-13-0), but the time a user waits also depends on which calls must finish before others can start. We introduce Latency-Aware Multi-agent System (LAMaS), a modular platform that separates an agent framework's choice of operators from how it learns and executes low-latency workflows (Figure [1\)](#page-0-0). Applications can submit queries through an OpenAI-compatible endpoint. Framework developers can instead keep their graph builder and adopt the orchestration layer's training objective and execution controller (Section [5\)](#page-9-0). Existing methods learn to orchestrate agents for accuracy and inference cost [Zhang et al., 2025a,](#page-12-1) [Wang et al., 2025c,](#page-12-2) [Zhang et al., 2025c](#page-12-3)[,d,](#page-12-4) [Wang et al., 2025b,](#page-11-3)[a,](#page-11-4) [Yao et al., 2025](#page-12-5). Cost adds up across calls; latency follows the *critical path*, the longest chain of dependent calls measured in time. Figure [2](#page-1-0) shows why the distinction matters: two graphs produce the same answer at similar cost, but the one with the shorter critical path finishes sooner. Training and execution call for different decisions. When learning a graph, a uniform latency penalty gives the same signal to operators that delay the answer and those that finish in parallel. LAMaS assigns credit according to each operator's contribution to the critical path and uses Lagrangian relaxation to optimize latency and cost subject to a floor on expected accuracy. At inference time, the graph alone cannot anticipate agreement among early answers. As operators finish, a lightweight controller scores the partial execution under the same objective and decides whether to start more work. We evaluate LAMaS on GSM8K [Cobbe et al., 2021](#page-10-6), HumanEval [Chen et al., 2021](#page-10-7), MATH [Hendrycks et al., 2021](#page-10-8), and MMLU-Pro [Wang et al., 2024](#page-11-5) against MaAS [Zhang et al., 2025a](#page-12-1), GDesigner [Zhang et al., 2025c](#page-12-3), and AgentDropout [Wang et al., 2025c](#page-12-2). LAMaS has the lowest latency of the evaluated MAS on all four benchmarks, with competitive or better accuracy. We also integrate the layer into GDesigner and AgentDropout: each retains its own graph builder, trains with critical-path credit, and fits the controller to its own execution traces. Both integrations reduce latency across all four benchmarks (Table [3\)](#page-9-1). ## 2 Related Work LLM-Based Multi-Agent Systems. Multi-Agent Systems built on LLMs decompose complex problems into subtasks handled by specialized agents. Early frameworks such as CAMEL [Li et al.,](#page-11-0) [2023](#page-11-0), AutoGen [Wu et al., 2024](#page-12-0), and MetaGPT [Hong et al., 2024](#page-10-0) demonstrated the potential of collaborative problem-solving through role-playing and structured communication. However, these approaches rely on static, hand-crafted topologies that are labor-intensive to design and difficult to adapt across tasks and difficulty levels. Automated Multi-Agent Orchestration. To overcome the rigidity of manual designs, recent work treats orchestration as a search or optimization problem. AnyMAC [Wang et al., 2025a](#page-11-4), SeqCV [Yao et al., 2025](#page-12-5), and Gated-Memory Routing [Rajib et al., 2026a](#page-11-6) dynamically adjust chain length per query. Aflow [Zhang et al., 2025d](#page-12-4) and EvoAgentX [Wang et al., 2025b](#page-11-3) search over execution topologies using evolutionary or flow-based methods. MaAS [Zhang et al., 2025a](#page-12-1) models the search space as a probabilistic agentic supernet and trains an orchestrator via policy gradient. AgentPrune [Zhang et al., 2025b](#page-12-6) prunes redundant communication messages to obtain more economical communication topologies, while AgentDropout [Wang et al., 2025c](#page-12-2) dynamically eliminates redundant agents and communication to improve token efficiency. GDesigner [Zhang](#page-12-3) [et al., 2025c](#page-12-3) uses graph neural networks to architect communication topologies. These methods primarily optimize task performance, token efficiency, or inference cost. In contrast, latency is a graph-level systems objective whose bottlenecks are concentrated on the critical execution path, making it difficult to optimize with uniform additive rewards alone. INFRAMIND [Kabir et al.,](#page-10-3) [2026b](#page-10-3) conditions planning, per-step routing, and scheduling on the runtime state of the serving infrastructure. Orthogonally, systems-level latency management methods such as Kairos [Chen et al.,](#page-10-1) [2025](#page-10-1), HW-Router [Kabir et al., 2026a](#page-10-2), and AgentServeSim [Rajib et al., 2026b](#page-11-7) optimize serving, batching, or runtime scheduling, and KV-cache reuse across contexts and model checkpoints [Shi](#page-11-1) [et al., 2026](#page-11-1) avoids repeated computation on shared text; both are complementary to our focus on learning latency-aware orchestration policies. Latent Communication and Agentic Routing. LatentMAS [Zou et al., 2026](#page-13-1) is a training-free method that replaces text-based communication among agents with the exchange of latent (hiddenstate) representations, reducing decoding and communication overhead. GraphPlanner [Feng et al.,](#page-10-9) [2026](#page-10-9) performs agentic routing, selecting an (LLM backbone, agent role) pair at each step to improve accuracy and reduce computational cost, which accumulates additively over the steps of the resulting trajectory. LAMaS differs from both in problem setting, graph construction, execution control, and latency optimization: it samples operator execution graphs and optimizes their critical-path latency under an explicit accuracy floor, assigns latency credit to operators according to path criticality, and adds an inference-time controller that eliminates operators not yet launched. Because an operator off the critical path adds cost but not latency, additive cost and wall-clock latency are distinct objectives; latent communication, in turn, reduces per-operator overhead rather than selecting which operators to execute, and is therefore complementary to our approach. LLM routers such as R2-Router [Xue](#page-12-7) [et al., 2026](#page-12-7), which jointly select an LLM and an output-length budget for each query, are likewise complementary. Model-Level Efficiency. Model compression reduces the cost of each model invocation, for example through mixed-precision quantization [Lou et al., 2020,](#page-11-2) [Zhao et al., 2021](#page-13-0), weighted low-rank factorization [Hsu et al., 2022](#page-10-10), and dictionary lookups that replace dense weight matrices [Lou et al.,](#page-11-8) [2022a](#page-11-8)[,b](#page-11-9). These model-level techniques are complementary to workflow-level latency optimization such as LAMaS, which targets the critical execution path across agent calls. ### 3 Methodology ### 3.1 Problem Setting We consider a query-dependent multi-agent system (MAS) that dynamically composes a set of *agentic operators* to solve an input problem. An agentic operator is the basic execution unit, representing a composite agent invocation that may involve multiple LLM calls and external tool usage. Given a query x, the orchestrator constructs an execution graph G = (V, E), a directed acyclic graph (DAG) where each node o ∈ V is an operator invocation. The edge set E is induced by operator I/O flow: an edge (oi , oj ) ∈ E exists when the output produced by oi is used as input by oj during execution. We define the *critical path* as the longest path in G measured by execution time: $$T = \max_{p \in \text{Paths}(\mathcal{G})} \sum_{o \in p} t(o), \tag{1}$$ where t(o) denotes the execution time of operator o, and Paths(G) denotes all source-to-sink paths in G. The critical path determines the end-to-end latency: operators off the critical path do not affect ![](figures/arxiv_2601.10560/_page_3_Figure_0.jpeg) Figure 3: Training and inference in the LAMaS orchestration layer. (1) Material: A library of reusable operators and tools. (2) Training: Phase 1 performs latency-aware graph optimization via Lagrangian-constrained learning and critical-path credit assignment, where S0 denotes the target accuracy floor enforced during optimization. Phase 2 trains a lightweight execution controller on the orchestrator's traces to predict the control advantage. (3) Inference: The trained orchestrator first constructs the execution graph; the execution controller then performs online execution control, monitoring operator completions and adaptively eliminating redundant future agent interactions. wall-clock time. In contrast, the total execution cost accumulates additively across all operators: C = P o∈V c(o). Latency and cost therefore diverge. Our goal is to learn an orchestrator that preserves task accuracy while minimizing end-to-end latency. Execution and final-answer semantics. Operators in G produce *candidate solutions* rather than final answers: every completed answer-producing operator contributes its output(s) to a shared candidate pool. The final answer is always emitted by a designated terminal stage (the sink of G) applied to this pool: when several candidates are present, it selects one (e.g., via the self-consistency ensemble); when only one is present, that candidate passes through unchanged. This holds for both full and early-stopped executions. When the execution controller (Section [3.6\)](#page-5-0) stops an execution early, it only prevents operators that have not been launched from starting; operators already launched finish normally, and the terminal stage then runs once on the resulting candidates. ### 3.2 Orchestrator Architecture LAMaS represents the orchestrator as a policy network over an *agentic supernet*—a probabilistic DAG over a fixed set of candidate operators O (a formulation also adopted by [Zhang et al.](#page-12-1) [2025a](#page-12-1)). The latency-aware training and credit assignment introduced below are agnostic to the specific architectural choice and apply to any orchestrator that produces a differentiable distribution over execution graphs. The orchestrator constructs G by sampling operators step-by-step, with the generation probability factorized as: $$P_{\theta}(\mathcal{G}|x) = \prod_{\ell=1}^{L} \pi_{\theta}(\mathcal{V}_{\ell} \mid x, \mathcal{G}_{1:\ell-1}), \tag{2}$$ where Vℓ ⊆ O is the operator subset selected at step ℓ. The network produces a query-aware operatorlevel policy via softmax over activation logits; we denote the resulting probability of operator o by so := pθ(o | x, G1:ℓ−1). Operators are sampled from this policy sequentially without replacement until their cumulative probability first exceeds a threshold τ : $$V_{\ell} = \{o_1, \dots, o_k\}, \quad k = \min\{j : \sum_{i=1}^{j} s_{o_i} > \tau\},$$ (3) enabling the architecture to dynamically adjust width and depth per query. ### 3.3 Training-Time Constrained Optimization Existing multi-agent orchestration methods typically combine accuracy and cost into a single weighted reward (e.g., R = S − λcC). However, as discussed in Section 1, latency and cost are structurally different objectives. Because latency is governed by the critical path, uniform penalties provide weak operator-level attribution; without an explicit accuracy floor, latency-driven optimization can degrade task performance; and a graph fixed at training time cannot leverage execution-time evidence. LAMaS addresses these via critical-path-aware credit assignment, an accuracy floor enforced by Lagrangian relaxation, and a lightweight execution-time controller. We therefore formulate MAS orchestration as a constrained optimization: $$\min_{\theta} \mathbb{E}[\lambda_t T + \lambda_c C], \quad \text{s.t.} \quad \mathbb{E}[S] \ge S_0, \tag{4}$$ where S ∈ {0, 1} is the task score, C is the execution cost in USD per query, T is the end-to-end wallclock latency in seconds per query, and λt, λc are fixed weights controlling the relative importance of latency and cost. Here, S0 is a fixed target accuracy floor on E[S], rather than a per-instance requirement, and in practice is set to the architecture's reference accuracy (see the appendix for sensitivity to different floors). The accuracy floor S0 acts as a "do-no-harm" constraint: LAMaS reduces latency without falling below the reference accuracy of the underlying architecture. In our main experiments, S0 is set to the validation accuracy of the same orchestrator trained with λt = 0; we analyze sensitivity to S0 in the appendix. We solve the constrained problem via Lagrangian relaxation with an adaptive dual variable: $$R = \lambda_S \frac{S}{S_0} - \lambda_t T - \lambda_c C, \tag{5}$$ where λS is the dual variable updated via projected gradient ascent: $$\lambda_S \leftarrow \max\left(0, \ \lambda_S + \eta\left(1 - \frac{\bar{S}}{S_0}\right)\right),$$ (6) where S¯ denotes the batch-averaged accuracy and η is the dual learning rate. When accuracy drops below S0, λS automatically increases to prioritize correctness; when accuracy is satisfied, λS decreases to allow more aggressive latency reduction. This adaptive coupling removes the need to hand-tune a fixed accuracy–latency trade-off weight. ### 3.4 Critical-Path-Aware Credit Assignment End-to-end latency is determined by the critical path. Applying the latency penalty uniformly to all operators creates a mismatch in operator-level credit assignment: operators that have little or no influence on T receive the same gradient as bottleneck operators on the critical path. We therefore use a soft bottleneck-aware weighting that preserves full penalty on the realized critical path while assigning attenuated latency credit to operators on near-critical paths. For each operator o in the realized execution graph G, let ℓ(o) denote the latency of the longest path passing through o, and define the path-criticality weight $$w(o) = \frac{\ell(o)}{T} \in [0, 1]. \tag{7}$$ By construction w(o) = 1 exactly when o lies on the critical path, w(o) ≈ 1 for operators on near-critical paths, and w(o) ≪ 1 for operators whose longest containing path is far below T. We assign operator-level rewards as $$R(o) = \lambda_S \frac{S}{S_0} - \lambda_t w(o) T - \lambda_c C, \qquad (8)$$ so each operator receives a fraction w(o) of the global latency penalty −λtT: critical-path operators are penalized in full, near-critical operators receive a smoothly attenuated share, and operators with negligible w(o) get effectively no latency signal. This biases the gradient toward bottleneck operators while preserving softer latency attribution for near-critical paths; the values ℓ(o), and hence w(o), are obtained alongside the critical path itself via a single forward/backward pass over G. #### 3.5 Learning Objective The orchestrator is trained with policy gradient optimization. Let $\xi$ denote the trajectory of operator selections; the loss is $$\mathcal{L}(\theta) = -\mathbb{E}_{\xi \sim \pi_{\theta}} \left[ \sum_{\ell=1}^{L} \sum_{o \in \mathcal{V}_{\ell}} R(o) \log p_{\theta}(o \mid x, \mathcal{G}_{1:\ell-1}) \right]. \tag{9}$$ To reduce variance, we normalize rewards using exponential moving averages (EMA). Specifically, we maintain running estimates $\hat{\mu}$ and $\hat{\sigma}^2$ of the mean and variance of R(o) with momentum 0.95, and normalize each reward as $(R(o) - \hat{\mu})/\hat{\sigma}$ before computing the policy gradient; this is more stable than per-batch normalization for small batch sizes. #### 3.6 Inference-Time Execution Control Because the orchestrator can activate multiple operators per step (Section 3.2), multiple candidate outputs become available as an execution proceeds, so answer consensus among completed candidates is well-defined at intermediate decision points. The orchestrator commits to the full execution graph based solely on the query x, but each operator completion reveals new information—output content, emerging answer consensus, and elapsed time—unavailable at construction time [Rajib et al., 2026a]. LAMaS therefore augments graph construction with an execution-time controller, implemented as a lightweight learned module. This controller can be viewed as performing an online elimination of redundant future agent interactions: at each operator completion, it evaluates whether the current partial execution should be retained or whether additional agent interactions remain worthwhile, by predicting the *control advantage*—how much better (or worse) the current partial execution would be compared to running all operators: $$\Delta_k = R_k - R_N,\tag{10}$$ where $R_k$ is the Lagrangian reward (Eq. 5) evaluated at the k-th operator completion and $R_N$ is the reward under full execution. $R_k$ is a counterfactual stop-at-k evaluation: the reward that would be obtained if execution stopped right after the k-th operator completion, i.e., if the final answer were produced from the candidates available at that point. It is computed only offline, from the full-execution traces recorded for controller training (described below); at inference time $R_k$ is never computed, and a final answer is produced exactly once, when execution actually stops. $\Delta_k > 0$ means the current partial execution is preferable because it preserves accuracy while reducing latency; $\Delta_k < 0$ means additional agent interactions remain beneficial. The controller is a small MLP that takes execution-state features as input and predicts $\hat{\Delta}_k$ : $$\hat{\Delta}_k = \text{Controller}_{\phi} \left( \frac{n_{\text{completed}}}{n_{\text{total}}}, \frac{\text{max\_agree}}{n_{\text{cand}}}, \text{Compress}(q) \right), \tag{11}$$ where $n_{\rm completed}$ is the number of operators that have finished execution at the current decision point, $n_{\rm total}$ is the total number of operators scheduled in the sampled execution graph, $n_{\rm cand}$ is the number of candidate answers extracted from the completed operators, and $\max_{\rm agree}$ is the size of the largest cluster of mutually agreeing answers among these candidates. The first feature thus measures execution progress and the second the current rate of agreement (answer consensus); $\operatorname{Compress}(q)$ is a learned low-dimensional projection of the query embedding for difficulty awareness. We define consensus via task-specific semantic equivalence of the current operator outputs: for GSM8K and MATH, we extract the boxed answer (or, if absent, the final numeric answer) and compare exact matches; for MMLU-Pro, we extract the predicted option letter and compare exact matches; for HumanEval, we regard two outputs as agreeing if they induce the same pass/fail outcomes on the test cases available during execution (i.e., the same execution feedback used by the **Test** operator). The predicted advantage is converted to a selection score via: $$p(\text{select current}) = \sigma(\hat{\Delta}_k/\sigma_{\Delta}),$$ (12) where $\sigma_{\Delta} = \text{std}(\{\Delta_k \mid \Delta_k > 0\})$ is computed from training data. At inference time, we sample the retain/eliminate decision from this Bernoulli score at each decision point. Controller training. The execution controller is trained *after* the orchestrator converges, using execution traces collected by running the frozen orchestrator on the training set. For each query, all operators are executed to completion, and ∆k is computed for every decision point k. The controller is trained via MSE regression: minϕ E[(∆ˆ k − ∆k) 2 ]. Since Rk uses the same Lagrangian reward as the orchestrator, the controller inherits the orchestrator's latency-aware objective under the same accuracy floor—in particular, the dual variable λS encodes how difficult accuracy is to maintain, automatically calibrating the controller's aggressiveness. The full training and inference procedure is summarized in Appendix [C.3](#page-15-0) (Algorithm [1\)](#page-16-0). Phase 1 trains the orchestrator with Lagrangian-constrained policy gradient and critical-path credit assignment. Phase 2 trains the execution controller on traces from the frozen orchestrator to predict the control advantage. ## 4 Experiments ### 4.1 Experimental Setup Benchmarks & Tasks. We evaluate our method on four benchmarks spanning three task categories. For HUMANEVAL, GSM8K, and MATH, we follow the same training and evaluation splits as MaAS [Zhang et al., 2025a](#page-12-1); for MMLU-PRO [Wang et al., 2024](#page-11-5), we construct our own stratified train/test split from the official test set. Detailed split statistics are provided in Appendix [B.3.](#page-14-0) For code generation, we use HUMANEVAL, which measures functional correctness of Python programs generated from natural language descriptions. For mathematical reasoning, we use GSM8K and MATH, which consist of grade-school and competition-level math problems requiring multi-step reasoning. For knowledge reasoning, we use MMLU-PRO, which covers diverse professional-level questions requiring multi-step reasoning. Baselines. We compare against two categories of baselines: (i) non-MAS prompting strategies— Generate (direct single-step answer), CoT [Wei et al., 2022](#page-12-8), and SC [Wang et al., 2023](#page-11-10); and (ii) learned MAS orchestrators—GDesigner [Zhang et al., 2025c](#page-12-3), AgentDropout [Wang et al., 2025c](#page-12-2), and MaAS [Zhang et al., 2025a](#page-12-1). Detailed per-baseline configurations are provided in Appendix [B.4.](#page-14-1) Evaluation Metrics. We evaluate all methods using three metrics: task performance, API cost, and latency. For task performance, we report pass@1 on HUMANEVAL, and accuracy on GSM8K, MATH, and MMLU-PRO. API cost is measured as the average per-query monetary cost (in units of ×10−4 USD) incurred by LLM API calls. For latency, we directly measure the end-to-end wall-clock execution time, reported as the average latency per query (in seconds). All methods in Tables [1–](#page-7-0)[3](#page-9-1) that use API-served backbones are evaluated under the same API provider and execution runtime, without response caching, and latency is averaged over 3 independent runs. The end-to-end latency is determined by the critical execution path as defined in Section 3.1. We also report CP Tokens, the average number of output tokens generated along the critical execution path, as a complementary structural indicator of critical-path workload. Implementation Details. We use the closed-source LLM gpt-4o-mini-0718 [OpenAI, 2024](#page-11-11). The latency penalty is set to λt = 0.005, the activation threshold to τ = 0.3, and the supernet has L = 4 layers; we report sensitivity to each of these in the appendix. The target accuracy floor S0 is set to the validation accuracy of the same orchestrator trained without latency optimization (i.e., λt = 0), so the constraint measures whether latency reduction is achieved while maintaining the reference accuracy level of the underlying architecture. Remaining training hyperparameters are listed in Appendix [B.2.](#page-14-2) All results are averaged over 3 independent runs. #### 4.2 Result Analysis We analyze the results from three perspectives: evaluated learning-based MAS baselines, the full set of baselines, and component-wise ablations. Comparison with evaluated learning-based MAS baselines. Table [1](#page-7-0) shows that LAMaS consistently reduces end-to-end latency by 55.6–75.6% relative to the strongest evaluated learning-based MAS baselines while maintaining competitive or better accuracy. The reduction co-occurs with Table 1: Comparison with non-MAS and MAS baselines across four benchmarks. Each cell reports mean ± standard deviation across 3 independent runs. For MAS methods, the best mean in each column per dataset is shown in bold. Cost is reported in units of ×10−4 USD. Latency is the average end-to-end wall-clock time per query (in seconds). CP Tokens denotes the average number of output tokens on the critical execution path. | Dataset | Method | Acc (%) ↑ | Cost (×10−4
) ↓ | Latency (s) ↓ | CP Tokens ↓ | |-----------|--------------------------------------------|------------------------------------------------------|------------------------------------------------------|---------------------------------------------------------|----------------------------------------------| | GSM8K | Generate
CoT
SC | 87.46±0.20
88.97±0.43
89.86±0.19 | 2.87±0.05
4.53±0.04
18.61±0.09 | 5.43±0.18
6.92±0.21
10.64±0.27 | 280±8
331±15
591±22 | | | GDesigner
AgentDropout
MaAS
LAMaS | 93.30±0.93
93.11±0.27
93.36±0.72
93.65±0.41 | 17.86±0.28
53.81±6.78
31.52±0.78
7.71±0.94 | 32.31±1.07
81.24±12.74
48.11±3.49
11.73±1.13 | 1624±29
4098±538
2501±53
622±87 | | HumanEval | Generate
CoT
SC | 84.73±1.32
85.50±3.05
86.26±0.76 | 5.11±0.06
7.24±0.32
28.15±0.13 | 10.23±0.71
14.87±1.04
20.41±0.57 | 513±31
780±47
1105±38 | | | GDesigner
AgentDropout
MaAS
LAMaS | 85.50±2.02
86.01±2.20
93.38±1.17
95.42±1.53 | 19.86±2.46
27.73±1.32
28.18±1.21
12.92±1.16 | 49.68±5.62
51.49±6.93
47.32±2.93
21.00±2.84 | 2983±489
3043±218
2708±109
1180±187 | | MATH | Generate
CoT
SC | 50.62±1.09
51.23±1.15
51.85±1.23 | 6.38±0.14
10.24±0.07
42.41±0.27 | 10.17±0.34
21.03±0.31
27.62±0.41 | 491±19
992±21
1340±24 | | | GDesigner
AgentDropout
MaAS
LAMaS | 50.82±0.71
52.47±0.94
52.67±0.82
53.29±1.25 | 30.17±2.27
97.23±8.61
65.39±1.19
28.74±3.05 | 60.71±5.83
176.42±19.18
109.87±5.92
28.41±4.27 | 3155±246
8693±974
5602±116
1452±232 | | MMLU-Pro | Generate
CoT
SC | 54.47±1.14
56.80±3.03
58.67±1.21 | 1.05±0.08
2.41±0.15
14.88±0.18 | 2.68±0.22
6.27±0.46
10.53±0.49 | 136±7
361±14
620±12 | | | GDesigner
AgentDropout
MaAS
LAMaS | 64.27±3.63
61.87±2.31
65.40±3.08
66.27±1.96 | 25.03±0.42
76.13±1.41
30.37±2.56
10.93±1.39 | 46.66±2.47
119.33±14.68
49.12±5.13
14.81±1.92 | 2750±41
6560±561
2985±151
845±96 | substantially lower CP Tokens (e.g., 622 vs. 2501 on GSM8K), indicating that the orchestrator produces graphs with shorter critical paths under the latency objective; the inference-time controller further trims execution once a confident answer emerges. Comparison with baselines. Non-MAS methods (Generate, CoT, SC) remain faster because of their simplicity but consistently underperform in task accuracy. Among MAS methods, GDesigner and AgentDropout incur substantially higher latency without corresponding accuracy gains, whereas LAMaS achieves the lowest latency across all four benchmarks while maintaining comparable accuracy. Across MAS methods and benchmarks, CP Tokens are strongly correlated with measured wall-clock latency (Appendix [C.1\)](#page-15-1), providing complementary evidence that LAMaS reduces criticalpath workload together with end-to-end latency. Appendix [F.1](#page-19-0) further compares LAMaS with single-agent agentic baselines that add tool use or self-correction (tool-augmented CoT, test-time repair, and Self-Refine); LAMaS remains 3.86–9.14 pp more accurate than these baselines. #### 4.3 Ablation Study We study four variants of LAMaS: removing CP credit assignment, removing the inference-time controller, removing the latency objective, and a naive "add latency to the reward" baseline. *w/o CP Credit* forces the latency penalty to apply uniformly to all operators rather than weighting it by path criticality; *w/o controller* removes the execution controller entirely and relies solely on training-time optimization; *w/o latency obj.* sets λt = 0, training the orchestrator without any latency objective; *naive lat. only* keeps only a bare uniform latency term in the training objective, with no S0 accuracy Table 2: Ablation study of inference-time execution control, critical-path (CP) credit assignment, and the latency objective across four benchmarks. Cost is in units of ×10−4 USD; latency is end-to-end wall-clock time per query (in seconds). | Dataset | Method | Acc (%) ↑ | Cost (×10−4
) ↓ | Latency (s) ↓ | |-----------|-------------------------|-----------|--------------------|---------------| | | LAMaS | 93.65 | 7.71 | 11.73 | | GSM8K | w/o controller | 93.27 | 9.43 | 13.84 | | | w/o CP Credit | 92.73 | 8.71 | 12.93 | | | w/o latency obj. (λt=0) | 93.59 | 9.71 | 15.83 | | | naive lat. only | 91.85 | 9.86 | 15.52 | | | LAMaS | 95.42 | 12.92 | 21.00 | | | w/o controller | 95.17 | 16.18 | 24.47 | | HumanEval | w/o CP Credit | 94.40 | 14.83 | 23.43 | | | w/o latency obj. (λt=0) | 95.67 | 17.42 | 35.62 | | | naive lat. only | 93.13 | 18.07 | 31.84 | | MATH | LAMaS | 53.29 | 28.74 | 28.41 | | | w/o controller | 53.02 | 34.51 | 33.46 | | | w/o CP Credit | 52.26 | 32.18 | 31.27 | | | w/o latency obj. (λt=0) | 53.16 | 36.84 | 35.27 | | | naive lat. only | 51.99 | 37.21 | 34.27 | | MMLU-Pro | LAMaS | 66.27 | 10.93 | 14.81 | | | w/o controller | 66.00 | 12.68 | 17.94 | | | w/o CP Credit | 65.40 | 11.83 | 16.18 | | | w/o latency obj. (λt=0) | 66.33 | 13.05 | 22.46 | | | naive lat. only | 60.93 | 13.74 | 20.91 | floor, no CP-aware credit assignment, and no inference controller—the simplest "add latency to the reward" baseline. Table [2](#page-8-0) shows consistent trends across all four benchmarks. Removing the controller preserves accuracy within 0.38 pp but increases latency by 16.5–21.1% and cost by 16.0–25.2%, confirming the importance of inference-time execution control. Removing CP credit assignment also degrades all three metrics, supporting path-criticality-weighted latency attribution rather than a uniform penalty over all operators. Removing the latency objective entirely (λt=0) leaves accuracy essentially unchanged (within ±0.25 pp of LAMaS) but inflates latency by 24–70% and cost by 19–35%, confirming that the constrained latency objective reshapes the execution graph for efficiency while maintaining the reference accuracy level of the underlying architecture. Finally, the *naive lat. only* variant drops accuracy by 1.30–5.34 pp relative to LAMaS while yielding only 2–11% latency savings over λt=0 and no cost reduction, showing that simply adding a latency term provides only limited gains. Taken together, these ablations show that LAMaS combines path-selective latency pressure with an explicit accuracy floor and execution-time control rather than simply shrinking computation. ### 4.4 Transferability and Generality of LAMaS Mechanisms The full LAMaS pipeline—the training-time graph optimization, the critical-path credit assignment, and the inference-time execution controller—is not tied to a specific orchestrator architecture. To verify its broader applicability, we integrate the entire pipeline into two other learning-based MAS methods, GDesigner [Zhang et al., 2025c](#page-12-3) and AgentDropout [Wang et al., 2025c](#page-12-2), without redesigning their original orchestration frameworks. Across all four benchmarks and both architectures, integrating the full LAMaS pipeline consistently reduces latency by 27–39% while preserving or slightly improving accuracy within typical 3-run noise. These results confirm that latency-aware graph optimization together with inference-time execution control transfers effectively to other learning-based MAS architectures. The reductions are smaller than in the LAMaS-native setting (Table [1\)](#page-7-0), consistent with the fact that GDesigner and AgentDropout retain their original orchestration policies: the LAMaS pipeline contributes the latency-aware credit signal and inference-time control rather than replacing their graph construction. Together with Appendix [E,](#page-18-0) this suggests that the LAMaS pipeline remains effective beyond a single orchestration architecture and extends to the additional backbone and serving configurations we evaluate. Appendix [C.4](#page-16-1) further shows that the orchestrator can still reasonably select an operator not Table 3: Transferability of the full LAMaS pipeline (training-time graph optimization, critical-path credit assignment, and inference-time execution control) to other learning-based MAS architectures. The controller is retrained on each architecture's own traces (Phase 2 of the LAMaS training procedure). Latency is the average end-to-end wall-clock time per query (in seconds). CP Tokens denotes the average critical-path output tokens. | Dataset | Method | Acc (%) ↑ | Cost (×10−4
) ↓ | Latency (s) ↓ | CP Tokens ↓ | |-----------|------------------------------------|----------------|--------------------|------------------|--------------| | GSM8K | GDesigner
GDesigner+LAMaS | 93.30
93.27 | 17.86
12.08 | 32.31
20.55 | 1624
1138 | | | AgentDropout
AgentDropout+LAMaS | 93.11
93.18 | 53.81
39.67 | 81.24
58.14 | 4098
2989 | | HumanEval | GDesigner
GDesigner+LAMaS | 85.50
85.75 | 19.86
12.93 | 49.68
30.85 | 2983
1571 | | | AgentDropout
AgentDropout+LAMaS | 86.01
86.26 | 27.73
17.98 | 51.49
36.62 | 3043
2200 | | MATH | GDesigner
GDesigner+LAMaS | 50.82
51.23 | 30.17
20.03 | 60.71
39.93 | 3155
2118 | | | AgentDropout
AgentDropout+LAMaS | 52.47
52.40 | 97.23
70.35 | 176.42
128.34 | 8693
6311 | | MMLU-Pro | GDesigner
GDesigner+LAMaS | 64.27
64.33 | 25.03
17.03 | 46.66
28.27 | 2750
1548 | | | AgentDropout
AgentDropout+LAMaS | 61.87
62.20 | 76.13
56.23 | 119.33
82.27 | 6560
4628 | exposed during training. Appendix [F.2](#page-20-0) additionally compares GDesigner+LAMaS with two naive inference-time latency-cutting rules applied to GDesigner; neither rule matches its accuracy–latency trade-off. ## 5 The LAMaS Platform An application can use LAMaS through its OpenAI-compatible endpoint by changing the server address (Figure [1\)](#page-0-0). For each query, the orchestrator selects a graph of operators. The runtime starts each operator when its inputs are ready and returns the final answer with a trace of operator timings, the critical path, and cost. Operators and graph builders are replaceable; model calls can use a local server such as vLLM or a hosted OpenAI-compatible API. A framework that builds its own graphs can reuse the orchestration layer directly. In GDesigner and AgentDropout, we train the existing graph policy with the accuracy constraint and critical-path credit. Once that policy is frozen, its execution traces supply the examples for training the stop controller. This preserves each framework's graph construction while letting partial results determine whether the remaining operators should run (Table [3\)](#page-9-1). ## 6 Conclusion LAMaS makes low-latency orchestration reusable across multi-agent systems. Its training objective targets the critical path under an accuracy floor, and its controller uses partial results to skip future calls. Across four benchmarks, LAMaS reduces latency by over 50% relative to the evaluated learning-based MAS baselines with competitive or better accuracy. GDesigner and AgentDropout also reduce latency while retaining their own graph builders. ## Acknowledgments and Disclosure of Funding This work was supported in part by the National Science Foundation under Award No. 2544047. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. ## References - Reyna Abhyankar, Qi Qi, and Yiying Zhang. OSWorld-Human: Benchmarking the efficiency of computer-use agents. In A. Chowdhery and Z. Jia, editors, *Proceedings of Machine Learning and Systems*, volume 8, pages 482–494. ML-Sys, 2026. URL [https://proceedings.mlsys.org/paper\\_files/paper/2026/file/](https://proceedings.mlsys.org/paper_files/paper/2026/file/5edb57c05c81d04beb716ef1d542fe9e-Paper-Conference.pdf) [5edb57c05c81d04beb716ef1d542fe9e-Paper-Conference.pdf](https://proceedings.mlsys.org/paper_files/paper/2026/file/5edb57c05c81d04beb716ef1d542fe9e-Paper-Conference.pdf). - Jinyuan Chen, Jiuchen Shi, Quan Chen, and Minyi Guo. Kairos: Low-latency multi-agent serving with shared LLMs and excessive loads in the public cloud. *arXiv preprint arXiv:2508.06948*, 2025. - Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. *arXiv preprint arXiv:2107.03374*, 2021. - Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. *arXiv preprint arXiv:2110.14168*, 2021. - Tao Feng, Haozhen Zhang, Zijie Lei, Peixuan Han, and Jiaxuan You. GraphPlanner: Graph memoryaugmented agentic routing for multi-agent LLMs. In *The Fourteenth International Conference on Learning Representations*, 2026. URL . - Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In J. Vanschoren and S. Yeung, editors, *Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks*, volume 1, 2021. URL [https://datasets-benchmarks-proceedings.neurips.cc/paper\\_files/paper/](https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/file/be83ab3ecd0db773eb2dc1b0a17836a1-Paper-round2.pdf) [2021/file/be83ab3ecd0db773eb2dc1b0a17836a1-Paper-round2.pdf](https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/file/be83ab3ecd0db773eb2dc1b0a17836a1-Paper-round2.pdf). - Sirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmidhuber. MetaGPT: Meta programming for a multi-agent collaborative framework. In *The Twelfth International Conference on Learning Representations*, 2024. URL . - Yen-Chang Hsu, Ting Hua, Sungen Chang, Qian Lou, Yilin Shen, and Hongxia Jin. Language model compression with weighted low-rank factorization. In *International Conference on Learning Representations*, 2022. URL . - Ahasan Kabir, Jiaqi Xue, Mengxin Zheng, and Qian Lou. HW-Router: Hardware-aware routing for scalable multi-LLM serving. In *Proceedings of the 63rd ACM/IEEE Design Automation Conference*, DAC '26, New York, NY, USA, 2026a. Association for Computing Machinery. ISBN 9798400722547. doi: 10.1145/3770743.3804427. URL [https://doi.org/10.1145/3770743.](https://doi.org/10.1145/3770743.3804427) [3804427](https://doi.org/10.1145/3770743.3804427). - Ahasan Kabir, Jiaqi Xue, Mengxin Zheng, and Qian Lou. INFRAMIND: Infrastructure-aware multi-agent orchestration, 2026b. URL . - Hao Kang, Qingru Zhang, Han Cai, Weiyuan Xu, Tushar Krishna, Yilun Du, and Tsachy Weissman. Win fast or lose slow: Balancing speed and accuracy in latency-sensitive decisions of LLMs. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, *Advances in Neural Information Processing Systems*, volume 38, Main Conference, pages 150862–150884. Curran Associates, Inc., 2025. doi: - 10.52202/085713-5044. URL [https://proceedings.neurips.cc/paper\\_files/paper/](https://proceedings.neurips.cc/paper_files/paper/2025/file/ddaec864ba433e8889ab08dcf5c26e55-Paper-Conference.pdf) [2025/file/ddaec864ba433e8889ab08dcf5c26e55-Paper-Conference.pdf](https://proceedings.neurips.cc/paper_files/paper/2025/file/ddaec864ba433e8889ab08dcf5c26e55-Paper-Conference.pdf). - Guohao Li, Hasan Hammoud, Hani Itani, Dmitrii Khizbullin, and Bernard Ghanem. CAMEL: Communicative agents for "mind" exploration of large language model society. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, *Advances in Neural Information Processing Systems*, volume 36, pages 51991–52008. Curran Associates, Inc., 2023. doi: 10.52202/075280-2264. URL [https://proceedings.neurips.cc/paper\\_files/](https://proceedings.neurips.cc/paper_files/paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf) [paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf](https://proceedings.neurips.cc/paper_files/paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf). - Qian Lou, Feng Guo, Minje Kim, Lantao Liu, and Lei Jiang. AutoQ: Automated kernel-wise neural network quantization. In *International Conference on Learning Representations*, 2020. URL . - Qian Lou, Yen-Chang Hsu, Burak Uzkent, Ting Hua, Yilin Shen, and Hongxia Jin. Lite-MDETR: A lightweight multi-modal detector. In *Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)*, pages 12206–12215, June 2022a. - Qian Lou, Ting Hua, Yen-Chang Hsu, Yilin Shen, and Hongxia Jin. DictFormer: Tiny transformer with shared dictionary. In *International Conference on Learning Representations*, 2022b. URL . - OpenAI. GPT-4o mini: advancing cost-efficient intelligence. [https://openai.com/index/](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/) [gpt-4o-mini-advancing-cost-efficient-intelligence/](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/), July 2024. Accessed: 2026- 01-06. - Rakibul Hasan Rajib, Mengxin Zheng, and Qian Lou. Learning what to retain: Gated-memory routing for efficient collaboration in multi-agent LLM systems. In Hung-Yi Lee, Sunipa Dev, Junyi Jessy Li, and Desmond Elliott, editors, *Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing*, pages 39594–39611, Budapest, Hungary, October 2026a. Association for Computational Linguistics. ISBN 979-8-89176-459-0. doi: 10.18653/2026.emnlp-main.1735. URL . - Rakibul Hasan Rajib, Mengxin Zheng, and Qian Lou. AgentServeSim: Serving-system simulation and policy search for LLM agent programs, 2026b. URL . - Xi Shi, Mengxin Zheng, and Qian Lou. KVShareArena: KV-cache reuse across contexts and model checkpoints, 2026. URL . - Song Wang, Zhen Tan, Zihan Chen, Shuang Zhou, Tianlong Chen, and Jundong Li. AnyMAC: Cascading flexible multi-agent collaboration via next-agent prediction. In Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng, editors, *Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing*, pages 11555–11567, Suzhou, China, November 2025a. Association for Computational Linguistics. ISBN 979-8-89176-332-6. doi: 10.18653/v1/2025.emnlp-main.584. URL [https://aclanthology.org/2025.emnlp-main.](https://aclanthology.org/2025.emnlp-main.584/) [584/](https://aclanthology.org/2025.emnlp-main.584/). - Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. In *The Eleventh International Conference on Learning Representations*, 2023. URL . - Yingxu Wang, Siwei Liu, Jinyuan Fang, and Zaiqiao Meng. EvoAgentX: An automated framework for evolving agentic workflows. In Ivan Habernal, Peter Schulam, and Jörg Tiedemann, editors, *Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations*, pages 643–655, Suzhou, China, November 2025b. Association for Computational Linguistics. ISBN 979-8-89176-334-0. doi: 10.18653/v1/2025.emnlp-demos.47. URL . - Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, Tianle Li, Max Ku, Kai Wang, Alex Zhuang, Rongqi Fan, Xiang Yue, and Wenhu Chen. MMLU-Pro: A more robust and challenging multi-task language understanding benchmark. In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, - J. Tomczak, and C. Zhang, editors, *Advances in Neural Information Processing Systems*, volume 37, pages 95266–95290. Curran Associates, Inc., 2024. doi: 10.52202/079017-3018. URL [https://proceedings.neurips.cc/paper\\_files/paper/2024/file/](https://proceedings.neurips.cc/paper_files/paper/2024/file/ad236edc564f3e3156e1b2feafb99a24-Paper-Datasets_and_Benchmarks_Track.pdf) [ad236edc564f3e3156e1b2feafb99a24-Paper-Datasets\\_and\\_Benchmarks\\_Track.pdf](https://proceedings.neurips.cc/paper_files/paper/2024/file/ad236edc564f3e3156e1b2feafb99a24-Paper-Datasets_and_Benchmarks_Track.pdf). - Zhexuan Wang, Yutong Wang, Xuebo Liu, Liang Ding, Miao Zhang, Jie Liu, and Min Zhang. Agent-Dropout: Dynamic agent elimination for token-efficient and high-performance LLM-based multiagent collaboration. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, *Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)*, pages 24013–24035, Vienna, Austria, July 2025c. Association for Computational Linguistics. ISBN 979-8-89176-251-0. doi: 10.18653/v1/2025.acl-long.1170. URL . - Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian ichter, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, *Advances in Neural Information Processing Systems*, volume 35, pages 24824–24837. Curran Associates, Inc., 2022. doi: 10.52202/068431-1800. URL [https://proceedings.neurips.cc/paper\\_files/](https://proceedings.neurips.cc/paper_files/paper/2022/file/9d5609613524ecf4f15af0f7b31abca4-Paper-Conference.pdf) [paper/2022/file/9d5609613524ecf4f15af0f7b31abca4-Paper-Conference.pdf](https://proceedings.neurips.cc/paper_files/paper/2022/file/9d5609613524ecf4f15af0f7b31abca4-Paper-Conference.pdf). - Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W White, Doug Burger, and Chi Wang. AutoGen: Enabling next-gen LLM applications via multi-agent conversations. In *First Conference on Language Modeling*, 2024. URL . - Jiaqi Xue, Qian Lou, Jiarong Xing, and Heng Huang. R2-Router: A new paradigm for LLM routing with reasoning. In Tong Zhang, Miroslav Dudik, Martin Jaggi, Alekh Agarwal, Sharon Li, Dale Schuurmans, Jerry Zhu, Felix Berkenkamp, Hanze Dong, and Alberto Bietti, editors, *Proceedings of the 43rd International Conference on Machine Learning*, volume 306 of *Proceedings of Machine Learning Research*, pages 143255–143268. PMLR, 06–11 Jul 2026. URL . - Yu Yao, Yiliao (Lia) Song, Yian Xie, Mengdan Fan, Mingyu Guo, and Tongliang Liu. Can dependencies induced by LLM-agent workflows be trusted? In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, *Advances in Neural Information Processing Systems*, volume 38, Main Conference, pages 17431–17469. Curran Associates, Inc., 2025. doi: 10.52202/085713-0587. URL [https://proceedings.neurips.cc/paper\\_files/](https://proceedings.neurips.cc/paper_files/paper/2025/file/19206a6ed5ed0aaeed440448dfc5cf7e-Paper-Conference.pdf) [paper/2025/file/19206a6ed5ed0aaeed440448dfc5cf7e-Paper-Conference.pdf](https://proceedings.neurips.cc/paper_files/paper/2025/file/19206a6ed5ed0aaeed440448dfc5cf7e-Paper-Conference.pdf). - Guibin Zhang, Luyang Niu, Junfeng Fang, Kun Wang, Lei Bai, and Xiang Wang. Multi-agent architecture search via agentic supernet. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, *Proceedings of the 42nd International Conference on Machine Learning*, volume 267 of *Proceedings of Machine Learning Research*, pages 75834–75852. PMLR, 13–19 Jul 2025a. URL [https://proceedings.](https://proceedings.mlr.press/v267/zhang25bi.html) [mlr.press/v267/zhang25bi.html](https://proceedings.mlr.press/v267/zhang25bi.html). - Guibin Zhang, Yanwei Yue, Zhixun Li, Sukwon Yun, Guancheng Wan, Kun Wang, Dawei Cheng, Jeffrey Xu Yu, and Tianlong Chen. Cut the crap: An economical communication pipeline for LLM-based multi-agent systems. In *The Thirteenth International Conference on Learning Representations*, 2025b. URL . - Guibin Zhang, Yanwei Yue, Xiangguo Sun, Guancheng Wan, Miao Yu, Junfeng Fang, Kun Wang, Tianlong Chen, and Dawei Cheng. G-Designer: Architecting multi-agent communication topologies via graph neural networks. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, *Proceedings of the 42nd International Conference on Machine Learning*, volume 267 of *Proceedings of Machine Learning Research*, pages 76678–76692. PMLR, 13–19 Jul 2025c. URL . - Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xiong-Hui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, Bingnan Zheng, Bang Liu, Yuyu Luo, and Chenglin Wu. AFlow: Automating agentic workflow generation. In *The Thirteenth International Conference on Learning Representations*, 2025d. URL [https://openreview.net/forum?id=](https://openreview.net/forum?id=z5uVAKwmjf) [z5uVAKwmjf](https://openreview.net/forum?id=z5uVAKwmjf). Changsheng Zhao, Ting Hua, Yilin Shen, Qian Lou, and Hongxia Jin. Automatic mixed-precision quantization search of BERT. In Prof. Zhi-Hua Zhou, editor, *Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21*, pages 3427–3433. International Joint Conferences on Artificial Intelligence Organization, 8 2021. doi: 10.24963/ijcai.2021/472. URL . Main Track. Jiaru Zou, Ruizhong Qiu, Gaotang Li, Xiyuan Yang, Katherine Tieu, Pan Lu, Ke Shen, Hanghang Tong, Yejin Choi, Jingrui He, James Zou, Mengdi Wang, and Ling Yang. Latent collaboration in multi-agent systems. In Tong Zhang, Miroslav Dudik, Martin Jaggi, Alekh Agarwal, Sharon Li, Dale Schuurmans, Jerry Zhu, Felix Berkenkamp, Hanze Dong, and Alberto Bietti, editors, *Proceedings of the 43rd International Conference on Machine Learning*, volume 306 of *Proceedings of Machine Learning Research*, pages 168813–168847. PMLR, 06–11 Jul 2026. URL . ## A Limitations LAMaS reduces orchestration latency; however, it does not mitigate broader risks inherited from the underlying LLMs and associated tools, including unsafe outputs, hallucinations, and social biases. ## B Experimental Setup Details This section collects additional implementation and dataset details used for reproducibility. #### B.1 Operator Set Each operator corresponds to a predefined reasoning or execution primitive used to construct execution graphs. We briefly summarize their functionality below for completeness. - Generate. A basic generator that directly produces text or code without additional reasoning or post-processing. It invokes the LLM once and is primarily used for simple generation tasks. - GenerateCoT. A chain-of-thought generator that prompts the LLM to perform step-by-step reasoning. For mathematical tasks (e.g., MATH, GSM8K), it includes explicit reasoning exemplars, while for code tasks (e.g., HumanEval), it uses lightweight reasoning prompts. This operator invokes the LLM once. - MultiGenerateCoT. A diversity-oriented CoT generator that produces multiple candidate solutions in parallel. It generates three independent chain-of-thought solutions, yielding a set of candidate responses for downstream aggregation. - ScEnsemble. A self-consistency ensemble operator that selects the most consistent answer from multiple candidate solutions. All candidates are formatted as discrete options, and the LLM is prompted to select the most consistent one, following the self-consistency principle. - SelfRefine. A refinement operator that analyzes an existing solution to identify errors or suboptimal reasoning and generates an improved version. This operator invokes the LLM once. Task-Specific Operators. We also employ task-specific operators for different benchmarks. - CustomCodeGenerate (HumanEval). A lightweight code generator that produces candidate code solutions without execution or testing. - Test (HumanEval). A test-driven refinement operator that executes generated code and iteratively improves it based on failure feedback. Upon failure, the operator generates a revised solution using reflective prompts and retries up to three times. - Programmer (MATH/GSM8K). A code execution operator that generates Python programs, executes them in an isolated environment, and iteratively refines the code based on execution feedback. ### B.2 Additional Implementation Details We list the remaining training hyperparameters not detailed in Section 4.1. The cost weight is λc = 3.0, the dual learning rate is η = 0.01, the batch size is 4, and the orchestrator is trained for 4 repetitions over the training set. These values follow the supernet implementation conventions of MaAS [Zhang et al., 2025a](#page-12-1). Queries are encoded by a frozen all-MiniLM-L6-v2 SentenceTransformer; the resulting embedding is shared between the orchestrator's policy network (Section [3.2\)](#page-3-0) and the controller's Compress(·) projection (Section [3.6\)](#page-5-0), and is not finetuned during training. In the main experiments, we use gpt-4o-mini-0718 via the OpenAI API with temperature set to 1. Appendix [E](#page-18-0) instead evaluates qwen3.5-flash (closed-source) via OpenRouter with Alibaba Cloud Int. selected as the provider, and qwen3.5-9b (open-weight) served locally through vLLM; the same temperature setting is used there as well. Training the orchestrator and execution controller requires modest local compute but does not finetune the underlying LLM backbone. All training runs were executed on a Slurm cluster using a single NVIDIA H100 80GB GPU per run. The local qwen3.5-9b evaluation uses vLLM served on two NVIDIA B200 GPUs. ### B.3 Dataset Split Statistics We evaluate on four publicly available benchmarks: HUMANEVAL [Chen et al., 2021](#page-10-7), GSM8K [Cobbe et al., 2021](#page-10-6), MATH [Hendrycks et al., 2021](#page-10-8), and MMLU-PRO [Wang et al., 2024](#page-11-5). Following common practice in workflow-automation work [Zhang et al., 2025a](#page-12-1)[,d](#page-12-4), each benchmark is partitioned into training and test sets with a train:test ratio of 1:4. For MATH, we use a 605-problem subset of level-5 problems spanning four representative categories: Combinatorics & Probability, Number Theory, Pre-algebra, and Pre-calculus. For MMLU-PRO, we construct a stratified split from the official test set (seed 42), sampling proportionally per category with no overlap between train and test. Statistics are summarized in Table [4.](#page-14-3) | Domain | Dataset | #Train | #Test | Metric | | |---------------------|---------------|------------|-------------|----------------------|--| | Code Generation | HumanEval | 33 | 131 | pass@1 | | | Math Reasoning | GSM8K
MATH | 264
119 | 1055
486 | Accuracy
Accuracy | | | Knowledge Reasoning | MMLU-Pro | 125 | 500 | Accuracy | | Table 4: Dataset statistics. ### B.4 Baseline Setups We provide the configurations for each baseline method below. - 1. Generate. A single-pass direct-answer baseline that prompts the LLM once with the query and uses its output as the final answer, with no chain-of-thought scaffolding or post-processing. - 2. CoT. Chain-of-Thought prompting [Wei et al., 2022](#page-12-8) elicits step-by-step reasoning before the final answer; we use a standard zero-shot CoT prompt template. - 3. SC. Self-Consistency [Wang et al., 2023](#page-11-10): to enhance robustness, we aggregate five CoT-generated solutions through an ensemble step over the candidate answers. - 4. GDesigner. We use the official implementation of [Zhang et al.](#page-12-3) [2025c](#page-12-3), which learns a graph neural network over operator embeddings to construct communication topologies. We retain the original training procedure and operator set defined in the released codebase, replacing only the LLM backbone with gpt-4o-mini-0718 for fair comparison. - 5. AgentDropout. We follow the released implementation of [Wang et al.](#page-12-2) [2025c](#page-12-2), which dynamically prunes redundant agents and communication edges during execution. The dropout schedule and per-agent role assignments use the defaults from the official codebase. - 6. MaAS. We use the agentic-supernet implementation of [Zhang et al.](#page-12-1) [2025a](#page-12-1), training the orchestrator with the same supernet depth (L = 4), operator set, and policy-gradient procedure as released. The original cost-only reward is used unchanged so that MaAS represents the cost-aware—but not latency-aware—learning baseline. All MAS baselines are trained and evaluated under the same train/test partition (Appendix [B.3\)](#page-14-0), the same backbone LLM (gpt-4o-mini-0718), and the same per-query latency/cost measurement protocol described in Section 4.1. ## C Additional Supporting Analyses This section provides supplementary analyses supporting the main-paper interpretation of LAMaS. ### C.1 Critical-Path Tokens as a Latency Proxy The critical-path-aware credit assignment in Section 3.4 is motivated by the expectation that CP Tokens should co-vary with end-to-end wall-clock latency. To verify this empirically, we form one (CP Tokens, latency) pair for each MAS-method/benchmark cell in Table [1](#page-7-0) and compute the pooled correlation across all 4 MAS methods × 4 benchmarks (n = 16). Both Pearson and Spearman correlations indicate a strong positive association, providing complementary evidence that reductions in CP Tokens align with reductions in end-to-end latency. Table 5: Correlation between CP Tokens and measured wall-clock latency across MASmethod/benchmark cells in Table [1.](#page-7-0) | Setting | Pearson r | Spearman ρ | |----------------------------|-----------|------------| | MAS methods × 4 benchmarks | 0.995 | 0.985 | ### C.2 Comparison with Oracle Controller To probe how close the learned execution controller is to an optimal stopping rule, we compare it against an oracle that has access to the true control advantage ∆k = Rk − RN at each decision point and stops iff ∆k > 0. We evaluate on HumanEval and MMLU-Pro from two complementary angles: decision-level agreement with the oracle (Table [6\)](#page-15-2), and end-to-end performance when the learned controller is replaced by either the oracle or no controller (Table [7\)](#page-16-2). Decision-level agreement. Table [6](#page-15-2) reports decision accuracy together with precision, recall, and F1 for the positive (stop) class, treating the oracle's ∆k > 0 rule as ground truth. Across both benchmarks, the learned controller agrees with oracle decisions in 70.8–73.5% of cases. Precision exceeds recall on both benchmarks, indicating that the learned controller is conservative: it tends to continue execution when the oracle's signal is borderline rather than making an over-aggressive elimination decision. Table 6: Decision-level agreement between the learned execution controller and the oracle stopping rule on HumanEval and MMLU-Pro. The positive class is the "stop" decision. | Benchmark | Decision Acc (%) ↑ | Precision ↑ | Recall ↑ | F1 ↑ | |-----------|--------------------|-------------|----------|------| | HumanEval | 73.5 | 0.72 | 0.66 | 0.69 | | MMLU-Pro | 70.8 | 0.69 | 0.63 | 0.66 | End-to-end performance. Table [7](#page-16-2) compares three controller settings: no controller, the learned controller, and the oracle. The learned controller closes most of the gap between no-controller execution and the oracle: on HumanEval it trails the oracle by 2.16 s in latency and 0.25 pp in accuracy, and on MMLU-Pro by 1.74 s and 0.46 pp. This indicates that the learned controller approaches oracle-level execution control despite operating only on the partial-execution features available at runtime. ### C.3 Full Training and Inference Procedure Table 7: End-to-end accuracy and latency under different controllers on HumanEval and MMLU-Pro. The "Learned" rows correspond to the LAMaS configuration in Table [2,](#page-8-0) and "No controller" rows correspond to the *w/o controller* ablation. | Benchmark | Controller | Acc (%) ↑ | Latency (s) ↓ | |-----------|---------------|-----------|---------------| | HumanEval | No controller | 95.17 | 24.47 | | | Learned | 95.42 | 21.00 | | | Oracle | 95.67 | 18.84 | | MMLU-Pro | No controller | 66.00 | 17.94 | | | Learned | 66.27 | 14.81 | | | Oracle | 66.73 | 13.07 | ``` Algorithm 1 LAMaS: Latency-Aware MAS Orchestration ``` ``` Require: Orchestrator πθ, operator set O, training queries D, accuracy floor S0 Require: Hyperparameters: λt, λc, dual learning rate η, threshold τ 1: // Phase 1: Train orchestrator 2: Initialize dual variable λS ← 1.0 3: for each training iteration do 4: Sample a batch of queries {xi} from D 5: for each query xi do 6: Construct execution graph Gi via πθ 7: Execute Gi; observe Si, Ci, Ti, per-operator times {t(o)} 8: Compute ℓ(o) for all operators; compute R(o) via Eq. 8 9: end for 10: Update θ via policy gradient (Eq. 9) 11: λS ← max(0, λS + η(1 − S/S ¯ 0)) 12: end for 13: // Phase 2: Train execution controller 14: Freeze πθ; collect full execution traces on D 15: for each trace do 16: for each decision point k = 1, . . . , N do 17: Compute ∆k = Rk − RN (Eq. 10) 18: Record training sample: (fk, ∆k) 19: end for 20: end for 21: Train Controllerϕ via MSE: minϕ P(∆ˆ k − ∆k) 2 22: Compute σ∆ = std({∆k | ∆k > 0}) 23: // Inference 24: Construct G via πθ; launch operators 25: for each operator completion k do 26: Compute p(select current) from Controllerϕ(fk), sample a Bernoulli decision; on a positive draw, elimi- nate the following unlaunched operators. 27: end for 28: return Final answer ``` #### C.4 Compatibility with Unseen Operators To probe whether the learned policy generalizes beyond the fixed training-time operator set, we insert an unseen operator (Debate) at inference time on HumanEval and inspect the orchestrator's average selection probabilities. Figure [4](#page-17-0) reports the average probability mass over the seven non-halt operators shown. The unseen Debate operator receives 14.8% probability mass, comparable to seen operators such as Generate (14.9%), ScEnsemble (15.1%), and Test (15.5%). This suggests that the learned policy can still reasonably select an unseen operator during architecture sampling, indicating some inductive flexibility beyond the exact operator set seen during training. ## D Sensitivity Analyses This section reports the sensitivity of LAMaS to the main hyperparameters that control latency pressure, graph structure, and the accuracy floor. ![](figures/arxiv_2601.10560/_page_17_Figure_0.jpeg) Figure 4: Average operator selection probabilities on HumanEval after inserting an unseen operator, Debate, at inference time. The unseen operator receives non-trivial probability mass comparable to several seen operators, indicating that the learned policy can still reasonably select operators not exposed during training. ### D.1 Parameter Sensitivity Analysis We analyze the sensitivity of LAMaS to four key hyperparameters: the latency penalty weight λt, the activation threshold τ , the number of supernet layers L, and the accuracy floor S0. We report results on HumanEval and MMLU-Pro, with the default configuration (λt=0.005, τ=0.3, L=4) marked by ♦. Table 8: Sensitivity to the latency penalty weight λt. Increasing λt consistently reduces latency, with mild accuracy variation across the sweep. | Dataset | λt | Acc (%) ↑ | Latency (s) ↓ | |-----------|---------|-----------|---------------| | HumanEval | 0 | 95.67 | 35.62 | | | 0.001 | 95.93 | 23.50 | | | 0.005 ♦ | 95.42 | 21.00 | | | 0.01 | 94.91 | 13.91 | | | 0.05 | 93.89 | 11.29 | | | 0 | 66.33 | 22.46 | | | 0.001 | 67.13 | 16.41 | | MMLU-Pro | 0.005 ♦ | 66.27 | 14.81 | | | 0.01 | 66.13 | 14.11 | | | 0.05 | 65.27 | 11.38 | Table 9: Sensitivity to the activation threshold τ . A higher threshold activates more operators per step, increasing accuracy and latency. A lower threshold produces leaner graphs with lower latency but reduced accuracy. | Dataset | τ | Acc (%) ↑ | Latency (s) ↓ | |-----------|-------|-----------|---------------| | HumanEval | 0.1 | 93.89 | 13.57 | | | 0.2 | 94.91 | 15.35 | | | 0.3 ♦ | 95.42 | 21.00 | | | 0.4 | 95.67 | 22.80 | | MMLU-Pro | 0.1 | 65.13 | 13.42 | | | 0.2 | 65.93 | 14.23 | | | 0.3 ♦ | 66.27 | 14.81 | | | 0.4 | 66.67 | 15.62 | Table 10: Sensitivity to the number of supernet layers L. More layers provide greater reasoning depth and slightly higher accuracy, but increase latency due to deeper critical paths. | Dataset | L | Acc (%) ↑ | Latency (s) ↓ | |-----------|-----------------|-----------------------|--------------------| | HumanEval | 2
4 • | 94.15
95.42 | 12.85 21.00 | | | 6
8 | 95.67
95.93 | 23.50
25.54 | | MMLU-Pro | 2 | 64.93 | 12.81 | | | 4 ♦
6 | 66.27
66.47 | 14.81
16.56 | | | 8 | 66.53 | 17.43 | Latency weight $\lambda_t$ . Table 8 shows that increasing $\lambda_t$ monotonically reduces latency, while accuracy varies only mildly across the sweep. On HumanEval, raising $\lambda_t$ from 0 to 0.05 reduces latency from 35.62s to 11.29s with at most 2.0% accuracy change; the trend is consistent on MMLU-Pro. The $\lambda_t=0$ setting (no latency objective during training) leaves accuracy near the LAMaS level but yields the largest latency, complementing the corresponding row in the ablation study (Table 2). Overall, $\lambda_t$ provides smooth and predictable control over latency while keeping accuracy broadly stable. Activation threshold $\tau$ . Table 9 reveals that the threshold controls the width of the execution graph. A lower threshold ( $\tau$ =0.1) produces lean graphs with fewer operators per step, yielding the lowest latency but reduced accuracy. A higher threshold ( $\tau$ =0.4) activates more operators, improving accuracy through greater exploration together with increased latency. The default $\tau$ =0.3 provides a balanced setting across both benchmarks. **Number of layers** L. Table 10 shows that increasing the number of supernet layers provides greater reasoning depth. On HumanEval, accuracy improves from 94.15% (L=2) to 95.93% (L=8), but latency increases from 12.85s to 25.54s due to the deeper critical path. The marginal accuracy gain diminishes beyond L=4, while latency continues to grow, justifying the default choice of L=4. Accuracy floor $S_0$ . Unlike $\lambda_t$ , $\tau$ , and L, which control the latency penalty and graph structure, the accuracy floor $S_0$ sets the target accuracy level used during training. Table 11 reports results across $S_0 \in \{0.95, 1.00, 1.02, 1.05\} \cdot S_{\text{ref}}$ , where $S_{\text{ref}}$ denotes the orchestrator's reference accuracy and the default deployment ( $S_0 = S_{\text{ref}}$ ) is marked by $\spadesuit$ . The trend is monotonic on both benchmarks: on HumanEval, sweeping $S_0$ from $0.95 \cdot S_{\text{ref}}$ to $1.05 \cdot S_{\text{ref}}$ moves accuracy from 94.66% to 96.18% while latency rises from 17.85s to 23.54s; the same direction holds on MMLU-Pro ( $65.40\% \rightarrow 67.13\%$ , 12.60s $\rightarrow 16.51$ s). Table 11: Sensitivity to the accuracy floor $S_0$ . We vary $S_0$ as a fraction of the architecture's reference accuracy $S_{\text{ref}}$ ( $S_0 = S_{\text{ref}}$ is the default, marked by $\spadesuit$ ). | Dataset | $S_0/S_{\rm ref}$ | Acc (%) ↑ | Latency (s) ↓ | |-----------|-----------------------|----------------|--------------------| | | 0.95
1.00 ♦ | 94.66
95.42 | 17.85 21.00 | | HumanEval | 1.02 | 95.67 | 22.00 | | | 1.05 | 96.18 | 23.54 | | MMLU-Pro | 0.95 | 65.40 | 12.60 | | | 1.00 ♦ | 66.27 | 14.81 | | | 1.02 | 66.67 | 15.46 | | | 1.05 | 67.13 | 16.51 | ### **E** Generalizability Across Backbones and Serving Setups To assess whether LAMaS's latency advantage transfers across different LLM backbones and serving setups, we replicate the comparison on two additional configurations: the closed-source flash variant qwen3.5-flash served through OpenRouter, and the open-weight qwen3.5-9b served locally with vLLM. Both are evaluated on HumanEval and MMLU-Pro against the strongest learning-based MAS baseline (MaAS) and LAMaS. As shown in Table [12,](#page-19-1) LAMaS reduces latency by about 60% on HumanEval and about 43% on MMLU-Pro across the two settings, while matching or slightly exceeding MaAS in accuracy. This confirms that LAMaS's mechanisms transfer across distinct backbones and serving setups. Table 12: Generalizability across Qwen backbones and serving setups: closed-source qwen3.5-flash served through OpenRouter and open-weight qwen3.5-9b served locally with vLLM. Latency is end-to-end wall-clock time per query (s). Best mean among MAS methods per column per dataset is in bold. | Dataset | Backbone | Method | Acc (%) ↑ | Latency (s) ↓ | |-----------|---------------|---------------|----------------|------------------| | HumanEval | qwen3.5-flash | MaAS
LAMaS | 94.91
96.95 | 100.87
38.93 | | | qwen3.5-9b | MaAS
LAMaS | 95.17
95.93 | 105.18
42.18 | | MMLU-Pro | qwen3.5-flash | MaAS
LAMaS | 82.40
82.93 | 174.60
98.04 | | | qwen3.5-9b | MaAS
LAMaS | 71.20
72.93 | 178.62
102.07 | ## F Additional Baseline Comparisons This section reports two additional comparisons: single-agent agentic baselines, and naive latencycutting rules applied to an existing MAS baseline. #### F.1 Single-Agent Agentic Baselines The non-MAS baselines in Table [1](#page-7-0) are prompting and sampling methods. We additionally evaluate three single-agent agentic baselines, equipping each task with the tool or self-correction mechanism it naturally supports. Tool-augmented CoT on GSM8K writes and executes code and answers from the execution result (the Programmer operator). Test-time repair on HumanEval runs the generated program and rewrites it from the failure feedback for up to three iterations (the Test operator). Self-Refine on MMLU-Pro critiques and revises its own answer in one round (the SelfRefine operator). All three reuse the operator implementations and prompts of Appendix [B.1](#page-13-2) and are evaluated under the protocol of Section 4.1. Table 13: Comparison with single-agent agentic baselines. LAMaS rows are taken from Table [1.](#page-7-0) Cost is in units of ×10−4 USD; latency is end-to-end wall-clock time per query (in seconds). | Dataset | Method | Acc (%) ↑ | Cost (×10−4
) ↓ | Latency (s) ↓ | |-----------|--------------------|-----------|--------------------|---------------| | GSM8K | Tool-augmented CoT | 89.79 | 11.38 | 18.27 | | | LAMaS | 93.65 | 7.71 | 11.73 | | HumanEval | Test-time repair | 86.51 | 6.35 | 15.43 | | | LAMaS | 95.42 | 12.92 | 21.00 | | MMLU-Pro | Self-Refine | 57.13 | 5.51 | 15.19 | | | LAMaS | 66.27 | 10.93 | 14.81 | As shown in Table [13,](#page-19-2) LAMaS is 3.86 pp more accurate than Tool-augmented CoT on GSM8K, 8.91 pp more accurate than Test-time repair on HumanEval, and 9.14 pp more accurate than Self-Refine on MMLU-Pro; on GSM8K it is also cheaper and faster. These baselines and SC (Table [1\)](#page-7-0) provide complementary controls: the agentic baselines test tool use and self-correction, and SC tests additional sampling and ensembling. SC incurs higher cost than LAMaS on all four benchmarks yet remains 9.16 and 7.60 pp less accurate on HumanEval and MMLU-Pro, respectively. Since the operator implementations are shared, what differs between these baselines and LAMaS is which operators run and how they are arranged. #### F.2 Naive Latency-Cutting Rules on an Existing MAS Baseline The ablation in Table [2](#page-8-0) covers naive latency optimization at training time (*naive lat. only*). To examine how an existing MAS baseline behaves under simple latency-cutting rules at inference time, we evaluate GDesigner under two rules that require no training. Consensus-2 stop terminates all not-yet-launched agents as soon as any two completed agents produce agreeing answers under the agreement rule of Section [3.6.](#page-5-0) Half-agents randomly removes ⌊n/2⌋ of the n agents while retaining the final aggregation step. Both rules are evaluated on GSM8K and MMLU-Pro under the protocol of Section 4.1. Table 14: GDesigner under two naive inference-time latency-cutting rules. The GDesigner and GDesigner+LAMaS rows are taken from Tables [1](#page-7-0) and [3.](#page-9-1) Cost is in units of ×10−4 USD; latency is end-to-end wall-clock time per query (in seconds). | Dataset | Method | Acc (%) ↑ | Cost (×10−4
) ↓ | Latency (s) ↓ | |----------|------------------------------|-----------|--------------------|---------------| | GSM8K | GDesigner | 93.30 | 17.86 | 32.31 | | | GDesigner + consensus-2 stop | 92.61 | 13.97 | 26.92 | | | GDesigner + half-agents | 91.37 | 11.24 | 21.37 | | | GDesigner+LAMaS | 93.27 | 12.08 | 20.55 | | MMLU-Pro | GDesigner | 64.27 | 25.03 | 46.66 | | | GDesigner + consensus-2 stop | 62.93 | 19.02 | 39.48 | | | GDesigner + half-agents | 61.13 | 15.48 | 29.34 | | | GDesigner+LAMaS | 64.33 | 17.03 | 28.27 | Table [14](#page-20-1) shows that neither rule matches GDesigner+LAMaS. Consensus-2 stop is dominated on accuracy, cost, and latency, while half-agents trades accuracy for cost: at nearly the same latency, it is cheaper but 1.90 and 3.20 pp less accurate on GSM8K and MMLU-Pro, respectively. Naive latency cutting, whether at training time (Table [2\)](#page-8-0) or at inference time (Table [14\)](#page-20-1), sacrifices accuracy; among these variants, only the LAMaS pipeline reduces latency while preserving it.