Home โ€บ Blog โ€บ Agentic Feedback Loops in Practice
Deep Dive ยท 1 of 5 ๐Ÿ”

Agentic Feedback Loops in Practice

The field handbook's "Agentic Feedback Loops" section introduced ReAct, RLEF, and Constitutional AI in a few paragraphs each. This is the expanded version โ€” the real papers, verified citations, and an original diagram for each loop so you can see exactly where information flows and where the feedback signal actually comes from.

FL
FrontierAGI Team
On the citations below: all three papers' titles, authors, arXiv IDs, and venues were independently verified through direct research rather than carried over from any single source. Two small caveats are flagged where they apply: RLEF's exact co-author ordering and Constitutional AI's full ~50-person author list could not be byte-for-byte confirmed against the primary arXiv page in this research pass (arxiv.org itself was not directly browsable), though the paper identity, arXiv ID, and core claims are high confidence, cross-corroborated across multiple independent sources. Video links are only included where a genuine, specifically-identifiable recording was found โ€” no fabricated links.

Why These Three Together

All three techniques answer the same underlying question โ€” how does a language model get feedback on something more complex than "is this single answer right or wrong" โ€” but they source that feedback from three genuinely different places: ReAct grounds reasoning in real-world tool results, RLEF grounds it in code execution, and Constitutional AI grounds it in the model's own critique against a written set of principles, with an AI (not a human) judging the result. Seeing the three loops side by side makes clear that "agentic feedback" isn't one mechanism โ€” it's a design choice about where the ground truth for "good" comes from.

ReAct: Reasoning Grounded in Tool Results

ReAct: Synergizing Reasoning and Acting in Language Models HIGHICLR 2023
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, Yuan Cao โ€” arXiv:2210.03629
Proposes prompting an LLM to interleave chain-of-thought reasoning with discrete actions โ€” API or tool calls to external sources โ€” and the observations those actions return, rather than doing pure reasoning or pure acting alone. On HotpotQA and FEVER, grounding reasoning in retrieved facts this way reduces hallucination and error propagation compared to reasoning with no external check. On interactive decision-making benchmarks (ALFWorld, WebShop), it substantially outperforms imitation- and RL-trained baselines using only one or two in-context examples.
Thought reason about next step Action call a tool / API Observation real result returned loop back until the answer is well-grounded
The ReAct loop: each action's real-world observation feeds the next thought, instead of reasoning happening in one unchecked pass.

RLEF: Reinforcement Learning from Execution Feedback

RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning HIGHarXiv 2024 โ†’ ICML 2025
Jonas Gehring, Kunhao Zheng, Jade Copet, Vegard Mella, Taco Cohen, Gabriel Synnaeve, and coauthors โ€” arXiv:2410.02089 exact co-author ordering not byte-for-byte confirmed
Trains code-generating LLMs end-to-end with reinforcement learning (PPO) to actually use execution feedback: the model writes code, that code runs against public test cases, and any failure output is fed back into the conversation for the model to repair โ€” with the reward based on held-out private tests the model never sees directly. This teaches genuine iterative self-correction, not just better first-try accuracy, and the paper reports state-of-the-art results on competitive programming benchmarks with both 8B and 70B models, using an order of magnitude fewer samples than prior approaches to reach comparable performance.
Generate Code candidate solution Execute + Test public + private tests Reward + PPO Update policy learns to fix failures failed public-test feedback re-enters the next generation attempt
The RLEF loop: execution results, not a learned judge, decide the reward โ€” the same objective feedback pattern the practitioner's primer highlighted as a domain advantage for code.

Constitutional AI: Feedback from a Written Constitution, Judged by AI

Constitutional AI: Harmlessness from AI Feedback HIGHAnthropic, Dec 2022
Yuntao Bai, et al. (large Anthropic team) โ€” arXiv:2212.08073 full ~50-person author order not byte-for-byte confirmed
Trains a helpful-and-harmless assistant using no human harm labels at all. In a supervised phase, the model critiques and revises its own outputs against a written set of principles (the "constitution"). In an RL phase โ€” this is the part often shorthanded RLAIF, reinforcement learning from AI feedback โ€” an AI model, not human raters, judges pairs of outputs to build a preference dataset, and the assistant is trained against that AI-generated preference model. The paper reports the resulting model was preferred by human crowdworkers over prior RLHF-only harmlessness training, while being less evasive and more willing to actually engage with a question.
SUPERVISED PHASE Response initial model output Self-Critique vs. written constitution โ†’ Revision RL PHASE (RLAIF) AI Preference Judge ranks output pairs RL Update No human harm labels used in either phase Ground truth comes from the written constitution + an AI judge, not a human rater
Constitutional AI's two phases: a supervised critique-and-revise loop, then an RL phase where an AI โ€” not a human โ€” supplies the preference signal.

Comparing the Three Loops

TechniqueWhere feedback comes fromHow objective is itBest-suited domain
ReAct Real tool/API results returned mid-reasoning High โ€” the observation is a real external fact Question answering, retrieval-grounded tasks, interactive environments
RLEF Code execution against test cases Very high โ€” tests pass or fail, no judgment call Code generation and repair specifically
Constitutional AI Written principles + an AI judge's preference Lower โ€” depends on how well the model applies the constitution Behaviors that can't be unit-tested (tone, harmlessness, style)
The pattern underneath all three: the more objectively "correct" the feedback source is, the less the loop depends on trusting a judge โ€” ReAct and RLEF both ground themselves in something the world (or a test suite) directly confirms, while Constitutional AI's RL phase depends on the AI judge itself being reliable, which is exactly the "who verifies the verifier" problem the field handbook's meta-verification section flags as still largely unsolved.
๐ŸŽฏ The Bottom Line
If you're choosing which of these three to build with first, choose based on how objective your feedback source can be, not on which technique sounds most sophisticated. RLEF is the strongest default wherever code execution is available โ€” the reward is unambiguous and doesn't require trusting a judge. ReAct is the right pattern the moment a task needs real-world facts a model can't reliably know from training alone. Constitutional AI is the fallback for everything else โ€” behaviors that can't be unit-tested โ€” but it inherits a weakness the other two mostly avoid: its RL phase's entire signal depends on the AI judge being trustworthy, which is exactly the meta-verification problem the field still hasn't solved. Pick the loop whose ground truth you'd actually bet on.
Continuing the deep dives? Deep Dive 2 โ€” Planning as Search covers LATS's tree search, SPRINT's parallel reasoning, SWiRL's synthetic-trajectory training, and the irreversible-action problem tree search quietly assumes away.

โš ๏ธ Confidence Notes and Gaps

All three papers' core identity (title, arXiv ID, venue, central claims) are high confidence, cross-corroborated across multiple independent sources during research for this piece. Two narrower details are flagged individually above rather than presented as fully certain: RLEF's exact co-author ordering and Constitutional AI's complete ~50-person author list could not be verified byte-for-byte against the primary arXiv abstract page in this research pass, since arxiv.org itself wasn't directly browsable in this environment. If you're citing either paper formally, pull the author list directly from the arXiv page rather than from this summary.

๐Ÿ”— Full Reference List