Preprint · 2024 · Open access

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

Renxi Wang, Haonan Li, Han, Xudong, Yixuan Zhang, Timothy Baldwin

arXiv · Published 18 February 2024 · DOI 10.48550/arxiv.2402.11651

Open PDFView at the publisherCite this paper

In brief

“Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents” is a 2024 preprint by Renxi Wang and 4 co-authors, published in arXiv. OpenAlex counts 69 citations as of 25 November 2026. It is open access under a CC BY-NC-SA licence: the full text is free to read at arXiv.

Citations
69
Most cited in
2025 (31)
References
23
Authors
5

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.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Wang, R., Li, H., Xudong, H., Zhang, Y., & Baldwin, T. (2024). Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents. arXiv. https://doi.org/10.48550/arxiv.2402.11651

MLA 9

Wang, Renxi, et al. “Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents.” arXiv, 2024. https://doi.org/10.48550/arxiv.2402.11651.

Chicago

Wang, Renxi, Haonan Li, Han, Xudong, Yixuan Zhang, and Timothy Baldwin. 2024. “Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents.” arXiv. https://doi.org/10.48550/arxiv.2402.11651.

Harvard

Wang, R. et al. (2024) ‘Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents’, arXiv. doi:10.48550/arxiv.2402.11651.

IEEE

R. Wang, H. Li, H. Xudong, Y. Zhang, and T. Baldwin, “Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents,” arXiv, 2024, doi: 10.48550/arxiv.2402.11651.

BibTeX

@misc{wang2024learning,
  title     = {{Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents}},
  author    = {Wang, Renxi and Li, Haonan and Xudong, Han, and Zhang, Yixuan and Baldwin, Timothy},
  howpublished = {arXiv},
  year      = {2024},
  doi       = {10.48550/arxiv.2402.11651},
  url       = {https://doi.org/10.48550/arxiv.2402.11651}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Citations by year

YearCitationsShare of the best year
202499
20253131
20262929

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling

  • negative examples
  • tool use
  • search engines
  • mathematical reasoning
  • multi-hop question answering
  • low-resource data

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Wang, R., Li, H., Xudong, H., Zhang, Y., & Baldwin, T. (2024). Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents. arXiv. https://doi.org/10.48550/arxiv.2402.11651

How many times has this paper been cited?

69 times, according to OpenAlex on 25 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Renxi Wang, Haonan Li, Han, Xudong, Yixuan Zhang, Timothy Baldwin.

What is the DOI of this paper?

10.48550/arxiv.2402.11651, permanently at https://doi.org/10.48550/arxiv.2402.11651. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 25 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.