An efficient solution space exploring and descent method for packing equal spheres in a sphere

Jianrong Zhou, Shuo Ren, Kun He, Yanli Liu, Chu-Min Li

TL;DR

Researchers have developed a new local search heuristic called Solution Space Exploring and Descent (SED) combined with an Adaptive Neighbor Maintenance (ANM) method to solve the classic problem of packing equal spheres into a spherical container. Their approach significantly pushes the boundaries of the field, improving 274 best-known world records for benchmark instances with up to 400 spheres.

What Problem Does This Paper Address?

The Sphere Packing Problem (SPP)—specifically packing $n$ equal spheres into the smallest possible spherical container—is a notorious global optimization challenge. While it sounds simple, it is NP-hard and has massive implications in chemistry (molecular structures), material science (porous materials), and telecommunications (signal coding).

The primary challenge is the "curse of dimensionality" and the non-convex nature of the solution space. As the number of spheres ($n$) increases, the number of ways they can be arranged explodes, making it incredibly difficult to find the absolute densest configuration. Most existing literature focuses on small-scale instances ($n < 200$); this paper aims to provide a robust, efficient method that scales effectively up to $n = 400$.

Methods

The authors employ a "quasi-physical" approach, treating spheres as elastic objects that can overlap. They define an elastic energy function that quantifies the degree of overlap; a feasible solution is reached when this energy hits zero.

Two novel components drive their success:

  1. SED (Solution Space Exploring and Descent): This heuristic alternates between "Exploring" (perturbing the current layout) and "Descent" (using the L-BFGS gradient-based optimizer to find a local minimum). Crucially, they introduce a metric function $J(x)$ that quantifies a solution's quality. High-quality solutions (low energy) are granted more exploration actions, allowing the algorithm to "dig deeper" into promising areas of the solution space.
  2. ANM (Adaptive Neighbor object Maintenance): Calculating interactions between all pairs of spheres is $O(n^2)$. Using a "neighbor structure" reduces this to $O(n)$ by only looking at nearby spheres. ANM adaptively decides when to rebuild this structure. If the layout is changing rapidly, it rebuilds often; if the layout is stable, it exponentially defers maintenance, saving significant CPU time without losing accuracy.

Datasets

The algorithm was evaluated against the gold standard in the field: the Packomania benchmark library (maintained by Eckard Specht).

  • Scale: 396 instances ranging from $n = 5$ to $n = 400$.
  • Comparison: The results were compared against the previous state-of-the-art algorithm, PSO-BA (Particle Swarm Optimization with Basin-Hopping).

Key Insights and Ideas

  • Quality-Driven Exploration: Instead of uniform random restarts, the algorithm "invests" more computational effort into neighborhoods that already show high density. This mimics how a human might refine a nearly-perfect packing rather than starting from scratch.
  • Softmax Selection: When choosing which perturbed solution to follow, the algorithm uses a softmax-based probabilistic selection. This maintains diversity in the search and prevents the heuristic from getting stuck in mediocre local optima.
  • Efficiency through Deferral: The ANM module's "aha moment" is realizing that neighbor lists don't need constant updating during the final stages of convergence. By deferring over 50% of maintenance tasks, they achieved a 30% reduction in total runtime.

Key Results

  • New World Records: The SED algorithm improved the best-known results for 274 instances and matched the records for another 84 out of 396 total instances.
  • Superiority over PSO-BA: In head-to-head tests on small-scale instances ($n \le 50$), SED found 14 better solutions and 30 equal solutions, often in a fraction of the time.
  • Stability: The algorithm showed a high success rate in hitting the best-known results across multiple independent runs, indicating it is less sensitive to initial random seeds than previous methods.

Limitations and Future Work

While the method scales well to $n=400$, the authors noted that for the largest instances ($n > 370$), the 12-hour cut-off time sometimes prevented the algorithm from finding further improvements. This suggests that as $n$ approaches 1,000 or more, even more aggressive optimization or parallelization may be required.

The authors suggest that the ANM and SED frameworks are general-purpose and could be adapted to other packing variants, such as packing unequal spheres or packing into different container geometries (cubes, cylinders, etc.), which remains a promising avenue for future research.

Summary updated

BibTeX
@inproceedings{zhou2024efficient,
  author = {Jianrong Zhou and Shuo Ren and Kun He and Yanli Liu and Chu-Min Li},
  title = {{An efficient solution space exploring and descent method for packing equal spheres in a sphere}},
  booktitle = {Computers \& Operations Research},
  year = {2024},
  url = {https://openreview.net/forum?id=Ma6edN4CRT},
}
Figure