Pith. sign in

REVIEW 5 cited by

Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2402.11651 v2 pith:2D2NGUGI submitted 2024-02-18 cs.CL

classification cs.CL
keywords trajectoriesfine-tuningllmsagentsdataduringlanguagelarge
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large language models (LLMs) have achieved success in acting as agents, which interact with environments through tools such as search engines. However, LLMs are optimized for language generation instead of tool use during training or alignment, limiting their effectiveness as agents. To resolve this problem, previous work has first collected interaction trajectories between LLMs and environments, using only trajectories that successfully finished the task to fine-tune smaller models, making fine-tuning data scarce and acquiring it both difficult and costly. Discarding failed trajectories also leads to significant wastage of data and resources and limits the possible optimization paths during fine-tuning. In this paper, we argue that unsuccessful trajectories offer valuable insights, and LLMs can learn from these trajectories through appropriate quality control and fine-tuning strategies. By simply adding a prefix or suffix that tells the model whether to generate a successful trajectory during training, we improve model performance by a large margin on mathematical reasoning, multi-hop question answering, and strategic question answering tasks. We further analyze the inference results and find that our method provides a better trade-off between valuable information and errors in unsuccessful trajectories. To our knowledge, we are the first to demonstrate the value of negative trajectories and their application in agent-tunning scenarios. Our findings offer guidance for developing better agent-tuning methods and low-resource data usage techniques.

Discussion (0). Sign in to comment.

Forward citations

Cited by 5 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Unleashing Embodied Task Planning Ability in LLMs via Reinforcement Learning

    cs.CL 2025-06 conditional novelty 6.0 of 10

    A 7B LLM trained with sparse completion rewards and a GRPO-style algorithm reaches state-of-the-art on ALFWorld and ScienceWorld.

  2. PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimization

    cs.AI 2025-06 conditional novelty 6.0 of 10

    Pseudocode-structured plans paired with preference optimization improve LLM agent success rates and generalization across interactive benchmarks.

  3. Training LLM-Based Agents with Synthetic Self-Reflected Trajectories and Partial Masking

    cs.CL 2025-05 conditional novelty 6.0 of 10

    A new agent-training method combining teacher-generated self-reflection corrections with partial masking of error steps improves open-source LLM agents on ALFWorld, WebShop, and SciWorld.

  4. Divide and Conquer: Grounding LLMs as Efficient Decision-Making Agents via Offline Hierarchical Reinforcement Learning

    cs.AI 2025-05 conditional novelty 6.0 of 10

    A prompt-shared hierarchical offline RL pipeline for LLM agents improves long-horizon task scores on ScienceWorld and ALFWorld over non-hierarchical baselines.

  5. LLM Priors for ERM over Programs

    cs.LG 2025-10 conditional novelty 5.0 of 10

    LLM-ERM uses LLM-proposed candidate programs plus validation-based selection to learn short program rules (parity, primality, palindromes) from about 200 examples, while SGD-trained transformers overfit.

Pith tools