How long can your skills be before your agent forgets what you told it? — Laurie Voss, Arize AI

AI Engineer · 22 min · 290 sentences · from YouTube's caption track

Each timecode opens YouTube at the start of that sentence. Line anchors (#s42) are the cue ids in the WebVTT, and every line carries its start and end seconds. All transcripts has every talk, and the whole corpus as one file.

  1. 00:01[music]
  2. 00:12All right.
  3. 00:13Hello everybody.
  4. 00:15Thank you for coming to this delightfully nerdy talk.
  5. 00:19Uh this talk has a really long title.
  6. 00:21Uh so let me give you the short version up front.
  7. 00:23You write skills files uh and stuff them full of instructions.
  8. 00:27At some point the model stops keeping track of all of them.
  9. 00:31The question is where is that point?
  10. 00:33At what point have you put too many instructions in your skills files?
  11. 00:36Uh and the answer has changed a lot in the last year.
  12. 00:40I'm Lori.
  13. 00:41I'm head of developer relations at Arise AI.
  14. 00:43Uh in a former life, I co-founded npm Inc. So some of you may know me from the days of JavaScript.
  15. 00:48These days I spend a lot of time thinking about AI and how to test it.
  16. 00:53Uh a few months ago I was at AI engineer in Miami which was a good conference.
  17. 00:57Uh and I was watching a talk by Dexter Horthy.
  18. 00:59Uh it was a good talk.
  19. 01:00It was not about this topic at all.
  20. 01:02Uh but while he was giving that talk he mentioned as an aside uh that an agent can follow up to about 200 instructions uh before it starts forgetting those instructions.
  21. 01:13Uh and he then he moved on in his talk and it was entirely an aside.
  22. 01:17Uh and he he mentioned that that figure is from 2025 so things might be better now.
  23. 01:22Um, and I stopped listening for a second because I was like, 200 instructions.
  24. 01:27Uh, is not very many instructions at all.
  25. 01:30Right?
  26. 01:31A decent skills file blows past 200 instructions almost immediately.
  27. 01:35Um, if the user says X, do Y, always include a section on Z, never use the phrase W, every one of those is a separate instruction.
  28. 01:42Uh, and if the model quietly stops tracking them after 200, that's a really hard ceiling on the complexity of what you can build.
  29. 01:49Uh, so I wanted to know where he got that number first.
  30. 01:52Uh, and I wanted to know if it was true.
  31. 01:55Uh, so you know the feeling that I'm talking about.
  32. 01:57You write this big beautiful skills file, pages of rules, edge cases, tone, formatting, you hand it to the agent, it does the thing.
  33. 02:03Uh, and you look at the output and go, did it actually pay attention?
  34. 02:07Did it actually follow all of these rules or did it just sort of, you know, do what it felt like and sort of give me a close simulacum of what I was expecting?
  35. 02:16Um, you can't really tell or can you?
  36. 02:18More on that later.
  37. 02:19Um, and so you live with this lowgrade anxiety every time you hit run.
  38. 02:24Um, and that feeling is what this research is about and what we're trying to find out if we can avoid.
  39. 02:30So here's my promise for your next 18 minutes.
  40. 02:33Uh, I'm going to show you where that 200 number came from, whether it's still true, and what the real number is today.
  41. 02:39Uh, because it moved by an order of magnitude.
  42. 02:41Uh, and then we're going to talk about what that means for you to take away.
  43. 02:46uh how long your skills and prompts can actually be and what that should what changes you should make to your workflow as a result.
  44. 02:54So the 200 number isn't folklore.
  45. 02:56Uh it comes from a real benchmark called IFScale uh from a paper uh by this guy whose name I'm going to mess up Jeroslowitch uh and co-authors last year.
  46. 03:06And the test is beautifully simple.
  47. 03:09Uh here's how if scale works.
  48. 03:12If you ask the model to write a business report uh and you give it a list of specific words that it has to include exactly in the report, include the exact word customer, include the exact word revenue, and so on for as many words as you want.
  49. 03:24Each of those is an instruction that it has to follow.
  50. 03:27Uh and then you count how many of those exact words showed up.
  51. 03:31Um so because the test is so simple, you only have to keep two numbers in your head.
  52. 03:36One is density, which we call n. That is how many rules we're talking about at once.
  53. 03:41And the second is accuracy, which is the percentage of those rules uh that it was able to actually follow.
  54. 03:47Uh now you might say uh that including random words in a report is not the same as following real instructions and fair enough and we're going to talk about that.
  55. 03:55Um but the keywords are a proxy.
  56. 03:57Uh include the word revenue is the same shape of task as include a section on pricing, right?
  57. 04:03Or never use this phrase.
  58. 04:04It is a discrete named constraint that you've told the agent that it has to follow.
  59. 04:08Um, if a model can't track 200 words in one prompt, it's definitely going to struggle with 200 more complicated instructions.
  60. 04:16Uh, so uh, if anything, it's going to do worse.
  61. 04:20So, this number is a ceiling.
  62. 04:21Uh, this number is as high as you can go.
  63. 04:24If you give it more complicated instructions, the number is probably going to get lower.
  64. 04:27And 200 is a really low ceiling.
  65. 04:30Um so before chasing new models you have to do good science which means that you have to replicate the uh old result and make sure uh that the 200 ceiling is real.
  66. 04:39So I reran the original benchmark.
  67. 04:42Um the original paper tested a whole batch of models uh and models uh live and die really fast.
  68. 04:48So uh by the time I got around to doing this testing only three of the models in the original set of 10 models that they used were still available via any kind of API.
  69. 04:56Uh so they were GPT 4.1, Claude Sonnet 4, and Gemini 2.5 Pro.
  70. 05:01Those were models that were available 12 months ago that are still available now.
  71. 05:05Um and that is why we tested those three because they were what was left.
  72. 05:08Um and since I first published this research a couple of weeks ago, uh one of those three models has been retired.
  73. 05:14So this was the last possible time that I could have run this test.
  74. 05:18Um so of that lineup, we're already down to two.
  75. 05:20So don't get attached to your models.
  76. 05:22Um here is the results that we got replicating the original if scale finding.
  77. 05:27Uh that is accuracy on the vertical axis.
  78. 05:29So it starts at 100% and begins to fall off.
  79. 05:32Uh and then the number of rules uh going up along the bottom on log scale.
  80. 05:36So every time it gets halfway across it has doubled uh the number of rules that it's dealing with.
  81. 05:41Um so by 500 rules you're losing 30 40 50% of them.
  82. 05:46Uh our curves matched the results in the original paper within the noise boundary.
  83. 05:50So the finding was real.
  84. 05:52uh a year ago somewhere around 200 to 300 rules frontier models started falling apart.
  85. 05:57That is a really low ceiling.
  86. 06:00Uh so that is our baseline and now comes the fun part where we took the exact same test and pointed it at the current frontier or rather what the current frontier was when I ran this test.
  87. 06:10So I ran GPT 5.5, Claude Opus 4.7 because 4.8 came out a week after I ran this test.
  88. 06:16Uh Gemini 3.1 Pro and Deepseek V4 Pro.
  89. 06:20So, I gave them the same prompt, the same words, the same everything.
  90. 06:23And I immediately ran into a problem, which is that they aced it.
  91. 06:27They all scored 100% immediately on this test.
  92. 06:30Absolutely no bugs.
  93. 06:32Uh, so we'd built a test to find the ceiling and the models had walked straight through the ceiling without noticing that the ceiling was there.
  94. 06:39Um, and that was a problem because the benchmark was written to top out at 500 words.
  95. 06:43So, I had to change the benchmark in order to be able to find the new ceiling.
  96. 06:47So, I moved the goalposts.
  97. 06:48I gave it more words to include.
  98. 06:50I doubled uh it from 500 to a,000.
  99. 06:52I doubled it again from a,000 to 2,000.
  100. 06:54And I kept doing that until I hit a 10,000word vocabulary.
  101. 06:58And that is where I began to find the ceiling of what models can do these days.
  102. 07:03Um, so let me put up the this is the money slide.
  103. 07:06This is the results.
  104. 07:07Remember log scale on the on the uh x-axis there.
  105. 07:12So it's going from 500 to 1,000 to 5,000 to 10,000.
  106. 07:15Uh so it looks like that scale is falling off of a cliff and it's actually happening over like a thousand numbers.
  107. 07:20Um but uh look how far to the right these new curves get before they bend.
  108. 07:26A year ago they were falling over at 200 to 300 instructions and now depending on the model the boundary is closer to 2,000.
  109. 07:32And for the best of them it is up to 5,000 instructions before they begin to fall off a cliff.
  110. 07:38So in about 12 months frontier models got close to 10 times better at following instructions simultaneously.
  111. 07:44That is the headline fighting and there is a lot of nuance that we need to get into.
  112. 07:49Um the capacity to track 2,000 named constraints in a single prompt is there.
  113. 07:54Um and that's really interesting because I think uh I don't know if everybody else feels this way but like it feel it felt to me like the the jump from you know GPT 5.1 to GPT 5.5 was kind of incremental, right?
  114. 08:07It didn't feel like we'd got 10 times better.
  115. 08:10But this is a test that really matters to uh a very practical thing like how long can my skills file be?
  116. 08:17Uh and in the course of a year we got 10 times better.
  117. 08:20Uh and that thing that gets me is that this benchmark is barely a a year old.
  118. 08:25A year later 500 is a rounding error.
  119. 08:27Uh and this keeps moving under my feet.
  120. 08:29I tested 4.7 uh opus 4.7. Opus 4.8 is even better.
  121. 08:33Um so this chart is a little out of date already which is kind of the whole point.
  122. 08:37If you set your engineering assumptions about how skills files should work, about how prompt how long your prompt can be, and you did that more than about six months ago, you are incorrect now, and you should probably be re-engineering
  123. 08:49how you do stuff.
  124. 08:51Uh, but there is more to this story uh because the way that the a models failed uh changed dramatically.
  125. 09:00Uh, and the way that they failed is very important.
  126. 09:03This part was a completely unexpected finding when I started running the experiment.
  127. 09:08Uh, and it totally messed up my test to start with because uh, the old failure mode was boring.
  128. 09:13They would just forget instructions and I could measure how many instructions they had remembered or forgotten.
  129. 09:17Uh, but the new ones fall apart in their own weird extremely onbrand way.
  130. 09:23Uh, so let me introduce you to how these four models fail.
  131. 09:26Uh, Deepseek 4 is a traditional model.
  132. 09:29It just forgets things.
  133. 09:30It doesn't have any drama.
  134. 09:32um it starts forgetting instructions around 750 rules and by 2000 it's dropping nearly half of them.
  135. 09:38Uh so it just forgets which frankly is the failure mode that I trust most because it's predictable.
  136. 09:43It's very easy to measure.
  137. 09:44Uh and the other models were not nearly as cooperative.
  138. 09:48Uh Opus 4.7 uh would decide repeatedly that the test was dangerous.
  139. 09:54Uh and what it would do is it would refuse at the API level to complete the test.
  140. 09:59I didn't know that there was an API response that you could get from Claude where it was like, "No, I could do this, but I'm not going to."
  141. 10:06Uh, but that's absolutely an API level response that Claude supports because they care so much about safety.
  142. 10:12Uh, and I started getting those all of the time.
  143. 10:15Uh, and the reason that was happening is because Claude has a very sensitive safety classifier.
  144. 10:19Uh, and if you put in certain combinations of words like say anthrax and cyanide, it decides that the whole request is dangerous and it bails out.
  145. 10:27Uh, and if you remember what my test does, my test is throwing uh 5 to 10,000 random words into uh into an instruction file.
  146. 10:35And so my my randomly selected words contained all sorts of things that looked dangerous in combination to the safety filter.
  147. 10:41And so it kept bailing saying that I was asking it to, you know, make a bomb or something.
  148. 10:45Um, so, uh, we had to for to get Claude to cooperate, I had to take all of my words and run them through OpenAI safety filter and filter out all of the naughty looking words so that it could get to anywhere.
  149. 10:59Once I given it that, Claude did really well.
  150. 11:02Uh so but the failure mode is that Claude is more likely to decide what you're doing is dangerous very early on uh at you know even two or 300 instructions if what you're doing
  151. 11:12uh is you know contains anything to do with medical advice because medical things often are dual purpose.
  152. 11:17They can be dangerous.
  153. 11:18They can be safe.
  154. 11:19Um so uh the third failure mode was Gemini 3.1 Pro.
  155. 11:24Gemini is rock solid all the way out uh to 5,000 instructions.
  156. 11:28It does extremely well.
  157. 11:30um genuinely one of the best on the chart.
  158. 11:32Uh and then past that it gets weird.
  159. 11:34Um it doesn't forget the instructions, it gets overwhelmed by the instructions.
  160. 11:39What it tries to do is it uh it uses thinking tokens to make sure that it is following all of the instructions at once.
  161. 11:46And when the number of instructions gets really high, it uses all of its thinking tokens.
  162. 11:50It uses its entire token budget thinking.
  163. 11:53And then it doesn't give any output.
  164. 11:55It's it gets to like nine, you know, if you've given it 10,000 tokens worth, it'll get 9,500 tokens worth of thinking and then give you a 500word response which doesn't contain any of the tokens.
  165. 12:06Uh so it thinks itself into a corner and runs out of room to actually answer, which is very expensive, uh and totally unhelpful, which is kind of on brand, isn't it?
  166. 12:16Um
  167. 12:17[snorts]
  168. 12:18uh which, you know, I would never say that out loud.
  169. 12:21Uh, and finally comes the winner, which is uh, GPT 5.5. GPT 5.5 is the best of the lot.
  170. 12:2899% accuracy all the way out to 5,000 rules.
  171. 12:31Um, but if you push it far enough, it is by far the weirdest of the bunch.
  172. 12:35Uh, because it doesn't refuse outright.
  173. 12:37It doesn't silently forget.
  174. 12:39Instead, what it does is it gets frustrated and tells you that the test is stupid.
  175. 12:44Uh, it starts the report.
  176. 12:46It gets a few like that's the thing.
  177. 12:48It doesn't start out just saying no. It starts the report, it starts writing the report, and like 500 words into the report, it's like, "No, this is dumb.
  178. 12:55I'm not going to do this."
  179. 12:56And then it politely tells you, "This is dumb.
  180. 12:58I'm not going to do this anymore."
  181. 13:00Uh, that is the actual response that it gave me, but that that was like 5,000 words into the into this business report that I told it to generate.
  182. 13:06Um, so it's not wrong, right?
  183. 13:10I was asking for a coherent business report that on no particular subject that contains 5,000 random words.
  184. 13:17You're right, Gemini DPT.
  185. 13:19this is a a stupid thing to ask for.
  186. 13:21Um, which is a deeply unreasonable request and GPT called this out on it.
  187. 13:26Um, but it still counts as a failure in the test because the half-finish report that it gives you is missing most of the keywords and it is also the hardest one to detect because claude bails immediately.
  188. 13:37Claude says, "No, I'm not going to do this."
  189. 13:39Uh, Deepseek does its best.
  190. 13:41Uh, but GPT does what looks like a good job unless you read all the way to the end of the report where it says, "No, actually I'm going to bail because this is stupid."
  191. 13:50Um, so if you step back and look at the four together, Deep Sea quietly forgets, Claude gets scared and refuses, Gemini overthinks itself into silence, and GPT 5.5 finishes half of the job and tells you that the rest of it is beneath it.
  192. 14:03Um, and the point was the point isn't which one of these is funniest, although it is genuinely a little funny.
  193. 14:09Uh the point is that did it follow my instructions no longer has one failure mode.
  194. 14:14It has four different ways that it can fail and you can't recognize that failure unless you know which model you're dealing with and what its m what its pattern of failure is going to be.
  195. 14:24Uh so the models get 10 got 10x better.
  196. 14:27They fail in funny ways.
  197. 14:29Why should you care when you uh get back to your desk?
  198. 14:32Because three things have changed to your workflow.
  199. 14:35The first is that a year ago, the smart move was to keep every skills file very very short.
  200. 14:40Uh under 200 instructions, then point off to subsklls and a whole like you know byzantine labyrinth of uh additional skills files and subfiles and things like that.
  201. 14:51Uh and you mo you were compressing your your instructions to fit into a very small available space and you don't need to do that anymore.
  202. 14:58Your skills files can be very long.
  203. 15:00Um, number two is that if your use case needs a 100 specific rules or 300, you can just put them all in the prompt.
  204. 15:07Uh, you don't have to lie awake wondering whether which ones the model silently ignored.
  205. 15:13Um, and if you've been thinking uh about uh your own lived experience of using models, uh you probably recognize this.
  206. 15:21you've discovered that you've got less worried about how long your your prompt is going to get uh because the models have genuinely got 10 times better at following your prompts.
  207. 15:30Um 2,000 named constraints is an entire style guide, right?
  208. 15:35Like it's it's every brand rule, every legal disclaimer.
  209. 15:38Uh a year ago, you'd have had to shard that across a dozen specialized agents and hope that your specialized agents are hand are are handing off to each each other cleanly.
  210. 15:47But now you can ignore that.
  211. 15:48Um but the third thing is the big one.
  212. 15:51The question used to be can the model even do this?
  213. 15:53And the answer is now firmly yes.
  214. 15:55Well reasonably firmly.
  215. 15:57Uh is it worth the cost is the new question because you can include 10,000 words of of sorry 10,000 different instructions into your prompt.
  216. 16:06But that is going to be an enormous prompt.
  217. 16:08It's going to be a very expensive prompt.
  218. 16:09It's going to be a very slow prompt.
  219. 16:11So what used to be a hard wall that you would run against has now become a soft trade-off of is it worth me adding all of these extra instructions if it's going to give me more cost and more latency.
  220. 16:21Uh and now some caveats uh to head off the Q&A.
  221. 16:26Um first and important first and most important I mentioned this earlier this is a proxy task including random words uh in a in a fake business report um is evidence
  222. 16:36that long skills file works.
  223. 16:38It is not the same as proof that a long skills file works.
  224. 16:41Um, also the models hit the wall at wildly different points anywhere from 750 to 9,000 plus.
  225. 16:47So you have to pick your model very carefully.
  226. 16:50Uh, what our test doesn't do is measure whether the model reasoned clearly over a giant prompt.
  227. 16:58So uh, the good news is since I did my research several weeks ago, uh, a whole bunch of people have piled in on this.
  228. 17:04Um and now there's good research uh actual scientists have got involved and done uh Chroma's has done context rot work uh across 18 models showing that accuracy on long inputs
  229. 17:17can fall 30 to 50% well before you hit the context window limit.
  230. 17:21Uh and the weird part of their finding was that uh coherent well ststructured text is more likely to hit that failure mode uh than if you just put your instructions into a random order and shuffle them in.
  231. 17:33Uh, I don't know why that's the case.
  232. 17:36I'd have to read their report.
  233. 17:37Um, so the model can track 2,000, 5,000, possibly 10,000 instructions, but it's not necessarily going to uh reason clearly over them.
  234. 17:47It's not necessarily if those if those instructions conflict, if there is tension between them, it's not necessarily going to get that right.
  235. 17:54Um, and then there's the other one I mentioned briefly.
  236. 17:57Uh, collude's refusals are annoying, but they are loud.
  237. 18:01You get an error, you know it failed.
  238. 18:02Uh GPT's polite half-finish report is much more dangerous because it looks like a real answer.
  239. 18:07Uh you have to read the whole thing to notice that it gave up quietly halfway, which means that you can't trust the output.
  240. 18:14It means you have to read the output every single time to make sure whether or not it's working.
  241. 18:18Uh so the model will accept your 2,00 rules and it will hand you back something that looks at least to begin with confident and polished but could be bailing out halfway through.
  242. 18:28Um, so, uh, as an aside, people always ask me, "How much did all this cost me?"
  243. 18:34It cost me $29 to run all of these queries.
  244. 18:372,37 2,300 calls across seven models, uh, came to $29.
  245. 18:43Uh, it turns out novel research doesn't cost very much.
  246. 18:46Um, and this is the part of the talk where I was saying that you have to check this stuff in production because you can't trust that your model isn't going to
  247. 18:55silently fail.
  248. 18:56Uh, so you knew I was going to mention evals eventually because I work at Arise and this is where I do that.
  249. 19:01Um, but there are plenty of plugs for Arise.
  250. 19:03So I'm just going to say one true thing which is that if you are building a real AI application and you are giving it genuinely tricky tasks, you are going to run into one or more of these failure modes with a frontier model.
  251. 19:14Uh, and unless it's Claude telling you just to off at the API level, the only way to know that something went wrong is monitoring your outputs with another LLM.
  252. 19:23That is an eval.
  253. 19:24And that is what Arise does.
  254. 19:25And I'll leave it at that.
  255. 19:27Uh, I already mentioned that there's been new research since we did our own.
  256. 19:31Here's another important one.
  257. 19:32A paper landed testing 46 models called revisiting the reliability of language models in instruction falling, which you can bet made my ears perk up after I did that research myself.
  258. 19:41Uh, and they found something uncomfortable, which is that a model can ace a benchmark like ours and still be wildly unreliable.
  259. 19:47because if you reword the same instruction in a slightly different way, it can make a radical difference to how well uh it follows those instructions.
  260. 19:57So the model can follow 2,000 instructions and it can do it really well.
  261. 20:00But if you put the same instructions, the same 2,000 instructions in a different order, it can suddenly make the model much worse at following those instructions.
  262. 20:09And how ex how exactly to do that?
  263. 20:12what is the correct order of instructions to give your model such that it follows them perfectly as opposed to getting confused is still research that is being done.
  264. 20:20So capacity went up but reliability is still a problem.
  265. 20:24Um and then this is just a little brag because uh I was happy about it like I'm not a scientist.
  266. 20:30I did some research and then a whole bunch of other actual scientists piled in uh and did real science on the same question.
  267. 20:36There's now a whole bunch of benchmarks that have shown up uh to measure this same question.
  268. 20:40Firebench, CCR bench, Guidebench uh are all trying to measure the same thing.
  269. 20:44How well models follow a lot of real messy constraints at once.
  270. 20:49Uh and now the whole field is looking at it.
  271. 20:51So if you want better science than my, you know, 10,000 random words, uh the real science exists now.
  272. 20:58Uh so that gets me to where I will leave you.
  273. 21:00A year ago, the hard part of writing a skill was fitting everything in without the model losing the plot.
  274. 21:05That was a compression problem, and the compression problem is gone.
  275. 21:09uh the model will hold your 2,000 instructions just fine.
  276. 21:12The new hard part is knowing whether it actually did what you said and that is a verification problem.
  277. 21:17Uh a verification problem doesn't get solved by writing a better prompt.
  278. 21:20It gets solved by checking the output every time uh the same way that you would test any other code, which is to say an eval.
  279. 21:27The ceiling moved by 10x in one year.
  280. 21:29Uh so go back and check the assumptions that you made six months ago about how big your prompts should be, how big your uh instructions can get.
  281. 21:38uh because they might already be wrong.
  282. 21:39Boom.
  283. 21:40Be wrong.
  284. 21:41So that is the talk.
  285. 21:42If you want uh all of the code and all of the data, uh it is at this GitHub URL.
  286. 21:47Uh and this other QR code is uh something marketing made me insert.
  287. 21:52We are having a World Cup watch party tonight at 5:00 p.m. Uh you can come to our party.
  288. 21:56That link is to the Luma that will get you into the get into get you into the party.
  289. 22:01Uh I hope this talk has given you some novel information or at least a couple of laughs.
  290. 22:06And thank you so much for your time and attention.