SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2301.11321 · ICML · 2023

Trajectory-Aware Eligibility Traces for Off-Policy Reinforcement Learning

Martha White, Marlos Machado, Christopher Amato, Brett Daley

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2301.11321.json · badge: /api/ran/2301.11321.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
brett-daley/trajectory-aware-etraces canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
FunctionStatusWhere it lives
RBIS Ran
ran on a synthesized input
brett-daley/trajectory-aware-etraces/trajectory_aware_etraces/algorithms/algorithms.py
code served (permissive licence) · get_code("e14bff5f93f63a9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned ndarray, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

INIT_ARGS = {
    'discount': 0.99,
    'lambd': 0.95,
}

ARGS = {
    'td_errors': np.array([0.1, 0.2, -0.05, 0.15]),
    'behavior_probs': np.array([0.8, 0.7, 0.9, 0.85]),
    'target_probs': np.array([0.9, 0.8, 0.85, 0.9]),
    'dones': np.array([False, False, False, True]),
}

METHOD = 'trajectory'
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Vector Ran
ran on a synthesized input
brett-daley/trajectory-aware-etraces/trajectory_aware_etraces/algorithms/algorithms.py
code served (permissive licence) · get_code("5136498ee8aebc76")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

class Vector:
    """A dynamically sized NumPy array optimized for eligibility-trace operations."""

    def __init__(self, dtype=np.float64, init_length=1000, growth_factor=2.0):
        self._dtype = dtype
        self._growth_factor = growth_factor
        self._array = self._new_array(init_length)
        self._size = 0

    def __len__(self):
        return self._size

    def numpy(self):
        return self._array[:self._size]

    def append(self, value):
        self._array[self._size] = value
        self._size += 1
        if self._size >= len(self._array):
            self._increase_max_size()

    def assign(self, value):
        self._array[:self._size] = value

    def multiply(self, value):
        self._array[:self._size] *= value

    def _new_array(self, size):
        return np.empty(size, dtype=self._dtype)

    def _increase_max_size(self):
        old_array = self._array
        old_size = len(old_array)
        new_size = int(old_size * self._growth_factor)
        assert new_size > old_size
        new_array = self._new_array(new_size)
        new_array[:old_size] = old_array
        self._array = new_array


INIT_ARGS = {
    'dtype': np.float64,
    'init_length': 100,
    'growth_factor': 2.0
}

ARGS = {
    'value': 3.14
}

METHOD = 'append'

vector = Vector(**INIT_ARGS)
vector.append(**ARGS)
print(f"Vector length: {len(vector)}")
print(f"Vector contents: {vector.numpy()}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
reduce_sum Ran
ran, honoured the contract we drafted
brett-daley/trajectory-aware-etraces/trajectory_aware_etraces/algorithms/algorithms.py
code served (permissive licence) · get_code("6addba60737c1bdf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct valid arguments for reduce_sum
# The function takes a list of arrays, pads them to the same length, and sums them

# Create arrays of different lengths
array1 = np.array([1.0, 2.0, 3.0])
array2 = np.array([4.0, 5.0])
array3 = np.array([6.0, 7.0, 8.0, 9.0])

arrays = [array1, array2, array3]

ARGS = {
    "arrays": arrays
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
EligibilityTraces Not yet run
unverified (harvested, no recorded run)
brett-daley/trajectory-aware-etraces/trajectory_aware_etraces/algorithms/algorithms.py
code served (permissive licence) · get_code("cb3a59ff9f469385")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Off-policy learning from multistep returns is crucial for sample-efficient reinforcement learning, but counteracting off-policy bias without exacerbating variance is challenging. Classically, offpolicy bias is corrected in a per-decision manner: past temporal-difference errors are re-weighted by the instantaneous Importance Sampling (IS) ratio after each action via eligibility traces. Many offpolicy algorithms rely on this mechanism, along with differing protocols for cutting the IS ratios to combat the variance of the IS estimator. Unfortunately, once a trace has been fully cut, the effect cannot be reversed. This has led to the development of credit-assignment strategies that account for multiple past experiences at a time. These trajectory-aware methods have not been extensively analyzed, and their theoretical justification remains uncertain. In this paper, we propose a multistep operator that can express both perdecision and trajectory-aware methods. We prove convergence conditions for our operator in the tabular setting, establishing the first guarantees for several existing methods as well as many new ones. Finally, we introduce Recency-Bounded Importance Sampling (RBIS), which leverages trajectory awareness to perform robustly across λ-values in several off-policy control tasks. Reinforcement learning concerns an agent interacting with its environment through trial and error to maximize its expected cumulative reward. One of the great challenges of re-

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2301.11321")
get_code_for_paper("2301.11321")
have("2301.11321")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2301.11321.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2301.11321.svg)](https://syntology.ai/paper/2301.11321)

Connect an agent — have() is free.