arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.31308cs.AI
收藏

大型语言模型在浮点错误分类上的基准测试

Benchmarking Large Language Models on Floating-Point Error Classification

Lisa Taldir, Muhammad Ahmad Saeed, David Defour, Pablo de Oliveira Castro, Eric Petit

AI总结:

本文提出InterFLOPBench基准,评估14个LLM在六类浮点错误上的静态检测性能,最新模型整体F1超过0.88。

摘要:

本文研究了大型语言模型(LLMs)在软件代码中静态检测和分类浮点错误的能力。我们引入了InterFLOPBench,一个包含90个C语言内核和1130个测试样本的基准,旨在评估14个LLMs在六类浮点错误(抵消、比较、除零、溢出、下溢和NaN)上的表现。评估框架将浮点错误检测视为多标签分类问题,并采用F1分数指标来衡量性能。结果表明,最新模型(Qwen 3 32b、Gemini 2.5 Flash、Phi 4 Reasoning、DeepSeek R1T2以及gpt-oss 20b和120b)的整体F1分数超过0.88。不同错误类别之间的性能存在差异,例如显式操作(如除零,平均F1分数:0.8479)与更微妙的数值现象(如下溢,平均F1分数:0.6059;抵消,平均F1分数:0.6164)之间表现不同。

英文摘要:

This paper investigates the capability of Large Language Models (LLMs) to detect and classify floating-point errors statically in software code. We introduce InterFLOPBench, a benchmark of 90 C kernels with 1 130 test samples designed to evaluate LLMs across six categories of floating-point error: cancellation, comparison, division by zero, overflow, underflow and NaN, compared across 14 LLMs. The evaluation framework treats floating-point error detection as a multi-label classification problem and employs the F1-score metric to measure performance. Results demonstrate that latest models (Qwen 3 32b, Gemini 2.5 Flash, Phi 4 Reasoning, DeepSeek R1T2, and gpt-oss 20b and 120b) achieve a performance greater than 0.88 overall F1-score. Performance varies between error categories, between explicit operations such as division by zero (Average F1-score: 0.8479) and more subtle numerical phenomena such as underflow (Average F1-score: 0.6059) and cancellation (Average F1-score: 0.6164).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑