Divergent Paths: Learning an Outcome-Predictive Representation of LLM Agent Trajectories
Organizations: Handshake AI · University of Utah
Abstract
In this work, we reframe agentic trajectories as paths through a shared embedding space of actions and environmental observations. We show that successful and failed rollouts of the same task separate in this space, with simple per-task discriminators predicting held-out rollout outcomes at up to 0.95 AUROC across three agent benchmarks and three policy models. To exploit this signal across tasks, we introduce Precog-RM, a transformer-based model that meta-learns a representation in which outcome prediction can be performed in a few-shot setting. We show that Precog-RM generalizes to unseen tasks and models, and gives confident predictions of trajectory success long before termination. Deployed as an early stopping controller for Group Relative Policy Optimization (GRPO) on Tau2-Bench, Precog-RM cuts training FLOPs by up to 47.3% while maintaining performance comparable to baseline GRPO.
Figures & tables
| Pooled | Clustered | Learned | ||||||
| Dataset | Model | NC | RBF | FT | FT | FT | Precog-RM | |
| Tau2-Bench | DS-V3.2 | 28 | .901±.008 | .928±.009 | .860±.014 | .868±.013 | .852±.016 | .950 ±.009 |
| Qwen3-80B † | 38 | .862±.013 | .911±.010 | .917±.012 | .917±.009 | .884±.010 | .930 ±.013 | |
| GPT-5-mini ‡ | 41 | .851±.014 | .891±.009 | .919±.007 | .917±.011 | .891±.007 | .925 ±.003 | |
| BFCLv3 | DS-V3.2 | 50 | .787±.017 | .830±.024 | .857±.010 | .854±.004 | .816±.010 | .876 ±.012 |
| Qwen3-80B † | 40 | .887±.010 | .926 ±.012 | .908±.016 | .915±.022 | .912±.036 | .923±.007 | |
| Evaluated on | |||
| Trained on | DS-V3.2 | Qwen3-80B | GPT-5-mini |
| DS-V3.2 | .827 | .814 | .763 |
| Qwen3-80B | .768 | .886 | .826 |
| GPT-5-mini | .776 | .820 | .861 |
| DS+Qwen | .844 | .892 | .837 |
| DS+GPT | .841 | .868 | .874 |
| Support | FLOPs saved (%) | Pass@1 | ||
| GRPO baseline | — | — | — | 35.0 3.6 |
| rolling | 0.8 | 4 | 10.1 1.4 | 35.6 2.1 |
| rolling | 0.7 | 4 | 25.3 3.6 | 32.2 2.8 |
| rolling | 0.7 | 0 | 35.5 2.2 | 32.8 6.1 |
| rolling | 0.65 | 0 | 43.0 4.2 | 30.8 3.0 |
| permanent | 0.8 | 0 | 47.3 1.8 | 31.9 3.7 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Raw ceiling | Clustered ceiling | |||||||||
| Dataset | Model | indep. | paired | indep. | paired | |||||
| Tau2-Bench | GPT-5-mini | 41 | .889 | .870 | .882 | .890 | .897 | .919 | .911 | .921 |
| Qwen3-80B | 38 | .910 | .878 | .907 | .910 | .928 | .929 | .936 | .915 | |
| DS-V3.2 | 28 | .929 | .900 | .927 | .928 | .893 | .955 | .952 | .866 | |
| BFCLv3 | GPT-5-mini | 20 | .922 | .896 | .921 | .927 | .937 | .917 | .927 | .948 |
| Qwen3-80B | 40 | .921 | .880 | .922 | .925 | .920 | .929 | .916 | .916 | |
| Channel | Raw ceiling | Clustered ceiling |
| AO | .910 | .916 |
| R | .886 | .790 |
| AO R | .906 | .852 |
| Within | X-model | X-domain | |
| Full configuration | .906 | .886 | .687 |
| + action/obs. flag | .902 | .891 | .675 |
| + positional embeddings | .814 | .785 | .661 |
| + permuted steps | .811 | .786 | .652 |
| No transformer | .803 | .787 | .648 |
| layer | .891 | .856 | .716 |
| DS-V3.2 | Qwen3-80B | GPT-5-mini | |
| Tau2-Bench | 66 | 73 | 82 |
| BFCLv3 | 93 | 82 | 36 |
| AgentClinic | 71 | 79 | 99 |
| Within | X-model | X-domain | |
| Full configuration | .906 | .886 | .687 |
| Training | |||
| episodes | .891 | .885 | .716 |
| episodes | .891 | .872 | .661 |
| .873 | .873 | .691 | |
| .881 | .881 | .669 | |
| Parameter | Value |
| Embedding | |
| Text encoder | text-embedding-3-large |
| Embedding dimension | 3072 |
| Encoder Architecture | |
| Projection dimension | 128 |
| Transformer layers | 2 |
| Parameter | Value |
| Model | |
| Base model | Qwen3-8B |
| LoRA rank | 32 |
| GRPO | |
| Learning rate | |
| Loss function | PPO (clip 0.8–1.2) |
| Precog-RM | NC | RBF | FT | ||
| Tau2-Bench | 1 | .871 | .743 | .751 | .705 |
| 2 | .903 | .783 | .795 | .751 | |
| 4 | .918 | .825 | .839 | .799 | |
| 8 | .926 | .855 | .874 | .857 | |
| BFCLv3 | 1 | .840 | .724 | .729 | .691 |
| 2 | .856 | .766 | .773 | .755 |
| Policy | Cons. | Ambig. | AUROC ceil. |
| DeepSeek-V3.2 | .48 | .28 | .918 |
| Qwen3-Next-80B-Thinking | .61 | .17 | .948 |
| GPT-5-mini | .40 | .34 | .887 |
| GPT-5.6-Terra | .95 | .03 | .994 |
| Evaluated on | |||
| Trained on | Tau2 | BFCLv3 | AgentClinic |
| Tau2-Bench | .923 | .745 | .619 |
| BFCLv3 | .763 | .879 | .617 |
| AgentClinic | .796 | .777 | .793 |
| Tau2+BFCL | .919 | .872 | .623 |
| Tau2+AC | .915 | .763 | .793 |
| Tokens (G) | FLOPs | |||
| Configuration | gen | train | emb | saved (%) |
| GRPO baseline | 2.49 | .108 | — | — |
| rolling , | 2.15 | .103 | .065 | |
| rolling , | 1.80 | .082 | .050 | |
| rolling , | 1.55 | .075 | .042 | |
| rolling , | 1.40 | .057 | .035 | |
| Pooled | Clustered | Learned | |||||
| Dataset | Model | NC | RBF | Precog-RM | |||
| Tau2-Bench | DS-V3.2 ⋆ | .926 | .946 | .847 | .859 | .839 | .970 |
| Qwen3-80B † | .858 | .917 | .956 | .952 | .920 | .937 | |
| GPT-5-mini ‡ | .882 | .933 | .950 | .943 | .901 | .950 | |
| BFCLv3 | DS-V3.2 ⋆ | .802 | .823 | .896 | .894 | .867 | .855 |
| Qwen3-80B † | .938 | .960 | .940 | .938 | .915 | .931 | |
Trajectory Representation Learning
Trajectory representation learning develops compact embeddings of ordered paths for comparing, predicting, retrieving, and acting from movement histories.
See all 48 papers