True online TD(lambda)
Algorithms AIMech:TrueOnlineTDLambda DRAFT
A linear temporal-difference policy-evaluation algorithm that combines a Dutch eligibility trace with a correction for changing predictions, reproducing the weight sequence of a specified online lambda-return forward view at each finite horizon.
Identity Notes & Concept Scope
This record selects the linear on-policy prediction algorithm combining Dutch traces with prediction correction. The original TD family, replacing component, MCQ-L/Peng control and original Watkins hard-cut construction remain distinct. The Greek source spelling is included in collision detection without adding a native alias or globally rewriting lambda. Existing owner 264 retains both prior record IDs and its cohort 343 resolution, with other control/trace variants unresolved. Fresh collection on 15 October 2026 at 15:21:24–15:22:28 UTC used actual merged base 342606efadd8c2896facca6e6fa2f78e216f0a8b and compared all 766 native and 442 pinned AIO records (4,816 identity-field occurrences including local IDs; 3,680 normalized values). No canonical or explicit Greek-lambda candidate collision was found; 18 context-only fields span eight neighboring records. Four ignored- and hidden-inclusive checkout searches retained 1,353/1,360/3,385/4,292 occurrences, 10,390 total, in 557 exact contents. Root read all 41 candidate-specific decoded semantic contents, all 18 contextual identity fields/eight definitions and nine full relevant frontier objects; repeated identical HTML wrapper text was not counted as a separate scientific reading. Supporting source-agent assessment read all 445 decoded contexts and reconstructed all raw groups/ordered occurrences. All909main and393nested objects were queried mechanically. Historical source/AIO readings retain their separately documented scopes. These results are bounded to the dated corpus, four roots and semantic neighborhood, not global absence or saturation.
Claims & Grounded Evidence
6 Claims
Mechanism
#linear-online-forward-targets
For lambda in [0,1] and prediction under a fixed policy, represent the state value by V(s)=theta^T phi(s), with terminal features zero. At horizon h, the interim lambda-return for an earlier time k combines the available n-step returns with weights (1-lambda)*lambda^(n-1) for n=1,...,h-k-1 and remaining weight lambda^(h-k-1) on the last available return. The n-step return is G_k^(n)=sum_(i=1..n) gamma^(i-1)*R_(k+i) +gamma^n*theta_(k+n-1)^T phi_(k+n). The conceptual forward algorithm starts from the episode’s initial weights at each horizon and sequentially updates every earlier feature using its revised interim return, without using rewards beyond that horizon.
Mechanism
#dutch-trace-and-prediction-correction
In the constant-step-size convention, let V=theta^T phi and V_next=theta^T phi_next be computed before the weight update, and set delta=R+gamma*V_next-V. From zero trace at the start of each episode, update e=gamma*lambda*e_old+phi-alpha*gamma*lambda*(e_old^T phi)*phi. Then update theta_new=theta+alpha*delta*e+alpha*(V-V_old)*(e-phi). The Dutch trace and the additional prediction correction jointly define the backward update; substituting only the trace into ordinary TD does not generally produce true online TD(lambda).
Mechanism
#stored-pre-update-prediction
After each weight update, store the already computed V_next as V_old for the next transition. Thus V_old is the preceding weights’ prediction for the now-current feature, not a fresh evaluation with the current weights. The 2016 pseudocode initializes V_old=0, whereas the 2014 pseudocode initializes the actual initial prediction. With zero initial trace, the first updated unscaled trace is e=phi, so the correction’s dependence on the initial stored value cancels; this initialization comparison is a direct consequence of the displayed recurrences.
Mechanism
#scaled-trace-step-size-convention
The 2014 trace includes the step size; for constant alpha it equals alpha times the unscaled trace in the 2016 main algorithm. For time-varying alpha_t, the specified scaled trace is E=gamma*lambda*E_old+alpha_t*phi-alpha_t*gamma*lambda*(E_old^T phi)*phi, initialized to zero. Using delta_prime=R+gamma*V_next-V_old, its weight update is theta_new=theta+delta_prime*E-alpha_t*(V-V_old)*phi. This matched scaled form, not a naive substitution of alpha_t into the unscaled constant-alpha pair, implements the stated varying-step-size forward view.
Scope
#finite-time-correspondence-and-endpoints
For linear features, matched initial weights, step sizes and bootstrap timing, the backward recurrence produces the same weights as the specified online lambda-return forward sequence at each finite horizon. This is algebraic correspondence rather than a convergence theorem. At lambda=0 the update reduces to linear TD(0). At lambda=1, once an episode terminates with zero terminal bootstrap, the final forward sequence uses full returns and gives the corresponding sequential step-size Monte Carlo updates; before termination the interim targets still bootstrap.
Scope
#linear-feature-cost
With n linear features, the backward update retains O(n) vector state and requires O(n) arithmetic per transition, independent of elapsed prediction span. Tabular, binary and nonbinary linear features are covered. This avoids replaying the growing conceptual forward sequence but does not make computation identical to ordinary TD: the extra trace and prediction-correction terms add work, with the source describing larger constant overhead in some cases and smaller overhead for sparse features.
⚠️ Curated Limitations & Negative Results
- This identity is linear on-policy state-value prediction, not the entire TD family, a Dutch eligibility trace in isolation, nonlinear neural TD or a complete control method. True online Sarsa, true online Watkins/GTD and other trace extensions are distinct constructions. The prediction recurrence itself supplies no action-selection or exploration policy.
- Finite-time forward/backward equality does not establish convergence, stability, unbiasedness at every intermediate step, optimal step sizes or universal empirical superiority. The correspondence requires the stated initialization, feature sequence and prediction timing. The fixed-time small-alpha comparison in the 2016 paper does not alone justify exchanging time and step-size limits. Continuing returns require appropriate process and discount assumptions; an arbitrary continuing undiscounted process is not justified by the update equations.
- The unscaled 2016 main algorithm uses constant alpha. The varying-step-size form retains earlier scaled eligibility, so an isolated alpha_t=0 does not necessarily stop weight changes due to earlier nonzero step sizes. Constant alpha=0 with zero initial trace does freeze the weights. Trace normalization must not divide by alpha at zero or silently replace the matched scaled recurrence.
- The efficient exact backward derivation relies on linear dependence of the value estimate on the learned weights. The 2014 footnote about extending the forward approach to nonlinear approximation does not establish an exact nonlinear version of the displayed backward algorithm. A parameter-dependent feature generator or generic nonlinear network does not automatically inherit this equivalence.
- In the one-hot tabular case, the active Dutch trace can be written algebraically as (1-alpha) times accumulating plus alpha times replacing; this is a convex mixture only when alpha is in [0,1]. It is not a general coordinatewise replacing rule for overlapping real-valued features, and Dutch traces need not remain nonnegative or bounded by one. The 2014 exploratory nonzero-feature replacing convention and the 2016 binary-feature comparator are separate source conventions.
- The 2014 printed proof has visible inconsistencies: on PDF p. 6 an induction substitution ends in theta_k where its preceding bracket is the trace e_k, and the initial-step calculation writes alpha_k rather than alpha_0; on p. 7 the first substitution omits gamma from the next-state bootstrap. The main recurrences and the 2016 Appendix B derivation provide the mutually consistent method presentation used here. These are source-display qualifications, not observed failures of author software, an official erratum or certification of every proof step.
- Equal asymptotic vector cost does not guarantee equal wall-clock time or cost proportional only to the current feature vector’s nonzero entries: a retained trace may be dense, and feature-construction cost is additional. Reported performance comparisons remain tied to the papers’ tasks, representations, parameter searches and metrics. The two publication versions were inspected in recorded text and selected visual scopes, without author-code execution, numerical benchmark replication or a complete 40-page journal-paper proof and experiment audit.
Artificial Intelligence Ontology (AIO) Grounding
Mapped AIO Classes
| AIO Target Class | Mapping Relation | Mapping Rationale |
|---|---|---|
AIO:ReinforcementLearning
Reinforcement Learning
|
related_match | The method estimates a fixed policy’s state values from reward transitions and supplies prediction machinery used within reinforcement learning. The pinned target is a broader learning task involving exploration and performance optimization; this related association asserts neither exact identity nor that the prediction algorithm itself chooses actions, optimizes a policy or guarantees convergence. |
Evidence Sources & Primary Literature
2 Sources| Source ID | Publication / Document | Type / Access | Reference & Checksum |
|---|---|---|---|
vanseijen2014
|
Harm van Seijen, Richard S. Sutton
|
primary paper
full_text
|
ID: https://proceedings.mlr.press/v32/seijen14.html
sha256:c8f93a80ad42…
|
vanseijen2016
|
Harm van Seijen, A. Rupam Mahmood, Patrick M. Pilarski, Marlos C. Machado, Richard S. Sutton
|
primary paper
full_text
|
ID: https://www.jmlr.org/papers/v17/15-599.html
sha256:905d228fcd5e…
|
Curation Provenance
Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-10-15T15:40:28Z
Updated: 2026-10-15T15:40:28Z
Source File:
data/curated/TrueOnlineTDLambda.yaml