TL;DR
This paper introduces Learning Modulo Theories (LMT), a novel framework for structured learning in hybrid domains (mixing Boolean and numerical variables). LMT leverages state-of-the-art Satisfiability Modulo Theories (SMT) and Optimization Modulo Theories (OMT) solvers to efficiently learn and perform inference for complex tasks like object design and character drawing, outperforming existing methods in these hybrid settings.
What Problem Does This Paper Address?
Many real-world problems involve reasoning with both discrete (Boolean) and continuous (numerical) variables. Traditional machine learning approaches, especially in statistical relational learning (SRL), often struggle with these "hybrid" domains. Existing methods either struggle to efficiently represent and reason over mixed variable types or rely on approximations that limit their ability to handle hard constraints. This is particularly challenging for "learning to design" tasks, where the goal is to learn how to automatically create novel objects with specific characteristics. The paper aims to bridge this gap by developing a method that can natively handle hybrid domains and complex constraints.
Methods
The core of LMT is the integration of structured-output Support Vector Machines (SVMs) with Optimization Modulo Theories (OMT) solvers.
- Structured-Output SVMs: These are used as the learning framework, generalizing traditional SVMs to predict complex outputs like sequences or trees. They learn by maximizing the margin between correct and incorrect output structures.
- Optimization Modulo Theories (OMT): This is the key enabling technology. OMT solvers can efficiently handle formulas with both Boolean and numerical variables, along with various background theories (like linear arithmetic). LMT uses OMT solvers to implement the "separation oracle" (finding counter-examples during training) and the "inference oracle" (finding the best output during prediction) required by structured-output SVMs.
- Feature Representation: The paper defines a feature space based on soft constraints (rewards or costs) associated with the problem. These features can be Boolean (indicator functions for satisfied constraints) or numerical (costs of unsatisfied constraints).
- Cutting-Plane Algorithm: For training the SVM weights, a cutting-plane algorithm is used, which efficiently solves the quadratic program by iteratively adding the most violated constraints.
Datasets
The paper evaluates LMT on two main types of problems:
- Artificial Layout Problem (Stairway Construction): This involves learning to generate stairways composed of blocks, satisfying geometric constraints. The authors generated "perfect" stairways of varying sizes and types (ladder, pillar) for training and tested generalization on larger stairways.
- Real-World Character Drawing: This task involves learning to translate noisy bitmap images of characters into vectorial representations (polylines). The dataset consists of handwritten character images, downscaled to 12x12 pixels.
Key Insights and Ideas
- SMT/OMT as a Unified Solver: The paper demonstrates that SMT/OMT solvers are powerful tools for handling the complex reasoning required in hybrid structured learning problems, effectively acting as a unified engine for both inference and learning.
- Bridging Logic and Machine Learning: LMT elegantly combines the symbolic reasoning capabilities of SMT/OMT with the powerful learning framework of structured-output SVMs, enabling learning in domains previously intractable.
- Learning Design Principles: The approach allows learning "design" preferences (e.g., step height, material usage in stairways, or character stroke characteristics) directly from data, rather than hardcoding them.
- Generalization in Hybrid Domains: The experiments show that LMT can generalize well to unseen examples and even to problems with more complex structures than those seen during training, highlighting its robustness.
Key Results
- Stairway Construction: LMT successfully learned models that could generate stairways of various types and sizes, generalizing to stairways with more blocks than seen in training. The models learned to capture preferences for ladder vs. pillar styles and step dimensions.
- Character Drawing: LMT learned to generate reasonable vectorial representations of characters from noisy bitmap images. The quality of predictions improved significantly with more training data, and the models generalized to unseen images of the same character. The method was able to handle complex characters like "B" with many segments.
- Efficiency: By leveraging efficient OMT solvers and a cutting-plane algorithm, LMT was able to handle problems with thousands of hybrid variables and complex constraints, outperforming sampling-based methods like Church for optimization tasks.
Limitations and Future Work
- Current Limitations:
- LMT currently focuses on finding the maximal configuration (most probable explanation) and cannot compute marginal probabilities.
- The current OMT solvers are limited to quantifier-free formulas and linear arithmetic.
- The formulation assumes fully observed outputs for training examples.
- Future Work:
- Extend LMT to compute marginal probabilities using weighted model counting.
- Support for quantified formulas and non-linear arithmetic in OMT solvers would allow for more expressive problem formulations.
- Loosen the requirement for fully observed outputs by introducing latent variables for unobserved parts of the output.
- Explore learning from partially observed supervision.
Summary updated