Papers
Topics
Authors
Recent
Search
2000 character limit reached

Linear Tile-Coding for Value Function

Updated 8 January 2026
  • Linear tile-coding is a method that transforms continuous states into sparse, high-dimensional binary vectors for efficient value function approximation.
  • Left-sided sketching applies dimensionality reduction only to the constraint side, ensuring unbiased estimation while preserving key curvature information.
  • The approach significantly reduces computational costs and improves sample efficiency, underpinning robust RL algorithms like LSTD and ATD-L.

Linear tile-coding for value function approximation is a methodology within reinforcement learning (RL) for representing and estimating the value function of a policy, especially in high-dimensional continuous state spaces. This approach leverages tile coding to create sparse binary feature encodings suitable for linear approximators, and, when combined with left-sided random sketching techniques, yields powerful and computationally efficient solutions for policy evaluation with least-squares temporal difference learning (LSTD) and quasi-Newton accelerated TD methods. Recent theoretical and empirical findings have clarified the bias–variance trade-offs intrinsic to sketching, provided robust approaches for matrix-based learning, and led to practical guidelines for scaling RL with tile coding to thousands of features (Pan et al., 2017).

1. Standard Linear Value-Function Approximation with Tile Coding

Tile coding transforms each continuous state ss into a high-dimensional binary feature vector ϕ(s)Rd\phi(s)\in\mathbb{R}^d, with dd potentially in the thousands, where each feature represents the activation of a tile over the state space. The value function under policy π\pi is linearly approximated as wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s), with weight vector wRdw\in\mathbb{R}^d to be learned.

The LSTD(λ\lambda) algorithm collects samples (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1}) and eligibility traces et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t), then forms the normal equations Aw=bA w = b, with

ϕ(s)Rd\phi(s)\in\mathbb{R}^d0

Batch solution ϕ(s)Rd\phi(s)\in\mathbb{R}^d1 has ϕ(s)Rd\phi(s)\in\mathbb{R}^d2 cost and maintaining ϕ(s)Rd\phi(s)\in\mathbb{R}^d3 incrementally by Sherman–Morrison costs ϕ(s)Rd\phi(s)\in\mathbb{R}^d4 per step. Stochastic TD(ϕ(s)Rd\phi(s)\in\mathbb{R}^d5) is ϕ(s)Rd\phi(s)\in\mathbb{R}^d6 but less sample-efficient and sensitive to stepsize choices.

2. Limitations of Two-Sided (Feature) Sketching

A common sketching approach forms a random projection ϕ(s)Rd\phi(s)\in\mathbb{R}^d7 (ϕ(s)Rd\phi(s)\in\mathbb{R}^d8) and generates low-dimensional features ϕ(s)Rd\phi(s)\in\mathbb{R}^d9. The reduced system dd0 is solved for dd1. However, for tile-coded features, this introduces substantial bias:

  • The projection dd2 unpredictably folds coordinates, mixing tile activations.
  • Though dd3, the projected normal equations minimize the TD error in the sketched space, not the original, so the fixed point shifts.

Empirically, this yields high asymptotic error unless dd4 approaches dd5. The bias dd6 only decays when dd7 is nearly as large as dd8, especially for sparse, discontinuous tile-coded features.

3. Left-Sided Sketching: Unbiased System Reduction

Left-side sketching applies the sketch dd9 only to the constraint side, yielding the system π\pi0. The true solution π\pi1 to π\pi2 also satisfies π\pi3, so no bias is introduced; all solutions of π\pi4 remain valid. In expectation, π\pi5 preserves curvature information with cost for operations on π\pi6 reduced from π\pi7 to π\pi8.

The system π\pi9 is under-determined (many solutions), so the minimum-norm solution is preferred: wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)0 where wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)1 and wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)2.

4. Incremental Sketched-LSTD and Algorithmic Efficiency

The incremental update process maintains wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)3 and wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)4. Each sample induces a rank-one update: wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)5 yielding the recursive averages: wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)6 The minimum-norm solution employs the SVD wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)7 and is computed as wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)8, with incremental maintenance of wϕ(s)vπ(s)w^\top\phi(s) \approx v_\pi(s)9 at wRdw\in\mathbb{R}^d0 per sample and inversion at wRdw\in\mathbb{R}^d1 when needed.

Each sample update costs wRdw\in\mathbb{R}^d2, making left-sided sketched-LSTD feasible for wRdw\in\mathbb{R}^d3 (e.g., wRdw\in\mathbb{R}^d4, wRdw\in\mathbb{R}^d5) and representing a substantial efficiency improvement over unsketched methods.

5. Variance Reduction via Quasi-Newton ATD-L Methods

Directly solving wRdw\in\mathbb{R}^d6 is unbiased but susceptible to numerical instability and infrequent inversion of wRdw\in\mathbb{R}^d7 matrices. The accelerated gradient TD update (ATD-L) leverages the sketched matrix as a preconditioner: wRdw\in\mathbb{R}^d8 where wRdw\in\mathbb{R}^d9 is the TD error and λ\lambda0 is a small regularizer. Under mild conditions (on λ\lambda1 and λ\lambda2), this iteration retains convergence to the unique LSTD solution λ\lambda3 without requiring full λ\lambda4 inversion.

ATD-L inherits the robustness of LSTD with respect to the trace parameter λ\lambda5 and regularization λ\lambda6, further lowering per-step computational overhead.

6. Bias–Variance Trade-Offs and Theoretical Guarantees

Two-sided sketching creates nonzero bias—λ\lambda7—decaying slowly unless λ\lambda8. Left-side sketching is unbiased in expectation, but variance is increased depending on λ\lambda9. The Johnson–Lindenstrauss lemma gives the bound: (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})0 if (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})1. Practically, increasing (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})2 reduces variance and RMS error but increases computational time, with (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})3 serving as an effective range for tile-coding (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})4.

7. Empirical Results and Practical Recommendations

Experiments in Mountain Car, Puddle World, Acrobot, and Energy Allocation domains, with tile coding ((st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})5) and RBF features, demonstrate:

Method Sample Efficiency Bias (Tile Coding) Typical Per-Step Runtime
Full LSTD (d×d) Best, unaffected by λ None (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})6 ((st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})7150 ms)
Two-sided sketch LSTD Poor, high error High (unless (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})8) (st,rt+1,st+1)(s_t, r_{t+1}, s_{t+1})9
Left-side sketched LSTD Excellent Unbiased et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)0 (et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)11 ms)
ATD-L (Quasi-Newton) Excellent, robust to λ Unbiased et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)2 (et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)30.5 ms)

In Mountain Car with et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)4:

  • Full LSTD yields RMS error et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)50.05 in 2,000 steps at et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)6150 ms/step.
  • Two-sided sketching gives high bias, RMS error et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)70.15.
  • Left-sided LSTD attains RMS error et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)80.05 at et=γtλet1+ϕ(st)e_t = \gamma_t\lambda e_{t-1} + \phi(s_t)91 ms/step—a Aw=bA w = b0150Aw=bA w = b1 speedup.
  • ATD-L achieves similar error and Aw=bA w = b20.5 ms/step without matrix inversion.

Guidelines for practical implementation include:

  • Choice of Aw=bA w = b3: Aw=bA w = b4 or Aw=bA w = b5 for desired JL distortion; for Aw=bA w = b6, Aw=bA w = b7 is typical.
  • Sketch type: Gaussian, CountSketch, Subsampled Hadamard behave similarly; Gaussian is simplest.
  • Initialization: Set Aw=bA w = b8 with small Aw=bA w = b9 (ϕ(s)Rd\phi(s)\in\mathbb{R}^d00 to ϕ(s)Rd\phi(s)\in\mathbb{R}^d01), ensuring regularization and invertibility.
  • Sensitivity: Left-sided LSTD and ATD-L are robust to ϕ(s)Rd\phi(s)\in\mathbb{R}^d02 and ϕ(s)Rd\phi(s)\in\mathbb{R}^d03, unlike TD(ϕ(s)Rd\phi(s)\in\mathbb{R}^d04) which requires careful stepsize tuning.
  • Sparse tile coding: Increase tilings or mix tiles to expand the effective visit subspace for ϕ(s)Rd\phi(s)\in\mathbb{R}^d05.

Employing only left-sided sketching within LSTD preserves unbiased estimation of ϕ(s)Rd\phi(s)\in\mathbb{R}^d06, lowers per-step cost from ϕ(s)Rd\phi(s)\in\mathbb{R}^d07 to ϕ(s)Rd\phi(s)\in\mathbb{R}^d08, and, with quasi-Newton ATD updates, provides a sample-efficient and robust policy evaluation framework for large-scale tile-coded representations (Pan et al., 2017).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Linear Tile-Coding for Value Function.