Analyzing the Effectiveness of Neuron Coverage Criteria in LLM TestingUnraveling the Efficacy of Neuron Coverage Criteria on Testing Large Language Models
The researchers evaluated the effectiveness of six neuron coverage criteria for testing large language models, finding that these criteria are effective at assessing sample diversity but have limited ability to reveal adversarial errors. The evaluation was conducted on three types of models—encoder-only, decoder-only, and encoder-decoder—involving four existing criteria and two newer criteria, examining error-revealing ability, distributional diversity, sample fairness, and guidance for test input generation. Results show that error samples yield only 0.32% additional coverage relative to noise samples; in 26 and 30 of 33 configurations, respectively, the criteria effectively assess distributional diversity and sample fairness; incorporating neuron-level coverage guidance into test input generation increases adversarial sample output by only 4.56%. The authors state that existing coverage criteria can serve as an antidote for assessing diversity but are essentially a placebo for revealing adversarial errors, especially when used alone, and their value depends on whether the limited benefits offset the computational cost of testing large Transformer models; the study calls for developing coverage criteria that are more effective at revealing errors and more efficient for such models.