paperbot · PL 论文追踪

全部论文 待读 收藏

P1 The Fine-Grained Complexity of CFL Reachability

CFL 可达性问题的细粒度复杂度
POPL 7(POPL)2023匹配度 5/10 · 该论文研究 CFL 可达性的细粒度复杂度,并给出 Andersen 指针分析等静态程序分析核心问题的下界,属于程序分析理论基础;但用户当前重点关注静态分析与 LLM/Agent、浮点程序分析、贝叶斯程序分析的交叉,本文未涉及这些方向,因此仅为间接相关。引用 6 inbox
Paraschos Koutris, Shaleen Deep
crossref: 2026-09-10

AI 速览

一句话:在细粒度复杂度框架下确定 CFL 可达性的精确指数,并证明 Dyck-2 的 Ω(n^2.5) 下界。

许多静态程序分析问题可建模为带标签有向图上的上下文无关语言(CFL)可达性。通用解法时间为 O(n^3),但给定具体 CFL 时,其精确多项式指数以及是否存在中间复杂度仍缺少完整图景。本文从细粒度复杂度出发,在 BMM、k-Clique、APSP、3SUM 等广泛相信的猜想下,为若干 CFL 类及具体 CFL(重点是 Dyck-k 语言)建立条件下界,刻画其精确运行时间。关键结果包括 Dyck-2 可达性的 Ω(n^2.5) 下界,这是首个适用于所有算法的超二次下界,表明 CFL 可达性严格难于布尔矩阵乘法;同时针对以边数 m 为参数的稀疏图,给出 Andersen 指针分析的立方下界,显著强化了已有结果。

问题
许多静态程序分析问题可归约为带标签有向图上的 CFL 可达性;通用算法为 O(n^3),但给定具体 CFL 时其精确多项式指数与完整复杂度图景仍不清楚。
方法
在 BMM、k-Clique、APSP、3SUM 等广泛相信的细粒度下界猜想下,对 CFL 类及具体语言(尤其 Dyck-k)进行条件下界归约,并分析以边数 m 为参数的稀疏图设定。
评估
通过条件下界证明给出精确复杂度:Dyck-2 可达性具有 Ω(n^2.5) 下界,是首个适用于所有算法的超二次下界;稀疏图下 Andersen 指针分析获得立方下界,强化已有结果。
原文摘要(Abstract)

Many problems in static program analysis can be modeled as the context-free language (CFL) reachability problem on directed labeled graphs. The CFL reachability problem can be generally solved in time O ( n 3 ), where n is the number of vertices in the graph, with some specific cases that can be solved faster. In this work, we ask the following question: given a specific CFL, what is the exact exponent in the monomial of the running time? In other words, for which cases do we have linear, quadratic or cubic algorithms, and are there problems with intermediate runtimes? This question is inspired by recent efforts to classify classic problems in terms of their exact polynomial complexity, known as fine-grained complexity. Although recent efforts have shown some conditional lower bounds (mostly for the class of combinatorial algorithms), a general picture of the fine-grained complexity landscape for CFL reachability is missing. Our main contribution is lower bound results that pinpoint the exact running time of several classes of CFLs or specific CFLs under widely believed lower bound conjectures (e.g., Boolean Matrix Multiplication, k -Clique, APSP, 3SUM). We particularly focus on the family of Dyck- k languages (which are strings with well-matched parentheses), a fundamental class of CFL reachability problems. Remarkably, we are able to show a Ω( n 2.5 ) lower bound for Dyck-2 reachability, which to the best of our knowledge is the first super-quadratic lower bound that applies to all algorithms, and shows that CFL reachability is strictly harder that Boolean Matrix Multiplication. We also present new lower bounds for the case of sparse input graphs where the number of edges m is the input parameter, a common setting in the database literature. For this setting, we show a cubic lower bound for Andersen’s Pointer Analysis which significantly strengthens prior known results.

链接与引用

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

BibTeX
@article{paperbot2056,
  title = {The Fine-Grained Complexity of CFL Reachability},
  author = {Paraschos Koutris and Shaleen Deep},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {POPL},
  year = {2023},
  doi = {10.1145/3571252}
}