Probabilistic Rule Realization and Selection

Haizi Yu, Tianxi Li, Lav R. Varshney

This paper explores the intersection of formal logic and probabilistic modeling through the lens of music. It tackles a fundamental tension in artificial intelligence: how do we generate specific examples (realization) from high-level principles (abstraction), especially when those principles are inconsistent or the search space is astronomically large?

The Challenge: Dimensionality and Inconsistency

In many creative and scientific domains, we work with rules—high-level invariances that describe a style or a physical law. However, two major hurdles exist for AI systems trying to use these rules:

  1. The Curse of Dimensionality: In music, even a simple four-part harmony drawn from a standard piano range results in a state space of over 10 million possible chords (sonorities). Finding a probability distribution over this space that satisfies specific rules is computationally grueling.
  2. Rule Inconsistency: Rules are rarely absolute. In music theory, rules often conflict, and a "smart" composer knows which rules to follow strictly and which to break to establish a specific style. Most statistical models simply "average out" the errors, leading to results that satisfy all rules poorly rather than some rules perfectly.

The authors aim to create a system that doesn't just mechanically follow every rule it's given, but proactively selects a consistent subset of rules to "realize" into actual data.

A Unified Bi-Convex Framework

The authors formulate the problem as a bi-convex optimization. They define a probability distribution $p$ (the realization) and a weight vector $w$ (the rule selection). The objective function minimizes a weighted error term plus two specific penalties.

Rule Selection

To select rules, the system uses a Group Elastic Net penalty. This encourages "group selectivity," meaning the model tends to either follow a whole rule (all its components) or ignore it entirely. This mimics human intelligence, where we prioritize certain principles over others rather than averaging out errors across all constraints.

Rule selection dynamics showing how different rules are prioritized or dropped as the penalty parameter changes.

Rule Realization and Dimensionality Reduction

To handle the massive dimensionality of the state space, the authors introduce two key tricks:

  1. Group De-Overlap: They identify "equivalent" points in the input space that the rules cannot distinguish and group them together. This collapses the problem size based on the "finest" level of abstraction provided by the rules.
  2. Screening: They adapt Lasso-style screening to quickly identify and remove zero-probability components from the optimization, further speeding up the process.
The Group De-Overlap process converts overlapping rule sets into disjoint subsets, drastically reducing the dimensionality of the problem.

Key Insights and Results

The framework was evaluated on both artificial rule sets and a real compositional rule set for 4-part chorale writing (with a raw input space of $n \approx 10^7$ possible sonorities).

  • Musically Intelligent Compromise: On the real-world music dataset, when the model encountered inconsistent rules, it naturally prioritized "outer voice" rules (soprano and bass) over internal voice rules. This aligns perfectly with human music theory, which views outer voices as more characteristic of a piece's identity.
  • Symmetry of Analysis and Composition: The bi-convex nature of the problem means it works both ways. If you have music, you can solve for $w$ to analyze its style. If you have a style ($w$), you can solve for $p$ to compose new music.
  • Efficiency: The proposed solver was significantly faster than generic convex solvers. On the large-scale music task, generic solvers typically fail, but the authors' dimensionality reduction made the problem tractable.

Limitations and Future Directions

Because the problem is bi-convex rather than strictly convex, the alternating solver is susceptible to local optima. While the authors argue this is actually a benefit for "creativity" (allowing for multiple valid interpretations of a style), it could be a hurdle for purely objective tasks. Furthermore, the framework currently assumes a linear relationship between the probability space and the rules.

Ultimately, while the paper focuses on music, the authors suggest the framework could apply to any domain with noisy or inconsistent sensors—like robotics or physical sciences—where a system must "select" which inputs to trust to realize a consistent state estimate.

Summary updated

BibTeX
@inproceedings{yu2017probabilistic,
  author = {Haizi Yu and Tianxi Li and Lav R. Varshney},
  title = {{Probabilistic Rule Realization and Selection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=SybHZYb_bH},
}
Figure