Automatically Gating Multi-Frequency Patterns through Rectified Continuous Bernoulli Units with Theoretical Principles
Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence. Main Track. Pages 3594-3600.
https://doi.org/10.24963/ijcai.2022/499
Keywords
- Machine Learning: Classification
- Machine Learning: Optimisation
- Machine Learning: Kernel Methods
- Machine Learning: Automated Machine Learning
Abstract
Different nonlinearities are only suitable for responding to different frequency signals. The locally-responding ReLU is incapable of modeling high-frequency features due to the spectral bias, whereas the globally-responding sinusoidal function is intractable to represent low-frequency concepts cheaply owing to the optimization dilemma. Moreover, nearly all the practical tasks are composed of complex multi-frequency patterns, whereas there is little prospect of designing or searching a heterogeneous network containing various types of neurons matching the frequencies, because of their exponentially-increasing combinatorial states. In this paper, our contributions are three-fold: 1) we propose a general Rectified Continuous Bernoulli (ReCB) unit paired with an efficient variational Bayesian learning paradigm, to automatically detect/gate/represent different frequency responses; 2) our numerically-tight theoretical framework proves that ReCB-based networks can achieve the optimal representation ability, which is O(m^{η/(d^2)}) times better than that of popular neural networks, for a hidden dimension of m, an input dimension of d, and a Lipschitz constant of η; 3) we provide comprehensive empirical evidence showing that ReCB-based networks can keenly learn multi-frequency patterns and push the state-of-the-art performance.
- [Bond-Taylor and Willcocks, 2020] Sam Bond-Taylor and Chris G Willcocks. Gradient origin networks. arXiv preprint arXiv:2007.02798, 2020.
- [Feinerman and Newman, 1975] Robert P. Feinerman and Donald J. Newman. Polynomial approximation. Bull. Amer. Math. Soc., 81:28-30, 1975.
- [Goodfellow et al., 2016] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT press, 2016.
- [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
- [Jacot et al., 2018] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. arXiv preprint arXiv:1806.07572, 2018.
- [Kazemi et al., 2019] Seyed Mehran Kazemi, Rishab Goel, Sepehr Eghbali, Janahan Ramanan, Jaspreet Sahota, Sanjay Thakur, Stella Wu, Cathal Smyth, Pascal Poupart, and Mar- cus Brubaker. Time2vec: Learning a vector representation of time. arXiv preprint arXiv:1907.05321, 2019.
- [Krizhevsky et al., 2009] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
- [Loshchilov and Hutter, 2016] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.
- [Mildenhall et al., 2020] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. arXiv preprint arXiv:2003.08934, 2020.
- [Parascandolo et al., 2017] Giambattista Parascandolo, Heikki Huttunen, and Tuomas Virtanen. Taming the waves: Sine as activation function in deep neural networks. ICLR 2017 conference submission, 2017.
- [Paszke et al., 2017] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. NIPS 2017 Autodiff Workshop, 2017.
- [Poggio et al., 2017] Tomaso Poggio, Hrushikesh Mhaskar, Lorenzo Rosasco, Brando Miranda, and Qianli Liao. Why and when can deep-but not shallow-networks avoid the curse of dimensionality: a review. International Journal of Automation and Computing, 14(5):503-519, 2017.
- [Ramachandran et al., 2017] Prajit Ramachandran, Barret Zoph, and Quoc V Le. Searching for activation functions. arXiv preprint arXiv:1710.05941, 2017.
- [Sitzmann et al., 2020a] Vincent Sitzmann, Eric R Chan, Richard Tucker, Noah Snavely, and Gordon Wetzstein. Metasdf: Meta-learning signed distance functions. arXiv preprint arXiv:2006.09662, 2020.
- [Sitzmann et al., 2020b] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. Advances in Neural Information Processing Systems, 33, 2020.
- [Sutskever et al., 2013] Ilya Sutskever, James Martens, George Dahl, and Geoffrey Hinton. On the importance of initialization and momentum in deep learning. In Interna- tional conference on machine learning, pages 1139-1147, 2013.
- [Tancik et al., 2020] Matthew Tancik, Pratul P Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan T Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. arXiv preprint arXiv:2006.10739, 2020.
- [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing sys- tems, pages 5998-6008, 2017.
- [Xu et al., 2019] Da Xu, Chuanwei Ruan, Evren Korpeoglu, Sushant Kumar, and Kannan Achan. Self-attention with functional time representation learning. In Advances in Neu- ral Information Processing Systems, pages 15915-15925, 2019.
- [Xue and Wu, 2020] Hui Xue and Zheng-Fan Wu. Baker- nets: Bayesian random kernel mapping networks. In Pro- ceedings of the Twenty-Ninth International Joint Confer- ence on Artificial Intelligence, IJCAI-20, pages 3073-3079. International Joint Conferences on Artificial Intelligence Organization, 7 2020.
- [Xue et al., 2019] Hui Xue, Zheng-Fan Wu, and Wei-Xiang Sun. Deep spectral kernel learning. In Proceedings of the Twenty-Eighth International Joint Conference on Artifi- cial Intelligence, IJCAI-19, pages 4019-4025. International Joint Conferences on Artificial Intelligence Organization, 7 2019. IJCAI
- [Zhong et al., 2019] Ellen D Zhong, Tristan Bepler, Joseph H Davis, and Bonnie Berger. Reconstructing continuous dis- tributions of 3d protein structure from cryo-em images. In International Conference on Learning Representations, 2019.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Deep neural networks have led to a series of remarkable breakthroughs. In addition to the deep compositional architectures, their representational properties depend heavily on the activation functions. Different kinds of nonlinearities provide different response characteristics, and are only suitable for disposing of different frequency signals.
Most activation functions typically used nowadays, e.g., Sigmoid and ReLU, are locally-responding (i.e., monotonic), mimicking the binary activation/inhibition of the Heaviside function. Locally-responding neurons only altering their states in a local range make sense from intuitive points of view: 1) They are more likely attracted to noticeable/generalizable/lowfrequency features; 2) Monotonic nonlinearity substantially smoothes the fluctuation of gradient in optimization. This plays an important role in the success of training deep neural networks containing hundreds of millions of parameters.
∗Equal Contribution
†Contact Author
However, it is not nitpicking that their representation ability is defective. [Tancik et al., 2020; Jacot et al., 2018] comprehensively showed that standard neural networks are poorly suited for learning high-frequency content, a phenomenon referred to spectral bias caused by a rapid frequency falloff. [Sitzmann et al., 2020b; Bond-Taylor and Willcocks, 2020; Sitzmann et al., 2020a] further proved that quasiconvex activations are incapable of modeling potential information contained in higher-order derivatives of natural signals.
By comparison, globally-responding neurons activated by periodic nonlinearity, e.g., the sinusoidal function, are able to adjust their activation/inhibition states dynamically across the whole feature space. They are considered to be a competitive paradigm offering revolutionary benefits: 1) compactly characterizing complex high-frequency patterns; 2) precisely representing implicit high-order derivatives. They have the potential to reveal input-dependent and long-range characteristics [Xue et al., 2019; Xue and Wu, 2020].
Nevertheless, they do have some drawbacks. As the correlation with the input increases, the state of nonlinearity will fluctuate between stronger activation and weaker inhibition, and thus is inappropriate to represent low-frequency concepts cheaply. Moreover, the periodic sinusoidal mapping has infinite Vapnik-Chervonenkis (VC) dimension leading to the optimization dilemma that the solution space has numerous poor and dense local minima [Parascandolo et al., 2017]. Consequently, the improper use of globally-responding nonlinearities probably leads to extra complexity and severe risk.
Therefore, despite the relatively vacuous uniform approximation theory, there is actually a gap between the representational properties of neural networks and the frequency characteristics of practical tasks. On the one hand, different nonlinearities with relative merits are only suitable for processing signals with different frequencies. On the other hand, nearly all the practical tasks are composed of complex multi-frequency patterns.
Ideally, the nonlinear mappings in hidden layers can be regarded as the approximate decomposition of some implicit functions. Each computational element in networks should be compatible with the frequency attributes of these functions. But realistically, there is little prospect of designing or searching such a heterogeneous network containing different kinds of neurons matching the frequency of patterns. In addition to the critical issue in identifying the frequency of implicit functions, another fundamental bottleneck is the exponentiallyincreasing combinatorial nature of 2|σ| possible states, where |σ| is the total number of neurons.

Hence, in this paper, we particularly focus on improving the representational properties of neural networks to compactly and efficiently learn complex multi-frequency patterns with a minimal compromise in computational overhead. Our main contributions are three-fold:
- We propose a general Rectified Continuous Bernoulli (ReCB) unit paired with a differentiable variational Bayesian learning paradigm, to automatically detect/gate/represent different frequency responses from locally/globally-responding nonlinearities.
- We present a theoretical framework to analyze the representational properties of locally/globally-responding nonlinearities. Our main result proves that ReCB-based networks can achieve the optimal representation ability, which is O(mη/d2 ) times better than that of popular ReLU-based neural networks, for a hidden dimension of m, an input dimension of d, and a Lipschitz constant of η.
- We provide comprehensive empirical evidence showing that our theoretical findings are consistent with the practical observations, and the novel ReCB-based networks can keenly characterize multi-frequency patterns. They impressively outperform the related state-of-the-art networks (e.g., ReCB-based ResNet-20 outperforms plain ResNet-110).
2 RelatedWork
On the one side, [Tancik et al., 2020; Sitzmann et al., 2020b; Bond-Taylor and Willcocks, 2020; Sitzmann et al., 2020a] pointed out that ordinary neural networks activated by locallyresponding nonlinearities are inappropriate to represent highfrequency features and higher-order derivatives. By comparison, [Mildenhall et al., 2020; Zhong et al., 2019; Xue et al., 2019; Xue and Wu, 2020; Ramachandran et al., 2017;
Vaswani et al., 2017; Xu et al., 2019; Kazemi et al., 2019] further constructed a series of competitive models based on the globally-responding sinusoidal function for a broad range of applications.
On the other side, these conceptually-attractive globallyresponding nonlinearities are also well-known for being hard to train [Xue andWu, 2020; Parascandolo et al., 2017]. It is probably responsible for this optimization dilemma that the periodicity gives rise to numerous poor and dense local minima. The direction and norm of gradient oscillate continually during error backpropagation. These globally-responding networks may be prematurely stuck in local minima, and leave out more effective error feedback.
To understand these issues intuitively, we conduct a synthetic experiment on fitting sin(2x), x ∈ [-2π, 2π] with three models defined in Section 5.1: 1) the locallyresponding ReLU; 2) the globally-responding Sin; 3) the multi-frequency gated ReCB. They have only one neuron with a scalar weight w initialized at w = 6. The fitting results and optimization traces are shown in Figure 1. Firstly, the solution space of ReLU is smooth. But owing to the structural limitation, ReLU can only capture the mean values. Secondly, in contrast, the solution space of Sin has more poor and dense local minima. Sin is prematurely stuck in terrible solution and fits the wrong frequency. Thirdly, according to the projection of ReCB in the solution space of Sin, ReCB finds the optimal solution w = 2 and perfectly reconstructs the original function by rectifying these local minima. Consequently, by accurately controlling the proportion of locally/globally-responding nonlinearities, we can alleviate the optimization difficulty on the premise of preserving the structural superiority.
3 GatingMulti-Frequency Patterns
3.1 Multi-Frequency Gated Unit
To characterize the response from locally/globally-responding nonlinearities for each neuron, a multi-frequency gated unit is defined by
¯σ(·) is a locally-responding activation function, and ˜σ(·) is a globally-responding counterpart. Without loss of generality, we make an innocuous stipulation that ¯σ(·) and ˜σ(·) are the quasiconvex ReLU and the periodic sinusoidal function, respectively. Whether the responding preference of σz(·) is low-frequency or high-frequency is determined by the discrete value of the binary gate z. But it should be emphasized that the approach is naturally compatible with other activation functions without modification.
By controlling the proportion of different kinds of nonlinearities, we can dynamically adjust the response characteristics of mappings for complex multi-frequency patterns. But the practical optimization under this na¨ıve gating scheme is computationally intractable because of the non-differentiability and the exponentially-increasing combinatorial nature of 2|σz| possible states, where |σz| is the total number of neurons.
3.2 Variational Bayesian Learning Paradigm
We propose a more efficient differentiable learning paradigm to jointly optimize the gates with original network parameters, utilizing variational Bayesian inference as theoretical basis.
Given some observed data D, a group of random variables z gating the low/high-frequency responses, and a collection of activations σz regarded as random variables reparameterized by z. According to Bayesian inference, a general learning problem can be defined as minimizing the negative Evidence Lower BOund (ELBO) -L(D, σz, z).
where q is the approximate posterior over σz and z.
Furthermore, suppose p is a spike and slab prior over σz and z. It is defined as a mixture of a delta spike at zero and a continuous distribution over the real line.
Since the true posterior distribution under this prior is intractable, we let q(σz, z) be a spike and slab approximate posterior over σz and z. -L(D, σz, z) under the spike and slab prior and approximate posterior can be rewritten as
We assume that the multi-frequency gated units are independent of each other. p and q factorize over the dimensionality of σz and z in an element-wise way. Furthermore, according to the chain rule of KL-divergence, we have
- L(D, σz , z)
Since
where γ is a weighting factor for explicitly penalizing the globally-responding nonlinearities for introducing extra model complexity and structural risk. We have
As long as we apply a differentiable approximate posterior q(z|ρ) allowing for the reparameterization trick z = f(ρ, ϵ) over the parameters ρ, a deterministic differentiable function f , and a parameter-free noise distribution τ (ϵ), we can reformulate the optimization objective -L(D, σz, z) and solve it by Monte Carlo approximation.
Crucially, the learning objective is now differentiable with respect to the parameters ρ, thus enabling for efficient stochastic gradient based optimization. The parameters of the distribution over the gates can then be jointly optimized with the original network parameters. Moreover, the requisite frequency information can also be perceived implicitly during error backpropagation.
3.3 Rectified Continuous Bernoulli Unit
Based on the differentiable learning paradigm, we further refine the multi-frequency gated units by utilizing a continuously differentiable distribution allowing for the reparameterization trick. Assume that we have a continuous Bernoulli random variable v distributed in the (0, 1) interval with probability density function qv(v|ρ) and cumulative distribution function Qv(v|ρ). The parameter 0 < ρ < 1 implies the degree that v is more likely closer to 1 than 0. We can calculate qv(v|ρ) and Qv(v|ρ) in closed forms.
and
Here, we stretch the continuous Bernoulli distribution to the (ξ, ζ) interval, with ξ ≤ 0 and ζ ≥ 1, and further bound it in [0, 1] by applying a min-max rectifier.
This would then induce a rectified continuous Bernoulli distribution serving as a better approximation of the discrete Bernoulli distribution: 1) the probability mass of q˘ v (˘ v|ρ) on the negative values, Q˘ v(0|ρ) is folded to a delta peak at zero; 2) the probability mass on values larger than one, 1-Q˘ v (1|ρ) is folded to a delta peak at one; 3) the original distribution q˘ v (˘ v|ρ) is truncated to the (0, 1) interval. The rectified continuous Bernoulli distribution includes {0, 1} in its support, while still allowing for gradient based optimization of its parameters due to the continuous probability mass that connects these two values.
Considering q(z ̸= 0|ρ) = 1 - Q˘ v(0|ρ), we define the optimization objective by minimizing the total risk R(D).
where
In training, paired with a parameter-free noise random variable ϵ ∼ U(0, 1), z can be sampled efficiently.
In prediction, we apply the following unbiased estimator.
The total risk R(D) is a special case of the negative ELBO -L(D, σz, z) by setting the sampling number of K = 1. The reason for optimizing R(D) is that we focus on efficiently learning complex multi-frequency patterns under large-scale network architectures, instead of revealing the uncertainty of gates. As the training continues, ReCB-based networks can converge very well even if sampling only once.
4 Theoretical Framework
The main insights in our theoretical results are characterized chiefly: 1) The globally-responding networks have the conceptually-attractive ability in approximating 2π-periodic p-order Lebesgue-integrable functions, which is O(mη/d2 ) times better than that of popular locally-responding networks, for a hidden dimension of m, an input dimension of d, and a Lipschitz constant of η; 2) ReCB-based networks consisting finely of different kinds of nonlinearities can also achieve the theoretically-optimal representation ability; 3) The deep compositional architectures can significantly improve the representational properties by reducing the exponential approximation errors to polynomial ones.
4.1 Approximation under ShallowArchitectures
Definition 1 (Notation). For p ≥ 1, let Ψ be the space of 2π-periodic p-order Lebesgue-integrable functions Lp2π (Rd ) (p is bounded) or 2π-periodic continuous functions C2π(Rd ) (p = ∞). Let f ∈ Ψ. Define the Ψ-norm by
Definition 2 (Modulus of Continuity). Let f ∈ Ψ and δ ≥ 0. The 1-order modulus of continuity ω(f, δ)Ψ of f under Ψnorm is defined by
In particular, if f ∈ LipηC satisfies a Lipschitz condition with a constant of C > 0 and an exponent of η > 0 under Ψ-norm, then ω(f, δ)Ψ is bounded by Mδη .
Theorem 1 (Approximation Bound for NN[˜σ](1) ). Let the shallow globally-responding mapping NN [˜σ](1) = ∑mi=1 ˜σi where the hidden dimension is m = (λ + 1)d - 1. Let f ∈ Ψ be the target function. The approximation error under Ψ-norm is estimated by
where
Theorem 2 (Approximation Bound for NN[¯σ](1) ). Let the shallow locally-responding mapping NN[¯σ](1) = ∑mi=1 ¯σi where the hidden dimension is m = 4σλ(λ + 1)d . Let f ∈ Ψ be the target function. The approximation error under Ψ-norm is estimated by
and the remainder Φ is
Theorem 3 (Approximation Bound for NN[σz](1) ). Let the shallow multi-frequency gated mapping NN[σz](1) = ∑mi=1 σzi = ∑mh i=1 ˜σi + ∑ml i=1 ¯σi where the hidden dimension is m = mh +ml. mh and ml are the dimension of ˜σ and ¯σ, respectively. Let f ∈ Ψ be the target function. The approximation error under Ψ-norm is estimated by
where
and the remainder Θ is
Corollary 1 (For Lipschitz). Suppose f ∈ LipηC . We have
These numerically-tight results clarify the power of NN[σz](1) consisting finely of different kinds of nonlinearities. It can achieve the conceptually-optimal approximation bound paired with a small remainder [Feinerman and Newman, 1975], if the number of globally-responding elements ˜σ is not significantly less than others.
4.2 Approximation under Deep Architectures
Definition 3 (Compositional Functions [Poggio et al., 2017]). Let G be a directed acyclic graph (DAG), with the set of source nodes S and the set of vertexes V . For each vertex v ∈ V , dv is the number of in-edges of v. Let f be a compositional Gfunction defined by the compositional structure corresponding to G. f is recursively constructed by a class of constituent functions {fv}v∈V layer-by-layer. fv with inputs {fvi }dv i=1 corresponds to v with precursor vertexes {vi}dv i=1 . Hence, f corresponds to the whole G with |S|-dimensional inputs.
Theorem 4 (Approximation Bound for NN[˜σ]). Follow the notations in Theorem 1. Let the target function f ∈ Ψ be a compositional G-function including the constituent functions {fv ∈ Ψ}v∈V . Let the deep globally-responding mapping NN[˜σ] have the same architecture as G. For each v ∈ V , let NN[˜σ](1) v correspond to v. The hidden dimension of NN [˜σ](1) v is mv = (λv +1)dv -1. The approximation error under Ψ-norm is estimated by
Theorem 5 (Approximation Bound for NN[¯σ]). Follow the notations in Theorem 2. Let the target function f ∈ Ψ be a compositional G-function including the constituent functions {fv ∈ Ψ}v∈V . Let the deep locally-responding mapping NN[¯σ] have the same architecture as G. For each v ∈ V , let NN[¯σ](1) v correspond to v. The hidden dimension of NN [¯σ](1) v is mv = 4σvλv(λv + 1)dv . The approximation error under Ψ-norm is estimated by
Theorem 6 (Approximation Bound for NN[σz]). Follow the notations in Theorem 3. Let the target function f ∈ Ψ be a compositional G-function including the constituent functions {fv ∈ Ψ}v∈V . Let the deep multi-frequency gated mapping NN[σz] have the same architecture as G. For each v ∈ V , let NN[σz](1) v correspond to v. The hidden dimension of NN [σz ](1) v is mv = mhv +mlv . The approximation error under Ψ-norm is estimated by
Corollary 2 (For Lipschitz). Suppose f ∈ LipηC and {fv ∈ LipηC }v∈V . Let {NN[˜σ](1) v ,NN[¯σ](1) v ,NN[σz](1) v }v∈V have the same hidden dimension of mv. We have
These results further emphasize that the superiority of the deeper NN[σz] is inherited from that of the shallower NN[σz](1) . ReCB units can improve the representational properties of neural networks, whether in shallow or deep architectures.
5 Experiments
5.1 Experimental Models
They are denoted by the nonlinearities and gating schemes.
- ReLU: as the baseline of locally-responding nonlinearity.
- Sin: as the baseline of globally-responding nonlinearity.
- Ense: as a weighted Ensemble of ReLU and Sin.
- Para: setting the gates as a group of learnable Parameters.
- Bern: sampling the gates from the Bernoulli distribution.
- ReCo: gating via Rectified Concrete (ReCo) distribution.
- ReCB: gating multi-frequency patterns through the proposed Rectified Continuous Bernoulli (ReCB) units.
5.2 Learning Heterogeneous Patterns
The experiment is designed to evaluate the sensitivity of ReCB units in gating heterogeneous patterns. The implicit patterns to be learned are represented by a single-layer neural network G with the hidden dimension of 200. G consists of the locally-responding ReLU and the globally-responding sinusoid. The proportion of the sinusoidal elements linearly increase from 0% to 100%. We uniformly get 20000 samples {(xi, G(xi))}20000 i=1 , xi ∈ [-2π, 2π]20 , and randomly divide them into two non-overlapping training and test sets that are equal in size. The division, training and test processes are repeated 5 times, and then we assess the average performance on Mean Squared Error (MSE). All compared models have the same architecture as G, and are optimized by Adam. The results are shown in Figure 2.

Besides the apparent observation, there are two in-depth insights. Firstly, the expectation value of gates is linearly correlated to the proportion of pattern components. Because the variational Bayesian learning paradigm sensitively captures the changes of components implied in complex patterns, and then feeds the error information back to the gates. Secondly, ReCB performs much better than ReCo even though their gates have the very close expectation value. It is a major reason that ReCB units concentrate probability mass better around the extrema, and do not cause too much unpleasant sampling uncertainty. These properties play a major role in modeling discrete gating behaviours under stochastic gradient based optimization.
5.3 Learning Frequency-Shifting Patterns
Furthermore, another experiment is designed to evaluate the effectiveness of ReCB units in capturing the changes of frequencies. The implicit patterns are also represented by G consisting of 10 ReLU neurons and 190 sinusoidal neurons. The frequencies ω of these sinusoidal neurons linearly increase from 0.0 to 0.7 paired with extra noise N(0, 0.12 ). All compared models have the same single-layer network architecture containing 500 neurons. The results are shown in Figure 2.
Firstly, the curve slope of ReCB is the flattest, which means that ReCB has the potential to achieve greater performance advantages as the frequencies increase. Secondly, the performance depends heavily on the distribution characteristics of gates. Compared to the optimal ReCB, ReCo performs worse due to its unpleasant uncertainty in sampling process, and thus is not suitable for gating and optimizing the crucial nonlinearities. Lastly, automatically detecting/gating/representing different frequency responses is not a trivial behaviour mimicking random selection. The gate is even as important as the nonlinearity. ReLU and Sin achieve the worst performance in learning the neural network G composed entirely of themselves.
5.4 Learning Image Classification
Moreover, to demonstrate that various networks can benefit from the proposed ReCB units, we conduct an experiment to learn CIFAR10 [Krizhevsky et al., 2009] classification. All models are optimized by Stochastic Gradient Descent
| Top-1 | LeNet-5 | ResNet-20 | ResNet-56 | ResNet-110 | ||||
|---|---|---|---|---|---|---|---|---|
| Error(%) | conv | best | conv | best | conv | best | conv | best |
| ReLU | 30.63 | 30.49 | 8.87 | 8.76 | 7.27 | 7.06 | 7.41 | 7.30 |
| Sin | 29.48 | 29.36 | 11.52 | 11.35 | - | - | - | - |
| Ense | 24.81 | 24.78 | 9.30 | 9.02 | - | - | - | - |
| Para | 29.25 | 29.16 | 9.34 | 9.20 | 10.61 | 9.79 | - | - |
| Bern | 34.15 | 33.79 | 12.20 | 11.53 | 9.62 | 8.92 | - | - |
| ReCo | 25.43 | 25.43 | 9.86 | 7.89 | 7.57 | 6.65 | - | - |
| ReCB | 23.47 | 23.19 | 6.66 | 6.52 | 5.80 | 5.64 | 5.55 | 5.54 |
(SGD) with a mini-batch size of 128, a weight decay of 10-4 , and a Nesterov momentum of 0.9 [Paszke et al., 2017; Sutskever et al., 2013; Goodfellow et al., 2016]. The learning rate is adjusted by a cosine annealing schedule with warm restarts [Loshchilov and Hutter, 2016]. The results are collected in Table 1.
In all the experiments ReCB remarkably achieves the best performance. The top-1 error 6.52% of ReCB-based ResNet20 (ReCB) is even more competitive compared with the official record 6.61% of ResNet-110 in the publication [He et al., 2016]. Other models failed to train under the giant ResNet110 architecture due to the unsolved optimization dilemma of the globally-responding sinusoidal nonlinearity, and behaved as poorly as random guessing. It suggests that ReCB units are capable of improving the computationally intractable optimization of globally-responding elements.
6 Conclusion
In this paper, we propose a novel ReCB unit paired with variational Bayesian learning paradigm, to automatically detect/gate/represent different frequency responses. A theoretical framework is also presented to analyze the representational properties of locally/globally-responding nonlinearities. Our main result characterizes that ReCB-based networks can achieve the conceptually-attractive approximation bound. Furthermore, we provide comprehensive empirical evidence showing that ReCB-based networks can keenly learn multifrequency patterns.
Acknowledgments
This work was supported by National Natural Science Foundation of China (Grant No.62076062). Furthermore, the work was also supported by Collaborative Innovation Center of Wireless Communications Technology.
@inproceedings{ijcai2022p499,
title = {Automatically Gating Multi-Frequency Patterns through Rectified Continuous Bernoulli Units with Theoretical Principles},
author = {Wu, Zheng-Fan and Feng, Yi-Nan and Xue, Hui},
booktitle = {Proceedings of the Thirty-First International Joint Conference on
Artificial Intelligence, {IJCAI-22}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Luc De Raedt},
pages = {3594--3600},
year = {2022},
month = {7},
note = {Main Track},
doi = {10.24963/ijcai.2022/499},
url = {https://doi.org/10.24963/ijcai.2022/499},
}
TY - CPAPER TI - Automatically Gating Multi-Frequency Patterns through Rectified Continuous Bernoulli Units with Theoretical Principles AU - Wu, Zheng-Fan AU - Feng, Yi-Nan AU - Xue, Hui T2 - Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI-22 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2022 SP - 3594 EP - 3600 DO - 10.24963/ijcai.2022/499 UR - https://doi.org/10.24963/ijcai.2022/499 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: