TL;DR
Researchers compared four distinct computational paradigms—Integer Linear Programming (ILP), Transformer-based pattern learning, Reinforcement Learning (RL), and Scientific Machine Learning (SciML)—to solve the classic "No-Three-In-Line" geometry problem. While exact solvers like ILP remain the gold standard for small grids, continuous relaxation via SciML gradient flow significantly outperformed discrete AI search methods, reaching optimal solutions for grids up to $18 \times 18$ without relying on symmetry pruning.
What Problem Does This Paper Address?
The No-Three-In-Line problem is a deceptively simple challenge in combinatorial geometry: what is the maximum number of points you can place on an $n \times n$ grid such that no three points lie on the same straight line?
While a trivial upper bound is $2n$ points (since you can't have more than two points in any row or column), finding configurations that actually achieve this—or proving they exist for large $n$—is notoriously difficult. The number of possible lines to check grows rapidly, and the search space for point placements is astronomical. Traditional exact methods often rely heavily on "symmetry pruning" (exploiting the fact that rotations and reflections of a solution are also solutions) to stay computationally feasible. This paper investigates whether modern AI and continuous optimization can break through the "discrete search ceiling" that limits traditional approaches.
Methods
The authors benchmarked four diverse approaches:
- Integer Linear Programming (ILP): Using the Gurobi solver, the problem is framed as a constraint satisfaction task. The authors optimized this by aggregating collinear points into single inequalities, reducing the constraint count from $O(n^6)$ to $O(n^4)$.
- PatternBoost (Transformer Learning): A GPT-2 style decoder-only transformer learns to predict point placements. It uses an iterative refinement loop: generating candidates, completing them with a greedy lookahead strategy, and adding the best ones back into a "TopPool" for further training.
- Proximal Policy Optimization (PPO): A Reinforcement Learning agent learns to place points one by one. It uses "action masking" to prevent placing points on already occupied cells and a reward function that heavily penalizes collinearity violations.
- SciML Gradient Flow: This is the paper's most novel contribution. They recast the discrete grid as a continuous "probability density" field. They define an energy function where the global minima correspond to valid $2n$ configurations. By solving the resulting ordinary differential equations (ODEs) via gradient flow on Apple Metal (GPU), they "melt" the discrete problem into a continuous landscape.
Datasets
Because this is a mathematical discovery problem, there are no external datasets. Instead:
- Self-Generated Data: PatternBoost was initialized with 20,000 configurations generated via a greedy saturation algorithm.
- Synthetic Benchmarks: All methods were evaluated against known optimal values (the $2n$ target) for grid sizes ranging from $n=10$ to $n=19$.
Key Insights and Ideas
- The "Discrete Ceiling": Discrete AI search (PPO and PatternBoost) plateaus early. PPO, in particular, showed extreme brittleness, succeeding perfectly at $n=10$ but failing at $n=11$ due to a single violation. This suggests that RL struggles with global geometric constraints as complexity scales.
- Continuous Relaxation is Key: The SciML approach's success suggests that treating combinatorial problems as continuous energy minimization is a powerful alternative to discrete search. It allows the solver to navigate a smooth landscape rather than jumping between discrete states.
- Symmetry-Free Performance: Most existing records for this problem rely on symmetry reduction. The SciML method achieved near-record results ($n=18$) without any symmetry pruning, suggesting it is a more robust general-purpose searcher.
- Non-Monotonic Difficulty: Interestingly, SciML found $n=18$ easier than $n=17$. This highlights that in combinatorial geometry, a slightly larger search space can sometimes offer more "paths" to a valid solution, making it paradoxically easier for gradient-based methods.
Key Results
- ILP (The Baseline): Remained the strongest, achieving provably optimal solutions up to $n=19$.
- SciML: The top-performing AI-based method, finding optimal $2n$ configurations up to $n=18$. It achieved a 9/10 success rate at $n=18$ in roughly 218 seconds on an Apple M2 chip.
- PatternBoost: Matched optimal performance up to $n=14$ but fell one point short at $n=15$ (finding 29 points instead of 30).
- PPO: Failed earliest, unable to find zero-violation solutions beyond $n=10$.
Limitations and Future Work
The authors acknowledge that the SciML method's reliability is currently sensitive to hyperparameter tuning (like the collinearity penalty $\alpha$ and integration horizon $T$), which were hand-tuned for this study. Furthermore, while SciML reached $n=18$, it struggled at $n=19$ due to "trapping" in local minima with residual collinearities.
Future directions include:
- Hybrid Models: Combining PatternBoost’s pattern recognition with PPO’s reinforcement learning for fine-tuning.
- Symmetry Integration: Incorporating symmetry pruning into the SciML framework to see if it can push past the current $n=19$ record.
- Generalization: Applying the SciML energy-minimization framework to other "forbidden-configuration" problems in geometry.
Summary updated