01. Reflection And Self-Critique
Self reflection is a method for fixing errors. The model checks its own output against stored knowledge. This turns a single attempt into an iterative process. Retrieval and verification help improve factual reliability. One study found that grounding the model in a verified database cut hallucination rates from over fifty percent down to under fifteen percent. That reduction comes from reusing external evidence, not from one-shot generation. Another paper notes that self reflection is one of several fixing approaches, alongside retrieval and alignment tuning. The trade off is that iterative checking requires extra computation. But it makes the system more trustworthy. Without such feedback, models often repeat mistakes. With it, they can catch and correct errors before the final answer. That is why reflection turns failure into improvement. It stores the lesson from the first attempt and applies it to the next.
Reflection and self-critique are encoded in the agent's output schema via the 'criticism' field, enabling iterative self-improvement.
{
"thoughts": {
"text": "thought",
"reasoning": "reasoning",
"plan": "- short bulleted\n- list that conveys\n- long-term plan",
"criticism": "constructive self-criticism",
"speak": "thoughts summary to say to user"
},
"command": {
"name": "command name",
"args": {
"arg name": "value"
}
}
}
Imagine a student writing an answer to a question and then checking it against a textbook to catch mistakes. This is what self-reflection does for a language model—it turns a single guess into a process of verifying and fixing its own output, making it more reliable by grounding answers in trusted knowledge. The model first generates an initial response, then retrieves relevant evidence from a stored database to check each claim. In one study, grounding the model in a verified inventory cut hallucination rates from over fifty percent down to under fifteen percent, using mechanisms like database-grounded context injection and fixed vocabulary constraints. A multi-layer framework breaks the answer into atomic claims, retrieves evidence for each, and verifies them with a smaller model before refining uncertain cases. This step-by-step verification acts like the student flipping through the textbook page by page, ensuring each part of the answer is supported. The trickiest part is that without proper grounding, forcing the model to follow a strict format can backfire—the context notes a "C3 anomaly" where enforcing JSON output without providing a verified vocabulary actually increased hallucination, as the model filled required fields with training-data guesses rather than external evidence. This shows that self-reflection requires not just checking but a reliable external source to check against, or the process degrades. Without this subsystem, the model would confidently produce false answers like a student insisting on a wrong answer without ever consulting the textbook, leading to unreliable outputs that undermine trust.
The subsystem operates as an iterative loop. After each action (a_t), the agent computes a heuristic (h_t) that evaluates trajectory quality. If the heuristic detects inefficiency or hallucination, the agent may reset the environment to start a new trial. Self‑reflection is triggered by providing two‑shot examples—pairs of a failed trajectory and an ideal reflection—to the Large Language Model (LLM). These reflections are then added to the agent’s working memory, up to a maximum of three, forming context for subsequent LLM queries. Finally, the model is fine‑tuned using Chain of Hindsight (CoH): given a sequence of past outputs ranked by reward and accompanied by human‑provided hindsight feedback, the model predicts only the best output (y_n) conditioned on the prefix. This turns a single generation attempt into an iterative, self‑correcting process.
The design preserves the invariant that the trajectory will not contain a sequence of consecutive identical actions leading to the same observation. Specifically, the heuristic function defines hallucination as exactly such a pattern. When it occurs, the agent resets the environment, guaranteeing that no infinite loop of repeated, unproductive actions can persist. This invariant is enforced by the (h_t) computation at every step and the optional reset decision, providing a clear bound on execution progress.
The key trade‑off is between latency and factual reliability. By adding iterative self‑reflection steps, the system increases total response time compared to a one‑shot generation. However, this rejects the obvious alternative of a single pass without external grounding, which the source shows yields hallucination rates above 50%. The cost avoided is the high error rate—one study documents that grounding in a verified database cut hallucination from over 50% to under 15%. The iterative mechanism therefore exchanges speed for the guarantee that outputs are checked against stored knowledge and historical feedback, reusing external evidence rather than relying on the model’s parametric memory alone.
A concrete failure mode occurs when the model repeatedly outputs the same action across consecutive steps, leading to unchanged observations. The heuristic (h_t) detects this pattern as a hallucination, and the agent signals the operator by resetting the environment to begin a new trial. The operator would see the environment restart without the requested output, accompanied by the heuristic’s internal flag that a self‑reflection reset was triggered. Without this signal, the system would stall silently, but the design ensures the failure is visible and actionable.
Retrieval Failure in Database-Grounded Context Injection
- Trigger — The external knowledge base query returns no relevant documents or incorrect documents, e.g., the query formulation fails or the database lacks coverage. This failure is documented as retrieval errors and incomplete or selective integration of evidence (Barua et al., 2026).
- Guard — The source does not specify an exception handler, retry, or fallback for a failed retrieval. The mitigation stack only assumes successful retrieval; no guard identifier such as a try‑except or fallback variable is provided.
- Posture — fail‑soft: the model continues generation without external evidence, relying on internal training priors, degrading factual reliability.
- Operator signal — "retrieval errors" and "incomplete or selective integration of evidence" are the reported failure modes. The operator would observe unsupported claims or missing citations in the output.
- Recovery — No automatic recovery. The operator must manually correct the query, expand the database, or re‑run the pipeline; the system does not retry.
C3 Anomaly from JSON Output Enforcement Without Grounding
- Trigger — When only enforced JSON output is active and neither database‑grounded context injection nor fixed vocabulary constraints are present, the mandatory entity fields in the JSON schema exert slot‑filling pressure, forcing the model to populate tool‑name slots from training‑data priors (Menxhiqi & Marinova, 2026).
- Guard — The intended guard is the full three‑mechanism mitigation stack: database‑grounded context injection, fixed vocabulary constraints, and enforced JSON output. Under the anomalous configuration (only JSON enforcement), no guard is active.
- Posture — fail‑soft: the system continues to generate outputs, but with increased hallucination rate (observed +10.1 pp in Gen1, +15.1 pp in Gen2).
- Operator signal — The hallucination rate (HR) metric rises above the unconstrained baseline. A frequency‑weighted audit reveals remaining out‑of‑inventory mentions.
- Recovery — No automatic recovery. The operator must activate the missing grounding mechanisms and re‑run the system; retry is manual.
Self‑Reflection Loop Inefficiency or Indefinite Iteration
- Trigger — The heuristic function ( h_t ) fails to detect a stalled trajectory (e.g., the model outputs consecutive identical actions leading to the same observation). The source defines hallucination as exactly that pattern, and inefficient planning as trajectories that take too long without success.
- Guard — The guard is the heuristic function itself, which decides when to stop and optionally reset the environment. However, the source does not specify a timeout, retry limit, or fallback if the heuristic never triggers.
- Posture — fail‑soft: the system continues iterating, consuming resources without progress. The task may eventually be interrupted externally, but the framework itself does not abort.
- Operator signal — "Inefficient planning refers to trajectories that take too long without success." The operator would observe prolonged response times or excessive API calls without task completion.
- Recovery — The environment may be reset if the heuristic triggers; otherwise manual intervention is required. No automatic retry count or backoff is given.
Overfitting and Shortcutting in Chain of Hindsight
- Trigger — During fine‑tuning of Chain of Hindsight (CoH), the presence of many common words in the feedback sequences causes the model to learn shortcuts and copy past outputs rather than genuinely self‑reflecting.
- Guard — Two guards are defined: a regularization term to maximize log‑likelihood of the pre‑training dataset, and a randomly mask 0% - 5% of past tokens during training procedure. These reduce but do not eliminate the risk.
- Posture — fail‑soft: the model’s self‑reflection quality degrades; training continues, but downstream performance suffers from redundant or copied outputs.
- Operator signal — The paper notes "shortcutting and copying (because there are many common words in feedback sequences)". The operator would observe a lack of genuine improvement in produced sequences during evaluation.
- Recovery — No runtime recovery. The issue is addressed during training by adjusting the masking rate or regularization strength; manual re‑training is necessary.
Probabilistic Miscalibration Leading to Confident Hallucinations
- Trigger — The model outputs a factually incorrect statement with high confidence because its internal probability estimates are misaligned with correctness – one of the four miscalibration types (probabilistic miscalibration) described in Hu et al. (2026).
- Guard — The source discusses temperature scaling and domain‑conditional Platt scaling as post‑hoc calibration techniques (Reed & Mason, 2025), but the self‑reflection subsystem does not incorporate any calibration check at inference time. No guard is present in the described reflection loop.
- Posture — fail‑soft: the model continues to generate confident‑ but‑wrong outputs, potentially misleading downstream decision‑makers. The system appears reliable while being incorrect.
- Operator signal — "confident hallucinations" and "semantic miscalibration" are the identified failure indicators. The operator would observe statements that sound plausible but are factually unsupported.
- Recovery — No automatic recovery. The source calls for interaction designs that surface model confidence to downstream decision‑makers, but no concrete recovery mechanism is implemented.