Micro-meso-macro is not agent terminology; it is vocabulary from multi-level analysis in the social sciences. Borrowing that frame lets you split agent feedback into three loops: output refinement (seconds), episode reflection (at episode end), and policy updates (batches of accumulated logs).
The Problem With Agents That Have No Feedback
An agent built on a Large Language Model (LLM) repeats a cycle of planning, execution, and results. Without a path that carries execution results back into the system, the agent may repeat the same judgment on the next cycle. Model weights are fixed, so the mechanism that corrects mistakes has to be designed separately, outside the model.
For example, an agent may propose the same code again if the next attempt does not receive the failed test. This is a design example of why a feedback path is needed, not experimental evidence of performance in a specific industry.
Handling all feedback in a single loop does not work either. A correction that re-checks an output once has to finish inside the response path, within seconds. A conclusion such as "this prompt rule is itself wrong" can only be reached after dozens of episodes have accumulated. Mixing corrections of different time scales into one loop slows the real-time path and lets noise from individual results shake policy decisions.
Where the Name Comes From
The three-level micro-meso-macro split is vocabulary from levels of analysis in the social sciences. The micro level takes interactions between individuals as its unit, the meso level takes groups and organizations, and the macro level takes society as a whole. In evolutionary economics, Dopfer, Foster, and Potts presented a framework in their 2004 paper "Micro-meso-macro". It analyzes an economic system as a rule structure across those three levels.
There is no standard framework in the agent field called "micro-meso-macro feedback loops". What actually exists is a set of independently proposed techniques such as Self-Refine and Reflexion, each operating on a different time scale. This post borrows the vocabulary of multi-level analysis to group those techniques into a single design frame.
The Three Loops
flowchart TD
subgraph MICRO["Micro loop (seconds, before execution)"]
G[Generator] -->|draft| C[Critic]
C -->|rejected| G
C -->|approved| OUT[Final output]
end
subgraph MESO["Meso loop (at episode end)"]
DONE[Episode ends] --> REF[Generate self-reflection]
REF --> MEM[Episode memory]
MEM -->|context for the next attempt| DONE
end
subgraph MACRO["Macro loop (batches of accumulated logs)"]
LOGS[Accumulated episode logs] --> PAT[Extract patterns, draft changes]
PAT --> EVAL[Separate evaluation]
EVAL --> POL[Update prompts and rules]
POL --> CAN[Canary rollout]
end
MICRO --> MESO --> MACRO
The three loops stack in order of time scale. Each inner loop produces artifacts, such as outputs and episode logs, that become input to the outer loop.
| Loop | Time scale | What it updates | Representative technique |
|---|---|---|---|
| Micro | Seconds (before execution) | The current artifact | Self-Refine, generator-critic |
| Meso | At episode end | Reflection memory, agent trust | Reflexion |
| Macro | Batches of accumulated logs | Policy (prompts and rules) | Separate evaluation of proposed changes |
The real dividing line between the three loops is what gets updated. Micro fixes the current artifact. Meso fixes the memory and trust weights that shape artifact production, and macro fixes the production rules themselves. Time scale follows from that.
Micro Loop
Self-Refine has one model iterate over drafting, self-feedback, and revision. The paper evaluates iterative revision without additional training. It does not guarantee an improvement on every task.
Splitting the generator and the critic into separate agents produces the generator-critic structure. LangChain's Reflection Agents post presents an example that splits generation and critique into two LLM calls as Basic Reflection.
In a graph-based orchestrator, a single conditional edge implements the iteration.
# Conceptual sketch: branch between regeneration and progress on the critic's verdict (not runnable code)
graph.add_conditional_edges(
"critic",
lambda s: (
"next_step" if s["critic_approved"]
else "generator" if s["iteration"] < 2
else "next_step" # force progress once the iteration cap is hit
),
)The micro loop runs inside the response path, so every iteration adds latency and API cost directly. Four principles keep that in check.
| Principle | Reason |
|---|---|
| Iteration cap (2-3) | An endlessly rejecting critic turns into an infinite loop |
| Lightweight critic model | If the verdict task is narrower than generation and evaluation shows that verdict quality holds, a smaller model can reduce latency and cost |
| Structured verdicts | The branch logic is only stable if the pass/fail flag and the findings come back as JSON |
| Severity classification | Regenerating over trivial findings can cost more in latency and API calls than it gains |
Meso Loop
Reflexion is the reference technique for episode-level feedback. After finishing an attempt, the agent receives an evaluation signal. It converts that signal into a verbal self-reflection on why it failed. The reflections accumulate in episode memory and are injected as context for the next attempt. Because behavior is corrected through context rather than weight updates, the authors call this verbal reinforcement learning.
The quality of the meso loop depends on how the reflection is structured. Storing only a "failed" label leaves nothing usable for the next attempt. At minimum, keep three things.
- Assumption attribution: look at the assumption, not the outcome. Which premise broke, and where?
- Failure type: judgment error, contaminated input (hallucination or misinformation), execution failure, or environment change?
- Lesson note: one sentence that can be injected verbatim into the next context.
In a system that combines judgments from several agents, reflection can be extended into weight adjustment. The system scores each agent's judgment in each episode and reduces the weight of agents whose judgments were wrong.
Multiplicative Weights Update (MWU) can be used for this update. It is a classic algorithm for the experts-advice problem (Arora, Hazan, Kale 2012). This application is a design proposal. The original theorem does not guarantee agent performance.
(\text{err}_i(t)) is the error of agent (i) in this episode (0 to 1), and (\alpha) is the learning rate. If agents A, B, and C have weights 0.4, 0.35, and 0.25, errors of 1.0, 0.0, and 0.5, and (\alpha=0.1):
After normalizing to sum to 1, A's share falls and B's rises. Two safeguards are needed here. Without a floor, the weight of an agent that is wrong for a while shrinks, and the agent loses its chance to recover. Without a ceiling, one agent with repeated correct judgments dominates the combined result and removes the diversity of perspectives.
Macro Loop
Meso-loop iteration does not remove a wrong rule in the prompt. The macro loop extracts patterns from accumulated episodes and updates the policy: prompts and rules.
Here, the macro loop is an operational procedure: use accumulated logs to propose a change, evaluate it on a separate set, then update prompts or rules. This is distinct from retraining the model. Successful episodes alone can hide failure cases, so run the same evaluation before and after the change.
The distinction that matters in the macro loop is internal defect versus external change.
| Type | Example | Response |
|---|---|---|
| Internal defect | Recurring reasoning errors, hallucination, prompt drift | Policy update (revise prompts and rules) |
| External change | Regulatory change, tool API change, environment regime shift | Context update (refresh knowledge, leave policy unchanged) |
If external change is met with a policy update, a temporary shift in the environment gets baked into the policy. When the environment returns to its earlier state, that policy is wrong again.
Because reverting a policy change is expensive, use a canary rollout instead of applying it everywhere at once. Apply the changed prompt or rule to a subset of tasks. Widen the scope if the key metrics hold, and roll back if they degrade. This carries Google SRE's canary release principle over to policy changes.
Deciding Which Loop a Signal Belongs To
When a new feedback signal appears, three questions decide which loop it goes into.
| Question | Micro | Meso | Macro |
|---|---|---|---|
| Latency budget | Inside the response path, seconds | Asynchronous after the episode ends | Batch |
| Signal density | Judgeable from one output | Judgeable from one episode | Needs dozens of episodes |
| Cost of reverting | Discard the output -- none | Roll back memory or weights -- low | Roll back the policy -- high |
Feedback loops carry a specific risk of their own: overfitting. The more sensitive a loop is to signal, the more sensitive it is to noise.
| Risk | Mitigation |
|---|---|
| Over-adapting to recent episodes | Update on a moving average, never on a single result |
| Overreacting to one large failure | Cap the weight change per update |
| Mistaking an environment change for an internal defect | Split environment-change detection into a separate signal |
| Policy contamination from a macro update | Canary rollout plus automatic rollback |
References
- Dopfer, K., Foster, J., Potts, J.: Micro-meso-macro (Journal of Evolutionary Economics 14, 2004)
- Self-Refine: Iterative Refinement with Self-Feedback (NeurIPS 2023)
- Reflexion: Language Agents with Verbal Reinforcement Learning (NeurIPS 2023)
- Arora, S., Hazan, E., Kale, S.: The Multiplicative Weights Update Method: A Meta-Algorithm and Applications (Theory of Computing 8, 2012)
- Reflection Agents (LangChain Blog)
- Google SRE Workbook: Canarying Releases
Summary
Micro-meso-macro feedback loops are not the name of a standard framework. The term is a design frame that borrows vocabulary from multi-level social science analysis to split agent feedback by time scale. The micro loop corresponds to Self-Refine-style output refinement before execution, and the meso loop to Reflexion-style episode reflection. The macro loop is the policy-change and separate-evaluation procedure proposed in this post.
The update target distinguishes the loops: the artifact, the memory and trust weights, or the policy. Time scale follows from that distinction. When placing a signal, weigh the latency budget, the signal density, and the cost of reverting. Give every loop its own overfitting defenses such as moving averages, capped weight changes, and canary rollouts.