Lifted Reasoning for Combinatorial Counting

Pietro Totis, Jesse Davis, Luc De Raedt, Angelika KimmigJAIR 2023

Introduction

Combinatorial counting problems are a hallmark of human mathematical reasoning, yet they remain a significant challenge for artificial intelligence. This paper presents a novel framework consisting of CoLa, a declarative modeling language, and CoSo, a lifted solver. By exploiting symmetries and exchangeability, this system can solve complex counting problems in constant time relative to domain size, offering a powerful alternative to traditional grounding-based propositional solvers.

The Challenge of Automated Counting

Existing approaches to solving math word problems often struggle with the scale and precision required for combinatorics. Neural models frequently fail at exact logical reasoning, while traditional propositional solvers (e.g., for Constraint Satisfaction Problems) suffer from the "grounding" problem. Grounding involves enumerating every possible combination, leading to an exponential explosion in search space as the number of objects grows.

The high-level pipeline for solving combinatorial problems, moving from natural language to a formal model and finally a solution via lifted reasoning.

The CoLa/CoSo Framework

To address these limitations, the authors introduce a two-stage process that leverages "lifted reasoning"—a technique originally developed for probabilistic logic that reasons about groups of objects rather than individuals.

CoLa: Modeling with Abstraction

The Combinatorics math problems Language (CoLa) allows users to define problems using high-level abstractions. It treats multisets (collections of indistinguishable objects), configurations (ordered or unordered structures), and constraints as first-class citizens. By explicitly identifying indistinguishable objects, CoLa informs the solver of inherent symmetries, preventing redundant computations.

Examples of real-world combinatorics problems (P3-P5) and their corresponding representations in the CoLa language.

CoSo: A Lifted Solver

The Combinatorics math problems Solver (CoSo) avoids enumeration by identifying independent sub-problems and applying closed-form mathematical formulas (e.g., binomial coefficients). If a problem cannot be solved directly with a formula, CoSo employs a technique called shattering to partition the search space into smaller, "liftable" components where exchangeability can be exploited.

Experimental Evaluation

The framework was tested on a dataset of 210 real-world problems and various synthetic benchmarks.

  • Coverage: CoLa successfully represented 88% of the real-world problems.
  • Efficiency: CoSo solved all encodable problems with an average runtime of 0.18 seconds.
  • Scalability: Unlike propositional solvers (such as ASP-Clingo or sharpSAT), which exhibit exponential runtime growth as the number of objects increases, CoSo’s performance remains constant. This "constant-time scaling" demonstrates the fundamental advantage of lifted reasoning for large-scale combinatorial tasks.

Conclusion and Future Work

CoLa and CoSo represent a significant step forward in bridging natural language processing and formal mathematical reasoning. While currently limited in handling relative positional constraints and circular permutations, the framework demonstrates that lifted reasoning can effectively solve a wide range of hard counting problems. Future research will focus on automating the translation from natural language to CoLa and expanding the solver's capabilities to include more complex spatial and arithmetic constraints.

Summary updated

BibTeX
@article{totis2023lifted,
  author = {Pietro Totis and Jesse Davis and Luc De Raedt and Angelika Kimmig},
  title = {{Lifted Reasoning for Combinatorial Counting}},
  journal = {J. Artif. Intell. Res.},
  year = {2023},
  doi = {10.1613/jair.1.14062},
}
Figure