TL;DR
Relational Linear Programs (RLPs) bridge the gap between high-level logical reasoning and low-level numerical optimization. By defining Linear Programs (LPs) using logical templates and exploiting structural symmetries through "lifting," this framework can solve massive optimization problems significantly faster than traditional methods by reducing their dimensionality before they reach a solver.
Introduction: The Modeling-Solving Gap
In the ideal "Model + Solver" paradigm, a researcher describes a problem, and a general-purpose solver finds the answer. In practice, high-performance solvers require problems to be presented in a rigid, "propositional" format—typically a giant matrix of numbers ($Ax \le b$). This requirement creates two major hurdles:
- Modeling Complexity: Manually indexing thousands of variables and constraints for relational data, such as social networks or citation graphs, is tedious and error-prone.
- Scalability: Standard solvers treat every variable as unique. However, many real-world problems contain "symmetrical" variables that play identical roles in the optimization. Traditional solvers waste immense computational effort treating these identical parts as distinct.
Methods: Relational and Lifted Linear Programming
The authors introduce a two-part solution to these challenges: Relational Linear Programming for modeling and Lifted Linear Programming for efficient solving.
Relational Linear Programming (RLP)
RLP is a declarative language that uses first-order logic (objects, variables, and predicates) to define LP templates. Instead of writing out every individual constraint, users write high-level rules. For instance, a rule might state: "If X and Y are friends, their smoking habits should be similar." When combined with a Knowledge Base (LogKB), the system automatically generates the necessary ground-level constraints.
Lifted Linear Programming (LLP)
LLP is the optimization engine. Before solving, the system uses a color-passing algorithm to detect symmetries in the generated LP, identifying groups of variables and constraints that are functionally identical. It then "lifts" the problem by projecting it into a lower-dimensional space where each group is represented by a single variable. This reduced "lifted" LP is solved using standard solvers like CPLEX or Gurobi. Crucially, this process is sound; an exact solution to the original massive LP can be recovered perfectly from the smaller, lifted version.
Experimental Evaluation
The framework was evaluated across several distinct AI tasks:
- Markov Decision Processes (MDPs): Tested on Gridworld navigation tasks, varying grid size and symmetry (e.g., multiple goal locations).
- Markov Logic Networks (MLNs): Performed MAP (Maximum A Posteriori) inference on the standard "Smokers" relational dataset.
- Collective Classification: Used the Cora dataset, a citation network of 2,708 scientific publications, to classify papers based on text content and citation links.
- Symmetry Benchmarks: Used Frucht and McKay graphs to demonstrate the theoretical strengths of symmetry detection.
Key Insights
- Symmetry as Efficiency: Traditionally, solvers rely on sparsity (matrices with many zeros) for speed. This work argues that symmetry is an orthogonal dimension of efficiency. Even dense problems can be solved near-instantly if they are highly symmetrical.
- Logic as a Scalable Template: By using logic, the modeler does not need to know the domain size beforehand. The RLP acts as a "recipe" that scales automatically to any data size.
- Reprogramming vs. Re-engineering: The authors show that adding relational rules to a standard model (like an SVM) can transform a "flat" classifier into a "collective" one that understands network structure, often yielding better results than complex feature engineering.
Results and Performance
- Massive Dimensionality Reduction: In the "Smokers" MLN task, variables were reduced from over 6,000 to just a few hundred. For a toy SVM problem, variables and constraints were slashed by 52%.
- Significant Speedups: On Gridworld MDPs, the lifted solver consistently outperformed ground solvers, with the performance gap widening as problem size increased.
- Improved Accuracy: On the Cora citation dataset, the "Relational" SVM (TC-RLP-SVM) achieved a prediction error of 7.5%, compared to 16% for a standard SVM—a 50% reduction in error achieved through simple logical constraints.
Limitations and Future Work
While the solver is faster, the "grounding" and "lifting" phases can be computationally expensive, sometimes dominating total time. Future research will focus on extending these techniques to Integer Linear Programs (ILPs) and Quadratic Programs (QPs), and investigating "infinite relational linear programs" for modeling continuous or unbounded domains.
Summary updated