Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models for Failure Mode Classification: An Investigation

Michael Stewart, Melinda Hodkiewicz|arXiv (Cornell University)|Sep 15, 2023
Text Readability and SimplificationComputer Science7 citations
TL;DR

This paper investigates the use of Large Language Models (LLMs) for Failure Mode Classification (FMC), demonstrating that fine-tuning GPT-3.5 on a small, high-quality annotated dataset significantly improves FMC performance (F1=0.80) compared to both a baseline text classifier (F1=0.60) and the zero-shot GPT-3.5 (F1=0.46), establishing fine-tuning as essential for high accuracy in domain-specific maintenance tasks.

ABSTRACT

In this paper we present the first investigation into the effectiveness of Large Language Models (LLMs) for Failure Mode Classification (FMC). FMC, the task of automatically labelling an observation with a corresponding failure mode code, is a critical task in the maintenance domain as it reduces the need for reliability engineers to spend their time manually analysing work orders. We detail our approach to prompt engineering to enable an LLM to predict the failure mode of a given observation using a restricted code list. We demonstrate that the performance of a GPT-3.5 model (F1=0.80) fine-tuned on annotated data is a significant improvement over a currently available text classification model (F1=0.60) trained on the same annotated data set. The fine-tuned model also outperforms the out-of-the box GPT-3.5 (F1=0.46). This investigation reinforces the need for high quality fine-tuning data sets for domain-specific tasks using LLMs.

Motivation & Objective

  • To evaluate the effectiveness of Large Language Models (LLMs) for Failure Mode Classification (FMC), a critical task in industrial maintenance.
  • To investigate whether prompt engineering alone can achieve strong FMC performance without fine-tuning.
  • To determine whether fine-tuning LLMs on domain-specific annotated data improves FMC accuracy compared to traditional text classification models.
  • To assess practical barriers in deploying LLMs for FMC, including inference stability, cost, and data privacy.

Proposed method

  • The study uses GPT-3.5 as the primary LLM and evaluates both zero-shot prompting and fine-tuned inference for FMC.
  • A prompt engineering strategy is employed, where the list of 22 ISO 14224 failure mode codes is embedded in the system prompt to constrain output.
  • Fine-tuning is performed on a curated dataset of 502 (observation, label) pairs from maintenance work orders, with 62 each for validation and testing.
  • Performance is evaluated using F1-score, with comparisons to a Flair-based text classification model trained on the same data.
  • The dataset is derived from real maintenance work orders using Named Entity Recognition to extract failure observations, with labels assigned by domain experts.
  • Inference is conducted via the OpenAI API, with temperature set to 0 to reduce non-deterministic outputs during evaluation.

Experimental results

Research questions

  • RQ1What is the most effective prompt format for enabling an LLM to perform FMC without fine-tuning?
  • RQ2Is fine-tuning necessary to achieve high performance in FMC using LLMs?
  • RQ3How does the performance of a fine-tuned LLM compare to a traditional text classification model like Flair on the same FMC task?
  • RQ4What practical challenges arise when deploying LLMs for FMC in industrial settings?

Key findings

  • Fine-tuning GPT-3.5 on a small, high-quality annotated dataset achieved an F1-score of 0.80, significantly outperforming the zero-shot GPT-3.5 (F1=0.46).
  • The fine-tuned LLM also outperformed a Flair-based text classifier trained on the same data, which achieved an F1-score of 0.60.
  • Prompt engineering alone, without fine-tuning, yielded poor performance (F1=0.46), indicating that prompt design is insufficient for high accuracy in FMC.
  • The fine-tuned LLM showed better generalization on minority failure mode classes, likely due to the broad knowledge base from pre-training on diverse corpora.
  • Inference was stable and cost-effective, with each experiment costing approximately $1 USD, though rate limiting and non-deterministic outputs were observed during inference.
  • The study highlights that high-quality annotated data is essential for effective LLM fine-tuning in domain-specific maintenance applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.