AI doom loops and the risk of machines creating problems faster than humans can fix them

Kore.ai CTO reveals how AI-powered feedback loops can introduce hidden complexity and threaten the stability of enterprise systems.

Share
An image of the ouroboros, an ancient symbol of cyclical destruction and renewal, geneared by AI based on a picture depicted in a Greek alchemical manuscript from 1478
An image of the ouroboros, an ancient symbol of cyclical destruction and renewal, generated by AI based on a picture depicted in a Greek alchemical manuscript from 1478

AI loops are automated workflows that could dramatically accelerate the development of software. But they could also hasten the deterioration of the technological foundations of modern enterprises, creating cascading risks throughout critical systems.

The AI loop technique involves repeatedly feeding information back to models, enabling them to refine their output, identify errors and work toward the completion of a task.

Yet the effectiveness of these loops depends on the integrity of the information fed into them and the quality of the mechanisms governing their operation.

"AI is only as good as the feedback it receives," Prasanna Arikala, CTO and CPO of Kore.ai, told Machine in an interview.

Arikala has witnessed some troubling phenomena during the development of his company's enterprise AI platform.

When AI loops operate within codebases containing conflicting specifications or implementations, they can generate redundant functionality that subsequently evolves independently.

"We have seen cases where it has branched out and created multiple versions of the same thing, and then eventually those two get diverged as you run a few days," he said.

The problem is particularly difficult to detect because both versions of the code may appear perfectly logical when examined independently.

This can leave developers maintaining multiple implementations of the same functionality, accelerating the accumulation of technical debt.

"We have seen cases where one path was maturing, another path was stale, and then we had to quickly reconcile it," he said.

The danger is that AI loops become doom loops, generating technological complexity faster than humans can understand, manage or resolve it.

"If your code base is not ready for AI, then don't do AI," Arikala said. "That's a fundamental principle."

Losing the source of truth

One of the most significant challenges associated with AI loops involves ensuring the information fed back into them accurately reflects the systems they are operating within.

"If your design, spec and architecture documents are not in sync with your code because code gets evolved over a period of time, then what is the source of truth for AI?" Arikala asked.

When conflicting information is presented to a model, it may resolve ambiguities in ways that run contrary to the intentions of its human operators.

"Whatever they see, they just take it and move forward. That's the risk that you have."

READ MORE: "Complacent" UK government slammed over failure to prepare for a cascading polycrisis

Preparing a codebase for AI loops is therefore a continuous process rather than a one-off exercise.

Kore.ai uses automated code analysis tools called linters, dependency checks, architectural constraints and testing mechanisms to detect problems and prevent drift.

"We need to make sure whatever they see is the right thing, but at the same time, we also need to have hooks to make sure whatever the model produces is also not drifting."

Accelerating into chaos

The commercial pressure on enterprises to harness AI could lead to the premature deployment of loops within technological environments that are not ready for them.

"You first need to make sure the repo is ready for AI. Otherwise, don't do it," Arikala warned.

"You are only going to create a mess down the line."

The danger extends beyond software engineering into the development and deployment of autonomous agents.

READ MORE: "We got lucky!": What Microsoft’s lost day should teach every UK boardroom

Kore.ai uses a technique called the "eval-driven auto loop" to develop agents, repeatedly testing their performance against defined requirements, including safety criteria and expected behavior.

Arikala believes autonomous agents should operate within deterministic frameworks that constrain their actions, govern their access to tools and ensure their activities can be audited.

However, he fears many enterprises lack the expertise required to implement these mechanisms.

"Putting this in the hands of people who don't have maturity is a risk," he said. "It's a huge risk for the industry and for any enterprise, for that matter."

Learning through failure

Historically, industries have introduced governance and compliance mechanisms in response to failures.

But the speed at which AI loops can generate and modify software makes this traditional approach to risk management potentially dangerous.

"AI is slightly different because it is moving so fast," Arikala said.

"Unfortunately, there is not enough education in the community."

While some engineers understand how to establish the boundaries required to govern autonomous and semi-autonomous systems, others may only discover the risks of AI loops when something goes wrong.

"They don't know the downside of it," Arikala advised. "And they'll burn their hands, and that may be too late."

Follow Machine on LinkedIn