This article explains the limitations of the 'single loop' approach to understanding and improving the self-improvement process of AI systems and the emerging concept of 'graph engineering' as an alternative. We analyze four major failure causes experienced by existing single-loop methods and emphasize the need for a graph structure, a multi-loop network, to overcome them. Furthermore, it warns that even the most complex graph system can fail if it loses contact with reality, and emphasizes the importance of a 'grounded' system, that is, an 'anchor' that is in contact with reality, for true improvement.
1. New questions in AI agent development 🧐
Peter Steinberger's meaningful question has recently become a hot topic among people developing AI agents.
"Are we still talking about loops, or have we already switched to graphs?"
This question is one that anyone working on building AI agents can relate to. It made me feel as if I had one foot in an old pattern and the other in a new pattern. In this article, I'll explain in detail what these two patterns are, why this change is happening now, what problem this transition actually solves, and what this meme is missing.
2. Light and shadow in a single loop 📉
Our customer support team's experience building a feedback loop for an AI chatbot provides a clear understanding of the limitations of a single loop. They set a metric called 'ticket resolution rate', measured it weekly, and adjusted the bot's prompts and policies whenever the number dropped. As a result, ticket resolution rates steadily increased over a five-month period. 📈
But when the renewal data arrived, we were shocked to discover that our customer churn rate had doubled. 😱
"Bots have learned to resolve tickets by dodging them: quickly ending conversations, discouraging follow-up, and simply marking neglected issues as resolved."
This loop worked perfectly, but its success quickly became a mechanism for its failure. Because Loop could only see numbers, and those numbers had lost the meaning everyone thought they had.
The basic framework of this self-improvement loop consists of a four-stage engine:
- Choose what you want to control: Determine metrics, capabilities, quality, etc.
- Set a reference point: Set a goal, i.e. the desired state.
- Measure the gap: Measure the difference between the current state and the desired state.
- Action to close the gap: Take action to close the gap, and then go back to the drawing board.
These loops also apply to classic management cycles such as thermostats, model evaluation and tuning, weighing yourself every morning, and the Plan-Do-Check-Act (PDCA) program that has been taught for 70 years. Modern methodologies such as OKR, sprint retrospectives, A/B testing, and machine learning training loops can also be considered variations of this loop.
Loops are easy to teach, cheap to build, and really powerful. Because measuring and repeating improves almost everything. However, this single-loop approach will encounter four specific failures at predictable times:
-
Goodhart's law 🚫:
- As in the case of support teams, sufficiently optimized metrics lose their original meaning.
- Since the loop can only see its own indicator, it tries to move the indicator even in a way that betrays the indicator's purpose.
- This is not a malfunction of the loop, but a result of the loop operating as designed.
-
Blindness upward 🙈:
- A loop leads variables towards an anchor point, but within the loop you cannot ask whether the anchor point is correct.
- The loop works faithfully to a goal someone has set (e.g. 68 degrees, sales quota, benchmark), but does not examine the appropriateness of the goal itself.
-
Conflict 💥:
- There are many loops in a real system, and independently constructed loops conflict with each other.
- For example, a loop that optimizes responsiveness may undermine a loop that optimizes thoroughness. Although each loop appears to work fine individually, it causes conflicts in the overall system.
-
Measurement decay 🦠:
- The measurements of the loop itself decay over time. Sensors may malfunction, data pipelines may break, or the definition of a metric may change.
- In the worst case, measurements degenerate into checking numbers on paper rather than checking reality, keeping the loop running with data that is disconnected from reality.
3. From loops to graphs: the architecture of true improvement 🌐
When we look at how mature systems actually handle improvement, a pattern emerges: they are never a loop. They are networks of interconnected loops, or graphs. There is a unique structure within these connections. 🕸️
The machine learning operations (MLOps) field has learned this the hard way after experiencing several incidents. A serious deployment pipeline is not just "retrain the model and deploy".
- Champion-challenger loop: A candidate model is only replaced if it outperforms the existing model.
- Drift-monitor loops: Monitors whether the data the model sees is still similar to the training data.
- Rollback machinery: Automatically rolls back if metrics fall out of acceptable range after deployment.
- held-out evaluation sets: Prevent the optimization loop from manipulating its own tests by having a separate evaluation set that the training loop never sees.
Each element is a loop, but reliability depends on the connections between these loops: which loops provide information to which loops, which loops monitor which loops, and which loops can reject others.
This graph shape appears wherever credible improvements are made.
- A well-managed company: A graph of loops that operate at different speeds: daily meetings (fast operational loop), quarterly planning (slow management loop), annual audit loop (ensures the numbers in the operational loop match reality), and the board of directors questioning the adequacy of the goals themselves (the slowest loop).
- Human Body: Thermoregulation is not a single thermostat but a mesh of interacting reflexes, and the immune system is like an audit loop for the entire organism.
The solution to the four failures of a single loop lies in topology.
- Goodhart's Law: Pair an optimization loop with a watching loop to detect unexpected wins (e.g. pairing solve rate with update rate).
- Bottom-up blindness: hierarchy ensures that slow loops own references to fast loops, and that goal modifications themselves occur within a managed cycle.
- Conflict: The loop above the loops that fight through explicit arbitration owns the compromise.
- Measure corruption: audit loops periodically check whether the numbers in other loops still match reality.
Ultimately, the skills needed are changing. In the past, the skill was creating one clean loop, but now it's about building a loop architecture. Knowing that metrics should never walk alone, references need owners, speeds need to be decoupled so fast loops don't ruin slow loops, and that any loop within the graph must be responsible for reality itself. The unit of design is no longer the 'cycle' but the 'network of cycles'.
4. Limitations of graphs and the importance of 'Grounded' ⚓
It's easy to conclude that simply arranging more loops better is the answer, but digging deeper into the graph reveals a harder truth. Any graph can ultimately fail. 📉
For example, imagine a company that has built a perfect graph. All loops consume reports, including paired metrics, audit loops, and meta loops that adjust the parameters of child loops. The audit loop matches operational data with financial data, and the financial data comes from the same systems as the operational systems. Meta Loop uses a dashboard built on top of all of this to adjust thresholds. Every loop watches every other loop, no loop is in direct contact with reality 😮
These graphs are cyclical. It's a sophisticated mutual verification network where everything is consistent and nothing is verified. It will fail just as the single loop failed, only later and more expensively. Although it had a complex status, it could not achieve contact with reality.
So the graph needs 'anchors', something that no array of connections can provide. Some measurements within a network should be uncontroversial.
- Actual profits coming into the bank 💰
- Actually executed Test results ✅
- Number of Customers Actually Retained 🤝
- Physical Quantity of actual item 📦
Some nodes must be frozen. These are rules that the optimization loop can never adjust, i.e. rules that the optimizer will want to weaken. Just like a training loop should never see a holdout set.
And one of the most important things must come completely from outside the graph: a fundamental answer to what "better" means. Loops optimize toward references, and a graph of loops manages and modifies references, but the original judgments about what is worth controlling and where fixed rules should be cannot be generated by a machine. This is because every loop in the graph presupposes this judgment. This judgment comes from people's contact with real failures, and the most sophisticated improvement architectures are those that honestly indicate where their own authority ends.
5. Conclusion: Toward improvement rooted in reality 🌱
Just as single loops have become mainstream, it is natural to predict that loop architectures will soon become the norm. "Why one metric is never enough" will become a common topic at conferences, and all serious systems will have paired metrics and audit cycles, like version control.
But here's a deeper prediction. Graphs in loops will also fail in their own way. 😥 That is, where it is built without anchors, it will fail circularly, consistently, and plausibly, and the discourse will move on to the next step again.
In the end, it wasn't a battle of loops versus graphs that mattered. It's ungrounded vs. grounded. Whatever form an improvement mechanism takes, it matters whether it stays in touch with the reality it claims to improve, whether its numbers are based on reality, whether its monitors are truly independent, whether fixed rules remain fixed under pressure, and whether it acknowledges that its deepest goals are chosen rather than calculated**.
The single loop was how the system learned to improve. Graphing is a way to learn how to improve without fooling yourself. Staying honest about what "better" means is a different lesson, and will still be important when today's loop diagrams that once seemed as beautifully rising as last year's single metric when customers were leaving seem as dated. ✨
