paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Deep specification mining

深度规约挖掘
ISSTA Proceedings of the 27th ACM SIGSOFT International Symposium on Software Testing and Analysis2018匹配度 4/10 · 该论文用深度学习(RNNLM)从执行轨迹中挖掘有限状态自动机规约,属于机器学习改进规约挖掘的AI→PL方向,但未涉及LLM/Agent,且是基于旧模型(RNNLM)的动态分析,而非用户核心关注的LLM/Agent改进静态分析/形式化验证,也与浮点分析、贝叶斯程序分析等方向无关。引用 50 inbox
Tien-Duy B. Le, David Lo
crossref: 2026-09-12

AI 速览

一句话:提出 DSM,用深度学习从执行轨迹中挖掘有限状态自动机规约,并在库类与 Android 沙箱中验证有效性。

形式规约对软件系统很重要,但通常缺失且编写成本高。已有自动规约挖掘方法在 FSA 推断精度上仍有不足。本文提出 Deep Specification Miner (DSM),通过测试用例生成获得更丰富的执行轨迹,训练基于 RNN 的语言模型,并据此构建前缀树接受器 PTA、抽取特征;随后用聚类合并相似自动机状态,生成多个 FSA,再用模型选择启发式估计 F-measure 并返回最佳规约。作者对 11 个目标库类进行挖掘,平均 F-measure 达 71.97%,比最佳基线高 28.22%,并展示了在 Android 应用沙箱中的应用价值。

问题
形式规约通常不可用且编写成本高,现有 FSA 规约挖掘方法的推断精度仍需提升。
方法
DSM 用测试用例生成丰富执行轨迹,训练 RNN 语言模型,构建 PTA 并抽取特征,经聚类合并状态生成多个 FSA,再以模型选择启发式估计 F-measure 选出最佳规约。
评估
在 11 个目标库类上评估,平均 F-measure 为 71.97%,优于最佳基线 28.22%,并展示其在 Android 应用沙箱中的应用价值。
原文摘要(Abstract)

Formal specifcations are essential but usually unavailable in software systems. Furthermore, writing these specifcations is costly and requires skills from developers. Recently, many automated techniques have been proposed to mine specifcations in various formats including fnite-state automaton (FSA). However, more works in specifcation mining are needed to further improve the accuracy of the inferred specifcations. In this work, we propose Deep Specifcation Miner (DSM), a new approach that performs deep learning for mining FSA-based specifcations. Our proposed approach uses test case generation to generate a richer set of execution traces for training a Recurrent Neural Network Based Language Model (RNNLM). From these execution traces, we construct a Prefx Tree Acceptor (PTA) and use the learned RNNLM to extract many features. These features are subsequently utilized by clustering algorithms to merge similar automata states in the PTA for constructing a number of FSAs. Then, our approach performs a model selection heuristic to estimate F-measure of FSAs and returns the one with the highest estimated Fmeasure. We execute DSM to mine specifcations of 11 target library classes. Our empirical analysis shows that DSM achieves an average F-measure of 71.97%, outperforming the best performing baseline by 28.22%. We also demonstrate the value of DSM in sandboxing Android apps.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4816,
  title = {Deep specification mining},
  author = {Tien-Duy B. Le and David Lo},
  booktitle = {ISSTA},
  year = {2018},
  doi = {10.1145/3213846.3213876}
}