paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Formal Verification-Integrated Reinforcement Learning for Automated ORM Schema Synthesis

形式验证集成的强化学习用于自动化 ORM Schema 合成
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026匹配度 4/10 · 论文属于程序合成与形式化验证交叉,使用RL+Alloy,与PL+AI有广义交集;但未涉及用户核心关注的静态分析、LLM/Agent、浮点或贝叶斯程序分析,且应用领域为ORM Schema,匹配度有限。引用 1 inbox
Md Rashedul Hasan, Hamid Bagheri
crossref: 2026-10-09

AI 速览

一句话:提出 ReinforceORM,用强化学习搜索 ORM Schema 的多目标帕累托最优解,并以 Alloy 形式验证保证正确性。

传统 ORM 框架只生成单一方案,难以在性能与存储间取得最优折衷,穷举设计空间分析对真实系统不可行。ReinforceORM 将 ORM Schema 合成建模为多目标优化,用多种强化学习算法搜索映射策略,平衡插入时间、查询性能与存储开销,并用 Alloy 形式分析对有界结构与语义正确性进行验证。在 15 个真实系统上,它发现超过 80% 的真实帕累托最优 ORM 配置,较 Hibernate、Django ORM、SQLAlchemy 和 Entity Framework 等框架提升约 18 倍;相比规范驱动搜索,运行时和内存分别降低约 4 个和 5 个数量级,且解质量接近最优。

问题
传统 ORM 框架只生成单一映射方案,难以在性能与存储间取得最优折衷;穷举式设计空间分析对真实系统计算代价过高。
方法
ReinforceORM 将 ORM Schema 合成形式化为多目标优化问题,集成多种强化学习算法搜索映射策略,并用 Alloy 形式分析对生成 Schema 的结构与语义正确性进行有界验证。
评估
在 15 个真实软件系统上,与主流 ORM 框架及规范驱动搜索对比,评估帕累托最优覆盖率、解质量、运行时和内存开销。
原文摘要(Abstract)

Object-relational mapping (ORM) frameworks are widely used to bridge object-oriented models and relational databases, but conventional tools generate only single point solutions and often miss optimal trade-offs between performance and storage consumption. Exhaustive tradespace analysis can discover Pareto-optimal database designs, but it is computationally prohibitive for realistic systems. This paper introduces ReinforceORM, an automated and scalable framework that formulates ORM schema synthesis as a multi-objective optimization problem solved via reinforcement learning with formal verification. Our approach integrates multiple RL algorithms to efficiently search the vast space of mapping strategies, balancing insertion time, query performance, and storage consumption, while employing Alloy-based formal analysis to provide bounded verification of structural and semantic correctness in generated schemas. Evaluation across fifteen diverse, real-world software systems shows that ReinforceORM identifies over 80% of ground-truth Pareto-optimal ORM configurations—an 18-fold improvement over leading ORM frameworks such as Hibernate, Django ORM, SQLAlchemy, and Entity Framework. Compared to state-of-the-art specification-driven search, ReinforceORM reduces analysis runtime and memory usage by four and five orders of magnitude, respectively, while maintaining near-optimal solution quality.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot12485,
  title = {Formal Verification-Integrated Reinforcement Learning for Automated ORM Schema Synthesis},
  author = {Md Rashedul Hasan and Hamid Bagheri},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3837501}
}