Linear Methods for Function Approximation
Linear TD(0) relies on the matrix A to control whether weight updates shrink or grow.
Why the Matrix Matters
Linear function approximation represents a value estimate using features and weights. In linear TD(0), the central convergence question is not only whether the update has a target. It is whether the part of the update involving the current weights shrinks the weight vector or amplifies some of its components. The matrix A controls that behavior.
The main sufficient condition discussed for linear TD(0) is that A be positive definite.
This condition gives a useful way to organize the topic. First, identify A. Next, unpack its factorization. Then examine the middle factor D(I − γP), because that is where the transition structure and the stationary distribution enter the positive-definiteness argument. Finally, keep the scope of the result clear: a stability condition is not by itself a complete probability-one convergence proof.
Tracing the Update Through A
A = ΦᵀD(I − γP)ΦThe factorization shows the responsibilities of the three ingredients. Φ is the feature matrix, with one row containing the feature vector φ(s) for each state. D is diagonal and contains the stationary-distribution values d(s). P is the transition matrix under policy π, with entries p(s′ | s). The feature matrix appears on both sides of the middle factor because the transition-and-distribution structure is expressed in the feature representation.
The vector b also appears in the TD(0) update, but A has the key stability role. To see the intuition, imagine that A is diagonal. If one diagonal element is negative, the corresponding diagonal element of I − αA is greater than one. That component of the weight vector is amplified rather than reduced. If all diagonal elements are positive, α can be chosen small enough that the diagonal elements of I − αA lie between zero and one, so the corresponding components are shrunk.
Reading the Stability Intuition
Suppose the weight-dependent part of an update behaves like w_next = (I − αA)w. What qualitative effect follows if a diagonal entry of A is negative, compared with the case where all diagonal entries are positive and α is sufficiently small?
Negative diagonal entry: For a negative diagonal entry of A, subtracting α times that entry makes the matching diagonal entry of I − αA greater than one.
Effect on a component: The matching component of w is amplified rather than reduced. If this behavior continues, divergence can result.
Positive diagonal entries: When every diagonal entry is positive, a sufficiently small α can place the diagonal entries of I − αA between zero and one.
Effect on the update: The corresponding weight components are then shrunk by the update.
The sign and size behavior represented by A determine whether the weight-dependent part of the update tends to reduce or amplify components.
Why D(I − γP) Is Central
The middle factor D(I − γP) is central because it combines how often states are represented in the stationary distribution with how the policy moves between states. The convergence argument examines this factor before the feature transformation by Φ and Φᵀ.
Because P is a stochastic matrix and γ is less than 1, every row sum of D(I − γP) is positive. The remaining part of the argument is to establish that the column sums are nonnegative. The stationary-distribution relation d = Pᵀd is used when analyzing those column sums. In the stated continuing, on-policy setting, the resulting components are positive.
1ᵀD(I − γP)
| Positive-definiteness condition | Complete probability-one convergence proof |
|---|---|
| Focuses on the matrix property that supports stable weight behavior. | Includes the additional proof steps needed to establish convergence with probability one. |
| Uses A and the structure of D(I − γP) as central objects. | Cannot be replaced by merely stating that A is positive definite. |
Building a Value Estimate
A linear value estimate is a weighted sum of feature values. For a state s, the feature vector φ(s) describes the state in the chosen representation, and the weight vector determines how strongly the features contribute to the estimate. The learning method changes the weights; the feature design determines what patterns those weights can express.
Estimated value = weighted sum of feature valuesThis is why a linear approximator should not automatically be dismissed as too simple. It can work well when its features are appropriate. A feature representation can emphasize useful patterns instead of presenting the learning method with an undifferentiated description of the task.
Feature selection acts as a way to place prior domain knowledge into a reinforcement learning system. The designer chooses a representation that emphasizes patterns believed to be useful for the problem, and the linear learner then adjusts the weights attached to those features.
Choosing Feature Representations
| Representation | High-level role in representing a task |
|---|---|
| Polynomials | Represent a task through polynomial feature terms. |
| Fourier basis features | Represent a task through features from a Fourier basis. |
| Coarse coding | Represent a task using overlapping coarse regions or general responses. |
| Tile coding | Represent a task using multiple tilings that provide feature activations. |
| Radial basis functions | Represent a task using basis responses associated with locations or centers. |
Polynomials, Fourier basis features, coarse coding, tile coding, and radial basis functions are different representation choices, not different names for the same feature construction. Each gives the linear learner a different way to describe states and activate features. Consequently, the same update rule can behave differently in practice when supplied with different representations.
LSTD and Nonlinear Alternatives
Linear methods do not all make the same data and computation trade-off. LSTD favors data efficiency, but it has a higher computational scaling cost than the other linear methods described. In practical terms, LSTD uses a more computation-intensive approach in exchange for making efficient use of collected experience.
| Linear approximation | Nonlinear approximation |
|---|---|
| Uses a weighted sum of selected features. | Uses nonlinear models such as artificial neural networks. |
| Is especially well understood theoretically. | Can be trained by backpropagation and variations of stochastic gradient descent. |
| Depends strongly on the appropriateness of the supplied features. | The popularity of neural-network methods in reinforcement learning motivates the term deep reinforcement learning. |
Nonlinear methods take a different modeling direction from linear approximation. The source includes artificial neural networks trained by backpropagation and variations of stochastic gradient descent among these methods. Their popularity in reinforcement learning has led to the term deep reinforcement learning. The choice between linear and nonlinear approximation is therefore also a choice between relying on designed features and using a nonlinear model to learn representations and parameters.
Common Reasoning Errors
Treating b as the matrix that determines stability.
The convergence analysis is mainly about A. The vector b appears in the update, but A determines the behavior of the part involving the current weights.
Fix:
When analyzing stability, begin by identifying A and asking whether it is positive definite.Stopping after writing A = ΦᵀD(I − γP)Φ.
D(I − γP) is the key inner matrix in the positive-definiteness argument.
Fix:
Track the roles of Φ, D, and P, then examine the row sums, column sums, and stationary-distribution relation associated with D(I − γP).Claiming that positive definiteness alone is a complete probability-one convergence proof.
The condition supports the stability analysis, but a complete probability-one proof requires additional stochastic-approximation conditions and reasoning.
Fix:
State clearly whether you are describing the matrix condition or the full convergence proof.Assuming every linear approximator is too simple to be useful.
A linear method can work well when its features are chosen appropriately.
Fix:
Evaluate the feature representation together with the learning method.Treating feature selection as a neutral preprocessing detail.
Feature selection places prior domain knowledge into the reinforcement learning system and strongly influences what can be learned and generalized.
Fix:
Ask which task patterns the chosen representation emphasizes.
Check Your Understanding
Explain, in your own words, why the analysis focuses on A rather than only on the vector b. Then write the factorization of A and identify the role of Φ, D, and P.
Hints
- Start with the part of the update involving the current weight vector.
- Remember that Φ contains feature vectors by state, D contains stationary-distribution values on its diagonal, and P contains transition probabilities under the policy.
- Mention what happens when the weight-dependent update shrinks components versus amplifies them.
Compare a linear method using tile coding with a nonlinear method using an artificial neural network. What is supplied by the designer in the first case, and what modeling direction is used in the second?
Hints
- For the linear method, focus on the feature representation and weighted sum.
- For the nonlinear method, recall neural networks, backpropagation, and variations of stochastic gradient descent.
- Do not conclude that one approach is universally better from this distinction alone.
Key Takeaways
- Linear TD(0) uses the matrix A as the central object for analyzing whether the weight-dependent update shrinks or grows.
- The important factorization is A = ΦᵀD(I − γP)Φ.
- D(I − γP) is central because its row sums, column sums, and the relation d = Pᵀd support the positive-definiteness argument in the continuing on-policy setting with γ less than 1.
- Positive definiteness is a stability condition used in the analysis, not by itself a complete probability-one convergence proof.
- A linear value estimate is a weighted sum of features, so feature selection adds prior domain knowledge and strongly affects learning and generalization.
- LSTD favors data efficiency at higher computational scaling cost, while nonlinear neural-network methods follow a different modeling direction associated with deep reinforcement learning.
Key Takeaways
- A is the matrix that controls the stability behavior of the weight-dependent part of linear TD(0).
- Its factorization A = ΦᵀD(I − γP)Φ connects feature representation, stationary state frequencies, and policy-induced transitions.
- The positive-definiteness condition supports the convergence analysis, but it is not a complete probability-one proof on its own.
- Feature selection supplies prior domain knowledge, while LSTD and nonlinear methods introduce different data, computation, and modeling trade-offs.