← все видео

Why Agentic AI Fails: Infinite Loops, Planning Errors, and More

IBM Technology · 2026-05-14 · 12м 45с · 35 585 просмотров · YouTube ↗

Топики: ai-loop-engineering

🎧 Аудио

📝 Summary

model=deepseek-v4-flash · prompt=summary-v7 · 4 032→1 936 tokens · 2026-07-20 11:49:16

🎯 Главная суть

Отказы агентных AI-систем редко вызваны галлюцинациями языковых моделей или плохими промптами — в 2024–2025 модельные ошибки стали редкостью. Основная причина — ошибки в проектировании самой системы: отсутствие условий завершения, разрыв между планированием и исполнением, избыточные привилегии инструментов. Три самых частых сценария отказа — бесконечный цикл (infinite loop), галлюцинаторное планирование (hallucinated planning) и небезопасное использование инструментов (unsafe tool use) — предсказуемы и предотвратимы через инженерные практики.

Природа отказов: не модель, а архитектура

Агентная AI-система — это не просто LLM с доступом к инструментам, а циклический процесс: планирование → действие → наблюдение → адаптация. Именно сложность цикла порождает новые типы сбоев, которых не было в простых чат-ботах. Если раньше проблемы объясняли вероятностной природой моделей, то сейчас, после улучшения архитектур, системы выдают стабильно хорошие результаты — и отказы почти всегда указывают на дефекты в дизайне, а не на провал модели.

Бесконечный цикл: когда агент не может остановиться

Сценарий: агент повторяет одни и те же или похожие действия, не приближаясь к цели. Пример — поиск документа, которого в системе нет. Агент настраивает поиск, вызывает инструмент, оценивает результаты — они неудовлетворительны, он заново планирует и повторяет поиск. Так продолжается бесконечно, потому что агент не знает, что документ не существует.

Причины:

Способы смягчения:

Этот режим не опасен для данных, но ведёт к перерасходу вычислительных ресурсов и росту затрат на API.

Галлюцинаторное планирование: план, который выглядит красиво, но невыполним

Агент строит план на основе предположений, а не на реальных возможностях инструментов. Пример: задание — забронировать авиабилеты в Милан дешевле $500. Агент пишет план: «использую Travel API, отфильтрую рейсы до $500, забронирую, отправлю подтверждение на email». Однако на самом деле агент не имеет доступа к Travel API, не знает email пользователя и не оснащён инструментом для отправки писем. План проваливается на этапе исполнения.

Причины:

Меры предотвращения:

Небезопасное использование инструментов: технически корректно, но разрушительно

Агент выполняет действие, которое формально допустимо, но рискованно или нежелательно. Первый пример: агенту поручено удалить устаревшие записи из базы, а он удаляет активные данные. Второй: агент отправляет автоматические письма получателям с непроверенным содержимым.

Причины:

Как предотвращать:

Инженерная дисциплина как основа надёжности

Отказы агентных AI-систем не случайны — они закономерны и возникают из-за слишком большой автономии, недостаточных ограничений или отсутствия мониторинга. Все три описанных режима предотвращаются системными мерами: явными терминальными условиями, разделением планирования и верификации, контролем привилегий и отслеживанием действий. Надёжные агенты строятся на инженерной дисциплине, а не на «исправлении» модели.

📜 Transcript

en · 1 783 слов · 25 сегментов · clean

Показать текст транскрипта
When an agentic AI system fails, the most common reaction we get is the model probably hallucinated. Now it's quite understandable why we come to that conclusion. Because in the past, the large language models have been known to be extremely inconsistent. They are probabilistic models, they're not deterministic. But in the past couple of years, there has been a lot of improvement in the architectures of these models, and today we are able to get consistently good outcomes from them. So today, when an agentic AI system fails, it's less likely because of model failure or prompt quality. It's more likely that there are flaws in the system design. Now, there is this common perception that agentic AI system is nothing but a large language model with access to tools. When in fact, the definition is that it's a much bigger system that can plan, act, observe, and adapt. And it does this in a cyclical or iterative format in order to derive more consistent results. So because of this complex system, we see more types of failures today than we did in the past with just simple chatbot applications. In this video, let's dive in and understand what are three most common failure modes of agent AI systems. Let's understand why these failure modes happen and what we might be able to do to mitigate or prevent them in real-world scenarios. Let's start off by understanding the most common failure mode, which is the infinite loop. Like the name suggests, this is the scenario where the agent repetitively performs similar or same tasks without making any meaningful progress towards the completion of its goal. Let's understand with an example. Let's say you task an agent to find a document for you. The agent starts by configuring the search. It's going to call the search tool and word the search in a certain way so that it can get relevant results. So firstly, it's going to start searching. Then once it gets the results, it's going to evaluate those results. Now, If this results could look good, it's going to give you the answer. If those don't look good, it's going to start planning again on how to do this better. And then it goes back to searching. It might work in a slightly different way to do the next retry. And then it's going to evaluate. And if it's not looking good, it's going to plan again. Now let's assume that this document that you requested does not exist in the system. Now the agent does not know that. So each time it does the search, it's getting results, but the results are pretty vague. So it's going to re-plan and re-try again and again until it gets the answer. But here, the truth is it cannot get the answer because the document is non-existent. So basically, the agent is stuck in an infinite loop of re-trying and planning, evaluating, and searching. So this is what we call the infinite loop. And one main reason this happens is that there is no proper termination condition meaning that the agent doesn't know when to stop trying another reason this happens is with each retry we don't know whether the agent is actually searching differently has it fundamentally changed its approach in searching if we are not tracking the action of the agents then we wouldn't know that so not tracking actions is another reason the third reason is not tracking the progress of the agent. Now with each retry, is it getting better results? Now if you're not tracking that, there is no way that we know whether the retries are successful or not. So the agent keeps trying and getting the same results and not making any progress. So lack of progress tracking. Tracking. So one way to mitigate this and the most simple way is by setting the termination conditions. So setup. a max retries or it could be max number of steps that the agent can take before it decides that it cannot find the answer for you it could also be the max runtime usage so that way you're not stuck in this loop where you're wasting resources like compute and the api costs are going up Secondly, you can also start doing the action tracking where you actually look at the actions that the agent is taking, compare them with previous actions, and see if they are significantly different. If the search is similar across all the retries, then there's no point wasting your compute to search with the same criteria. So that can help you mitigate the... infinite loop scenario. Progress tracking will ensure that you are getting better outcomes with each retry. So when you track progress, let's say in this example, you will know whether you're getting better results with a retry or not. So that way you can mitigate this infinite loop scenario if you're not getting better results with each retry. That is how you can mitigate infinite loop. Now this is not a super serious failure mode, but it will lead to wastage of resources and increased costs. And it is important that we account for it and design the systems to mitigate this particular failure mode. The second failure mode that we are going to talk about is called Hallucinated Planning. Now, like the name suggests, this is a scenario where the agent is going to come up with a plan that's plausible versus possible. In other words, it's going to come up with a plan that looks great on paper but fails at execution. Let's understand with an example. Let's say you ask an agent to book you flights to Milan that are under $500. The agent is going to take the task and come up with a very beautiful plan. It's going to say, hey, I'm going to use the travel booking API and search for flights. I'm going to set a filter for flights that are under $500. I will book them and I will send you a confirmation email. Now that looks like a great plan, but it will fail at execution because You probably did not configure that agent with access to the Travel API. You also probably did not provide your email address for it to actually send an email to you, or it probably does not even have access to an email tool. Now, this is a classic scenario where the agent is assuming things and assuming capabilities instead of relying on what it actually has access to. Now, let's look at why that might happen. Firstly, It can happen because your tool capabilities are not well defined. So the agent doesn't know what your tools can and cannot do. It can also happen because you're asking this agent to plan and execute without separating those two things out. So basically, there is no validation of the plan that's happening before the plan gets executed. So you are hit with errors because the agent executes things that cannot be done. Thirdly, It can happen because the agent is assuming capabilities instead of checking for constraints. Constraint check. So how might they go about mitigating this? Firstly, you should start describing your tools very clearly to the agent. Clearly describe what the tools can cannot do. Clearly define the tool schema and let the agent understand the capabilities and limitations of your tool. Next, you can go with architectures such as multi-agent, where there is a verifier agent in between planning and executing. So the verifier agent could look at the plan and say, hey, this cannot be done or this can be done. You could also have a human in the loop instead of a verifier agent for more serious and high-risk plans. So that way, your plan is validated before it goes on for execution. And thirdly, make sure that you clearly specify the constraints. So let the agent know that it can do these things and cannot do a certain set of things. And instruct the agent to ask for clarification before making assumptions. The agent could say, do you want me to use a travel API instead of just straight away making up a travel API by itself. So by setting those things in place, you will ensure that your agent does not get stuck in the hallucinated planning failure mode. Let's jump into the final failure mode, which is the unsafe tool use. This is a scenario where an agent executes an action that is technically valid, but could be risky, destructive, or unintended. This happens mainly because the tools are overprivileged. Let's understand with an example. Let's say you have an agent that is supposed to go and delete outdated records from a database. But instead of deleting outdated records or archived records, it's going ahead and deleting active records that are important to you. Another example is that of an agent that sends autonomous emails or automated emails to recipients with content that has not been reviewed. So this also happens when there is no proper approval workflow in place. It also happens when there is no clear distinction between the read and write access that you give these tools. How might we go about mitigating that? Firstly, it's important to give only those privileges that are needed to the tools. So it's always good to adopt a principle of least agency with the tools because mitigation starts with permission design in this scenario. Also, create a proper approval workflow for high-risk tasks. If needed, have a human in the loop to review the task before it's sent for execution. So having an approval workflow is extremely helpful. Third, separate the tools into tiers based on the kind of access. Separate out the tools based on whether they have the read access or write access or a delete access. That will ensure that one tool doesn't go ahead and commit actions that it's not supposed to be doing. By following these principles, you will be able to mitigate the unsafe tool use, which actually could be pretty damaging to the reputation of the company. So it's very important to actually design your system to account for this failure mode. Agenting AI failures are not random occurrences. They are very much predictable and they happen for a reason. They happen because of too much autonomy or too little constraint or they also happen because there is no proper monitoring or tracking in place. Let's remember that engineering discipline is key to building reliable agents. I hope you found this information helpful. Thank you so much for your time.

⚙️ Pipeline jobs

StageStatusAtt.UpdatedError
download done 2/3 2026-07-20 11:48:45
transcribe done 1/3 2026-07-20 11:48:54
summarize done 1/3 2026-07-20 11:49:16
embed done 1/3 2026-07-20 11:49:18

📄 Описание YouTube

Показать
Learn about Agentic AI here → https://ibm.biz/~7tIAS4ONO

Agentic AI failures aren’t random—they happen for clear, predictable reasons. Meenakshi Kodati explains the top failure modes in agentic AI systems, from infinite loops to hallucinated planning and unsafe tool use 🤖. Learn how better design, constraints, and monitoring improve reliability.

AI news moves fast. Sign up for a monthly newsletter for AI updates from IBM → https://ibm.biz/~AONs89iwu

#ai #agenticai #aisystem