- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper proposes AgentBrew, a three-stage offline training framework for LLM-based tool-use agents in real-world environments (GitHub, Notion, PostgreSQL via MCP), to tackle the problem that real-world deployments lack pre-defined task suites, verifiers, simulators, and large interaction budgets. AgentBrew (1) collects a raw trajectory corpus through grounded exploration without quality filtering; (2) performs experience distillation via retrospective task inference (rewriting instructions to match actual outcomes) and PMI-based credit assignment (decomposing trajectory-level information into per-action credits); and (3) trains using these credits as sample weights in a weighted SFT objective. On three MCP applications, it improves Qwen3-32B, surpassing Qwen3-235B and outperforming rejection sampling. The distilled data also transfers to a 14B model.
Strengths and weaknesses
Strengths
Originality
- The paper identifies an important problem: existing training approaches for tool-use agents assume verifiers, simulators, or large interaction budgets, but they are not always available in real-world applications. The problem identification is well-motivated, even though the solution's framing is debatable (see Weaknesses).
- The PMI-based credit assignment is novel. Using the chain rule of PMI to decompose trajectory-level information into per-action credits provides an exact additive decomposition with intuitive properties: informative actions get high credit, redundant ones near-zero, and misleading ones negative (clamped to zero) credit.
Quality
- The PMI-based credit assignment is mathematically clean, and it complements the retrospective task inference. The two components addressing different failure modes (task-level misalignment and action-level noise).
- The ablation comparing credit assignment strategies shows PMI consistently outperforming Uniform, LLM Score, and InfoPO. The transferability experiment demonstrates practical value for amortizing API costs.
Clarity
- Well-written with clear notation and detailed case studies that make the method concrete and interpretable.
Weaknesses
Quality
- By rewriting task instructions to match what trajectories already achieved, the framework can only reinforce behaviors the base model already exhibits. It has no mechanism to discover or credit actions never tried. This creates a self-reinforcing loop: explore within current capability -> relabel partial successes as training targets -> improve at what the model already does. Rejection sampling, by contrast, preserves original goals and filters for lucky successes that exceed typical behavior, providing a path to capability expansion. The 18.2% average accuracy may partly reflect this ceiling. The circularity is amplified by using a single model (Qwen3-32B) for all pipeline stages (exploration, task inference, credit computation, and training), so the model's own biases determine what is proposed, inferred, and credited, with no external signal to break the loop. Continual learning is therefore unclear: the improved model's trajectories would still be relabeled to match their outcomes, potentially converging rather than further improving.
- "No verifier" framing overstates the advantage. Retrospective task inference, which infers what a trajectory accomplished, is arguably harder than verification (checking whether a specific goal was met). Both require understanding complex stateful API interactions. If an LLM cannot determine whether a task was completed, why can it reliably determine what was accomplished? The real trade-off is the verifier discarding data while the rewriter preserving data, with similar inference difficulty.
Originality
- Replacing instructions with ones the trajectory actually fulfills is now new: HER in classic RL, HSL with environment rewards, AgentHER with failure classification. The paper cites all three but does not discuss what is novel beyond applying the same idea without rewards. Stripping chain-of-thought and adding inference constraints are implementation details, not conceptual advances. The real novel PMI credit mechanism is conflated with hindsight relabeling under the unified AgentBrew framing.
Significance
- Large gap to frontier models. AgentBrew-trained Qwen3-32B achieves only 18.2% accuracy, far below Gemini-3 Pro (57.1%) and GPT-5 (50.0%). The method surpasses a 235B model of the same family, but the agent still fails on >80% of tasks. The paper does not discuss what fraction of this gap is bridgeable by the proposed approach versus what requires fundamentally different methods (online exploration, stronger base models, external feedback, etc.).
Clarity
- No comparison against training on only "well-aligned" trajectories (as classified by the GPT-5 judge) with uniform weighting. This would disentangle the value of including misaligned trajectories (which PMI suppresses) from action-level credit assignment on aligned ones.
Questions
- What fraction of inferred tasks are classified as "well-aligned" by the GPT-5 judge? How does the quality correlate with trajectory length/complexity?
- How does performance scale with the number of trajectories? A learning curve would help practitioners decide how much exploration is needed for a new application.
- Robustness experiments: Section 4.5 ranks trajectories by alignment with the original instruction, but since retrospective inference rewrites instructions to match trajectories, original alignment becomes irrelevant. A more meaningful experiment would measure noise after rewriting.
- Why does rejection sampling achieve 0% accuracy on Notion? How many trajectories did the judge retain? If essentially zero pass the filter, this seems like a judge prompt/setup failure rather than an inherent limitation of filtering.
Limitations
This paper identifies some limitations (narrow evaluation scope, degradation on long/chaotic trajectories). One additional limitation deserves mention:
- Clamping negative PMI credits to zero introduces a bias toward learning recovery behaviors. When an erroneous action is followed by a corrective action, the error is suppressed (zero weight) while the recovery is reinforced. In an optimal trajectory, neither would be needed. The policy may thus learn "how to recover from mistakes" rather than "how to avoid them." This is inherent to any information-theoretic credit mechanism on imperfect trajectories without counterfactual reasoning, but deserves explicit acknowledgment.
Paper formatting concerns
N/A
Final justification
Overall, the PMI-based credit assignment is a novel contribution that demonstrably outperforms alternative weighting strategies. The rebuttal provides the missing baseline, confirming that action-level credit adds value beyond trajectory-level filtering. Remaining issues are not disqualifying, but the camera-ready should explicitly acknowledge the structural ceiling and adjust the novelty positioning of the task inference component.
We sincerely appreciate your thorough and constructive feedback, and we are grateful for your positive assessment of the problem motivation, the originality and mathematical clarity. Regarding your concerns, we provide our responses below:
Thank you for this thoughtful analysis. We clarify how AgentBrew expands the effective training distribution and avoids a closed self-reinforcement cycle.
(1) AgentBrew expands the task-conditioned training distribution rather than merely reinforcing original-task successes. We agree that a fixed offline corpus cannot provide supervision for actions that were never attempted; however, this limitation applies equally to rejection sampling. The key difference is how the sampled behaviors are utilized. Rejection sampling retains only rare trajectories that fully satisfy their original instructions. AgentBrew instead remaps partially successful trajectories to new, environment-grounded tasks, creating valid
(task, trajectory)pairs outside the original task-conditioned sampling distribution. PMI credit then identifies the informative actions within these trajectories. Thus, AgentBrew converts a substantially broader portion of the collected behavior distribution into useful supervision, rather than repeatedly fitting only existing complete successes.This is consistent with Yue et al. [1], who show that RL-based filtering mainly reallocates probability toward behaviors already present in the base distribution. AgentBrew differs from pure self-filtering because real environment outcomes determine which new task–behavior associations are learned.
[1] Yue, Yang, et al. "Does reinforcement learning really incentivize reasoning capacity in llms beyond the base model?."
(2) Environment grounding breaks the closed self-evaluation cycle. Although Qwen3-32B is used throughout the pipeline, inferred tasks and credits are constrained by real application observations that the model cannot fabricate. Removing observations on Notion reduces performance from 14.2/70.1 to 7.1/65.4 Acc/Score, showing that the gains arise from environment-grounded outcomes rather than model self-consistency alone.
We thank the reviewer for this thoughtful analysis. We address both points together as they share a common explanation.
(1) Retrospective inference expands the learnable data distribution, while rejection sampling compresses it. We agree with the reviewer that both LLM-based verification and retrospective inference face similar difficulty. The key difference is their effect on the training data distribution: rejection sampling retains only trajectories judged as successful, compressing the distribution to a small subset biased toward simpler tasks; retrospective inference rewrites instructions to match actual outcomes, expanding the alignment rate from
~7% to 54%(judged by gpt5) on Notion and broadening the range of learnable behaviors. Since both approaches inevitably introduce noise, the downstream quality control mechanism becomes critical.(2) Rejection sampling retains a small and noisy subset on Notion. The Qwen3-32B judge retains only ~17% of trajectories. Since only 7% of the original pairs are judged well-aligned, even assuming all aligned pairs were retained, at least ~59% of the retained subset remains misaligned. Under uniform SFT, these hallucinated approvals introduce misaligned supervision, leading to degraded performance: 0 Acc / 53.2 Score, below the base model’s 3.6 / 60.1.
We agree that hindsight relabeling originates from HER. The key differences lie in how the hindsight task is constructed in an open-ended tool-use environment and how it is subsequently used for fine-grained credit assignment.
First, classical HER assumes an environment-defined goal representation and a reward function that can be recomputed after replacing the original goal. In real-world MCP applications, tasks are compositional natural-language instructions involving multiple entities, APIs, and state changes, and the environment provides neither a goal taxonomy nor a state-to-goal mapping. The achieved task must therefore be recovered from an unstructured action–observation trajectory.
Second, our inference differs from existing natural-language hindsight relabeling in how the original task constrains the output. Unlike AgentHER, which infers a new goal from the trajectory outcome without using the original task as a semantic anchor, we minimally revise the original instruction by preserving its high-level structure, removing unsupported subtasks, and retaining only environment-confirmed outcomes (Appendix E; Figures 5–7). This constraint reduces the ambiguity of long trajectories that may otherwise admit many plausible hindsight descriptions.
Additional experiment. We remove the original-task anchor and infer a new task solely from the action–observation trajectory:
Revision-based inference improves Acc from 10.7 to 14.2 and Score from 66.3 to 70.1. This experiment does not claim hindsight relabeling as a new principle; rather, it shows that original-task anchoring is an important formulation choice for constructing a coherent reference task before PMI-based credit assignment.
We agree that a substantial gap to frontier models remains. AgentBrew targets data efficiency, that is, extracting strongersupervision from a fixed, unlabeled interaction budget, rather than replacing stronger base models or online exploration. The reported gains therefore demonstrate the value of offline environment-specific adaptation, not that the frontier-model gap is fully bridgeable. Moreover, performance continues to improve with corpus size (§Q2), suggesting that the current setting has not yet saturated.
We thank the reviewer for these insightful questions. We provide an analysis based on post-rewrite alignment, which directly measures the noise remaining after retrospective inference.
Retrospective inference produces 54–67% well-aligned pairs, while PMI assigns substantially lower credit to the remaining noise. Using GPT-5 to classify each inferred instruction–trajectory pair, we find that 67% on GitHub and 54% on Notion are well-aligned. Misaligned pairs receive approximately half the mean credit of aligned pairs. We also observe that alignment decreases for longer trajectories, while their mean credit decreases accordingly, showing that PMI is sensitive to both post-rewrite noise and trajectory complexity.
Trajectory-level filtering alone cannot explain AgentBrew’s gains. On GitHub, filtering the corpus to only GPT-5-classified well-aligned pairs improves Score from 55.4 to 59.5, but leaves Acc unchanged at 17.8. In contrast, applying PMI weighting to the same full corpus achieves 21.4 Acc / 63.5 Score, outperforming the filtered baseline by +3.6 Acc / +4.0 Score despite retaining misaligned pairs. This shows that action-level credit provides additional value beyond data selection and offers a direct robustness analysis against post-rewrite noise.
We thank the reviewer for this constructive suggestion. Figure 4 (§4.5) can be read as a learning curve: the Notion corpus contains 2,615 trajectories, and we train on the top 15%, 50%, 75%, and the full set ranked by quality in descending order. Performance improves monotonically as data grows, even though each expansion adds strictly lower-quality trajectories. We further add a random 50% subset to disentangle quantity from quality. It reaches 10.7 / 64.3, close to the quality-ranked 50% (10.7 / 66.2) and well below the full corpus (14.2 / 70.1), indicating that gains are driven by corpus size rather than by a small high-quality core. This suggests practitioners can benefit from broad, unfiltered exploration instead of investing in careful curation.
We agree that PMI-weighted SFT provides only positive reinforcement: clamping removes faulty actions from training but does not explicitly penalize them. Distinguishing recoverable errors from actions that should be avoided requires counterfactual or optimal-path supervision, unavailable in our offline setting. We will clarify this limitation and identify preference-based negative supervision as future work.