paperbot · PL 论文追踪

全部论文 待读 收藏

P2 DSM: a specification mining tool using recurrent neural network based language model

DSM:一个使用基于循环神经网络语言模型的规约挖掘工具
FSE Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2018匹配度 3/10 · 该论文将循环神经网络语言模型用于从执行轨迹中挖掘有限状态自动机规约,属于机器学习与程序分析的交叉,但与用户核心关注的“LLM/Agent 改进静态分析/形式化验证”或“静态分析应用于 Agentic 程序”距离较远;其使用的是较旧的 RNN 而非当前 LLM/Agent,且方法偏向动态规约挖掘而非静态分析。引用 6 inbox
Tien-Duy B. Le, Lingfeng Bao, David Lo
crossref: 2026-09-12

AI 速览

一句话:提出 DSM 工具,用 RNN 语言模型从执行轨迹中挖掘有限状态自动机形式规约。

形式规约重要但常缺失,且人工编写耗时、依赖开发者技能。DSM 面向该问题:输入一组执行轨迹,训练循环神经网络语言模型(RNNLM);由轨迹构造前缀树接受器(PTA),并利用训练好的 RNNLM 提取特征。随后,这些特征被送入聚类算法,用于合并 PTA 中相似的自动机状态,从而组装出多个有限状态自动机(FSA)候选。工具再用模型选择启发式估计各 FSA 的 F-measure,并输出估计值最高的自动机。其实现还提供若干选项,允许用户优化所得 FSA 的质量。

问题
形式规约往往缺失且难以人工编写,需要自动从程序执行轨迹中挖掘可用于描述系统行为的规约。
方法
DSM 先从执行轨迹训练 RNN 语言模型并构造前缀树接受器,再利用 RNNLM 提取特征,通过聚类合并相似状态来生成多个 FSA,最后以启发式估计 F-measure 并选择最优结果。
评估
摘要未报告具体定量实验;工具通过估计 FSA 的 F-measure 进行模型选择,并提供多个可调选项以优化最终 FSA 的质量。
原文摘要(Abstract)

Formal specifications are important but often unavailable. Furthermore, writing these specifications is time-consuming and requires skills from developers. In this work, we present Deep Specification Miner (DSM), an automated tool that applies deep learning to mine finite-state automaton (FSA) based specifications. DSM accepts as input a set of execution traces to train a Recurrent Neural Network Language Model (RNNLM). From the input traces, DSM creates a Prefix Tree Acceptor (PTA) and leverages the inferred RNNLM to extract many features. These features are then forwarded to clustering algorithms for merging similar automata states in the PTA for assembling a number of FSAs. Next, our tool performs a model selection heuristic to approximate F-measure of FSAs, and outputs the one with the highest estimated F-measure. Noticeably, our implementation of DSM provides several options that allows users to optimize quality of resultant FSAs.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4611,
  title = {DSM: a specification mining tool using recurrent neural network based language model},
  author = {Tien-Duy B. Le and Lingfeng Bao and David Lo},
  booktitle = {FSE},
  year = {2018},
  doi = {10.1145/3236024.3264597}
}