Learning the Mapping $\mathbf {x}\mapsto \sum\limits _{i=1}^d x_i^2$: the Cost of Finding the Needle in a Haystack

Jiefu Zhang, Leonardo Zepeda-Núñez, Yuan Yao, Lin Lin

Communications on Applied Mathematics and Computation ›› 2020, Vol. 3 ›› Issue (2) : 313-335.

Communications on Applied Mathematics and Computation ›› 2020, Vol. 3 ›› Issue (2) : 313-335. DOI: 10.1007/s42967-020-00078-2
Original Paper

Learning the Mapping $\mathbf {x}\mapsto \sum\limits _{i=1}^d x_i^2$: the Cost of Finding the Needle in a Haystack

Author information +
History +

Abstract

The task of using the machine learning to approximate the mapping ${\mathbf {x}}\mapsto \sum\limits _{i=1}^d x_i^2$ with $x_i\in [-1,1]$ seems to be a trivial one. Given the knowledge of the separable structure of the function, one can design a sparse network to represent the function very accurately, or even exactly. When such structural information is not available, and we may only use a dense neural network, the optimization procedure to find the sparse network embedded in the dense network is similar to finding the needle in a haystack, using a given number of samples of the function. We demonstrate that the cost (measured by sample complexity) of finding the needle is directly related to the Barron norm of the function. While only a small number of samples are needed to train a sparse network, the dense network trained with the same number of samples exhibits large test loss and a large generalization gap. To control the size of the generalization gap, we find that the use of the explicit regularization becomes increasingly more important as d increases. The numerically observed sample complexity with explicit regularization scales as $\mathcal {O}(d^{2.5})$, which is in fact better than the theoretically predicted sample complexity that scales as $\mathcal {O}(d^{4})$. Without the explicit regularization (also called the implicit regularization), the numerically observed sample complexity is significantly higher and is close to $\mathcal {O}(d^{4.5})$.

Cite this article

Download citation ▾
Jiefu Zhang, Leonardo Zepeda-Núñez, Yuan Yao, Lin Lin. Learning the Mapping $\mathbf {x}\mapsto \sum\limits _{i=1}^d x_i^2$: the Cost of Finding the Needle in a Haystack. Communications on Applied Mathematics and Computation, 2020, 3(2): 313‒335 https://doi.org/10.1007/s42967-020-00078-2
Funding
U.S. Department of Energy(DE-SC0017867); Hong Kong Research Grant Council(16303817); U.S. Department of Energy(DE-SC0017867)

Accesses

Citations

Detail

Sections
Recommended

/