OrLog: Resolving Complex Queries with LLMs and Probabilistic Reasoning
Mohanna Hoveyda, Jelle Piepenbrock, Arjen P de Vries, Maarten de Rijke, Faegheh Hasibi
TL;DR
OrLog tackles the challenge of solving complex information needs with logical constraints by separating predicate-level plausibility estimation from the logical engine. It uses an LLM as an oracle to score atomic predicates in a decoding-free pass, then applies ProbLog to compute the posterior probability that an entity satisfies the query, enabling constraint-aware reranking. Across QUEST, OrLog consistently improves top-rank precision over monolithic LLM reasoning, especially for disjunctive queries, while drastically reducing token usage. The results demonstrate that principled neuro-symbolic reasoning can outperform end-to-end approaches in reliability and efficiency, and point to future directions in grounding, probabilistic logic, and robustness.
Abstract
Resolving complex information needs that come with multiple constraints should consider enforcing the logical operators encoded in the query (i.e., conjunction, disjunction, negation) on the candidate answer set. Current retrieval systems either ignore these constraints in neural embeddings or approximate them in a generative reasoning process that can be inconsistent and unreliable. Although well-suited to structured reasoning, existing neuro-symbolic approaches remain confined to formal logic or mathematics problems as they often assume unambiguous queries and access to complete evidence, conditions rarely met in information retrieval. To bridge this gap, we introduce OrLog, a neuro-symbolic retrieval framework that decouples predicate-level plausibility estimation from logical reasoning: a large language model (LLM) provides plausibility scores for atomic predicates in one decoding-free forward pass, from which a probabilistic reasoning engine derives the posterior probability of query satisfaction. We evaluate OrLog across multiple backbone LLMs, varying levels of access to external knowledge, and a range of logical constraints, and compare it against base retrievers and LLM-as-reasoner methods. Provided with entity descriptions, OrLog can significantly boost top-rank precision compared to LLM reasoning with larger gains on disjunctive queries. OrLog is also more efficient, cutting mean tokens by $\sim$90\% per query-entity pair. These results demonstrate that generation-free predicate plausibility estimation combined with probabilistic reasoning enables constraint-aware retrieval that outperforms monolithic reasoning while using far fewer tokens.
