Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvement
Paper • 2605.05755 • Published
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
step: int64
action: string
repo: string
sha: string
packages: list<item: string>
child 0, item: string
seeds: list<item: int64>
child 0, item: int64
algos: list<item: string>
child 0, item: string
budgets: list<item: int64>
child 0, item: int64
finding: string
verdict: string
paper_id: string
runs: list<item: struct<run_index: int64, seed: int64, wall_time_s: double, sarsa: struct<experiment: stri (... 2761 chars omitted)
child 0, item: struct<run_index: int64, seed: int64, wall_time_s: double, sarsa: struct<experiment: string, seed: i (... 2749 chars omitted)
child 0, run_index: int64
child 1, seed: int64
child 2, wall_time_s: double
child 3, sarsa: struct<experiment: string, seed: int64, train_s: double, eval_s: double, by_K: struct<100: struct<P1 (... 1288 chars omitted)
child 0, experiment: string
child 1, seed: int64
child 2, train_s: double
child 3, eval_s: double
child 4, by_K: struct<100: struct<P12: struct<cosine: double, scale_factor: double, rel_residual: double, learned_n (... 888 chars omitted)
child 0, 100: struct<P12: struct<cosine: double, scale_factor: double, rel_residual: double, learned_norm: double, (... 138 chars omitted)
child 0, P12: struct<cosine: double, scale_factor: double, rel_residual: double, learned_norm: double, target_norm (... 9 chars omitted)
child 0, cosine: double
child 1, scale_fa
...
, scale_factor: double, rel_residual: double, learned_norm: double, target_norm (... 9 chars omitted)
child 0, cosine: double
child 1, scale_factor: double
child 2, rel_residual: double
child 3, learned_norm: double
child 4, target_norm: double
child 1, V21: struct<cosine: double, scale_factor: double, rel_residual: double, learned_norm: double, target_norm (... 9 chars omitted)
child 0, cosine: double
child 1, scale_factor: double
child 2, rel_residual: double
child 3, learned_norm: double
child 4, target_norm: double
child 5, monotone_increasing: struct<P12: bool, V21: bool>
child 0, P12: bool
child 1, V21: bool
child 6, heldout_control: struct<num_tasks: int64, updates: int64, tf_final_return_mean: double, tf_final_return_std: double, (... 150 chars omitted)
child 0, num_tasks: int64
child 1, updates: int64
child 2, tf_final_return_mean: double
child 3, tf_final_return_std: double
child 4, teacher_final_return_mean: double
child 5, teacher_final_return_std: double
child 6, oracle_return_mean: double
child 7, random_return_mean: double
child 8, tf_minus_teacher: double
to
{'paper_id': Value('string'), 'verdict': Value('string'), 'runs': List({'run_index': Value('int64'), 'seed': Value('int64'), 'wall_time_s': Value('float64'), 'sarsa': {'experiment': Value('string'), 'seed': Value('int64'), 'train_s': Value('float64'), 'eval_s': Value('float64'), 'by_K': {'100': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '500': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '1000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '5000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'tar
...
': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '1000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '5000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}}, 'monotone_increasing': {'P12': Value('bool'), 'V21': Value('bool')}, 'heldout_control': {'num_tasks': Value('int64'), 'updates': Value('int64'), 'tf_final_return_mean': Value('float64'), 'tf_final_return_std': Value('float64'), 'teacher_final_return_mean': Value('float64'), 'teacher_final_return_std': Value('float64'), 'oracle_return_mean': Value('float64'), 'random_return_mean': Value('float64'), 'tf_minus_teacher': Value('float64')}}})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
step: int64
action: string
repo: string
sha: string
packages: list<item: string>
child 0, item: string
seeds: list<item: int64>
child 0, item: int64
algos: list<item: string>
child 0, item: string
budgets: list<item: int64>
child 0, item: int64
finding: string
verdict: string
paper_id: string
runs: list<item: struct<run_index: int64, seed: int64, wall_time_s: double, sarsa: struct<experiment: stri (... 2761 chars omitted)
child 0, item: struct<run_index: int64, seed: int64, wall_time_s: double, sarsa: struct<experiment: string, seed: i (... 2749 chars omitted)
child 0, run_index: int64
child 1, seed: int64
child 2, wall_time_s: double
child 3, sarsa: struct<experiment: string, seed: int64, train_s: double, eval_s: double, by_K: struct<100: struct<P1 (... 1288 chars omitted)
child 0, experiment: string
child 1, seed: int64
child 2, train_s: double
child 3, eval_s: double
child 4, by_K: struct<100: struct<P12: struct<cosine: double, scale_factor: double, rel_residual: double, learned_n (... 888 chars omitted)
child 0, 100: struct<P12: struct<cosine: double, scale_factor: double, rel_residual: double, learned_norm: double, (... 138 chars omitted)
child 0, P12: struct<cosine: double, scale_factor: double, rel_residual: double, learned_norm: double, target_norm (... 9 chars omitted)
child 0, cosine: double
child 1, scale_fa
...
, scale_factor: double, rel_residual: double, learned_norm: double, target_norm (... 9 chars omitted)
child 0, cosine: double
child 1, scale_factor: double
child 2, rel_residual: double
child 3, learned_norm: double
child 4, target_norm: double
child 1, V21: struct<cosine: double, scale_factor: double, rel_residual: double, learned_norm: double, target_norm (... 9 chars omitted)
child 0, cosine: double
child 1, scale_factor: double
child 2, rel_residual: double
child 3, learned_norm: double
child 4, target_norm: double
child 5, monotone_increasing: struct<P12: bool, V21: bool>
child 0, P12: bool
child 1, V21: bool
child 6, heldout_control: struct<num_tasks: int64, updates: int64, tf_final_return_mean: double, tf_final_return_std: double, (... 150 chars omitted)
child 0, num_tasks: int64
child 1, updates: int64
child 2, tf_final_return_mean: double
child 3, tf_final_return_std: double
child 4, teacher_final_return_mean: double
child 5, teacher_final_return_std: double
child 6, oracle_return_mean: double
child 7, random_return_mean: double
child 8, tf_minus_teacher: double
to
{'paper_id': Value('string'), 'verdict': Value('string'), 'runs': List({'run_index': Value('int64'), 'seed': Value('int64'), 'wall_time_s': Value('float64'), 'sarsa': {'experiment': Value('string'), 'seed': Value('int64'), 'train_s': Value('float64'), 'eval_s': Value('float64'), 'by_K': {'100': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '500': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '1000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '5000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'tar
...
': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '1000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}, '5000': {'P12': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}, 'V21': {'cosine': Value('float64'), 'scale_factor': Value('float64'), 'rel_residual': Value('float64'), 'learned_norm': Value('float64'), 'target_norm': Value('float64')}}}, 'monotone_increasing': {'P12': Value('bool'), 'V21': Value('bool')}, 'heldout_control': {'num_tasks': Value('int64'), 'updates': Value('int64'), 'tf_final_return_mean': Value('float64'), 'tf_final_return_std': Value('float64'), 'teacher_final_return_mean': Value('float64'), 'teacher_final_return_std': Value('float64'), 'oracle_return_mean': Value('float64'), 'random_return_mean': Value('float64'), 'tf_minus_teacher': Value('float64')}}})}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.