Adaptive Random Fourier Features Training Stabilized By Resampling With Applications in Image Regression
Aku Kammonen, Anamika Pandey, Erik von Schwerin, Raúl Tempone
TL;DR
The paper addresses instability and hyperparameter sensitivity in Adaptive Random Fourier Features (ARFF) by introducing a particle-filter–style resampling mechanism. This resampling yields a stabilized training dynamic and allows Metropolis-free operation, enabling both standalone training and pretraining for gradient-based optimization. The authors demonstrate the approach on function regression and image regression by adaptively sampling RFF frequencies for the RFF layer in coordinate-based MLPs, achieving faster early convergence and improved robustness. Collectively, the work offers a practical method to automate RFF frequency selection in scalable shallow networks and RFF-enabled MLPs used for high-frequency image representation.
Abstract
This paper presents an enhanced adaptive random Fourier features (ARFF) training algorithm for shallow neural networks, building upon the work introduced in "Adaptive Random Fourier Features with Metropolis Sampling", Kammonen et al., \emph{Foundations of Data Science}, 2(3):309--332, 2020. This improved method uses a particle filter-type resampling technique to stabilize the training process and reduce the sensitivity to parameter choices. The Metropolis test can also be omitted when resampling is used, reducing the number of hyperparameters by one and reducing the computational cost per iteration compared to the ARFF method. We present comprehensive numerical experiments demonstrating the efficacy of the proposed algorithm in function regression tasks as a stand-alone method and as a pretraining step before gradient-based optimization, using the Adam optimizer. Furthermore, we apply the proposed algorithm to a simple image regression problem, illustrating its utility in sampling frequencies for the random Fourier features (RFF) layer of coordinate-based multilayer perceptrons. In this context, we use the proposed algorithm to sample the parameters of the RFF layer in an automated manner.
