arXiv:2608.22636cs.LGAug 2026

Manuscript Offprint

arXiv:2608.22636

Q-Learning with Stable Infinite-Dimensional Linear Function Approximation

Shengbo Wang

Abstract

Q-learning with linear function approximation can be unstable because an arbitrary approximation architecture need not preserve the Bellman contraction. We develop a stable infinite-dimensional linear function approximation framework for Q-learning from a single Markovian behavior-policy trajectory. The learning variable is a coefficient field θ∈C(L)\theta \in C(\mathbb{L}) on a compact latent metric space (L,ρ)(\mathbb{L}, \rho). The framework uses a reconstruction operator that maps θ\theta to a continuous Q-function and a compression operator that maps Bellman updates back to latent coordinates. Nonexpansiveness of both operators induces a contractive latent Bellman map on C(L)C(\mathbb{L}), with a unique fixed point θ∗\theta^* whose reconstruction approximates the optimal Q-function up to representation error. We propose two stochastic approximation (SA) algorithms and establish their sup-norm convergence bounds with a leading term of order O~(n−1/2)\tilde{O}(n^{-1/2}). The infinite-dimensional formulation provides a powerful abstraction for identifying the structures that govern statistical difficulty. Smoothness of the compression map in ρ\rho is inherited by θ∗\theta^* and the SA iterates, allowing uniform estimation errors to be controlled through covering numbers of (L,ρ)(\mathbb{L}, \rho) rather than the dimension of C(L)C(\mathbb{L}). Remarkably, the SA algorithms we propose are agnostic to the choice of ρ\rho, and thus can automatically adapt to both the smoothness and the geometry. We further illustrate the framework through Q-measure-learning with linear density approximation and output-layer neural weight training under a frozen pretrained network.

1 Introduction

Value-based reinforcement learning (RL) is a principled route from data to the optimal control of a Markov decision process (MDP) with unknown rewards and dynamics. In this paper, we study variants of the celebrated Q-learning algorithm [43] for value-based RL in large and potentially infinite state-action spaces. When the underlying MDP model is known, the Bellman optimality equation characterizes the optimal action-value function Q∗Q^{*} and an optimal greedy policy. Q-learning replaces exact Bellman updates with one-sample Bellman targets, thereby providing a model-free route to approximating Q∗Q^{*}. Extending this principle beyond finite state-action spaces requires function approximation: in large or continuous spaces, Q∗Q^{*} is defined on a complex domain rather than a finite table, and a learned Q-function must generalize beyond the observed state-action pairs. Consequently, the effectiveness of value-based RL in such settings depends critically on how function approximation is incorporated into the Bellman learning dynamics.

Linear function approximation is a simple but powerful abstraction for scalable function learning: a complex function is represented as a linear combination of a collection of features. In approximate dynamic programming and value-based RL, linear architectures underpin early projected methods [37, 38], least-squares approaches [5, 19], kernel smoothing [29], and quantization [18]. Directly composing Bellman updates with a linear approximator built from an arbitrary basis, however, need not yield stable learning dynamics. The approximation step may fail to preserve the Bellman operator's sup-norm contraction, and classical counterexamples show that linear value-learning recursions can diverge [2]. This interaction among function approximation, bootstrapping, and off-policy sampling is commonly known as the “deadly triad.”

Therefore, a starting point for designing a Q-learning-type algorithm with linear function approximation is to require not merely that the chosen function class approximate Q∗Q^{*} well, but also that the Bellman update and approximation mechanism together define a provably stable and convergent algorithmic procedure. To achieve this, we leverage a classical insight from approximate dynamic programming: the stability induced by Bellman contraction can be preserved by using nonexpansive averaging operators for linear function approximation [14, 32]. In this paper, we develop a function-space extension of this principle and apply it to a single-trajectory Q-learning setting.

Specifically, we consider an infinite state-action space setting in which the learner observes a single state-action-reward trajectory generated by a Markovian behavior policy. We assume that the behavior chain admits a stationary distribution μb\mu_b, which describes the long-run sampling law of the observed state-action pairs. The objective is to optimize a coefficient field θ∈C(L)\theta \in C(\mathbb{L}) on a latent metric space L\mathbb{L}, which may be finite or infinite, so that the reconstructed function approximates Q∗Q^*. At the core of the algorithm design are two nonexpansive operators. A linear reconstruction map Φ\Phi decodes θ\theta into a continuous Q-function, while a compression map K maps a Q-function back to its latent coordinates. Given a coefficient field θ∈C(L)\theta \in C(\mathbb{L}), these reconstruction and compression maps induce the natural population value-iteration procedure

θ→reconstructionΦqθ:=Φθ→BellmanupdateTTqθ→compressionKKTΦθ.\theta\xrightarrow[\mathrm{reconstruction}]{\Phi}q_{\theta}:=\Phi\theta\xrightarrow[\mathrm{Bellman update}]{\mathcal{T}}\mathcal{T}q_{\theta}\xrightarrow[\mathrm{compression}]{\mathrm{K}}\mathrm{K}\mathcal{T}\Phi\theta.

The map Φ\Phi plays the role of the feature map in standard linear function approximation, specifying how features and latent coefficients are combined to represent a Q-function. The compression map K is chosen as a stationary-normalized kernel from the latent space to the state-action space, absolutely continuous with respect to μb\mu_b, so that the population update is aligned with the limiting distribution of the observed trajectory. If both Φ\Phi and K are nonexpansive in the sup norm, then the operator G:=KTΦ\mathcal{G} := K\mathcal{T}\Phi inherits the contraction property of T\mathcal{T}. Consequently, G\mathcal{G} has a unique fixed point θ∗\theta^*, and this contraction structure enables the design of stable stochastic approximation (SA) methods for learning θ∗\theta^* from the observed trajectory.

The stationary distribution μb\mu_b is generally unknown, so the stationary-normalized population update cannot be implemented directly. We develop two SA algorithms that estimate the same latent fixed point θ∗\theta^* using only the observed trajectory: an unnormalized recursion that avoids the stationary normalization and an empirical-normalized recursion that estimates the normalization from the same data stream. For both algorithms, we establish high-probability, last-iterate guarantees in the sup norm. The leading stochastic error has the canonical O~(n−1/2)\widetilde{O}(n^{-1/2}) order, with latent-space complexity entering through metric-entropy factors.

Beyond developing the stable approximation framework and its associated algorithms, a core contribution of this paper is the deliberate use of an infinite latent space L. This abstraction provides a way to assess the intrinsic statistical difficulty of large representations. Working directly in function space identifies the structures that support efficient learning: positivity and nonexpansiveness of the approximation maps, regularity of the coefficient field, and the geometry of the latent representation. In particular, smoothness of the compression kernel with respect to the latent metric ρ\rho is inherited by both the population fixed point and the SA iterates, yielding deterministic Lipschitz bounds throughout the learning dynamics. These bounds allow us to control the stochastic error on a finite ϵ\epsilon-net of L and then extend the result to the full latent space. Consequently, the statistical complexity of estimating θ∗\theta^* is governed by the covering number Nρ(ϵ)\mathcal{N}_\rho(\epsilon) of the latent space rather than by the formal dimension of C(L)C(\mathbb{L}).

Remarkably, ρ\rho only manifest in the regularity and covering arguments used in the analysis, while the SA algorithms are agnostic to the choice of ρ\rho. Therefore, the same algorithmic trajectory can be analyzed under any admissible metric, and the resulting error bound reflects the optimal tradeoff between smoothness of the compression kernel and the covering complexity of (L,ρ)(\mathbb{L}, \rho). In this sense, the algorithms admit automatic adaptivity to the latent geometry without requiring that geometry to be specified or optimized during learning. This perspective is particularly useful for large representations, where different metrics can reveal substantially different effective complexity despite describing the same latent space.

We illustrate the framework through two applications. First, we develop a linear density approximation version of the Q-measure-learning proposed by Wang [41], showing how its stationary-normalized kernel construction fits within our framework, with the density serving as the coefficient field. Second, we apply the framework to a frozen pretrained neural network, where the pre-output neurons form the latent space and the frozen network provides the reconstruction architecture. The activation patterns of the pre-output neurons induce a metric under which two neurons are close when they respond similarly across the state-action space. The resulting covering number measures the number of functionally distinct activation patterns rather than the raw network width. Thus, a very wide pretrained representation can still have moderate statistical complexity when its neurons aggregate into a much smaller number of distinct response modes.

References (46)