TL;DR
TilinGNN is the first neural optimization framework designed to solve the classical 2D tiling problem—filling arbitrary shapes with specific tile sets without overlaps or holes. By reformulating tiling as a graph-based selection problem and training a Graph Neural Network (GNN) with a self-supervised loss, the authors achieve tiling results in near-linear time, vastly outperforming traditional combinatorial solvers like Gurobi.
What Problem Does This Paper Address?
Tiling is a deceptively simple problem: given a 2D region and a set of tile shapes, how do you arrange the tiles to fill the region as completely as possible? In practice, this is a combinatorial nightmare. The search space includes tile selection, orientation, and positioning, all while respecting hard constraints: no overlaps, no holes, and no tiles crossing the boundary.
Mathematically, determining if a finite region can be tiled is NP-complete. Traditional approaches rely on integer programming (IP) solvers or heuristic searches. While IP solvers can find optimal solutions, they are prohibitively slow for large or complex shapes. Heuristics are faster but often produce low-quality results with many gaps. TilinGNN aims to bridge this gap by using deep learning to "learn" the patterns of good tile placements, providing high-quality solutions with much greater efficiency.
Methods
The authors introduce a three-phase approach:
- Graph Reformulation: Instead of treating tiling as a continuous placement problem, they pre-compute a "superset" of all valid candidate tile locations that align with the tile set's underlying geometry. They then build an adjacency graph where nodes represent candidate tile locations and edges represent two types of relationships: overlap edges (if two locations conflict) and neighbor edges (if two locations touch perfectly).
- TilinGNN Architecture: They design a two-branch Graph Convolutional Network (GCN). One branch uses "neighbor aggregation" to learn how tiles should connect to fill space, while the other uses "overlap aggregation" to learn which placements to avoid. These features are aggregated over multiple layers to capture both local and global tiling patterns.
- Self-Supervised Learning: Crucially, the network doesn't need "correct" tiling examples to learn. Instead, it is trained using a custom loss function with three terms:
- Coverage Loss ($L_a$): Encourages the network to select tiles that cover the most area.
- Overlap Loss ($L_o$): Penalizes the selection of nodes connected by overlap edges.
- Hole Loss ($L_e$): Encourages the selection of nodes that share long boundary segments with their neighbors.
- Inference (Algorithm 1): At test time, the trained network predicts a probability for each candidate location. A progressive selection strategy then picks the best tiles, updates the graph to remove conflicts, and repeats until the shape is filled.
Datasets
- Training Data: The authors generated a synthetic dataset of 12,000 random 2D shapes (10,000 for training, 2,000 for validation). These shapes were created by randomizing vertices to ensure the network learned to handle both convex and concave boundaries.
- Evaluation Data: A test set of 107 silhouette images was compiled, including the MPEG-7 dataset and various animal shapes.
- Tile Sets: The model was tested on diverse tile sets, including simple squares, trominoes, and complex "labyrinth" tiles.
Key Insights and Ideas
- Selection vs. Placement: By framing tiling as a selection problem from a discrete graph rather than a placement problem in continuous space, the authors made the problem tractable for neural networks.
- Constraint-Driven Loss: The realization that the physical constraints of tiling (no overlaps, maximum coverage) can be translated into differentiable loss terms allows for self-supervised training. This bypasses the need for a massive dataset of "solved" puzzles, which would be difficult to generate.
- Structural Priors in GNNs: The two-branch architecture acts as a structural prior, explicitly separating the "positive" goal of connectivity from the "negative" constraint of overlap. This makes the learning process more stable and effective than a standard GNN.
Key Results
- Speed: TilinGNN’s runtime is roughly linear relative to the number of candidate locations. It can tile complex shapes in under 30 seconds, whereas commercial solvers like Gurobi often take several minutes or fail to find a solution for larger problems.
- Quality: In comparisons, TilinGNN consistently achieved higher area coverage and fewer holes than random or greedy baselines.
- Human Performance: In a study with 10 participants, TilinGNN produced solutions of comparable or superior quality to humans but did so in a fraction of the time (e.g., 0.7 minutes vs. 9 minutes for a "Snail" shape).
- Versatility: The model successfully handled various tile sets and even produced large-scale "mosaic-style" tilings by subdividing large domains into smaller "super-tiles."
Limitations and Future Work
- Periodic Constraints: The current method requires tile sets that induce a periodic grid of candidate locations. It cannot yet handle non-periodic sets like Penrose tiles, where candidate locations expand unboundedly.
- Hard Constraints: While the loss terms strongly discourage overlaps and holes, the network does not guarantee a perfect tiling in every case, unlike formal IP solvers.
- Memory Scalability: The size of the problem is currently limited by GPU memory, as the entire adjacency graph (up to ~5,000 nodes) must be processed.
- Global Symmetry: The authors noted that enforcing global symmetry in the generated tilings remains a challenge, as the current loss functions focus on local and regional coverage.
Summary updated