Skip to main content
QUICK REVIEW

[论文解读] On the Modularity of Hypernetworks

Tomer Galanti, Lior Wolf|arXiv (Cornell University)|Feb 23, 2020
Neural Networks and ApplicationsComputer Science参考文献 38被引用 17
一句话总结

本文通过证明在光滑性假设下,超网络(hypernetworks)在函数逼近方面可实现远少于基于嵌入(embedding-based)方法的参数量,建立了超网络模块化性的理论基础。作者推导出神经网络复杂度的非鲁棒下界,证明当超网络生成器足够大时,超网络中的主网络参数量可比基于嵌入的模型小一个数量级以上,从而展示了超网络在条件函数学习中卓越的参数效率。

ABSTRACT

In the context of learning to map an input $I$ to a function $h_I:\mathcal{X} o \mathbb{R}$, two alternative methods are compared: (i) an embedding-based method, which learns a fixed function in which $I$ is encoded as a conditioning signal $e(I)$ and the learned function takes the form $h_I(x) = q(x,e(I))$, and (ii) hypernetworks, in which the weights $θ_I$ of the function $h_I(x) = g(x;θ_I)$ are given by a hypernetwork $f$ as $θ_I=f(I)$. In this paper, we define the property of modularity as the ability to effectively learn a different function for each input instance $I$. For this purpose, we adopt an expressivity perspective of this property and extend the theory of Devore et al. 1996 and provide a lower bound on the complexity (number of trainable parameters) of neural networks as function approximators, by eliminating the requirements for the approximation method to be robust. Our results are then used to compare the complexities of $q$ and $g$, showing that under certain conditions and when letting the functions $e$ and $f$ be as large as we wish, $g$ can be smaller than $q$ by orders of magnitude. This sheds light on the modularity of hypernetworks in comparison with the embedding-based method. Besides, we show that for a structured target function, the overall number of trainable parameters in a hypernetwork is smaller by orders of magnitude than the number of trainable parameters of a standard neural network and an embedding method.

研究动机与目标

  • 理论分析超网络与基于嵌入的方法在条件函数学习中的模块化特性。
  • 解决超网络是否在参数效率方面相对于标准嵌入方法具有可测量优势这一开放问题。
  • 推导出在不依赖鲁棒性前提下,逼近光滑函数所需的神经网络参数数量的非鲁棒下界。
  • 在不同生成器大小下,比较超网络与基于嵌入模型中主网络的最小参数复杂度。
  • 通过在合成数据和自监督学习任务上的实验,验证理论发现。

提出的方法

  • 通过推导逼近光滑函数所需的可训练参数数量的下界,扩展了先前工作,且无需依赖鲁棒性假设。
  • 将超网络建模为权重生成器 $ f(I) $,生成主网络 $ g(x; \theta_I) $ 的参数 $ \theta_I $,从而实现条件函数学习。
  • 在相同逼近误差下,比较超网络中主网络 $ g $ 与基于嵌入方法中主网络 $ q $ 的最小复杂度。
  • 利用逼近理论证明,当超网络生成器 $ f $ 足够大时,$ g $ 可显著小于 $ q $。
  • 通过神经网络的复合结构逼近权重生成函数 $ S(I) $,利用利普希茨连续性和 $ \ell_1 $-范数约束推导误差界。
  • 采用归纳法,界定在真实权重与近似权重下 $ g $ 的激活值差异,证明整体逼近误差为 $ \mathcal{O}(\epsilon) $。

实验结果

研究问题

  • RQ1在主网络参数量显著更少的情况下,超网络能否实现与基于嵌入方法相同的函数逼近?
  • RQ2在不依赖鲁棒性前提下,逼近光滑函数所需的最少参数数量是多少?
  • RQ3超网络生成器 $ f $ 的大小如何影响超网络中主网络 $ g $ 所需的大小?
  • RQ4在何种条件下,超网络的总参数量会小于标准神经网络或基于嵌入的模型?
  • RQ5超网络在参数效率方面的理论优势是否能在合成数据和自监督学习任务上被实证观察到?

主要发现

  • 本文推导出逼近光滑函数所需的神经网络参数数量的非鲁棒下界,扩展了以往依赖鲁棒性假设的研究。
  • 当超网络生成器 $ f $ 足够大时,超网络中主网络 $ g $ 的参数量可比基于嵌入方法中的主网络 $ q $ 小一个数量级以上。
  • 对于结构化目标函数,超网络的可训练参数总数远小于标准神经网络或基于嵌入的模型。
  • 理论分析表明,超网络具有模块化特性,因为其能实现函数逼近所需的最小复杂度,而基于嵌入的方法则需要更大的主网络。
  • 在合成数据和自监督学习任务上的实验验证了理论发现,确认了超网络的参数效率。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。