Introduction
Calculating interactions between $N$ particles is a cornerstone of computational physics, traditionally requiring $O(N^2)$ operations. The Fast Multipole Method (FMM) revolutionized this field by reducing complexity to $O(N)$ through low-rank approximations of far-field interactions. However, standard FMM implementations often rely on rigid interpolation schemes, such as Chebyshev polynomials, which can be inefficient for inhomogeneous kernels—functions whose smoothness or complexity varies significantly across different scales or distances.
The Empirical Interpolation Fast Multipole Method (EIFMM) addresses this by "learning" the kernel's properties. By integrating the Empirical Interpolation Method (EIM), the algorithm automatically selects the most efficient basis functions and interpolation points for any given kernel, leading to significant performance gains in complex simulations.
The Empirical Interpolation Framework
The core innovation of EIFMM is the use of EIM to construct an optimal approximation space. Unlike fixed methods that use predefined points, EIM employs a greedy strategy to identify the most informative interpolation points directly from evaluations of the kernel.
This data-driven approach enables several key optimizations:
- Translation-Invariant Kernels: For kernels where $K(x,y) = K(x-a, y-a)$, the method employs a specialized local-global approximation that preserves the nested basis property essential for multilevel FMM.
- Variable-Order Interpolation: EIM provides built-in error estimates. As interactions move to higher levels of the FMM tree (where boxes are farther apart), the kernel typically becomes "flatter" and easier to approximate. EIFMM exploits this by automatically reducing the number of interpolation points at higher levels, whereas traditional methods use a constant number throughout.
Performance and Results
The EIFMM was benchmarked against standard "Black-Box" FMM (bbFMM) using synthetic datasets of up to 100 million points across various geometries (Random, Sphere, Ellipsoid).
- Superiority on Inhomogeneous Kernels: For kernels like the Gaussian ($e^{-r^2}$), EIFMM demonstrated massive efficiency gains. On an ellipsoidal distribution, EIFMM required only 4 interpolation points at the highest tree level, whereas bbFMM required 216 to reach comparable accuracy.
- Massive Scale Performance: In a test with 100 million points, EIFMM was approximately twice as fast as bbFMM for long-range terms. It achieved a total runtime of 43 minutes compared to 89 minutes for bbFMM, while providing superior precision ($7 \times 10^{-5}$ vs $6 \times 10^{-4}$).
- Homogeneous Baseline: For standard kernels like Laplace ($1/r$), EIFMM matched the performance of highly optimized existing methods, proving that the adaptive overhead is negligible even for simpler problems.
Conclusion and Future Directions
EIFMM represents a significant step toward truly adaptive fast summation methods. Its ability to automatically tune itself to a kernel's specific mathematical properties makes it ideal for complex simulations where manual tuning is impractical.
Current limitations include the requirement for translation invariance and the offline precomputation cost for the EIM basis, which may be high for small, single-query datasets. Future work will focus on extending the method to non-translation-invariant kernels and further optimizing the precomputation phase for broader applicability.
Summary updated