arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17437cs.SEcs.LG
收藏

一种用于科学计算程序元突变关系充分性的语义突变度量

A semantic mutation metric for metamorphic relation adequacy in scientific computing programs

School of Computing, University of South China(南华大学计算机学院);Hunan Engineering Research Center of Software Evaluation and Testing for Intellectual Equipment(湖南软件测评与智能设备工程研究中心);CNNC Key Laboratory on High Trusted Computing(中核集团高可信计算重点实验室)

Meng Li, Xiaohua Yang, Jie Liu, Shiyu Yan

AI总结:

本文提出了一种基于领域语义操作符的语义突变度量(SMS),旨在解决传统突变度量在科学计算中忽略领域语义的问题,通过引入五个领域语义操作符,提高了对元突变关系充分性的评估能力。

摘要:

背景。元突变测试用于解决科学计算中的测试- oracle 问题,但传统突变度量仅基于语法 AST 突变,忽略了领域语义。目标。我们提出了语义突变度量(SMS),其基于五个领域语义操作符(保守侵蚀、操作符替换、超参数、轨迹翻转、结构注入)。SMS 在限定条件下几乎退化为传统突变度量(MS),因此任何基于 SMS 的结论在经典范围内都与之前的突变测试文献一致。方法。一个 12-PUT x 5-MP 设计用于四个单输出浮点到浮点类(数值、概率、代理、机器学习)的组合,配以一个三层归因分类器,将真正的语义故障与容忍、OOD、统计和人工制品类别分开。在相同的提示下,同一源/跨源的消融实验隔离了 LLM 源多样性贡献。LLM 生成的突变体在 AST 正则化水平上与默认配置的宇宙射线语法池进行比较。结果。预注册的大型效应阈值在点估计标准下未被满足;观察到的效应位于中等效应范围内。在相同的提示下,跨源池化没有明显改变 delta,表明在此设计中 LLM 身份不是关键因素。LLM 生成的突变体与默认宇宙射线语法突变体在 AST 层面的重叠很小;在默认的一阶语法配置下,超参数、结构注入和轨迹翻转类别是不可达的。结论。SMS 是科学计算中领域语义元突变关系集的后向兼容充分性度量。一阶不可达证据与效应大小问题无关。

英文摘要:

Context. Metamorphic Testing addresses the test-oracle problem in scientific computing, but classical Mutation Score operates on syntactic AST mutations and misses domain semantics. Objective. We propose the Semantic Mutation Score (SMS), built on five domain-semantic operators (Conservation Erosion, Operator Substitution, Hyperparameter, Trajectory Flip, Structural Injection). SMS degenerates almost everywhere to MS in a characterised limit, so any SMS-based conclusion remains consistent with prior mutation-testing literature in the classical regime. Method. A 12-PUT x 5-MP design over four single-output float-to-float classes (numeric, probabilistic, surrogate, machine-learning) is paired with a three-layer attribution classifier separating true semantic faults from tolerance, OOD, statistical, and artefact categories. A same-source / cross-source ablation under an identical prompt isolates the LLM-source-diversity contribution. LLM-generated mutants are compared against a default-configuration cosmic-ray syntactic pool at the AST-normalised level. Results. The pre-registered large-effect threshold for Cliff's delta is not met under the point-estimate criterion; the observed effect lies in the medium-effect range. Cross-source pooling under an identical prompt does not appreciably shift delta, indicating that LLM identity is not the lever within this design. AST-level overlap between LLM-generated and default cosmic-ray syntactic mutants is small; the Hyperparameter, Structural Injection, and Trajectory Flip classes are unreachable under default first-order syntactic configurations. Conclusion. SMS is a backward-compatible adequacy metric for domain-semantic metamorphic-relation sets in scientific computing. The first-order unreachability evidence is independent of the effect-size question.

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

↑