Abstract
Continuous piecewise-linear (CPWL) functions serve as a fundamental tool in computational science, ranging from finite element analysis to the architecture of deep ReLU neural networks. While the choice of underlying grid geometry is known to influence approximation quality, a rigorous comparison of different 2D lattices has remained elusive. This paper establishes a mathematical framework to evaluate the asymptotic error of CPWL approximations on general 2D regular lattices. We prove that hexagonal lattices provide superior approximation accuracy compared to standard Cartesian grids and offer the most efficient construction for representing 2D box splines within ReLU networks.
Introduction
The representation of complex functions through continuous piecewise-linear (CPWL) models is a cornerstone of modern numerical analysis. In applications such as computer graphics and deep learning, functions are often approximated by partitioning the domain into a simplicial complex—typically a grid of triangles. Despite the ubiquity of these representations, the impact of the specific lattice geometry on approximation error has historically been analyzed through loose upper bounds or restricted to one-dimensional cases.
Researchers from EPFL have addressed this gap by deriving an explicit asymptotic error formula for general 2D lattices. By comparing the standard Cartesian (square) grid with the hexagonal (honeycomb) grid, they demonstrate that the latter is not only more accurate but also more naturally aligned with the differential properties of the functions being approximated.
Methodology
The study employs a combination of Fourier-domain analysis and the theory of box splines to quantify approximation performance.
Grid Parameterization
To facilitate a fair comparison, the authors define a general 2D lattice using a stepsize $T$ and two orientation angles, $\theta_1$ and $\theta_2$. This parameterization allows for the description of any regular grid while maintaining a constant density of grid points per unit area.
Box Splines and Error Kernels
The basis functions used for the CPWL search space are 2D box splines, which generalize the 1D "tent" functions commonly used in linear interpolation. The researchers apply a Taylor series expansion to the error kernel in the Fourier domain. This approach allows for the derivation of the dominant term of the $L_2$ approximation error as the grid stepsize $T$ approaches zero.
ReLU Mapping
A significant contribution of this work is the translation of these geometric findings into the language of deep learning. The authors derive a specific formula to represent 2D box splines as two-layer neural networks using Rectified Linear Unit (ReLU) activations, providing a direct link between lattice geometry and network architecture.
Key Insights: The Superiority of Hexagonal Lattices
The core finding of the research is that the asymptotic error constant is minimized when the grid geometry corresponds to a hexagonal lattice (where $\theta_2 - \theta_1 = 120^\circ$ or $240^\circ$).
The Laplacian Connection
For hexagonal grids, the error formula simplifies into a term involving the Laplacian of the function $f$. This suggests that hexagonal grids are isotropically efficient, capturing the "curvature" of a function equally in all directions. In contrast, Cartesian grids exhibit a directional bias that increases the overall approximation error.
Quantitative Comparison
The theoretical "error constant" for a square grid is calculated as $\sqrt{3} \approx 1.732$. For a hexagonal grid, this constant drops to $\sqrt{1.5} \approx 1.225$. This represents a significant reduction in error for the same number of sampling points. When tested against a synthetic "Fourier Disk" function, the hexagonal grid consistently outperformed the Cartesian grid by the predicted factor of $\sqrt{1.5} / \sqrt{3}$.
Neural Network Efficiency
The paper proves that hexagonal grids facilitate a highly efficient construction of CPWL functions. Any CPWL function on a Cartesian grid can be represented by a ReLU network with two hidden layers and $4N$ neurons (where $N$ is the number of basis functions). By utilizing hexagonal lattices, researchers can structure the "neurons" in a CPWL-based model to achieve higher accuracy without increasing the parameter count, effectively making the model more computationally efficient.
Limitations and Future Directions
While the results are mathematically robust, they are subject to certain conditions:
- Band-limited Functions: The primary theorems assume the target function $f$ belongs to a specific Sobolev space ($W_2^\rho$ with $\rho > 2$), implying a degree of smoothness and limited frequency content.
- Asymptotic Regime: The findings are most applicable when the grid is sufficiently fine ($T \to 0$). The relative performance on very coarse grids may vary.
- Dimensionality: This study is restricted to 2D. Future research is required to determine if similar optimality holds for higher-dimensional lattices, such as the $E_8$ or Leech lattices.
Conclusion
This research provides a rigorous mathematical foundation for the long-held intuition that hexagonal sampling is superior to rectangular sampling. By providing the first explicit asymptotic error formulas for 2D CPWL approximations, the authors offer a roadmap for designing more efficient numerical solvers and neural network architectures.
Summary updated