Evaluation and Improvement of Fault Detection for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have recently achieved significant success across various application domains, garnering substantial attention from different communities. Unfortunately, even for the best LLM, many textitfaults still exist that LLM cannot properly predict. Such faults will harm the usability of LLMs in general and could introduce safety issues in reliability-critical systems such as autonomous driving systems. How to quickly reveal these faults in real-world datasets that LLM could face is important, but challenging. The major reason is that the ground truth is necessary but the data labeling process is heavy considering the time and human effort. To handle this problem, in the conventional deep learning testing field, test selection methods have been proposed for efficiently evaluating deep learning models by prioritizing faults. However, despite their importance, the usefulness of these methods on LLMs is unclear, and lack of exploration. In this paper, we conduct the first empirical study to investigate the effectiveness of existing fault detection methods for LLMs. Experimental results on four different tasks~(including both code tasks and natural language processing tasks) and four LLMs~(e.g., LLaMA3 and GPT4) demonstrated that simple methods such as Margin perform well on LLMs but there is still a big room for improvement. Based on the study, we further propose MuCS, a prompt Mutation-based prediction Confidence Smoothing framework to boost the fault detection capability of existing methods. Concretely, multiple prompt mutation techniques have been proposed to help collect more diverse outputs for confidence smoothing. The results show that our proposed framework significantly enhances existing methods with the improvement of test relative coverage by up to 70.53%.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 24 of its 42 references that are in the map. First posted on arXiv 14 Apr 2024.
Builds on
24 of 42 references.
References · 24
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2022A Systematic Evaluation of Large Language Models of Codecited by 363
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 268
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
12 more
- 2023How Robust is Google's Bard to Adversarial Image Attacks?cited by 183
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
- 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 86
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 50
- 2023Rethinking Confidence Calibration for Failure Predictioncited by 43
- 2023OpenMix: Exploring Outlier Samples for Misclassification Detectioncited by 38
- 2022CCTEST: Testing and Repairing Code Completion Systemscited by 35
- 2019Improving short text classification through global augmentation methodscited by 33
- 2019Test Selection for Deep Learning Systemscited by 27
- 2022Simple Techniques Work Surprisingly Well for Neural Network Test Prioritization and Active Learning (Replicability Study)cited by 27
- 2021TestRank: Bringing Order into Unlabeled Test Instances for Deep Learning Taskscited by 7
- 2023CertPri: Certifiable Prioritization for Deep Neural Networks via Movement Cost in Feature Spacecited by 4
Built on by
Citing papers per year: 2024: 1.
1 paper.