跳到正文
Apple Machine Learning Research·· 2026-08-19AI 评分42

倒排索引遍历的 P-完全性:布尔查询 DAG 的复杂度评估

The P-Completeness of Inverted Index Traversal: On the Complexity of Evaluating Boolean Query DAGs

AI 导读

现代 AI 智能体依赖搜索基础设施执行神经符号推理,常编译为深层嵌套的非单调布尔查询。标准倒排索引查询评估策略面临严重理论限制:有状态迭代器模型(Document-at-a-Time)受 NC^1 公式评估结构约束,展开重汇聚逻辑时最坏情况查询复杂度呈 O(2^|Q|) 指数级爆炸。

正文 · 原文

Modern AI agents increasingly rely on search infrastructure to execute complex, neuro-symbolic reasoning workflows. These workflows often compile into deeply nested, non-monotonic Boolean queries over text fields. However, standard query evaluation strategies over inverted indices face severe theoretical limits when handling these structures. Stateful iterator models (Document-at-a-Time) are structurally bounded by NC^1 formula evaluation, suffering a worst-case O(2^|Q|) exponential blowup in query complexity when unrolling re-convergent logic. Conversely, recursive materialization models…

来源:Apple Machine Learning Research · machinelearning.apple.com