← All AI Engineer talks

AI Engineer World's Fair 2026

Rethinking Environments for Long Horizon Work

About this talk

Theta Software's Rayan Garg and an unnamed co-presenter examine how to define and evaluate long-horizon AI-agent work. They contrast METR's human-time success thresholds with token- and trajectory-based measures, explain why human effort can misrepresent model difficulty, and discuss multi-tool reinforcement-learning environments. The talk also describes judge or critic models that assess final environment state and agent trajectories, queryable execution traces, benchmark saturation, and mean@5 reporting.

Chapters

  1. 0:00Introductions and long-horizon reinforcement-learning environments
  2. 1:08METR time horizons, token efficiency, and measurement limitations
  3. 4:48Human-versus-model difficulty and multi-tool environments
  4. 10:52Judge models, environment state, and queryable trajectories
  5. 19:01Benchmark saturation, mean@5, and closing remarks

Talk transcript

  1. 0:00

    [on-hold jingle] It's, uh, great to see all of you here today. We're super excited to talk about, uh, one of our favorite topics, uh, here at Theta.

  2. 0:18

    Um, before we get started, we just want to introduce ourselves. Um, so hi, I'm a co-founder and CTO at Theta Software.

  3. 0:25

    Hi, I'm Rayan. I'm a co-founder and CEO at Theta Software. Prior to this, I was previously a founding engineer at DeepSilicon, where we did research into ternary models.

  4. 0:34

    Awesome. So I can get us started with the topic today. Um, we're gonna be talking about RL environments, uh, within the context of long-horizon tasks. And I think the most important thing for us to start with at the beginning is just talk about the trends and what long horizon actually means.

  5. 0:48

    So, you know, we all know that the horizon at which AI agents can work autonomously is accelerating really fast. Um, this is just some of the metrics that you can look at to see how this progress is really accelerating.

  6. 0:59

    Um, but I think it's really important to actually define what the time horizon here actually means. Uh, we've gotten this, uh, data from one of the most common benchmarks out there that you've probably heard of for time horizons.

  7. 1:08

    I'm sure you've seen it in your Twitter feed all the time. It's-- um, comes from METR. Uh, and METR kind of has one response or answer to this really important question about how do we actually define long horizon.

  8. 1:20

    Um, it's really important to understand because what we considered long horizon a year ago probably isn't really long horizon in our definition today. And what's long horizon today probably won't be long horizon in a year or two.

  9. 1:30

    Um, and I think that gets to our first point, which is that long horizon is really kind of a scalar metric. Uh, it's useful for kind of measuring relative tasks.

  10. 1:39

    Like one task might be more long horizon than another, but it's really hard to define into kind of a binary category of this task is long horizon, this task is not, uh, especially as the kind of scope changes over time.

  11. 1:49

    So I think the first way we can talk about defining this is how METR kinda looks at it, uh, which is human horizon. Meaning can we use humans as a benchmark of, oh, this task takes humans a certain amount of time, so if AI agents can do that, then they've reached this certain critical, uh, level of kind

  12. 2:06

    of a time horizon. Uh, and the way METR kinda does it is they have thresholds for the tasks they care about. So, you know, they have a fifty percent threshold, meaning, you know, if a certain model reaches a sixteen-hour threshold on this, uh, benchmark, that means it can achieve tasks, uh, with a fifty percent su-success rate that

  13. 2:20

    take a human sixteen hours. And, you know, there's a really rigorous methodology of how they actually measure how did it take humans sixteen hours, but we'll kinda avoid some of those details.

  14. 2:28

    Um, the other way we usually think about what long horizon actually means is not with the reference of humans, but instead the reference of models. Uh, so some of the relevant model units we usually care about are things like tokens, how many tokens are consumed in a trajectory, uh, how many steps it took, how many tool calls

  15. 2:44

    it kinda takes. Um, and these can be really noisy, right? 'Cause I'm sure you guys have used different models. Um, like, you know, a lot of the Codex models, uh, are seen as more token efficient than some of the Claude models.

  16. 2:54

    Um, and it's a pretty noisy estimate for a couple reasons. One is that which model you're using, like I just said, and different harnesses you care about have a pretty big impact on how many tokens are actually consumed on a task, right?

  17. 3:04

    So, um, this can be pretty hard to interpret when you're not holding variables constant. Um, you know, if a task takes a GPT model five hundred thousand tokens, that doesn't really tell you a lot about what that task would look like for Claude models until you actually run it on those Claude models.

  18. 3:18

    But despite it being a pretty noisy metric, it's actually really useful, uh, and important for us to understand because, you know, the amount of tokens that are consumed tells us a lot about how difficult a task actually is for an AI agent to kinda tackle it autonomously, right?

  19. 3:33

    Uh, you have to deal with things like compaction over long horizons. Um, you know, they don't really stay coherent over enough steps or trajectory, uh, length that you kind of achieve.

  20. 3:41

    So even though it's kind of a noisy metric, uh, it can be really useful when, you know, if we look at what a GPT 5.5 model can do, uh, now, and then you use the same model generation and kind of see, oh, now it can actually achieve a thou-- a million trajectory based on an increased context window

  21. 3:54

    or improved compaction endpoint. That tells us a lot about how autonomous, uh, AI agents can actually go for long periods of time in that sense. Um, and it really defines for us what the technical frontier actually means, uh, for models right now.

  22. 4:07

    Maybe not really human-adjacent. It's really hard to say how many tokens a task takes for a human 'cause we don't really think in tokens, but still very useful in that kind of sense.

  23. 4:15

    Um, so these are two different approaches we can think about, but what's actually the right way to think about this? Uh, the answer is that we probably wanna think about all of these, and if we just look at one of these metrics in isolation, it's probably not a great way of measuring things.

  24. 4:28

    So I-I went through some of the weaknesses with measuring with, like, model-specific metrics like tokens and, and steps, but there's also a lot of weaknesses in the other approach of kind of relying on humans.

  25. 4:38

    Um, you know, what's long horizon for a human isn't necessarily that difficult for a, a model, depending on what the actual task you care about is. You know, there's a lot of tasks that are really tedious and time-intensive.

  26. 4:48

    Maybe, like, you know, some financial analyst has to go into, like, an Excel file and fix a bunch of formatting issues throughout, uh, the, the task. Maybe they're changing, like, the theming of, like, the colors in the-- in the actual file, right?

  27. 5:00

    That might be really tedious for a human to take. It might take them, like, days to do that if it's a really big Excel file. But for a model, it can maybe write a Python script or find some other cool trick to do that really quickly.

  28. 5:10

    And that's not really hard for it to do, but you would never really expect a financial expert to do that because, you know, they-- most of them don't really know how to write these Python scripts.

  29. 5:16

    Um, so I think that's one thing to note. And the other that I kinda briefly touched upon before is that the methodology of how we actually measure this has a really big impact.

  30. 5:25

    And if you, you know, someone is out there saying, "Hey, we have some tasks or environments that are sixteen hours long on average." Someone else says twenty hours. That's really hard to compare across people 'cause there's so many different things in the methodology that really impact, uh, kinda what that actually means.

  31. 5:37

    It can mean, you know, the quality of the experts you're using. Some more experienced experts might actually be way more efficient at doing a certain type of financial or coding task, whatever it kind of is.

  32. 5:46

    Um- And I think this becomes really, really important as we start shifting towards, uh, kind of the frontier of even human capabilities. So, you know, as... This METR talks about this, but as you shift towards more long-horizon tasks and tasks that only the top 10%, the top 1%, the top point...

  33. 6:01

    1% of humans can really do, these estimates start to get really, really noisy, and it's something that we really have to consider. Uh, and I think, you know, the way agents work is kind of developing in its own separate path, and there are a lot of different bottlenecks and different things that AI agents are better at than

  34. 6:14

    even the way humans work. And with that in mind, uh, you know, as these paths kind of diverge of how humans do work and what their limitations are, and what agents do and what their limitations are, uh, it's really important to kind of keep both these metrics in mind because they kind of tell and paint different pictures,

  35. 6:28

    uh, of, of what's actually relevant and, and you r- don't really get the whole picture by just looking at one in that sense.

  36. 6:36

    Yep. So now the question becomes: How do you measure model capabilities? And this is a really important question because fundamentally, long-horizon tasks aren't the only thing we care about.

  37. 6:46

    This is the larger question that we wanna think about every time we're trying to create tasks, create environments to train our models. And so,

  38. 6:54

    the first way we can think about this is environment complexity, and specifically environment complexity related to tool coordination, right? So how many tools or external dependency does the agent have to coordinate?

  39. 7:05

    How many tools or external dependencies does the agent have to move information across? So, if we start off kind of thinking about what the world looked like before a long-horizon task, uh, you know, world, we'll notice that there was, you know, a low complexity world where the agent maybe had to read one file or one set of

  40. 7:20

    files in a code base, and that's kind of what a task entailed. But now w-we can see increasingly as these tasks become more long-horizon, what is important to define for measuring model capabilities is, okay, the, the agent should be using a ton of different tools like Grafana for observability to parse logs, or GitHub f-for CI/CD, or AWS

  41. 7:41

    CloudWatch, or reading and writing to a database. And we're gonna notice that as we sort of start to have these agents and these environments use many tools, that we also start to think about environment complexity in regards to state changes, which is effectively the degree to which the environment changes throughout the task.

  42. 7:57

    And so fundamentally, the way we wanna think about this is, right, ta- all long-horizon tasks aren't equal. So for example, one task can, you know, maybe be made by artificially long horizon by chaining together unrelated independent tasks.

  43. 8:11

    However, that doesn't actually tell us or meaningfully measure the model capabilities. Instead, a key component of this is actually being able to have the earlier decisions in the, in the environment influence the later decisions.

  44. 8:25

    And this comes back to how the agents are asked to interact with the tools, how these tools change the state of the environment, et cetera. So we can look at an, uh, a concrete example for this.

  45. 8:34

    One example where you'll see paralyzable complexity, which is effectively not involving a lot of state changes, is when you can maybe have an agent analyzing a large code base, and then the agent needs to spawn off multiple sub-agents, and it can very easily paralyze this, right?

  46. 8:46

    It can look at a lot of the different files in parallel, come back to the, to, to the master agent, and then kind of wrap this all up, right?

  47. 8:52

    But s- meanwhile, if we look at sequential complexity, we'll see if you have to use a dashboard or logs, a bad early query or a misread can cascade into these downstream steps that really start to have major consequences later on, right?

  48. 9:05

    It's all dependent on how you use those tools and how the state of the environment change. So the third area that we also need to consider for measuring model capabilities is ambiguity, right?

  49. 9:15

    And ambiguity is defined as the information you give the agent and the environment when starting the task. So this could be the instructions, this could be the artifacts, et cetera.

  50. 9:24

    And in-increasingly, as these agents work with more artifacts at the start, right? We, we want to have them mirror the work that humans really do. And the work that humans really do has a lot to deal with ambiguity, right?

  51. 9:35

    They always are, are-- don't have the most complete information, and they want to let exploration happen. And so we believe that to measure mo-model capabilities, we need to test the model's ability to explore and explore throughout the environment as well, and explore these artifacts similar to how a human would.

  52. 9:50

    Now, the trade-off with this, right? Is that if you are going to have ambiguity in the materials you give, there's a lot more possible paths that the agent could take.

  53. 9:59

    There's a lot more ways the agent could be right, and that means that standardized evaluation gets much, much harder.

  54. 10:06

    Awesome. So I'm gonna talk about one of the hardest things there are to build environments and one, one of the most complex things to really think about, where there's a lot of nuance, which is the verifier in the environment.

  55. 10:16

    How do we actually know that the work the agent did was correct, and give it some reward signal during the training process? So I think there's a few challenges here.

  56. 10:22

    Um, you know, I think just to give a high-level overview, um, you know, tasks are getting more complex, the environment's getting more complex, the trajectories are getting longer, and we've shifted a lot from, you know, a lot of the early RL that we were doing, uh, in, in recent times was really in hard verifiable domains, and that's

  57. 10:37

    why we saw these gains in, in math and kind of, uh, like data structure style, uh, coding problems. But what's happened over time is now we really care about a bunch of economically valuable work in software-followable domains is, is a way to put it, where, uh, you know, we can't just run a Python script or run test

  58. 10:52

    cases or, or write a proof to really see whether or not the output was correct or whether or not the environment was changed correctly. Uh, we have to start using other techniques, and the main way we're really gonna use that is kind of introduce a judge model or a critic model, uh, as some people put it, and

  59. 11:05

    they kind of can add a lot of nuance to how we actually look at a few things here. Um, you know, very critical for how we actually determine correctness and assign reward.

  60. 11:14

    Um, they'll look at two things mainly. One is usually either the state, final state of the environment and kind of how it was impacted. Um, and the other is looking at the trajectory of how the model that you're actually training made, uh, kind of changes to the, the state of the environment as well and, and what kind

  61. 11:28

    of correctness look like there. Um, so, you know, why do we actually use, uh, judges and usually rubrics, um, as a technique? I think that's really important to understand before we can even understand how to use them properly, which, you know, I think there's a few reasons.

  62. 11:41

    One is that, like I said, for these software-followable domains, there's like an entire class of problems that are really important and a lot of the problems we care about that really you can't really write a determi-deterministic verifier for.

  63. 11:51

    Um, they would be really impractical, brittle, or just downright impossible depending on what the problem setup really is. Um, and You know, I think the other thing also is that, like I said, we're gonna look at the trajectory.

  64. 12:02

    Uh, and, you know, not all solutions are really created equal, and not all paths to those solutions are equal either. Uh, you know, the worst case of a bad solution we can get is some reward hacking that happens.

  65. 12:11

    Lots of different types of reward hacking can happen depending on the setup or the task you kinda care about. You know, a agent can es-escape a sandbox when you see privileged information it shouldn't be seeing about maybe a hidden te-test suite for, like, a coding task.

  66. 12:22

    Um, this is all behavior that we wanna prevent, obviously, 'cause those are not actually really valid solutions we really care about. Um, and, you know, a lot of this-- mitigating this is gonna require strengthening your verifier and your environment setup, but the judge is really, really important in actually catching this behavior, and that's an important reason of

  67. 12:38

    why we actually look at the trajectory that the agent actually took to get there. Um, yeah, and I think there's a lot of careful things we wanna be doing here.

  68. 12:45

    Uh, one is that there's nuance in how much guidance or, uh, like explicit rigidness you wanna add to the trajectories that the model can actually take. Um, if we kinda enforce this too tightly, we collapse the state space of how many actual, uh, paths the agent actually explores.

  69. 13:00

    Uh, and that can be really bad, uh, especially because I think some of the more simple approaches we've seen with judges early on is, "Hey, we'll just give it a, a reference, uh, answer or a solution or maybe a sample trajectory of what a good solution looks like," and then just compare against, uh, what the model did

  70. 13:13

    and say, "Hey, does it match up with that?" Uh, and that really does not work for these more ambiguous or open-ended tasks 'cause there are so many possible correct solutions.

  71. 13:19

    It's basically impossible to account for every single one, and we wanna check for more robust methods that allow for these different solutions.

  72. 13:28

    So now that we've kind of established why we use judges, uh, we wanna go through some of the general, uh, heuristics and kind of principles we think about when we're designing good judges, um, some of the things that we think about at Theta.

  73. 13:39

    So, you know, I think the first important, uh, consideration to make is that judges are agents too. Um, you know, so as environments get really complex, uh, oftentimes we-- a consideration we kinda have is like, "Hey, we have to make sure the harness can kinda scale and, and kinda match up with whatever environment, uh, you kind of

  74. 13:56

    have." Maybe that means introducing a bunch of new tools and making sure your harness can support those tools really well. The agent has clear observability over what's happening in the environment.

  75. 14:03

    Um, but I think, like we said, the way the judge determines correctness is that it oftentimes has to look at the state of the environment itself as well. So a lot of the harness that you've designed for the agent might also be reused, uh, for the judge as well.

  76. 14:15

    Um, I think the best way to illustrate this is the example we have here. Let's say you define a task where, you know, there's some deployment failure with a software engineering task of some platform you're deploying, and the agent's task is to, like, sift through the CI/CD logs on GitHub, look through the Cou-CloudWatch logs, figure out whatever

  77. 14:29

    happened, uh, kind of apply the changes you care about to the code base, and then open a PR and, and kind of kick off a redeploy there, uh, once the PR is merged.

  78. 14:37

    Um, for a lot of a-- for a lot of that, if the judge actually wants to verify, uh, whether or not this is correct besides just, like, looking at the tool calls the agent made, which are usually not very reliable, it actually has to also check the GitHub logs.

  79. 14:48

    It might check the AWS, uh, logs or the GitHub logs after the deployment happened to make sure, oh, th- are things actually working properly. So it's really important that the judge has access to the environment in the same way, uh, with some important safeguards, of course.

  80. 15:00

    Uh, one is that we don't want the judge to make an accidental mutation in some way to the environment after the agent is done, so you wanna be very careful about that.

  81. 15:06

    Maybe that means enforcing read-only permissions for a lot of this information. It can't actually kick off a deployment or anything like that. So those are things to be careful about.

  82. 15:12

    Um, but I think this is really, really important, especially where there's a lot of open-ended approaches, and the only way we can really verify correctness is to actually look at the state itself.

  83. 15:20

    Uh, you-- the answer isn't obvious of whether or not the agent completed the task just from looking at the trajectory. So I think that's one example where this approach is really, really important.

  84. 15:27

    Um, I think, uh, the other thing to be notable of is, you know, as these environments get more complex, the agent trajectories get longer and longer, and part of the reason we also need the judge to be an agent is that you can't just use this really basic approach of taking the trajectory and stuffing it in the

  85. 15:42

    context window of the judge and kinda have it be a basic LLM call. Uh, these trajectories can get really, really long and really, really complex, so we need to do a lot more thoughtful, uh, processing of the trajectory in some meaningful way.

  86. 15:54

    So, you know, that might mean we put into some database, we use sub-agents to actually enrich certain information. Maybe we parse out, uh, specific phases that the agent was actually in.

  87. 16:03

    Maybe the beginning part was it going through logs. The second part was a-actually writing code. The third part was actually it checking what happened after that. These are all different things we wanna, uh, we wanna do, and in that sense, we need to make the trajectory itself queryable.

  88. 16:14

    So that might mean enriching of information, like I just said, or some other metadata we can kinda look at at certain steps. And it's really important so the agent can find critical steps, um, you know, like failure points, and, and verify whether or not those are actually failures.

  89. 16:26

    Uh, making that, uh, kind of usable for the agent is really, really important.

  90. 16:32

    Um, I think another important thing to consider is learnability of our environments. Um, you know, the most important thing here is just the density of the reward signal, and a lot of that comes from your rubric and kind of how the judge is defining that.

  91. 16:43

    So I think you have to be very careful with just, uh, you know, overloading with density in your, in your rubric. Uh, a lot of times, especially for frontier problems that models aren't really capable of yet, uh, judges will really struggle to apply that rubric consistently.

  92. 16:54

    So there's a lot of QA we kinda need to do to make sure judges are able to apply that information correctly. Um, you know, there's other learnability factors that we care about and we measure in environments, like the distribution of tasks and, and, and the actual underlying data there is.

  93. 17:06

    Uh, and, and these are all kind of things we think about for learnability, and it's really important. Otherwise, you're just wasting a bunch of compute on, on problems where the model can't actually effectively learn.

  94. 17:16

    Um, you know, these are some emerging rubric judge patterns we've seen. I'll quickly skim over this. Um, you know, oftentimes you-- deterministic verifiers aren't completely dead. Oftentimes, we use them in tandem with judges, maybe generating an artifact for the judge to actually look over, where you're maybe collecting metrics.

  95. 17:31

    Or, uh, uh, an interesting thing that we could al-also use is dynamic evaluation time rubrics, where we're actually generating, um, you know-- We're maybe giving partial credit where we've baked in some assumptions that the model's made and assume they're correct.

  96. 17:41

    It's like grading a test assuming, like, if you got the first part wrong, let's just assume it's correct. Did they get the rest of the part right? That can be really important as well, as well for kind of assigning credit there.

  97. 17:53

    Skip over this part. Um, I will let Rayan just close things off with some things about QA for rubrics.

  98. 17:59

    Yep. So for each rubric we produce, we run a couple different tests. Won't go into all of them. Some of them are pretty basic, right? Gold, no-op, variance. These are tests you wanna be considering regardless for your verifiers.

  99. 18:08

    But I think increasingly, you know, as, as you involve AI in the process of even creating rubrics or verifying rubrics or aiding experts, you need to have more and more tests, especially as the tasks become more long horizon.

  100. 18:18

    And so that really touches on the coverage and the expert agreement. But I think what we wanted to close off with today is why a lot of this stuff matters, right?

  101. 18:25

    We spent a lot of time earlier in this presentation defining what long horizon means, and a huge reason we did that is because we feel like a lot of the literature and data-- that a lot of the literature shows that a lot of the data being produced right now and being used to train and evaluate models is

  102. 18:38

    actually flawed. So we present three major benchmarks in the area of finance predominantly. And so this is GDPVal, BankerToolBench, and Apex Agents. There's a couple of notable issues here.

  103. 18:49

    First, if you look at the average human hours per task, based on what METR has defined for a lot of the leading frontier models, a lot of these different average human hours per task fall far below that, and so they wouldn't actually be considered long-horizon tasks.

  104. 19:01

    The second notable issue here, right, is that we see that these benchmarks are already reasonably saturated, and we think this is a downstream effect of the average human hours per task.

  105. 19:10

    So it's really important to look at the metrics that are being used here. If you look at, you know, the Apex Agents IB section of this benchmark that they put out, pass@1 effectively means that the-- for, like, fifty-seven percent of cases, the tasks are a hundred percent solved.

  106. 19:24

    That is effectively telling us that, like, there's a large part of these tasks that models are solving similar to what we've seen already. But I think a third key important part here is the breadth.

  107. 19:34

    For each of these different m-- uh, benchmarks, particularly GDPVal, they have a very narrow set of Excel tasks they consider for finance. And for Apex Agents, they're largely focused on IB.

  108. 19:44

    What this means is that a lot of these more important areas for learnability like, you know, credit, debt, risk in the domain of finance don't really get covered. And then I think lastly, I'll, I'll, I'll note there, the reward signal, as Govrra mentioned, is really important.

  109. 19:59

    And in regards to the reward signal here, we'll, we'll notice that there's, like, really...

  110. 20:04

    You know, if you look at, if you look at what you need for a rubric, you need very granular, detailed reward signal. You need-- You know, we, we have 20 different sub-criteria and 10 different sub-criteria per criteria.

  111. 20:17

    So I think there's a lot of room that's left when you read these benchmarks into how granular reward signal they're giving, which is really important for being able to go ahead and train your models.

  112. 20:26

    With that, I think I wanted to round off with a couple of stats about the data we produce. Here we-- You know, you can look at some statistics for our finance data.

  113. 20:33

    We can see that the human time to complete one task on average is 15 hours over a 50-task sample set. Furthermore, it takes models a pretty long time to work through these tasks, and after all of that, across all the domains we care about within finance, for example, they still struggle significantly.

  114. 20:47

    And so here we provide mean@5, notably different than, you know, all of these previous scores, uh, we see here. So thanks for, for taking the time to talk with us today.

  115. 20:55

    Yeah. Thank you. [outro music]