Skip to content

Interval Universal Approximation for Neural NetworksInterval Universal Approximation for Neural Networks

arXiv· arXiv:2007.06093· Proc. ACM Program. Lang.· Zi Wang, Aws Albarghouthi, Gautam Prakriya, Somesh JhaDepartment of Computer Sciences, University of Wisconsin-Madison; Institute of Theoretical Computer Science and Communications, The Chinese University of Hong KongIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors prove that neural networks with any squashable activation can approximate the set semantics of continuous functions arbitrarily closely via interval abstraction (IUA), and state that constructing such networks is essentially a ∆2-intermediate problem.

Questions
Interval abstract interpretation is widely used to verify neural network robustness, but the theoretical power and limits of the interval domain are unclear: the result of Baader et al. (2020) covers only ReLU, and its construction grows exponentially with the domain, so whether it can be generalized to arbitrary activation functions and whether it can be constructed efficiently are both open problems.
Methods
They define the class of squashable activation functions (including ReLU, sigmoid, tanh, ELU, etc.), use dilation to approximate the activation by a step function, then construct indicator functions and sum over slices to prove the IUA theorem; on the complexity side, they reduce the problem to range approximation (RA) and encode 3CNF/3DNF formulas with neural networks to prove NP-hardness and coNP-hardness.
Experiments and results
Theoretical results: IUA holds for any squashable activation, and it implies that for any such activation there exists a network whose ℓ∞ robustness can be automatically proved using the interval domain; the RA problem exhibits a dichotomy, being trivial when δ ≥ 1/2 and ∆2-intermediate when δ < 1/2, so no efficient IUA construction exists.
Limitations and future work
The constructive proof of IUA grows exponentially with the size of the approximation domain; the ∆2 membership conclusion relies on the assumptions that networks are executable in polynomial time and that input precision is finite; the paper is purely theoretical work and includes no experimental evaluation.
AI summaryThe researchers propose the Interval Universal Approximation (IUA) theorem, which theoretically characterizes the capabilities and limitations of interval abstract domains in neural network safety and robustness verification. The theorem shows that for any continuous function and any well-behaved activation function, there exists a neural network whose interval bounds can arbitrarily approximate the set semantics of that function applied to an input set, thereby generalizing the 2020 result of Baader et al. for ReLU to a class of activation functions called squashable functions, and implying that provably robust neural networks can be constructed under the ℓ∞ norm with almost all practical activation functions. Because this constructive proof is exponential in the size of the approximation domain, the authors reduce the problem to the range approximation problem (RA) for neural networks with squashable activation functions, and prove that under the assumption coNP ⊄ NP, RA is a Δ₂ intermediate problem, strictly harder than NP-complete problems, and therefore no matter which abstract domain or computational tool is used, there is no efficient method to construct such universal approximators.

The researchers propose the Interval Universal Approximation (IUA) theorem, which theoretically characterizes the capabilities and limitations of interval abstract domains in neural network safety and robustness verification. The theorem shows that for any continuous function and any well-behaved activation function, there exists a neural network whose interval bounds can arbitrarily approximate the set semantics of that function applied to an input set, thereby generalizing the 2020 result of Baader et al. for ReLU to a class of activation functions called squashable functions, and implying that provably robust neural networks can be constructed under the ℓ∞ norm with almost all practical activation functions. Because this constructive proof is exponential in the size of the approximation domain, the authors reduce the problem to the range approximation problem (RA) for neural networks with squashable activation functions, and prove that under the assumption coNP ⊄ NP, RA is a Δ₂ intermediate problem, strictly harder than NP-complete problems, and therefore no matter which abstract domain or computational tool is used, there is no efficient method to construct such universal approximators.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The theoretical capability limits of interval abstract interpretation for arbitrary activation functions, and the computational difficulty of constructing interval universal approximators.

    Core question: can a neural network be constructed with arbitrary activation functions so that its interval abstract interpretation arbitrarily approximates the set semantics of a target function; and can such a construction be done efficiently.

    • Problem setting: abstract interpretation with the interval abstract domain has been used to verify the robustness of neural networks to small perturbations; the authors list applications such as image classification, natural language processing and cyber-physical systems (introduction). The authors argue that the theoretical question "why the interval domain is effective for verifying neural networks" needs to be answered.
    • Shortcomings of existing results: Baader et al. (2020) proved interval universal approximation for the ReLU network version, but the authors point out that this result is limited to ReLU activation; moreover, both it and the constructive proof in this paper grow exponentially with the size of the function domain, and whether an efficient construction exists is an open problem (introduction).
    • Core observation: the authors define the class of squashable activation functions—functions that can be constructed with network syntax to be monotonically increasing and to have left and right limits; such functions can, via dilation (multiplying the input by a large number µ), arbitrarily approximate the step function, and thus approximate indicator functions, which is the key to all the constructions and complexity proofs (Section 2).
    • Contributions: they prove the interval universal approximation (IUA) theorem, generalizing Baader et al. (2020) from ReLU to arbitrary squashable activations; they derive that for any squashable activation there exists a network whose ℓ∞ robustness can be automatically proved using the interval domain; and they prove that the range approximation (RA) problem is ∆2-intermediate, so that no efficient construction of IUA exists (introduction, Sections 5–7).
  2. What related research exists?

    Developed along three lines: the classical universal approximation theorem, the interval version of universal approximation by Baader et al., and neural network verification and its complexity results.

    Universal approximation

    • Cybenko (1989), Hornik et al. (1989)—classical UA theorems: single-hidden-layer feedforward networks with sigmoidal/squashing activations can approximate any continuous function.
    • Leshno et al. (1993)—proved that feedforward networks are universal approximators if and only if the activation function is non-polynomial; on this basis the paper points out that IUA cannot go beyond non-polynomial activation functions (since IUA implies UA).
    • Lu et al. (2017), Kidger and Lyons (2019), Lin and Jegelka (2018), etc.—study UA variants under bounded width or specific architectures; Anil et al. (2019), Cohen et al. (2019) study approximation of Lipschitz functions.

    Universal approximation on the interval domain

    • Baader et al. (2020)—the authors state that this is the first UA theorem tailored to interval analysis, but it targets only ReLU; this paper follows its proof framework (sum of indicator functions), generalizes the result to arbitrary squashable activations, and gives a smaller indicator function construction (4m+2 neurons in the ReLU special case, versus 10m−3 ReLU units in theirs, Section 4.1.2).
    • He et al. (2018)—Baader et al. use their construction to build the min function from ReLU units; this paper instead uses squashable functions to approximate indicator functions, which the authors state is simpler and more broadly applicable (contribution 2).

    Neural network verification

    • Decision-procedure-based methods: Ehlers (2017), Katz et al. (2017) use SMT solvers, Tjeng et al. (2019) use integer linear programming; the paper states that such methods can be sound and complete for piecewise-linear networks, but are not scalable due to problem complexity and network size.
    • Abstract-interpretation-based methods: Gehr et al. (2018), Mirman et al. (2018), Wang et al. (2018), Anderson et al. (2019), Huang et al. (2019), Zhang et al. (2020, 2021), etc. use the interval domain for robust verification and adversarial training; Singh et al. (2018, 2019), etc. consider richer domains (zonotope, polyhedra), and the paper points out that these domains are more precise than intervals, so IUA holds for them as well.

    Complexity of verification

    • Katz et al. (2017)—proved that falsification of ReLU networks is NP-complete; this paper incorporates that result as a corollary: for any squashable activation, falsification is NP-hard (Corollary 6.8).
    • Weng et al. (2018)—proved the inapproximability of optimal ℓ1-distortion for ReLU networks; the paper points out that they study ℓ1 robustness falsification, and their reduction does not imply the results of this paper.

    The authors position this paper as: generalizing interval universal approximation from ReLU to general activation functions, and claim it is the first work to classify the complexity of neural network verification tasks (the footnote to contribution 4 also notes that Katz et al. and Weng et al. study falsification rather than verification).

  3. How does the paper address this problem?

    Define squashable activations and use them to approximate step/indicator functions to prove IUA; then reduce the construction difficulty of IUA to the complexity of range approximation.

    The overall approach has two parts: first define squashable activation functions and prove that they can approximate the step function, then constructively prove the IUA theorem following the "sum of indicator functions" framework of Baader et al. (2020); then reduce "whether an IUA network can be constructed efficiently" to the range approximation (RA) problem, and prove its complexity dichotomy by encoding Boolean formulas with neural networks.

    Squashable activation functions (Section 2)

    • Definition: an activation function t is squashable if and only if (1) it is itself monotonically non-decreasing and has left and right limits, or (2) a function t′ satisfying (1) can be constructed from t using network syntax (constants, inputs, addition, scalar multiplication, activation composition) (Definition 2.3).
    • Coverage: sigmoid, tanh, softsign directly satisfy condition (1); ReLU, softplus, smoothReLU_a, ELU satisfy condition (1) via the construction t′(x) = t(1 − t(−x)) (Proposition 2.4).
    • Step approximation: multiplying the input by a large number µ gives t(µx), which can arbitrarily approximate the step function sign(x); the difference of two shifted step functions sign(x) − sign(x−1) gives the indicator function of the interval (0,1] (Figure 4).
    • Boolean formula encoding: ¬ is encoded by 1 − X, ∧ by sign(X + Y − 1.5), and ∨ by sign(X + Y − 0.5), so networks with step activations can encode Boolean formulas (Section 2.2).

    Interval abstraction and the IUA theorem (Section 3)

    • Interval domain: an m-dimensional box B = ⟨[l1,u1],…,[lm,um]⟩; arithmetic operations and the abstract transformers of activations are defined by standard interval arithmetic, and the transformer of a monotone activation t is t#(⟨[l,u]⟩) = ⟨[t(l), t(u)]⟩; the transformers are sound (Theorem 3.4).
    • Core definition: [l+δ, u−δ] ⊆ N#(B) ⊆ [l−δ, u+δ], where l = min f(B) and u = max f(B), i.e., N is a δ-interval approximation of f (Definition 3.6); when B degenerates to a single point this is the classical pointwise approximation.
    • IUA theorem (Theorem 3.7): for a continuous function f : C → R on a compact domain C, any squashable activation t and any δ > 0, there exists a neural network N using only t that performs δ-interval approximation of f.

    Constructive proof of IUA (Section 4)

    • One-dimensional indicator function: for the i-th dimension [a_i, b_i] of a grid box, take t̂(x) = t(µ(x + 0.5ε − a_i)) − t(µ(x − 0.5ε − b_i)), where µ = 2D/ε (D is guaranteed by the limit definition so that t is within θ of its limit outside ±D); under abstract interpretation, the output inside the box is within 2θ of 1, and outside the neighborhood within θ of 0 (Lemma 4.7).
    • m-dimensional indicator function: NG(x) = t(μ(∑i=1m Hi(xi) + 0.5ϵ)), where H_i(x) = t̂_i(x) − (1 − 2θ); the output inside the box is ∈ (1−θ, 1], and outside the neighborhood ∈ [0, θ) (Theorem 4.10). A single indicator function uses 2m+1 activation units (depth 2, width 2m); the ReLU special case uses 4m+2 neurons (depth 4, width 2m), compared with the 10m−3 units of Baader et al. (depth 3+log2(m), width 4m).
    • Slice summation: f is cut at τ = δ/3 into K = ⌊u/τ⌋ slices f_i with range [0,τ] (Baader et al. use δ/2; the authors state that finer slices are needed because the squashable approximation introduces additional error); each slice is approximated by an indicator function network N_i, giving finally N(x) = τ·Σ N_i(x); the parameters are set to θ = min(1/(K+1), 1/(4m+2), 1/(4|G|)), ε < 0.5 且由 Heine–Cantor 定理保证一致连续性(附录 B.2)。

    RA 问题与复杂性(Sections 5–6)

    • RA 定义(Definition 5.7):对网络 f : [0,1]^m → [0,1],找 a ≤ b 使 [l+δ, u−δ] ⊆ [a,b] ⊆ [l−δ, u+δ];RA 弱于 IUA(只要求对整个定义域、且不限定逼近方式),所以 RA 难则 IUA 构造难。
    • 二分定理(Theorem 5.8):δ ≥ 1/2 时取 a = b = 1/2 即平凡;δ < 1/2 时 NP-hard 且 coNP-hard,若网络多项式时间可执行且输入精度有限,则为 ∆2-intermediate(∆2 = Σ2 ∩ Π2)。
    • NP-hardness 归约:把 3CNF 公式 φ 编码为网络 N_φ——字面量经 t1、子句析取经 t2、整体合取经 t3(t1–t3 为分段区间约束的激活,Eqs. (7)–(9));φ 可满足时 max N_φ > 1/2 + δ, and ≤ 1/2 − δ when unsatisfiable (Proposition 6.7), so deciding 3SAT reduces to approximating the maximum. coNP-hardness is shown symmetrically using 3DNF and the t4, t5 encodings (Appendix B.10).
    • Corollary: falsifying the correctness of any squashable-activation network is NP-hard (Corollary 6.8), and the ReLU result of Katz et al. (2017) is a special case.

    Provably robust networks (Section 7)

    • Definition: f is ε-robust on a set M if the classification is unchanged within the ε-ball (ℓ∞ norm); N is ε-provably robust if for every x ∈ M, N#(α(R_ε(x))) lies entirely on one side of 0.5 (Definitions 7.1–7.3).
    • Existence (Theorem 7.4): if f is ε-robust on M and no point in R_ε(x) lies exactly on the classification boundary 0.5, then taking δ smaller than the minimum boundary distance δ′, the network given by IUA both agrees with f on M in classification and is ε-provably robust; Appendix A generalizes the result to multi-output networks and n-ary classification.
  4. What experiments did the paper conduct?

    A purely theoretical paper with no experiments whatsoever; all results are mathematical theorems and their proofs, supplemented by illustrative figures.

    Experimental Setup

    The paper has no experimental section, ran no models, datasets or benchmarks, and has no baselines, metrics or review method. All contributions in the paper are mathematical theorems, constructions and complexity reductions (Sections 2–7 and Appendices A, B).

    Main Results

    The main results are theorems rather than experimental numbers; the table below summarizes the statement and conditions of each theorem:

    Swipe horizontally to read the table

    ResultStatementConditionsSource
    IUA theoremThere exists a network N that performs δ-interval approximation of ff continuous, domain compact, any squashable activation, any δ > 0Theorem 3.7
    Size of indicator function construction2m+1 activation units (depth 2, width 2m); ReLU special case 4m+2 neurons (depth 4, width 2m)m is the input dimensionSection 4.1.2
    Size of Baader et al. construction10m−3 ReLU units (depth 3+log2(m), width 4m)ReLU onlySection 4.1.2
    RA dichotomyδ ≥ 1/2 trivial; δ < 1/2 为 NP-hard 且 coNP-hardf : [0,1]^m → [0,1],任意 squashable 激活Theorem 5.8
    RA 完全分类δ < 1/2 时为 ∆2-intermediate额外假设网络多项式时间可执行、输入精度有限Theorem 5.8、Lemma 6.1
    可证鲁棒网络存在存在与 f 在 M 上分类一致且 ε-provably robust 的网络f 在 M 上 ε-robust、ε-ball 内无点恰在边界 0.5、任意 squashable 激活Theorem 7.4
    • 作者称 IUA 把 Baader et al. (2020) 的 ReLU 结果推广到任意 squashable 激活,且 ReLU 特例下指示函数构造的激活单元用量有线性因子缩减(Section 4)。
    • 作者称 RA 的二分结果"surprising":逼近集合语义要么平凡要么很难,取决于容差 δ(Section 5.2)。
    • 作者称据其所知这是对神经网络验证任务进行复杂性分类的首个工作(贡献第 4 条)。

    构造的精度分析

    • 一维指示函数 t̂:抽象解释下,输入盒在目标区间 [a_i, b_i] 内时输出 ⊆ (1−2θ, 1],在邻域外时输出 ⊆ (−θ, θ)(Lemma 4.7)。
    • m 维指示函数 N_G:输入盒 ⊆ G 时输出 ⊆ (1−θ, 1],输入盒在邻域 ν(G) 外时输出 ⊆ [0, θ)(Theorem 4.10)。
    • 切片网络 N_i 与整体 N:附录 B.8–B.9 把求和拆成五项分别界定误差,利用 θ ≤ 1/(K+1) 等参数选择把总误差压进 δ = 3τ 以内,完成 IUA 证明。

    复杂性归约的支撑结果

    • 布尔公式版本:判定布尔公式的值域({0}、{1} 或 {0,1})是 ∆2-intermediate,为 RA 的复杂性提供直觉(Section 6.1)。
    • 间隙命题:3CNF 可满足时编码网络最大值 > 1/2 + δ, and ≤ 1/2 − δ when unsatisfiable (Proposition 6.7); the 3DNF version is symmetric (Proposition B.5).
    • Corollary: deciding whether the range of a network is ∆2-intermediate (Corollary 6.4); falsifying any squashable-activation network is NP-hard (Corollary 6.8).

    Other Ablations and Analyses

    • Multi-output generalization: IUA is generalized to vector-valued functions f : C → R^n (Theorem A.3).
    • n-ary classification: the existence of provably robust networks is generalized to n-class classifiers (Theorem A.6).
    • Figures 1–10 are all conceptual illustrations (activation function shapes, step/indicator function approximation, grids, slices, 3SAT encoding network structure) and contain no experimental data.
  5. What are some points that can be further explored?

    The construction grows exponentially with the domain, and ∆2 membership requires additional assumptions; the paper is purely theoretical and includes no experimental validation.

    Limitations noted by the authors and future directions

    • The construction is exponential: The authors point out that both their construction and the constructive proof of IUA by Baader et al. (2020) grow exponentially with the size of the function's domain, and "whether an efficient construction of such networks exists" is called a key open problem by the authors (introduction); this paper answers it negatively using the ∆2-intermediate result for RA.
    • ∆2 membership of RA requires assumptions: RA belongs to ∆2 only under the assumption that the network is polynomial-time executable and input precision is finite (Lemma 6.1); the authors also note that the NP-hardness and coNP-hardness do not depend on these assumptions (Section 6.2).
    • Whether ∆2 equals NP ∪ coNP is unknown: The authors note that if coNP ⊄ NP (widely believed to hold), then ∆2-intermediate problems are strictly harder than NP-complete problems, but this inclusion itself is unresolved (Section 5.1 Remark).
    • Follow-up value of the squashable perspective: The authors believe that interpreting arbitrary activation functions as squashable functions provides a unified perspective, and "believe" it will help future researchers understand the theoretical and formal properties of neural networks (contribution 1, Section 9).
    • Practical note on the monotonicity assumption: The authors note that the construction and proofs do not require activation functions to be monotone, but in practice most activations are monotone, and abstract interpretation over arbitrary functions is impractical (Section 2.1, footnote 2).

    Scope of experimental coverage

    • The paper is purely theoretical work and does not run any models, datasets, or benchmarks; there are no experimental settings, sample sizes, or repetition counts to report.
    • The activation functions covered by the theorems are the squashable class; the paper explicitly lists sigmoid, tanh, softsign, ReLU, softplus, smoothReLU_a, and ELU (Figure 2, Proposition 2.4).
    • The network syntax covers non-recurrent architectures such as feedforward and convolutional (Section 2.1); recurrent architectures are not within the syntax.
    • The robustness results target ε-balls defined by the ℓ∞ norm and binary classification; n-ary classification is handled in Appendix A; other norms do not appear in the paper.
    • The complexity results target networks with range [0,1] and domain [0,1]^m (Definition 5.7).
  6. Summarize the main content of the paper

    Prove an interval universal approximation theorem for networks with any squashable activation, and prove that constructing such networks is a ∆2-intermediate problem.

    A theoretical paper on neural network verification, studying the capability limits of the interval abstract domain in neural network verification.

    • Problem: interval abstract interpretation is widely used for robustness verification, but the interval universal approximation result of Baader et al. (2020) covers only ReLU, and the construction grows exponentially with the domain; whether it can be generalized to arbitrary activations and whether it can be constructed efficiently are both unknown.
    • Method: they define the class of squashable activation functions (functions that can be constructed with network syntax to be monotone and to have left and right limits), covering sigmoid, tanh, ReLU, ELU, softplus, etc.; they use dilation to approximate the activation by a step function, then construct indicator functions and sum over slices of the target function.
    • IUA theorem (Theorem 3.7): for a continuous function f on a compact domain and any δ > 0, there exists a network N using any squashable activation such that its interval abstract interpretation differs from the set semantics of f by at most δ per box; in the ReLU special case the indicator function construction uses 4m+2 neurons, fewer than the 10m−3 of Baader et al. (Section 4.1.2).
    • Provable robustness (Theorem 7.4): the authors state that IUA implies that for any squashable activation there exists a network whose ℓ∞ robustness can be automatically proved using the interval domain, and whose classification agrees with the ideal robust classifier.
    • Complexity dichotomy (Theorem 5.8): range approximation is trivial when δ ≥ 1/2, and ∆2-intermediate when δ < 1/2 (strictly harder than NP-complete assuming coNP ⊄ NP), so the authors state that no efficient IUA construction exists, and that even given a robust network it is difficult to construct a provably robust network.
    • Authors' conclusion: squashable functions can arbitrarily approximate the step function, and step networks can encode Boolean formulas; the authors believe this unified perspective will help understand the formal properties of neural networks in the future.
Read originalProc. ACM Program. Lang.