迈向弥合形式化方法与人类可解释性之间的鸿沟
Towards Bridging Formal Methods and Human Interpretability
AI总结:
该研究针对人类对标记迁移系统(LTS)设计的理解缺乏量化研究的问题,提出7项相关度量指标,通过实验验证4项指标与人类理解度的相关性,并将Albin复杂度用于设计修复工具,显著缩短理解时间,提升形式化设计可解释性。
摘要:
标记迁移系统(Labeled Transition Systems,LTS)是模型检测与设计修复工具中不可或缺的组成部分。系统工程师在模型检测或设计修复过程中,经常需要检查LTS设计,以开展调试、识别不一致性以及验证系统行为的工作。尽管LTS地位重要,但此前尚无研究考察人类对这类设计的理解能力。为解决这一问题,我们借鉴传统软件工程与图论知识,确定了7项关键度量指标:圈复杂度、状态空间规模、平均分支因子、最大深度、Albin复杂度、模块化程度与冗余度。我们构建了包含148个LTS设计的数据集,从中抽取48个设计开展324组配对比较,并借助Bradley-Terry模型对其进行排序。通过Kendall's Tau相关性分析我们发现,Albin复杂度(τ=0.444)、状态空间规模(τ=0.420)、圈复杂度(τ=0.366)和冗余度(τ=0.315)这四项指标能最准确地反映人类对LTS设计的理解程度。为展示这些度量指标的实用价值,我们将Albin复杂度指标应用于Fortis设计修复工具中,对系统重新设计方案进行排序。该排序方式使标注人员的理解时间缩短了39%,表明强调人为因素的度量指标能够提升形式化设计的可解释性。
英文摘要:
Labeled Transition Systems (LTS) are integral to model checking and design repair tools. System engineers frequently examine LTS designs during model checking or design repair to debug, identify inconsistencies, and validate system behavior. Despite LTS's significance, no prior research has examined human comprehension of these designs. To address this, we draw on traditional software engineering and graph theory, identifying 7 key metrics: cyclomatic complexity, state space size, average branching factor, maximum depth, Albin complexity, modularity, and redundancy. We created a dataset of 148 LTS designs, sampling 48 for 324 paired comparisons, and ranked them using the Bradley-Terry model. Through Kendall's Tau correlation analysis, we found that Albin complexity ($τ= 0.444$), state space size ($τ= 0.420$), cyclomatic complexity ($τ= 0.366$), and redundancy ($τ= 0.315$) most accurately reflect human comprehension of LTS designs. To showcase the metrics' utility, we applied the Albin complexity metric within the Fortis design repair tool, ranking system redesigns. This ranking reduced annotators' comprehension time by 39\%, suggesting that metrics emphasizing human factors can enhance formal design interpretability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。