arXiv:2610.24348cs.NIOct 2026

Manuscript Offprint

arXiv:2610.24348

Blackbox Performance Analysis of LLM-based Network Control

Mahdi Alizadeh, Pooria Namyar, Arvin Ghavidel, Ramesh Govindan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLMs are becoming an indispensable part of network control systems due to their impressive reasoning. Before such LLM-enabled systems can be deployed, it is imperative to develop tools that can audit their performance on previously unseen inputs. However, auditing these systems is challenging due to the inherent opacity of LLMs. LENS is the first step towards black-box performance analysis of LLM-enabled network control systems. It uses novel methods to extend deep reinforcement learning to guide the search for performance gaps and inputs that make LLMs struggle. LENS finds large gaps for LLM-based traffic engineering and GPU allocation systems, and even matches existing white-box analyzers designed for hand-crafted TE heuristics.

1 Introduction

Large language models (LLMs) are moving beyond conversation and code generation to decision-making [16, 18, 40–42]. Motivated by their reasoning and generalization capabilities, research is starting to use them for network control: allocating paths, compute, and other resources (§2). For example, LMTE [41] uses LLMs to solve traffic engineering (TE) problems, exceeding 99.5% accuracy on held-out demands.

We show that despite this, an adversary without access to a single model weight can construct a valid traffic matrix that causes LMTE to leave more than half of a network's traffic unrouted relative to the optimal solution (§4). WANs today route terabytes of demand over capacity-constrained links [14, 23, 31], and must either drop the resulting unrouted demand, degrading user-perceived performance, or overprovision for it, raising costs. Thus, before LLM-enabled network control is pervasively deployed, we must address a more challenging issue than average-case accuracy: how poorly can it perform on valid, realistic inputs, and how would we even find out?

Prior work on performance analyzers answers exactly this question by searching for adversarial inputs, but for a different class of target. White-box tools require a precise mathematical or logical description of the target [20, 29, 30, 37]; gray-box methods require source code, gradients, or access to other system internals [19, 32]. Such tools are

Pooria Namyar

Microsoft Research

Ramesh Govindan

University of Southern California

effective in a world of hand-written heuristics or solvers whose logic is authored, stable, and inspectable.

LLM-based network control breaks that bargain. Hosted LLMs expose an API, not weights, prompts, decoding logic, or processing steps. Even when weights are public, faithfully reducing billions of parameters and their processing logic to a formal specification or source-level model is intractable. On the other hand, black-box methods such as random search, hill climbing, and simulated annealing need no model of the target and so can be plausibly used for LLM-based network control. However, they are ineffective because they treat candidate inputs independently or exploit only local feedback, and often fail to uncover meaningful adversarial inputs even for simple heuristics [29] (§3).

Given the likely future prevalence of LLM-enabled network control, it is imperative to develop performance auditing techniques that scale with opacity instead of assuming it away. As more network management tasks employ LLMs [38], more of their logic will run behind an opaque API rather than in code anyone can read or a model anyone can query for gradients. A performance analyzer that assumes inspectability will have less and less left to analyze.

LENS: RL-based search for adversarial inputs. In this paper, we introduce LENS, a black-box performance analyzer for LLM-based network control. LENS, unlike prior work (Table 1), requires no access to model weights, source code, or other solver internals. It requires only a representation of valid inputs, an executable interface to the target LLM solver, and a function for scoring the quality of its decisions (e.g., the gap between the LLM's decision and the optimum).

LENS casts adversarial input generation as a reinforcement learning (RL) problem (§3). Starting from a valid seed input, the RL policy applies a sequence of changes to the input. LENS evaluates the modified input, and uses the resulting target-to-optimal performance gap as the reward. Unlike local black-box search, its search policy reuses experience across evaluations to discover adversarial patterns, such as TE demand configurations that expose bottlenecks consistently mishandled by the target LLM.

Challenges and Contributions. Unfortunately, vanilla RL is ineffective for this task for three reasons.

ToolNo Additional Formal ModelingNo Source Code AccessStructure Aware Search
LENS (ours)✓✓✓
White-box analysis [12, 30, 37]✕✓✓
Source code analysis [19]✓✕✓
Gray-box analysis [32]✕✓✓
Traditional black-box [10, 21]✓✓✕

TABLE 1: Related work on performance analyzers.

First, the input space is high-dimensional. Vanilla RL often discovers the coarse shape of an adversarial input but fails to refine its exact values and can get trapped in a local optimum. LENS addresses this problem with multi-stage refinement. After an initial broad search, it estimates the importance of each input field, freezes the fields responsible for the current gap, and resumes RL over the remaining fields. Thus, each stage reduces the effective search space and ensures the RL policy focuses on specific parts of the input while preserving earlier progress.

Second, RL requires many reward observations, but computing each reward is expensive: it requires a call to a remote LLM service and an invocation of an optimization solver. LENS reduces this cost through sparse reward evaluation and result caching. In addition, it increases throughput with parallel actors and improves efficiency by warm-starting optimization solvers from solutions to nearby inputs.

Third, unconstrained RL exploration can produce unrealistic inputs. LENS lets operators describe realistic workloads through constraints. It then restricts the search accordingly, projecting each edit into the feasible space. The resulting adversarial inputs remain valid and relevant to the target deployment.

Results. We evaluate LENS on two LLM-based solvers (§4). LMTE [41] achieves more than 99.5% accuracy on its test set, yet LENS finds traffic matrices that induce a normalized performance gap of more than 50% without workload constraints and 15.5% under constraints derived from the training set. In the constrained setting, LENS's gap is about 180% larger than that found by the strongest black-box baseline. Similarly, for cluster scheduling using LLMCoSolver [18], LENS finds an adversarial gap about 28.5× larger than the maximum gap observed on the test set and improves over the strongest black-box baseline by about 130%.

Equally importantly, LENS is more general than, or as effective as, some existing white-box analyzers. For a TE heuristic [29], LENS matches the gap found by MetaOpt [30] without modeling the heuristic at all. It also outperforms MetaEase [19] by 3.75×3.75 \times and the strongest traditional black-box baseline by 7.3×7.3 \times under the same time budget. LENS generalizes to Teal [39], an RL-based TE solver for which white-box methods (or even gray-box methods such as [32])

Figure

FIGURE 1: LLM-based traffic engineering workflow.

cannot be applied, and beats the strongest black-box baseline by about 120%.

Looking ahead. The same property that makes LENS useful today – that it needs only an executable interface, not a model – ensures that it can scale and adapt as network control systems evolve to use LLMs. We sketch four directions in §5: scaling to larger problem instances; moving from single high-gap instances to diverse adversarial corpora that can be used for adversarial retraining; repurposing the offline attack policy as an online signal for routing instances to the solver least likely to mishandle them; and, as agentic AI takes on more of network management, using LENS to systematically probe those systems for reliability gaps without ever needing access to their weights or prompts.

References (14)