State Representation Shapes Long-Horizon Agent Learning and Transfer: An Empirical Study
Organizations: Independent Researcher · University of North Texas
Abstract
An end-to-end success rate alone cannot distinguish failure to learn an action from failure to apply it as task state changes. We study this distinction in deterministic tool workflows that provide the current artifact state and candidate action recipes. Using 1.7B, 8B, and 27B Qwen models, we compare supervised learning across workflow horizons and cross the state representation used for training with the one used at evaluation. Horizon-matched supervision yields high completion, but an H4-trained 1.7B model transfers poorly to longer workflows under full-state observations. In an H16 crossover, compact-trained 1.7B adapters complete 50/50 held-out tasks in compact view and 0/50 in full view for each of three paired training seeds; full-trained outcomes vary across seeds. A separate 8B adapter pair shows a similar asymmetry. The view dependence also appears in paired-choice tasks where both candidate calls are executable and the correct choice depends on table contents; here, the compact mask does not consult the target action. An explicit relevance cue improves full-view execution but does not close the gap for the tested checkpoint. In a separate 27B ScienceWorld study, compact-state training improves local accuracy under both views, indicating that the transfer pattern depends on the task and observation construction. Together, these experiments identify representation-sensitive transfer as a bottleneck in the controlled workflows, without isolating content reduction from other changes to the observation.
Figures & tables
| Checkpoint and training | H4 | H8 | H16 |
|---|---|---|---|
| 1.7B, untuned | 2/20 | 0/20 | 0/20 |
| 1.7B, H4 SFT | 20/20 | 5/20 | 0/20 |
| 1.7B, horizon-matched SFT | 20/20 | 20/20 | 17/20 |
| 8B, horizon-matched SFT | 20/20 | 20/20 | 20/20 |
| 27B, horizon-matched SFT | 20/20 | 20/20 | 20/20 |
| Checkpoint | Horizon | Post-4 oracle (%) | Free-run success |
|---|---|---|---|
| Full compact | Full compact | ||
| 1.7B, H4 SFT | 8 | 68.8 100.0 | 5/20 20/20 |
| 1.7B, H4 SFT | 16 | 50.4 98.3 | 0/20 18/20 |
| 8B, untuned | 8 | 58.8 96.3 | 1/20 15/20 |
| 8B, untuned | 16 | 55.8 91.3 | 0/20 16/20 |
| 27B, untuned | 8 | 92.5 100.0 | 19/20 20/20 |
| Seed | |||||
|---|---|---|---|---|---|
| 20260910 | 45/50 | 24/50 | 0/50 | 50/50 | 142 |
| 20260926 | 49/50 | 50/50 | 0/50 | 50/50 | 98 |
| 20260927 | 35/50 | 46/50 | 0/50 | 50/50 | 78 |
| Train test | Oracle | Clean | Success | Calls / rejects |
|---|---|---|---|---|
| Full full | 800/800 | 50/50 | 50/50 | 16.00 / 0 |
| Full compact | 800/800 | 50/50 | 50/50 | 16.00 / 0 |
| Compact full | 336/800 | 0/50 | 0/50 | 32.00 / 50 |
| Compact compact | 799/800 | 49/50 | 49/50 | 16.32 / 1 |
| Train test | Pivotal /100 | Both /50 | Free run /20 |
| Full full | 49–52 | 0–3 | 0 |
| Full compact | 53–61 | 3–12 | 0 |
| Compact full | 59 | 9 | 0 |
| Compact compact | 100 | 50 | 20 |
| Training condition | Full | Compact | Block-masked |
|---|---|---|---|
| Full only | 98.75; 8/10 | 95.00; 6/10 | 97.50; 7/10 |
| Compact only | 70.00; 0/10 | 100.00; 10/10 | 70.63; 0/10 |
| Full/compact mixture | 81.88; 1/10 | 100.00; 10/10 | 76.88; 1/10 |
| Full/random mixture | 97.50; 6/10 | 98.13; 7/10 | 96.25; 5/10 |
| Train test | Success | Further rejects | Calls |
|---|---|---|---|
| Full full | 50/50 | 0/50 | 12.00 |
| Full compact | 50/50 | 0/50 | 12.00 |
| Compact full | 0/50 | 50/50 | 27.00 |
| Compact compact | 49/50 | 1/50 | 12.30 |
| View | Post-4 oracle (%) | Clean oracle | Free-run success | Recovery | Mean calls | |
|---|---|---|---|---|---|---|
| Full | 8 | 92.50 | 9/20 | 19/20 | 10/11 | 8.9 |
| Compact | 8 | 100.00 | 19/20 | 20/20 | 1/1 | 8.1 |
| Full | 16 | 82.08 | 0/20 | 16/20 | 16/20 | 22.8 |
| Compact | 16 | 99.17 | 18/20 | 20/20 | 2/2 | 16.1 |
| Training | Local (%) | Completion | No parser rejection (%) |
|---|---|---|---|
| Short-only | 69.83 | 46/90 | 95.96 |
| Mixed-horizon | 81.61 | 27/90 | 89.58 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Value |
|---|---|
| Base checkpoints | Qwen3-1.7B; Qwen3-8B |
| Supervision | Gold JSON action, completion-only loss |
| Training examples / optimizer steps | 800 actions / 100 steps |
| Microbatch / gradient accumulation | 1 / 8 |
| Learning rate / schedule | / linear |
| LoRA rank / alpha / dropout | 16 / 32 / 0.05 |
| Model | Trainer-visible data size | Curve tasks | Endpoint tasks |
|---|---|---|---|
| Qwen3-1.7B | 800 action examples | 10 | 20 |
| Qwen3-8B | 800 action examples | 10 | 20 |
| Qwen3.8-27B | 800 (H4), 1,600 (H8), and 3,200 (H16) action examples | 20 | 20 |
| Rows | Steps | Examples/update | Presentations | Distinct | Workflows | |
|---|---|---|---|---|---|---|
| 4 | 800 | 100 | 8 | 800 | 800 | 200 |
| 8 | 1,600 | 100 | 8 | 800 | 800 | 200 |
| 16 | 3,200 | 100 | 64 | 6,400 | 3,200 | 200 |
| Extra artifacts rows | Tokens | Oracle actions | Free-run success |
|---|---|---|---|
| 0 | 542 | 138/160 | 8/20 |
| 4 8 | 802 | 130/160 | 4/20 |
| 4 16 | 1,018 | 135/160 | 6/20 |
| 4 32 | 1,466 | 137/160 | 8/20 |
| 8 8 | 1,062 | 131/160 | 4/20 |
| 8 16 | 1,494 | 135/160 | 7/20 |
| View | Tokens | Oracle actions | Free-run success | |
|---|---|---|---|---|
| 4 | Full | 440 | 79/80 | 19/20 |
| 4 | Recent-2 | 396 | 79/80 | 19/20 |
| 8 | Full | 546 | 139/160 | 8/20 |
| 8 | Recent-2 | 405 | 151/160 | 13/20 |
| 16 | Full | 752 | 230/320 | 0/20 |
| 16 | Recent-2 | 430 | 294/320 | 4/20 |
| Seed | Train test | Pivotal | Both | Free run |
|---|---|---|---|---|
| 20261001 | Full full | 52 | 2 | 0 |
| 20261001 | Full compact | 59 | 9 | 0 |
| 20261001 | Compact full | 59 | 9 | 0 |
| 20261001 | Compact compact | 100 | 50 | 20 |
| 20261002 | Full full | 49 | 3 | 0 |
| 20261002 | Full compact | 61 | 12 | 0 |
| Train view | Test view | Oracle (%) | Free-run success | Mean calls |
|---|---|---|---|---|
| Full | Full | 99.1 | 17/20 | 18.40 |
| Full | Compact | 96.9 | 15/20 | 20.40 |
| Compact | Full | 32.2 | 0/20 | 32.00 |
| Compact | Compact | 100.0 | 20/20 | 16.00 |
| Checkpoint | Full | Full+cued | Compact | Compact+cued | Recent-2 |
|---|---|---|---|---|---|
| H4-trained | 66.56; 0/20 | 88.12; 7/20 | 98.12; 17/20 | 99.38; 19/20 | 78.44; 0/20 |
| H16 full-trained | 98.75; 19/20 | 99.69; 20/20 | 94.06; 8/20 | 99.38; 19/20 | 96.88; 15/20 |
| H16 compact-trained | 37.50; 0/20 | 64.06; 1/20 | 100.00; 20/20 | 100.00; 20/20 | 60.94; 0/20 |
| Contrast | Effect | 95% interval | |
|---|---|---|---|
| Compact minus full training, full test | |||
| Compact minus full training, compact test | |||
| Compact minus full test, full training | |||
| Compact minus full test, compact training | |||
| Difference of differences |
| Training evaluation | Step 20 | 40 | 60 | 80 | 100 |
|---|---|---|---|---|---|
| F F | 71.875 | 85.625 | 91.250 | 98.750 | 99.375 |
| F C | 83.125 | 100.000 | 100.000 | 96.875 | 96.875 |
| C F | 61.875 | 40.000 | 36.875 | 34.375 | 33.750 |
| C C | 90.000 | 100.000 | 100.000 | 100.000 | 100.000 |
| Train | Test | Post-4 oracle (%) | Oracle clean | Progress (%) | Recovery |
|---|---|---|---|---|---|
| F | F | 98.750 | 17/20 | 93.750 | 0/3 |
| F | C | 95.833 | 12/20 | 94.063 | 3/8 |
| C | F | 18.750 | 0/20 | 17.188 | 0/20 |
| C | C | 100.000 | 20/20 | 100.000 | — |
| Interface | Correct / probes | Accuracy (%) | Mean input tokens |
|---|---|---|---|
| Full tables, full action output | 129/320 | 40.31 | 607 |
| Names only, full action output | 224/320 | 70.00 | 374 |
| Recipe IDs with full fields | 253/320 | 79.06 | 205 |
| Output-only recipe IDs | 314/320 | 98.13 | 124 |
| One-distractor configuration | 345/480 | 71.88 | 554.5 |
| Model | Horizon | Step 20 | 40 | 60 | 80 | 100 |
|---|---|---|---|---|---|---|
| 1.7B | 4 | 90.000 | 100.000 | 100.000 | 100.000 | 100.000 |
| 1.7B | 8 | 90.000 | 93.750 | 98.750 | 100.000 | 100.000 |
| 1.7B | 16 | 71.875 | 85.625 | 91.250 | 98.750 | 99.375 |
| 8B | 4 | 100.000 | 100.000 | 100.000 | 100.000 | 100.000 |
| 8B | 8 | 100.000 | 100.000 | 100.000 | 100.000 | 100.000 |
| 8B | 16 | 99.375 | 99.375 | 100.000 | 100.000 | 100.000 |
| Clean oracle paths F, C | Free-run success F, C | |
|---|---|---|
| 4 | 20/20, 20/20 | 20/20, 20/20 |
| 8 | 20/20, 20/20 | 20/20, 20/20 |
| 16 | 20/20, 20/20 | 20/20, 20/20 |
| Horizon | Post-4 oracle (%) | Free-run success | Final progress (%) |
|---|---|---|---|
| Full compact | Full compact | Full compact | |
| 8 | 36.3 83.8 | 1/20 7/20 ( ) | 36.9 51.9 |
| 16 | 38.8 77.5 | 1/20 3/20 ( ) | 39.7 34.1 |
| View | Episodes with invalid actions | Succeeded among those | Legal noncanonical actions | |
|---|---|---|---|---|
| Full | 8 | 20/20 | 1/20 | 13 |
| Full | 16 | 20/20 | 1/20 | 24 |
| Compact | 8 | 16/20 | 3/16 | 13 |
| Compact | 16 | 20/20 | 3/20 | 15 |
| Baseline | Test view | Random only | Baseline only | Effect | |
|---|---|---|---|---|---|
| Full only | Full | 1 | 3 | .625 | |
| Full only | Compact | 3 | 2 | 1.000 | |
| Full only | Block | 1 | 3 | .625 | |
| Full/compact | Full | 6 | 1 | .125 | |
| Full/compact | Compact | 0 | 3 | .250 | |
| Full/compact | Block | 4 | 0 | .125 |
| Optimizer step | F F | C C | C F |
|---|---|---|---|
| 20 | 54.17 | 51.67 | 53.48 |
| 40 | 66.89 | 64.85 | 64.70 |
| 60 | 71.74 | 71.44 | 70.45 |
| 80 | 77.73 | 77.27 | 73.79 |
| 100 | 79.39 | 78.64 | 76.89 |
| Train view | Test view | DEV agreement (%) | Pilot completion |
|---|---|---|---|
| Full | Full | 79.39 | 7/30 |
| Full | Compact | 75.08 | 0/30 |
| Compact | Full | 76.89 | 8/30 |
| Compact | Compact | 78.64 | 6/30 |
| Training | Length | Local (%) | Completion | Mean score |
|---|---|---|---|---|
| Short-only | Short | 87.02 | 26/30 | 87.50 |
| Short-only | Medium | 65.40 | 15/30 | 71.17 |
| Short-only | Long | 65.64 | 5/30 | 45.87 |
| Mixed-horizon | Short | 81.89 | 13/30 | 67.77 |
| Mixed-horizon | Medium | 82.96 | 9/30 | 64.80 |
| Mixed-horizon | Long | 80.67 | 5/30 | 44.63 |
| Train/test | Rejection episodes | Later success | Later score increase |
|---|---|---|---|
| Full/Full | 14/30 | 1/14 | 4/14 |
| Full/Compact | 12/30 | 0/12 | 2/12 |
| Compact/Full | 18/30 | 4/18 | 12/18 |
| Compact/Compact | 19/30 | 6/19 | 9/19 |
| Total | 63/120 | 11/63 | 27/63 |
LLM Agents
Large language model agents use language models to plan, use tools, and act across multi-step tasks and environments.
See all 705 papers