paperbot · PL 论文追踪

全部论文 待读 收藏

P2 PURLTL: Mining LTL Specification from Imperfect Traces in Testing

PURLTL:从测试中的不完美轨迹挖掘 LTL 规约
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 4/10 · 论文属于“AI+PL”中的规约挖掘/形式化验证方向,与用户关注的 AI→PL 有较弱的邻接性;但它使用的是神经搜索与正例-未标注学习,不涉及 LLM/Agent,也不属于静态分析在 ML/Agentic 程序中的应用、浮点程序分析或贝叶斯程序分析等核心方向。引用 4 inbox
Bo Peng, Pingjia Liang, Tingchen Han, Weilin Luo, Jianfeng Du, Hai Wan, Rongzhen Ye, Yuhang Zheng
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 PURLTL,用神经搜索与正例-未标注学习从不完美轨迹挖掘任意 LTL 规约,大幅超越 SOTA。

形式化规约广泛用于软件测试,但人工编写费时。现有从轨迹挖掘 LTL 规约的方法存在不足:忽视不完美轨迹(部分剖析、上下文缺失或有缺陷程序)、依赖模板导致表达力受限、需要实际中难以获得的负轨迹。本文提出 PURLTL,从不完美轨迹挖掘任意 LTL 规约。为缓解搜索空间爆炸与错误偏置,它用神经网络搜索 LTL 公式,通过可微分参数操作模拟 LTL 路径检查;针对缺少负轨迹,将问题转化为正例-未标注学习,并结合数据增强进行 PU 学习。实验表明其大幅超越先前 SOTA,且对不完美轨迹鲁棒、不依赖公式模板。

问题
现有从执行轨迹挖掘 LTL 规约的方法忽略不完美轨迹的负面影响、依赖公式模板限制表达力,并且要求通常难以获得的负轨迹。
方法
PURLTL 使用神经网络搜索 LTL 公式,通过可微分参数操作模拟 LTL 路径检查以缓解搜索空间爆炸和错误偏置;同时将缺少负轨迹的问题转化为正例-未标注学习,并结合数据增强进行 PU 学习。
评估
实验将 PURLTL 与先前 SOTA 方法对比,结果显示其性能大幅领先,并且对不完美轨迹鲁棒、不依赖公式模板。
原文摘要(Abstract)

Formal specifications are widely used in software testing approaches, while writing such specifications is a time-consuming job. Recently, a number of methods have been proposed to mine specifications from execution traces, typically in the form of linear temporal logic (LTL). However, existing works have the following disadvantages: (1) ignoring the negative impact of imperfect traces, which come from partial profiling, missing context information, or buggy programs; (2) relying on templates, resulting in limited expressiveness; (3) requesting negative traces, which are usually unavailable in practice. In this paper, we propose PURLTL, which is able to mine arbitrary LTL specifications from imperfect traces. To alleviate the search space explosion and the wrong search bias, we propose a neural-based method to search LTL formulae, which, intuitively, simulates LTL path checking through differentiable parameter operations. To solve the problem of lacking negative traces, we transform the problem into learning from positive and unlabeled samples, by means of data augmentation and applying positive and unlabeled learning to the training process. Experiments show that our approach surpasses the previous start-of-the-art (SOTA) approach by a large margin. Besides, the results suggest that our approach is not only robust with imperfect traces, but also does not rely on formula templates.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{PengLHLDWYZ23,
  title = {PURLTL: Mining LTL Specification from Imperfect Traces in Testing},
  author = {Bo Peng and Pingjia Liang and Tingchen Han and Weilin Luo and Jianfeng Du and Hai Wan and Rongzhen Ye and Yuhang Zheng},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00202}
}