We study how neural networks trained by gradient descent extrapolate, i.e., what they learn outside the support of the training distribution. Previous works report mixed empirical results when extrapolating with neural networks: while multilayer perceptrons (MLPs) do not extrapolate well in certain simple tasks, Graph Neural Network (GNN), a structured network with MLP modules, has shown some success in more complex tasks. Working towards a theoretical explanation, we identify conditions under which MLPs and GNNs extrapolate well. First, we quantify the observation that ReLU MLPs quickly converge to linear functions along any direction from the origin, which implies that ReLU MLPs do not extrapolate most non-linear functions. But, they provably learn a linear target function when the training distribution is sufficiently "diverse". Second, in connection to analyzing successes and limitations of GNNs, these results suggest a hypothesis for which we provide theoretical and empirical evidence: the success of GNNs in extrapolating algorithmic tasks to new data (e.g., larger graphs or edge weights) relies on encoding task-specific non-linearities in the architecture or features. Our theoretical analysis builds on a connection of overparameterized networks to the neural tangent kernel. Empirically, our theory holds across different training settings.
翻译:我们研究的是由梯度下层外推法培训的神经网络是如何在培训分布之外外推法的,即他们学到了什么在培训分布表外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法上的结果。 先前的工作报告在与神经网络外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法内推法内推法内推法内推法内推法外推法内推法内推法内推法内推法内推法内推法外推法内推法内推法外推法外推法外推法外推法外推法外推法内推法外的理论的理论的理论的理论的理论的理论性模型, 的理论性模型的理论法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外推法外