원시데이터 수집 시스템
선정목록으로

Injectivity of ReLU Layers: Tools from Frame Theory

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Daniel Haider — Acoustics Research Institute, Austrian Academy of Sciences, Dominikanerbastei 16, 1010, Vienna, Austria
  2. Martin Ehler — Department of Mathematics, University of Vienna, Oskar-Morgenstern-Platz 1, 1090, Vienna, Austria
  3. Péter Balázs — Acoustics Research Institute, Austrian Academy of Sciences, Dominikanerbastei 16, 1010, Vienna, Austria
DOI
10.1007/s44439-025-00003-6
저널
Mathematical Foundations of Machine Learning
발행년도
2025
발행기관
–
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s44439-025-00003-6
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W4414944212

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Injectivity is the defining property of a mapping that ensures no information is lost and any input can be perfectly reconstructed from its output. By performing hard thresholding, the ReLU function naturally interferes with this property, making the injectivity analysis of ReLU layers in neural networks a challenging yet intriguing task that has not yet been fully solved. This article establishes a frame theoretic perspective to approach this problem. The main objective is to develop a comprehensive characterization of the injectivity behavior of ReLU layers in terms of all three involved ingredients: (i) the weights, (ii) the bias, and (iii) the domain where the data is drawn from. Maintaining a focus on practical applications, we limit our attention to bounded domains and present two methods for numerically approximating a maximal bias for given weights and data domains. These methods provide sufficient conditions for the injectivity of a ReLU layer on those domains and yield a novel practical methodology for studying the information loss in ReLU layers. Finally, we derive explicit and iterative reconstruction formulas based on the duality concept from frame theory.

본문 79,070자

본문 펼치기
Injectivity is the defining property of a mapping that ensures no information is lost and any input can be perfectly reconstructed from its output.By performing hard thresholding, the ReLU function naturally interferes with this property, making the injectivity analysis of ReLU layers in neural networks a challenging yet intriguing task that has not yet been fully solved.This article establishes a frame theoretic perspective to approach this problem.The main objective is to develop a comprehensive characterization of the injectivity behavior of ReLU layers in terms of all three involved ingredients: (i) the weights, (ii) the bias, and (iii) the domain where the data is drawn from.Maintaining a focus on practical applications, we limit our attention to bounded domains and present two methods for numerically approximating a maximal bias for given weights and data domains.These methods provide sufficient conditions for the injectivity of a ReLU layer on those domains and yield a novel practical methodology for studying the information loss in ReLU layers.Finally, we derive explicit reconstruction formulas based on the duality concept from frame theory. Introduction The Rectified Linear Unit defined as ReLU(s) = max(0, t) for t ∈ R has become indispensable as a non-linear activation function in artificial neural networks [14,21,15,25].Since originally introduced as a way to regularize the gradients in deep network architectures, there have been hardly any networks that do not use ReLU activation or some derivation of it [12,18,23]. Introduction A ReLU layer C α (x) = ReLU(Cx−α) is the composition of an affine linear map comprising the multiplication by a weight matrix C ∈ R m×n and the shift by a bias vector α ∈ R m , with an entry-wise application of ReLU on its output.The injectivity of a ReLU layer, and with that, the possibility of inverting it and inferring x from C α (x), is a desired property in various applications.There has been interest in building injective models and inverting them on their range to regularize ill-posed inverse problems or designing injective generative models, such as normalizing flows, for manifold learning or compressed sensing [20,27,6].Generally, knowing if a layer involves a loss of information increases the interpretability of the network immensely.As such, one can use an inverse mapping to trace back each layer output to its source input, which can help to decipher the decision-making process, diagnose model behavior, identify biases, and study accountability.Although the injectivity of ReLU layers has received increasing attention in recent years, it is still not fully understood, especially when it comes to the numerical verification in practice. Introduction The goal of this paper is to demystify the injectivity of a single ReLU layer as a deterministic non-linear map on a comprehensive level.This involves a thorough analysis of fundamental properties of ReLU layers that are relevant for applications, and different characterizations of injectivity with respect to all properties involved, namely weights, bias, and input domain.By translating selected theoretical results into algorithmic solutions we present novel ways of verifying injectivity on bounded input domains in practice.Explicit reconstruction formulas and their implementation, together with a brief local stability analysis complete the claim of the paper. Introduction The methodology to achieve these goals is based on frame theory, a mathematical paradigm that deals with stable, potentially redundant, and invertible representations of functions by means of inner products [11].To make use of this machinery and all tools that come with it, we shall consider a weight matrix C ∈ R m×n in terms of its row vectors Introduction If C has more rows than columns (m ≥ n) and full rank, the collection of row vectors (ϕ i ) m i=1 is a spanning set for the domain space R n .In other words, the associated linear transform C : R n → R m is injective.In the context of frame theory, we say that (ϕ i ) m i=1 is a frame for R n [11] and C is the associated analysis operator.The application of C to x is interpreted as measuring the correlation of x to all frame vectors ϕ i via x → (⟨x, ϕ i ⟩) m i=1 .The resulting so-called frame coefficients (⟨x, ϕ i ⟩) m i=1 give a (potentially redundant) representation of x, from which we can always infer x explicitly.Roughly speaking, frame theory is the study of "quantifying" injectivity of a redundant representation in the sense of its numerical stability and constructing recovery maps with desired properties via the concept of dual frames.In this sense, it provides exactly the right tools for the goal of the paper. Introduction Although frame theory deals with linear representations, it has been shown to be suitable for non-linear problems as well.One example is phase-retrieval [3] where, in the real setting, one asks for the injectivity and stability of the map Introduction It is well known that C | .| is injective if and only if for any partition of the collection (⟨x, ϕ i ⟩) m i=1 into two sub-collections, at least one of them is a frame [3].Inspired by this approach, we may write a ReLU layer analogously as the map Introduction In [26] (using another terminology) it has been shown that C α is injective if and only if for any x ∈ R n the frame vectors that are not affected by ReLU are a frame.We shall call a frame with this property α-rectifying on R n .While this characterization forms the basis of our work, we will focus on the practical assumption that, in applications, it may not always be most informative to consider the entire R n as the domain where a ReLU layer should be injective.In fact, when considering standard normalization schemes of data sets for training and testing neural networks, it seems more reasonable to study injectivity only on bounded subsets K ⊆ R n where the data is assumed or processed to live in.Indeed, a ReLU layer might be injective on K but not on R n .In this paper, we show that the choice of the data domain can have a profound impact on the injectivity behavior of C α , and discuss how to leverage this fact in practice.Prototypical examples of such domains include the closed ball in R n of radius r > 0, given by B r = {x ∈ R n : ∥x∥ ≤ r}, the closed donut arising by excluding small data points D r,s = B r \ B s with s < r, and the sphere S = {x ∈ R n : ∥x∥ = 1} [22,19].Furthermore, when considering two consecutive ReLU layers, we can restrict the injectivity property of the second one to domains that lie in R n + , such as the non-negative closed ball B + r = B r ∩R n + .The restriction of the domain of C α from R n to a bounded K ⊆ R n increases the feasibility and applicability of the problem in practice, while also making the mathematical setting more versatile.Furthermore, it establishes a natural connection to the bias vector and provides a framework where we can control the injectivity behavior through these two ingredients.This in turn allows us to approach the injectivity analysis also algorithmically. Introduction The main theoretical component of this paper is a comprehensive characterization of the injectivity of a ReLU layer as a deterministic map, summarized in the following theorem. Introduction Theorem.Let Φ = (ϕ i ) m i=1 be a frame for R n , α ∈ R m , and ∅ ̸ = K ⊆ R n .Under the assumptions that Φ includes a unique most correlated basis everywhere (Def 3.7), K is open or strictly convex, and bias-exact for Φ (Def.3.11), the following are equivalent. Introduction (i) The ReLU layer C α , associated with Φ and α, is injective on K. Introduction (ii) The frame Φ is α-rectifying on K (Def 2.2, Thm 2.4, 2.5). Introduction (iii) The domain K lies in the maximal domain K * α (Thm 3.4). Introduction (iv) The values of the bias α do not exceed the values of the maximal bias α ♯ K (Thm 3.12).For any bias α the maximal domain K * α can be constructed explicitly as the union of intersections of closed affine half-spaces.For any domain K the maximal bias α ♯ K can be approximated numerically via sampling or via the inscribing polytope associated with Φ. Introduction The main practical component of the paper comprises two algorithmic constructions of biases that approximate the maximal bias α ♯ K from the theorem above in different situations. Introduction These can be used to study and effectively control the injectivity behavior of a ReLU layer in practice.Moreover, using the duality concept from frame theory we derive inversion formulas for injective ReLU layers that can be implemented easily as locally linear operators. Related work The approach in classical phase-retrieval in R n by Balan et al. in [3] was decisive for the idea of characterizing the injectivity of a ReLU layer in terms of a property of the associated frame.The same approach is taken by Alharbi et al. to study the recovery of vectors from saturated inner measurements [2].In a machine learning context, Puthawala et al. Related work have introduced the notion of directed spanning sets in [26] as an equivalent concept to the admissibility condition by Bruna et al. in [8] to characterize a ReLU layer to be injective on R n .While the primary goal in [26] is the study of globally injective ReLU-networks on R n , and the one in [8] [24]. Outline The paper is divided into four sections.In Section 2, we introduce α-rectifying frames as a characterizing family of frames that are associated with ReLU layers that are injective on a given input domain and discuss fundamental properties that are crucial for applications. Outline In Section 3, we study the interplay of input domain and bias vector and derive a maximal domain and a maximal bias such that the associated ReLU layers become critically injective.This leads to two further characterizations of injectivity.Moreover, we present two methods to approximate the maximal bias and provide algorithmic solutions to apply them in practice.Section 4 is dedicated to explicit reconstruction formulas for injective ReLU layers and a brief local stability analysis of the recovery map. Frames and the Injectivity of ReLU Layers When applying a matrix C ∈ R m×n to a vector x ∈ R n we can reconstruct x if and only if the collection of row vectors of C spans R n .Frame theory offers a definition of a spanning set that allows us to quantify "how good" it spans R n .So, throughout this paper, we denote a collection of m vectors by Φ = (ϕ i ) i∈I ⊂ R n , using index sets I with |I| = m ≥ n.Then, Φ is a frame for R n if there are constants 0 < A ≤ B, called the frame bounds of Φ, such that Frames and the Injectivity of ReLU Layers for all x ∈ R n [10].For J ⊆ I, we denote by Φ J = (ϕ i ) i∈J the sub-collection of Φ with respect to the index set J. Any frame with m = n is a basis and we will always assume that Φ does not contain the zero vector.It is easy to see that ( 4) is equivalent to Φ being a spanning set and that the frame bounds A, B reflect the numerical stability properties of the representation of x under Φ.The analysis operator associated with Φ is given as Frames and the Injectivity of ReLU Layers mapping a vector x to its frame coefficients as discussed in the introduction.So finally, we have that Φ is a frame, if and only if C is injective.Together with the assumption on the input domain mentioned in the introduction, this motivates to define a ReLU layer as follows. Frames and the Injectivity of ReLU Layers Definition 2.1 (ReLU layer).A ReLU layer associated with a collection of weight vectors Φ = (ϕ i ) i∈I ⊂ R n , a bias vector α = (α 1 , ..., α m ) ⊤ ∈ R m and an input domain K ⊆ R n is defined as the non-linear map given by Frames and the Injectivity of ReLU Layers To encode the injectivity of C α directly in terms of Φ we introduce a family of frames called α-rectifying frames. Alpha-rectifying frames For any given x ∈ K the shift by the bias and the application of the ReLU function on the frame coefficients act as a thresholding mechanism that neglects all frame elements ϕ i where ⟨x, ϕ i ⟩ < α i , rendering them inactive.According to this observation, for x ∈ R n and α ∈ R m we are interested in the index set associated with those frame elements that are active for x and α.We shall denote it by Alpha-rectifying frames Dual to this notion, for i ∈ I and α ∈ R m we denote the closed affine half-space of points where the frame element ϕ i is active by Alpha-rectifying frames The following definition gives the frame theoretic perspective to [26,Definition 1]. Alpha-rectifying frames x is a frame for R n .Figure 1 illustrates the two notions in ( 6) and (7) on the closed unit ball B in R 2 (left, mid), and shows a simple example of an α-rectifying frame (right). Alpha-rectifying frames While many papers only consider ReLU layers without bias vectors and with input on whole R n [26,24], for our approach, bias vectors and the input domain play important roles, and the following basic properties of ReLU layers become crucial.Throughout the paper, for α, α ′ ∈ R m we shall use the notation α ≤ α ′ for α i ≤ α ′ i for all i ∈ I, and α < α ′ for α i < α ′ i for all i ∈ I. Alpha-rectifying frames Figure 1: Illustrations of the notions I α x and Ω α i related to active frame elements on B. The frame (ϕ 1 , ϕ 2 ) in the most right example is α-rectifying on Alpha-rectifying frames Proposition 2.3.Let Φ be α ′ -rectifying on K ′ .The following holds. Alpha-rectifying frames Hence, we are naturally interested in knowing the largest possible domains and biases that allow the α-rectifying property.In Section 3 we prove that indeed one obtains full characterizations of the injectivity of a ReLU layer via a maximal domain and a maximal bias. Alpha-rectifying frames We now present the fundamental connection between the α-rectifying property and the injectivity of C α on K, forming the backbone of this paper.Theorems 2.4 and 2.5 address the two directions separately, each focusing on specific properties of K, thereby generalizing [26,Theorem 2]. Alpha-rectifying frames Recall that a set U is called strictly convex if for all x, y ∈ U and λ ∈ (0, 1), x λ := (1 − λ)x − λy ∈ Ů , where Ů is the interior of U .In particular, Ů ̸ = ∅. Theorem 2.5 (Injectivity of ReLU layers II). Given from which we can deduce that ⟨x, ϕ i ⟩ = ⟨y, ϕ i ⟩ for all i ∈ I β x .By assumption that Φ is α-rectifying, Φ I α Theorem 2.5 (Injectivity of ReLU layers II). Given x is a frame, and since β < α we have that Φ I β x is one, too.It follows that x = y and therefore that C β is injective on K. Theorem 2.5 (Injectivity of ReLU layers II). Given To show the moreover part, let C α x = C α y, for x, y ∈ K. Clearly, ⟨x, ϕ i ⟩ = ⟨y, ϕ i ⟩ (9) for all i ∈ I α x ∩ I α y .We will show that if K is open or convex, then Φ I α Theorem 2.5 (Injectivity of ReLU layers II). Given x ∩I α y is a frame.Let us first consider the case where K is open.We may choose ε > 0 such that the open ball around x, denoted by B • ε (x), is contained in K.When assuming that x ̸ = y then there is δ < 1 with 0 < δ < ε • ∥x − y∥ −1 such that Theorem 2.5 (Injectivity of ReLU layers II). Given Now let i ∈ I α x δ .By the linearity of the inner product, we have the following. Theorem 2.5 (Injectivity of ReLU layers II). Given Therefore, I x δ ⊆ I α x ∩ I α y .By (10), we have that x δ ∈ K and since we assumed Φ Ix δ to be a frame, so is Φ I α x ∩I α y .Now let us assume K to be convex.For λ ∈ (0, 1), Theorem 2.5 (Injectivity of ReLU layers II). Given By the same arguments as above, ( 11) and ( 12) hold for ⟨x λ , ϕ i ⟩, hence I x λ ⊆ I α x ∩ I α y .By assumption, Φ Ix λ is a frame and thereby, Φ I α x ∩I α y is a frame.So for both cases, we can deduce that x = y, hence C α is injective. Theorem 2.5 (Injectivity of ReLU layers II). Given Proof of Theorem 2.5.We prove the claim by counterposition.Assume that Φ is not αrectifying.Then there is x ∈ K such that (ϕ i ) i∈I α Theorem 2.5 (Injectivity of ReLU layers II). Given x is not a frame.Hence, there is Theorem 2.5 (Injectivity of ReLU layers II). Given If K is open, for all sufficiently small ε > 0 we have that Theorem 2.5 (Injectivity of ReLU layers II). Given If I α x = I, then (15) already implies C α y + = C α y − , so that C α is not injective on K. To address the case I α Theorem 2.5 (Injectivity of ReLU layers II). Given x ⊂ I, we recall that ⟨x, ϕ i ⟩ < α i holds for all i ∈ I \ I α x .Therefore, we may choose ε sufficiently small, such that y ± ∈ K and Theorem 2.5 (Injectivity of ReLU layers II). Given Observation ( 16) leads to Theorem 2.5 (Injectivity of ReLU layers II). Given According to (15) and ( 17), we derive C α y + = C α y − .Thus, C α is not injective on K. Theorem 2.5 (Injectivity of ReLU layers II). Given Note that if K is strictly convex it contains more than one element and for every z ∈ K where z ̸ = x and λ ∈ (0, 1) with the same assumptions on x as above, Theorem 2.5 (Injectivity of ReLU layers II). Given Using the linearity of the inner product, there is λ sufficiently small such that Theorem 2.5 (Injectivity of ReLU layers II). Given Since K is open and not empty, we can apply the same argument as above with x λ to show that C α is not injective on K. Theorem 2.5 (Injectivity of ReLU layers II). Given This shows that the injectivity of a ReLU layer is contingent upon topological properties of the domain from which the data is drawn.For the cases R n and B r , we have established equivalence, where the former case corresponds to [26,Theorem 2].Since the non-negative ball B + r = B r ∩ R n + is convex but not open or strictly convex, only the direction in Theorem 2.4 holds.In the case of the donut D r,s = B r \ B s , which is not open and not convex, only the first part of Theorem 2.4 holds, i.e., injectivity for strictly smaller biases.In Section 3.1, we give an example of a similar scenario where injectivity fails. Theorem 2.5 (Injectivity of ReLU layers II). Given While the α-rectifying property makes the injectivity of a ReLU layer more accessible, it remains challenging to verify it in practice.In the following, we discuss how specific properties of the frame influence its α-rectifying property, and how to leverage them. Normalized frames It is a simple, yet, crucial observation that we may restrict the α-rectifying property to frames with unit norm vectors by scaling the bias with the norms of the frame elements.In the context of neural networks, normalizing the underlying frame (or the weight matrix in a row-wise manner) is a standard normalization technique [30].We write Φ ⊂ S. Normalized frames The statement follows from the fact that ⟨x, Normalized frames for all x ∈ K. Therefore, we may always assume ∥ϕ i ∥ = 1 for all i ∈ I, which simplifies the problem setting substantially.The norms can be reintroduced at any stage of processing or analysis. Full-spark frames The effect of ReLU can be interpreted as introducing input-dependent erasures in the underlying frame, i.e., losing certain coefficients [16].In this context, the spark of a frame has been shown to be a useful concept.It is defined as the smallest number s ≥ n + 1 of linearly dependent frame elements that one can choose from Φ.In other words, any sub-collection with s − 1 frame elements from Φ is a frame.Frames with s = n + 1 are called full-spark frames. Full-spark frames This family of frames has shown to be maximally robust to erasures [1] which makes the full-spark property interesting for injective ReLU layers in particular.For phase retrieval, it is known that if a full-spark frame has m ≥ 2n−1 elements then the phase-retrieval operator (2) is injective [3].For the ReLU case, knowing the spark of Φ relaxes the condition for a frame to be α-rectifying to a counting argument. Full-spark frames Corollary 2.7.Let Φ be a frame with spark s then Φ is α-rectifying on K if and only if Full-spark frames Although it is an NP-hard problem to verify if a given frame is full-spark, in a numerical setting it is a mild condition that is almost surely satisfied in the presence of randomness.Indeed, if the entries of the frame elements are i.i.d.samples from an absolutely continuous probability distribution, then the associated random frame is full-spark with probability one [1].Since most initialization methods in neural networks are based on i.i.d.sampling schemes, full-spark frames appear naturally in the context of deep learning. Perturbed frames For a bounded domain K the α-rectifying property is robust to perturbation.In particular, small perturbations of an α-rectifying frame result in an α ′ -rectifying frame where α ′ is close to α. Perturbed frames It is known that for any frame Φ there is an arbitrarily small perturbation such that the resulting perturbed frame is full-spark [10].Therefore, we may interpret Lemma 2.8 in the sense that for any α-rectifying frame, there is an arbitrarily close full-spark frame that is α ′ -rectifying with α ′ being arbitrarily close to α. Redundancy One of the central properties of a frame is its redundancy, i.e., the ratio q = m n ≥ 1.For random ReLU layers with i.i.d.Gaussian entries and no bias, it has been studied at which redundancy they become injective on R n asymptotically [26,24].Let p m,n denote the probability that C α with m frame elements in R n and α = 0 is injective then it has been proven that q ≤ 3.3 implies that lim n→∞ p m,n = 0 and q ≥ 9.091 implies that lim n→∞ p m,n = 1.Furthermore, the authors in [24] state the conjecture that there exists a redundancy q ∈ (6.6979, 6.6981) where the transition from non-injectivity to injectivity happens.We will revisit this conjecture in a non-asymptotic setting in the experimental part later in the paper (Section 3.3). Redundancy In a non-random setting, a trivial leverage of redundancy is considering the collection Ψ = (Φ, −Φ) for any given frame Φ. Doubling the redundancy in this symmetric way makes Ψ become 0-rectifying on R n by construction (see Figure 2 left) [8,26,32].In a general deterministic setting, however, it is difficult to establish sufficient conditions for the α-rectifying property only in terms of redundancy as it depends heavily on the geometric characteristics of the frame.As already mentioned in Section 2.3, this is in contrast to the phase-retrieval setting, where a redundancy of q ≥ 2n−1 n , together with a full spark assumption is already sufficient for injectivity.In the ReLU case, it is known that a redundancy of two is necessary when considering α = 0 and K = R n [8].We extend this known result from α = 0 to arbitrary α in the following proposition.Proposition 2.9.Any α-rectifying frame on R n has at least redundancy two. Redundancy Proof.By assuming that the zero vector is not a frame element, we can choose x ∈ R n with ⟨x, ϕ i ⟩ ̸ = 0 for all i ∈ I.We denote Redundancy By the choice of x, the sets I + x and I − x form a disjoint partition of I. Let α ∈ R m and define Redundancy then for all t > t * > 0 we have Redundancy Hence, Redundancy Assuming Φ to be α-rectifying on R n implies that Φ I α u and Φ I α v are frames, i.e., contain at least n elements in particular.Since I α u ∩ I α v = ∅, it must hold that m ≥ 2n.Assuming that the input for a ReLU layer is contained in B r , we find that the necessary redundancy-two condition from Proposition 2.5 breaks.We use boldface notation for bias vectors with constant entries, i.e., r ∈ R m denotes the vector with entries r ∈ R. Redundancy Lemma 2.10.Any normalized frame is (−r)-rectifying on B r .If it is additionally a basis, this is also necessary, i.e., −r is the maximal value. Redundancy Proof.Let x ∈ B r .Since ⟨x, ϕ i ⟩ = ∥x∥⟨ x ∥x∥ , ϕ i ⟩ ≥ −∥x∥ ≥ −r the first statement follows.For the second, let Φ be a basis, then Φ is α-rectifying on B r if and only if for every x ∈ B r it holds that I = I α x .In particular, since −r • Φ ⊂ B r and for every i ∈ I, the maximal choice of the α i is determined by the fact that Redundancy This emphasizes that the choice of the input domain can have a significant impact on the α-rectifying property.The following section will examine this interaction between domain and bias in greater detail and explain how it can be leveraged. Interplay of Domain and Bias In the context of applications, we may find ourselves in a situation where we have provided a trained ReLU layer and wish to ascertain whether it is injective for a specific data set.One way to address this is to verify that the data set in question is contained within a set where we have already established that the ReLU layer is injective.This leads to the following natural question. Interplay of Domain and Bias An alternative approach, building upon the inclusiveness property of ReLU layers (Prop.2.3), is to ascertain that the values of the given bias do not exceed the values of a bias for which we already know that the corresponding ReLU layer is injective.This leads to the dual question to the one above. Interplay of Domain and Bias Answering these questions will provide us with two further characterizations of the αrectifying property in terms of domain and bias, respectively.With this, we obtain alternative ways of verifying the injectivity of the associated ReLU layer.To better understand how bias and domain interact, we point out some basic scaling relations.Lemma 3.1.Let Φ be α-rectifying on K.The following holds. Interplay of Domain and Bias (iii) If 0 ∈ K, then at least n bias values are non-positive. Interplay of Domain and Bias Proof.All properties are easy to see. Interplay of Domain and Bias x is a frame and 0 = ⟨0, ϕ i ⟩ ≥ α i holds for all i ∈ I α x .Since |I α Interplay of Domain and Bias x | ≥ n, the claim follows. Interplay of Domain and Bias Consequently, by either scaling the data or the bias, it may be possible to compensate for situations where a frame is not α-rectifying on K but is on K ′ ⊊ K.The following examples show such compensation through restrictions other than scaling. Interplay of Domain and Bias Example 3.2.A basis can never be α-rectifying on R n for any α.However, the standard basis for R n is 0-rectifying on R n + (Figure 2 mid). 2 )-rectifying on B, but never on R 2 since there will always be cones where only one element is active (lighter areas). Interplay of Domain and Bias Example 3.3.The frame Interplay of Domain and Bias is not α-rectifying on R n for any α since m = 3 < 4 = 2n.However, by a geometric argument (see Figure 2 right), it is easy to see that Φ is Interplay of Domain and Bias is the largest possible value here. Interplay of Domain and Bias This makes clear that it is essential to select the domain carefully if we want to effectively study the injectivity behavior of the associated ReLU layer.This leads us to Question Q1 . Maximal domain We aim to identify the maximal domain K for a frame Φ and a bias α.This provides a characterization of the α-rectifying property from a geometric point of view.Recall that for i ∈ I and α ∈ R m we denote the closed affine half-space where the frame element ϕ i is active for α by Maximal domain Extending the intuition from the example in Figure 1 (right), we find that any frame is α-rectifying on the intersection of sufficiently many Ω α i 's.Restricting to minimal frames, i.e., basis, reveals the characterization.Theorem 3.4 (Maximal domain).Let Φ ⊂ R n be a frame and α ∈ R m .The maximal domain where Φ is α-rectifying is given by Maximal domain In other words, Φ is α-rectifying on K if and only if Maximal domain Figure 3: The dark areas in the left and mid picture indicate the maximal domains K * α for the triangle frame with zero bias (left), and a normalized random frame with random bias (mid).The right illustration corresponds to Example 3.10.We point out how K 2 = {x ∈ K : 2 ∈ J * (x)} looks like, where J * (x) is the most correlated basis for x, see Definition 3.7. Maximal domain Proof.Let x ∈ K. Assuming Φ to be α-rectifying on K, then Φ I α Maximal domain x is a frame.Since (in R n ) every frame contains a basis, there is L ⊆ I α Maximal domain x such that the sub-collection Φ L is a basis.Clearly, ⟨x, ϕ i ⟩ ≥ α i still holds for all i ∈ L, hence, x ∈ K * α .For the converse direction, by definition of Maximal domain x , it follows that Φ I α x is a frame. Maximal domain Using Theorem 3.4 we find that any normalized frame Φ ⊂ S is α-rectifying on the closed ball B r if and only if r ≤ inf Maximal domain Another consequence of the theorem, together with (ii) of Lemma 3.1 is that Φ is 0-rectifying on B r if and only if Φ is 0-rectifying on R n .Hence, in this setting, checking a small neighborhood around the origin is already sufficient for the entire space.Note that the implication does not hold for α < 0. We refer to Example 3.3 for an example. Maximal domain The characterization in Theorem 3.4 further allows extending the implication from the α-rectifying property to the injectivity of C α (Theorem 2.4) to domains that are not open or convex, such as the sphere S, the donut D r,s , and discrete data sets. Maximal domain Note that, in general, the set K * Maximal domain α is neither open nor convex.We can use this to demonstrate that a violation of the assumptions on K in Theorem 2.4 (i.e., not open and not convex) indeed leads to the conclusion that C α is not injective. Maximal domain Example 3.6.Consider the frame Φ 3 defined in Example 3.3, and look at Maximal domain (see Figure 3 left).For α = 0 we have that Maximal domain A similar example can be constructed for the standard basis in R n , α = 0, and K = B + r .See Figure 2 (mid) for an illustration in R 2 .The geometric intuition from the construction of the maximal domain reveals a natural trade-off to the bias vector, where Maximal domain This should serve as the linking idea to the fact that finding a maximal bias for the αrectifying property can reveal another perspective to Theorem 3.4.With this, we proceed to answer Question Q2 . Maximal bias We aim to construct a maximal bias for a given frame Φ and domain K.This provides a characterization of the α-rectifying property which is particularly suitable for verifying it in applications as it is straightforward to implement numerically.Our approach to this is to decompose a frame Φ into sub-frames with highly correlated frame elements and identify the smallest analysis coefficients among all points x ∈ K associated with these sub-frames.We present two approaches for such a decomposition.Approach A is based on finding the n most correlated elements of Φ for each x ∈ K.It allows us to identify the maximal bias and with this the characterization of the α-rectifying property of Φ under reasonable assumptions.Approach B, first introduced in [17], is based on the vertex-facet configuration of the inscribing polytope associated with Φ.It gives a geometrically intuitive sufficient condition for the α-rectifying property of Φ but yields the maximal bias only in special situations.Algorithmic solutions are provided along with the theoretical results. Approach A: Most correlated bases The construction of the maximal bias is based on the idea of finding the least correlated frame element in the most correlated basis among all x ∈ K. Approach A: Most correlated bases Definition 3.7.Let Φ be a frame and x ∈ K.We call Φ J * (x) a most correlated basis for x if J * (x) ⊆ I satisfies that for all J ⊆ I such that Φ J is a basis it holds that Approach A: Most correlated bases We say that Φ includes a unique most correlated basis everywhere if J * (x) is unique for every x ∈ K. Approach A: Most correlated bases To give an illustration, in the setting of Example 3.6 we have that J * (x 1 ) = {1, 3} and J * (x 2 ) = {1, 2}.Alternatively, we may interpret the condition in (26) in the sense that J * (x) maximizes the functional Approach A: Most correlated bases As a preliminary stage, we construct a maximal constant bias.This construction is similar to the one for the critical saturation level in [2]. Approach A: Most correlated bases Proposition 3.8.Let Φ be a frame and K ⊆ R n .The maximal constant bias for Φ and K is given by α c with Approach A: Most correlated bases In other words, Φ is r-rectifying on K if and only if r ≤ α c . Approach A: Most correlated bases Proof.First, we show that Φ is α c -rectifying on K. Let x ∈ K then there is a basis Φ J(x) such that for all j ∈ J(x) ⟨x, Approach A: Most correlated bases To construct a (non-constant) maximal bias vector we restrict ourselves to frames that include a unique most correlated basis everywhere.Similar to the full-spark assumption, this is a mild condition in a numerical setting since for any frame there is an arbitrarily small perturbation such that the resulting perturbed frame includes a unique most correlated basis everywhere (c.f.Lemma 2.8).If the frame is full-spark then the most correlated basis for x is given by the collection of the n frame elements which have the largest frame coefficients with x.A random frame fulfills this condition with probability one.Under this assumption, we can partition K uniquely into subsets that are associated with a frame element that belongs to a most correlated basis.For every i ∈ I we denote the corresponding set by Approach A: Most correlated bases Since every x ∈ K has a most correlated basis i∈I K i = K indeed holds.The right picture in Figure 3 illustrates the set K i in R 2 , and the right plot in Figure 4 illustrates the decomposition of S in R 3 into K i 's.By minimizing the frame coefficients of x ∈ K i similar to (28) we indeed obtain a bias such that Φ possesses the α-rectifying property but it is in general not maximal. Approach A: Most correlated bases Proposition 3.9.Let Φ be a frame that includes a unique most correlated basis everywhere, and let K ⊆ R n .If α ♭ K is given as Approach A: Most correlated bases Note that if K i is empty then ϕ i is never contained in a most correlated basis.This means that ϕ i is irrelevant for the α-rectifying property of Φ, i.e., the corresponding bias can be chosen arbitrarily large without affecting it.We shall exclude these cases from the estimation for a maximal bias. Approach A: Most correlated bases Moreover, although α ♭ K gives a simple and intuitive indication of the critical bias, there is still room for increasing this bias while maintaining the α-rectifying property.Instead of minimizing over K i as in Proposition 3.8, we shall minimize over the set of all points x such that i ∈ J * (x) and no element outside the most correlated basis is active for x and α ♭ K .This set is given as Approach A: Most correlated bases Since K ♯ i is a subset of K i the bias values that we get from minimizing over the K ♯ i will be larger than the ones of α ♭ K .However, note that if Approach A: Most correlated bases then whenever ϕ i belongs to the most correlated basis for x, there is additionally another active frame element from outside the most correlated basis.Similarly to when K i = ∅, the frame element ϕ i can then be interpreted as being redundant in the sense that it can be completely removed from Φ while preserving the α-rectifying property.We give an example of such a pathological situation. Approach A: Most correlated bases Example 3.10.For the frame Approach A: Most correlated bases and K = B we have that α ♭ B = 0 and Approach A: Most correlated bases The right picture in Figure 3 shows this setting.For every x ∈ K 2 there is an element outside the most correlated basis that is additionally active.It follows that K ♯ 2 = ∅.Hence, ϕ 2 is redundant for the α-rectifying property of Φ. Approach A: Most correlated bases Hence, to guarantee that a maximal bias exists we shall assume K ♯ i ̸ = ∅ for all i ∈ I. Definition 3.11.We call K ⊆ R n to be bias-exact for Φ if K ♯ i ̸ = ∅ for all i ∈ I, where K ♯ i is defined as in (32). Approach A: Most correlated bases The following theorem contains the main result on the maximal bias and represents the counterpart to Theorem 3.4 on the maximal domain. Approach A: Most correlated bases Theorem 3.12 (Maximal bias).Let Φ be a frame that includes a unique most correlated basis everywhere and K ⊆ R n be bias-exact for Φ.The maximal bias for Φ and K is given by α Approach A: Most correlated bases In other words, Φ is α-rectifying on K if and only if α ≤ α ♯ K . Approach A: Most correlated bases Proof.For the converse direction, we have that ⟨x, ϕ j ⟩ ≥ (α ♯ K ) j for all j ∈ J * (x) and x ∈ K ♯ j ̸ = ∅.Since Φ J * (x) is a basis, Φ is α ♯ K -rectifying on K.We show the implication direction by counterposition.Let i ∈ I and assume that Φ is α-rectifying on K where α is given by α i = (α ♯ K ) i + ε for some ε > 0 and α j = (α ♯ K ) j for j ̸ = i.By definition of the infimum in (33), the set K ♯ i (32), and the construction and uniqueness of the most correlated basis (27) there is Approach A: Most correlated bases for all j / ∈ J * (x 0 ).This implies that the active coordinates for x 0 and α are exactly given by Approach A: Most correlated bases As a consequence, Φ I α x 0 is not a frame.Therefore, Φ is not α-rectifying on K i , finishing the proof. Approach A: Most correlated bases Note that while assuming uniqueness of the most correlated basis everywhere is natural in the numerical setting, it excludes frames that exhibit certain symmetries, such as the frame from Example 3.10.In such a case, the computations of the biases in (31) and (33) will in general depend on the choice of the most correlated basis and therefore give ambiguous results.By including a condition that chooses one of the most correlated bases, Proposition 3.9 and Theorem 3.12 can also be formulated without the uniqueness everywhere assumption.We will not pursue this idea here. Approach A: Most correlated bases Summarizing, Proposition 3.9 provides a simple and intuitive sufficient condition for the α-rectifying property on K via the bias vector α ♭ K .On the other hand, Theorem 3.12 provides a full characterization via the more complicated bias vector α ♯ K under some additional assumptions that are difficult to check in practice.In fact, except for special situations, it is unclear how to compute both of the presented bias vectors explicitly.To implement the construction of a bias for verifying injectivity in applications, we therefore present an algorithmic approach that computes α ♭ X N for a finite sampling set X N ⊂ K as an approximation for α ♭ K . Approach A: Most correlated bases Algorithmic solution for Approach A. We show how α ♭ K can be approximated numerically via sampling.Let X N = (x k ) N k=1 ⊂ K be a sequence of N samples in K.By iteratively updating the values of the bias estimation corresponding to the most correlated basis of the current sample as in Proposition 3.9, we obtain an approximation of α ♭ K through the sampling set X N .To measure the sampling error quantitatively, we use the Euclidean covering radius (or "mesh norm") of X N for K [13], defined by Approach A: Most correlated bases Theorem 3.13 (Sampling-based Bias Estimation).Let X N = {x i } N i=1 ⊂ K and Φ ⊂ S be a normalized full-spark frame.Choose α (0) ∈ R m and iteratively define for all 1 ≤ k ≤ N and i Approach A: Most correlated bases Then Φ is α (N ) -rectifying on X N .Moreover, Φ is (α (N ) − ρ(X N ; K))-rectifying on K. Approach A: Most correlated bases If the elements in Φ are not normalized, we can extend the statement above by including the norms w = (∥ϕ i ∥) i∈I , obtaining that Φ is (α (N ) − ρ(X N ; K) • w)-rectifying on K.If the frame elements of Φ lie in K, a good initialization is starting the bias estimation with the frame elements themselves as samples.Otherwise, we may set (α (0) ) i = ∞ for all i ∈ I. Approach A: Most correlated bases Proof of Theorem 3.13.Let x ∈ K, then there is Approach A: Most correlated bases By rearranging (37) it follows that ⟨x, ϕ j ⟩ ≥ (α (N ) ) j − ρ(X N ; K).We deduce that I α (N ) Approach A: Most correlated bases for all x ∈ K. Clearly, Φ is α (N ) -rectifying on X N by construction.Using (37), the second claim follows immediately. Approach A: Most correlated bases Implementing the algorithm described in Theorem 3.13 can be done via a Monte-Carlo approach, where X N is a collection of N random samples on K w.r.t.some probability measure on K, see Appendix C1.We demonstrate numerical experiments in Section 3.3.Intuitively, we want a measure that guarantees a small covering radius ρ(X N ; K) for large N , such that α (N ) converges to α ♭ K in probability.The uniform distribution on B r is a possible example.If X N are i.i.d.uniform samples on S the expectation of ρ(X N ; S) is given by Approach A: Most correlated bases The above estimate and more explicit tail-bound estimates for the probability distribution of ρ(X N ; S) are derived in [28].Unfortunately, this indicates that in high dimensions it becomes infeasible to handle the covering radius only by increasing the number of test samples N . Approach A: Most correlated bases Hence, it appears necessary to construct the sampling sequence X N in a more structured way, e.g., by quasi Monte-Carlo methods [7], or by sampling directly from the distribution of the dataset.With the latter approach, the number of sampling points for a good approximation of α ♭ K can potentially be reduced, and the injectivity of the ReLU layer is ensured on a domain that is tailored to the dataset. Approach B: Facets of the inscribing polytope We obtain another natural decomposition of Φ into sub-frames with high correlation via the convex polytope that arises from taking the convex hull of the set of all elements in Φ [17].This so-called inscribing polytope of Φ [29] is given by Approach B: Facets of the inscribing polytope Any non-empty intersection of P Φ with an affine half-space such that none of the interior points of P Φ (w.r.t. the induced topology on P Φ ) lie on its boundary is called a face of P Φ [33].The 0-dimensional faces of P Φ are known as vertices and the (n − 1)-dimensional faces are called facets.Assuming normalized frames here (Φ ⊂ S) the set of vertices of P Φ always coincides with the set of frame elements of Φ.Note that this is generally the case if the elements in Φ lie in a strictly convex set.Moreover, every facet is a convex polytope where the vertices coincide with a sub-collection of Φ, and every element occurs as a vertex at least once.We refer to Figure 5 for an illustration in R 3 .For a facet F , we denote the index set corresponding to its vertices by Approach B: Facets of the inscribing polytope The following property is key, stated and proven in [17]. Approach B: Facets of the inscribing polytope Lemma 3.14.Let Φ be a frame and F be a facet of P Φ .If 0 / ∈ F , then Φ I F is a frame. Approach B: Facets of the inscribing polytope This ensures that the facets of P Φ provide a natural decomposition into sub-frames Φ I F of Φ.Moreover, for any facet F , there is a ∈ R n , a ̸ = 0 and b ∈ R such that F = {x ∈ P Φ : ⟨a, x⟩ = b}, and therefore, Approach B: Facets of the inscribing polytope Hence, the vertices of any facet are a frame that is highly correlated to all points "close" to the facet.In particular, Φ I F is the most correlated basis for the normal vector a.Now, analog to the decomposition of K using most correlated bases (30) we can decompose K into facet-specific subsets F K j , each associated with a facet F j of P Φ (according to some enumeration of the facets).A natural and practical approach in this setting is a decomposition into conical caps resulting in Approach B: Facets of the inscribing polytope Figure 4 shows the facets F j of the inscribing polytope (left), and the decomposition of S into spherical caps F S j (mid) for a i.i.d.randomly generated frame Φ with elements on S. While the facets provide a very intuitive and simple decomposition into sub-frames, the decomposition via the most correlated bases minimizes the correlation directly. Approach B: Facets of the inscribing polytope To guarantee that K = j F K j and that 0 does not lie on any of the facets (requirement for using Lemma 3.14) we have to assume that 0 lies in the interior of P Φ (w.r.t. the topology in R n ).The property of Φ that ensures this was introduced in [5, Definition 1], where Φ is called omnidirectional.Equivalently, we can say that there is no half-space containing all elements of Φ, which can be easily verified numerically via convex optimization, see the appendix in [5].Moreover, every non-omnidirectional frame can be made omnidirectional by including a vector constructed as the negative normalized mean of all frame elements, see Appendix B. Approach B: Facets of the inscribing polytope Remark.The construction of the F K j using cones and the assumption of omnidirectionality are natural if K is centered around the origin.In other situations, one might want to come up with alternative constructions of F K j and a different notion of omnidirectionality that are more suited to the geometry K.In this work, we restrict ourselves to the described setting. Approach B: Facets of the inscribing polytope Assuming omnidirectionality, we can use Lemma 3.14 to identify the minimal analysis coefficient ⟨x, ϕ i ⟩ that can occur for any x contained in any F K j that contains ϕ i .This guarantees that for any x ∈ F K j the sub-frame Φ I F j is active.Following [17], the procedure is called polytope bias estimation (PBE).The following theorem generalizes the results in [17] from B r and B + r to general bounded K. Theorem 3.15 (Polytope Bias Estimation).Let Φ ⊂ S be a normalized omnidirectional frame and Approach B: Facets of the inscribing polytope Proof.Since Φ is omnidirectional, for any x ∈ K there is a facet F j such that x ∈ F K j .It follows from (42) that ⟨x, ϕ i ⟩ ≥ α ∆ K i for all i ∈ I F j .By Lemma 3.14, Φ I F j is a frame, hence, Φ is α ∆ K -rectifying on K. Approach B: Facets of the inscribing polytope Figure 5: For the Icosahedron frame we have that x ∈ F j ⇔ I F j = J * (x) (left).For less regular frames, this does not hold anymore (mid).The right picture illustrates the PBE on B for the Icosahedron frame.To get α ∆ B 2 the infima are taken over the points in the conical parts (dark gray area) for all adjacent facets of ϕ 2 (blue).This procedure naturally takes the geometry of the frame into account and provides an intuitive way of estimating a large bias vector such that the frame becomes α-rectifying.Note, however, that in general this only yields a sufficient condition.A special case where it is also necessary is discussed in Lemma 3.17.In the following, we demonstrate how the PBE simplifies for specific concrete situations. Approach B: Facets of the inscribing polytope Algorithmic solution for Approach B. The advantage of the PBE is that for simple standard domains K it is easy to compute α ∆ K via linear programs.In the following proposition, we formulate the PBE for five prototypical domains.We provide a detailed discussion and corresponding pseudo-code for implementing the corresponding optimizations in Appendix C. Proposition 3.16.Let Φ ⊂ S be a normalized omnidirectional frame.The following holds. Approach B: Facets of the inscribing polytope (i) Φ is α ∆ Φ -rectifying on the boundary of the polytope ∂P Φ = j F j with α ∆ Φ given by Approach B: Facets of the inscribing polytope (ii) Φ is α ∆ S -rectifying on the sphere S with α ∆ S given by Approach B: Facets of the inscribing polytope The inner minima are the solutions of convex linear programs.In particular, they are equal to α ∆ Φ i whenever they are non-negative. Approach B: Facets of the inscribing polytope (iii) Φ is (r −1 • α ∆ B )-rectifying on the donut D r,s for 0 ≤ s < r with α ∆ B given by Approach B: Facets of the inscribing polytope The case s = 0 yields a bias estimation for the closed ball B r (Figure 5). Approach B: Facets of the inscribing polytope (iv) Let J + = {j ∈ I : Approach B: Facets of the inscribing polytope )-rectifying on the non-negative part of the ball B + r with α ∆ B + given by Approach B: Facets of the inscribing polytope where Approach B: Facets of the inscribing polytope Proof.The points (i) − (iv) are direct consequences of [17,Theorem 4.4 and Theorem 4.6], Approach B: Facets of the inscribing polytope where detailed proofs can be found.To show (v), note that (s • ϕ i ) i∈I has the same combinatorial facet structure as Φ and therefore it is still omnidirectional.In particular, ( Bs ) c = {x = sty : y ∈ S, t ≥ 1}. Approach B: Facets of the inscribing polytope The statement follows by ⟨sty, ϕ i ⟩ ≥ s • α ∆ Φ i for t ≥ 1 and s ≥ 0. Other than the Monte-Carlo sampling-based approach, this bias estimation procedure yields a deterministic sufficient condition for the α-rectifying property, which is necessary only in special situations.In general, there are two properties of the inscribing polytope P Φ that affect the PBE in a way that the estimated biases become smaller. Approach B: Facets of the inscribing polytope (1) The more vertices a facet has, the smaller the infima in (42) become.In the case where all facets have the minimal number of n vertices, P Φ is called simplicial.It is known that a polytope with vertices that are i.i.d.uniform samples on S is simplicial with probability one [9]. Approach B: Facets of the inscribing polytope (2) The decomposition of K using cones in ( 41) is natural and convenient for implementation, but leads to a sub-optimal partition if P Φ is geometrically very irregular, i.e., the sizes of the facets are significantly different.In such a scenario, for x ∈ F K j where F j is a very large facet, there might be a smaller neighboring facet F k which provides larger analysis coefficients for x and, hence, a better estimation.For an illustration of such a situation see the center plot in Figure 5. Approach B: Facets of the inscribing polytope For frames with inscribing polytopes that are simplicial and regular, we can show that the PBE indeed yields a maximal bias.We set K = S. Lemma 3.17.Let Φ ⊂ S be a normalized omnidirectional frame such that P Φ is simplicial and for all i ∈ I it holds that ⟨ϕ i , ϕ k ⟩ = ⟨ϕ i , ϕ ℓ ⟩ for all ϕ k , ϕ ℓ sharing a facet with ϕ i .Then Φ is α-rectifying on S if and only if α ≤ α ∆ S . Approach B: Facets of the inscribing polytope Proof.The converse direction directly follows from Theorem 3.15.We show the implication direction by counterposition.At first note that the regularity condition implies that α ∆ S is constant.Let α ∈ R m be such that α i > α ∆ S i for fixed i ∈ I.There is a facet F with i ∈ I F and x * ∈ F S satisfying ⟨x * , ϕ i ⟩ = α ∆ S i < α i .By regularity, it follows that I α x * = I F \ {i}.Since P Φ is simplicial Φ I F \{i} is not a frame, hence, Φ is not α-rectifying on S. Approach B: Facets of the inscribing polytope Examples for this are frames whose inscribing polytopes are convex regular polytopes in R n .In a more general sense, we expect the PBE to be very effective for frames with evenly distributed frame elements. Approach B: Facets of the inscribing polytope Remark.The two bias estimation procedures described in Approach A and B are fundamentally linked.For each facet F of P Φ the hole radius of F is defined as the Euclidean distance from the boundary to the center of its spherical cap F S (41).The Euclidean covering radius (35) of Φ for S is the largest hole radius among all facets [31]. Numerical experiments For a given sampling sequence X N and a full-spark assumption on Φ, the numerical implementation of the sampling-based bias estimation in Theorem 3.13 is straightforward.Similarly, there are convex hull algorithms available, such that the implementation of the cases of the PBE from Proposition 3.16 is straightforward, too.Besides the pseudo-code found in the appendix, we provide concrete implementations in Python, together with the code for reproducing all experiments in this section in the accompanying repository https://github.com/danedane-haider/Alpha-rectifying-frames. Evolution towards injectivity (Approach A) We demonstrate the basic functionality of the Monte-Carlo sampling-based algorithm.For this, we choose the frame Φ and the sampling sequences X N to consist of i.i.d.uniform samples on B. For every step in the approximation of α ♭ B we measure the proportion of samples from an unseen test sampling sequence Y M (also i.i.d.uniform on B), for which Φ is α (k) -rectifying.Figure 6 shows the empirical mean and variance over 1000 independent trials of this procedure for two different dimensions, n = 3 (left) and n = 30 (right), and three different redundancies (2, 3.3, and 9), respectively.We observe that in some configurations the associated ReLU layer is injective already after a few hundred iterations.In others, it takes up to 1000 iterations.It is especially fast for ReLU layers in low dimensions with low redundancy.This can be explained by the fact that for draws of Φ which yield very unevenly distributed points on B (which happens more likely in high dimensions with high redundancy) the iterative scheme struggles to update α (k) efficiently, which results in the procedure taking particularly long.In general, all tested examples became injective reliably. Effect of redundancy (Approach A) We use approximations of α ♭ B to verify the injectivity of ReLU layers with random weights and biases systematically for different redundancies.Thereby, we numerically verify the conjecture stated in [24] that the transition from non-injectivity to injectivity happens at a redundancy q ∈ (6.6979, 6.6981) in a non-asymptotic setting.We let both, the frame Φ and the sampling sequence X N contain i.i.d.standard normal points and compute α (N ) with N = 5 • 10 5 for all redundancy settings where 2 ≤ n ≤ 30 and n ≤ m ≤ 150.By Theorem 3.13, we know that for every setting Φ is α (N ) -rectifying on X N .Inspired by the asymptotic expression for the covering radius in (38), we subtract a correcting term of ρ * (n, N ) = 0.05 • log(N ) N 1 n to compensate for insufficient amount of sampling in higher dimensions.This yields that for every setting we have that Φ is α (N ) − ρ * (n, N ) -rectifying on B with high probability.The factor 0.05 was chosen experimentally. Effect of redundancy (Approach A) To test if the ReLU layer associated with one of the realizations of Φ is injective for a given bias α we have to verify that α ≤ α (N ) − ρ * (n, N ).We compare three settings for biases with i.i.d.normal values with mean zero and variances, Effect of redundancy (Approach A) Figure 7 shows the results for the three settings from left to right.Setting (i) is the one where the conjecture in [24] was formulated.Looking at the solid magenta line in Figure 7 (left) we can observe that our method is capable of numerically reproducing the conjecture.On the injectivity of random ReLU layers with non-zero bias, there are no theoretical results in the literature so far.Hence, our approach yields some novel insights here.For small variance (Setting (ii)) we observe that the clear boundary from the previous setting blurs out.For the standard variance in setting (iii) this behavior further intensifies.Note that an according change of the variances in the distribution of Φ or X N instead gives the same result.These observations show that the way the bias in a ReLU layer is initialized has a big influence on its injectivity. Approximation of the maximal bias (Approach A & B) In the setting of Lemma 3.17 we have shown that the PBE yields a maximal bias.This allows us to study the approximation of the sampling-based approach to the maximal bias For values of one (yellow), the ReLU layer is injective on B. In all settings, the samples in X N are i.i.d.standard normal and the bias i.i.d.normal with different variances.From left to right: σ 2 = 0, σ 2 = 0.1, and σ 2 = 1.For σ 2 = 0 we observe the clear transition from non-injective to injective at a redundancy of 6.7 (solid magenta line) that aligns well with the conjecture from the literature.For larger variance, the transition blurs out quickly and prevents us from predicting clear statements about injectivity. Approximation of the maximal bias (Approach A & B) α S by the PBE over the iterations.Figure 8 shows this in the example of the Tetrahedron frame, where the PBE yields that α S = 1 √ 3 .We plot ∥α (k) − α S ∥ as k increases and find that the approximation is very slow, which emphasizes the superiority of the polytope approach in this setting. Remarks on the limitations Not surprisingly, both algorithms suffer from high dimensionality.For the sampling-based approach, the asymptotic behavior of the covering radius (38) indicates that it may become infeasible to reach a good approximation of α ♭ K only by increasing the number of samples.Yet, with some experimenting on the factor, we can use expression (38) to effectively compensate for insufficient sampling in high dimensions.It has particularly high potential when injectivity is only required on specific data points of interest.In such a situation, the sampling set can be constructed in a custom data-driven way that respects the distribution of the data. Remarks on the limitations For the polytope bias estimation, the numerical computation of the convex hull to obtain the vertex-facet relations becomes infeasible in high dimensions.A possible remedy is to use dimensionality reduction and do the bias estimation in a lower dimensional space.The benefits of the method are that injectivity follows deterministically and that it comes with a lot of intuition an can be studied further using more advanced tools from convex geometry. Remarks on the limitations With this, we conclude the part of the paper that is concerned with the analysis of the injectivity of a ReLU layer.The last chapter is dedicated to the reconstruction of the input from the output of an injective ReLU layer.k) to the maximal bias of the Tetrahedron frame α S on a log y-scale over 10 5 iterations.In cases where the inscribing polytope is a simplicial and regular polytope, the sampling-based bias estimation is sub-optimal, and the polytope approach already gives the maximal bias. Duality and Reconstruction If a ReLU layer C α is injective, there is an inverse mapping that can infer any input from the output.This extends to the possibility of synthesizing new data that correspond to arbitrary coefficient vectors in the image of the ReLU layer, or studying the connection of single weights to the input by perturbing the corresponding output coefficient, thereby being able to interpret the output values. Duality and Reconstruction In [2], the authors propose to reconstruct the input from its saturated frame coefficients via a custom-modified version of the frame algorithm [11].This idea can also be adapted to ReLU layers.Our main focus lies on another approach, where we propose to construct explicit perfect reconstruction formulas in the form of locally linear operators. ReLU-synthesis First, we recall the concept of a dual frame, which is closely tied to two operators.The first one is the synthesis operator which maps the frame coefficients back to the input space as ReLU-synthesis The application of this operator is realized via the multiplication by the transpose of the analysis matrix from the left, D = C ⊤ .The second operator arises as the concatenation of analysis, followed by synthesis, also known as the frame operator, ReLU-synthesis In matrix notation, S = DC.The frame operator is positive and self-adjoint, and if Φ is a frame, it is additionally invertible.Hence, one can write any x ∈ R n as ReLU-synthesis The collection Φ = (S −1 ϕ i ) i∈I is called the canonical dual frame for Φ.Denoting the synthesis operator associated with Φ by D, then Equation ( 44) is equivalent to ReLU-synthesis In other words, D is a left-inverse of C (given by the pseudo-inverse of C) [10].This can be thought of as reconstructing x from its frame coefficients using the canonical dual frame Φ. ReLU-synthesis If Φ is redundant (m > n), there are infinitely many different possibilities of constructing a left-inverse of C. All of them can be interpreted as the synthesis operator of a (noncanonical) dual frame.Using this machinery, we can define a reconstruction operator for C α analogously to (45).Note, however, that unless I α x ̸ = I for all x ∈ K, there is not one reconstruction operator for all x ∈ K. Definition 4.1.The ReLU-synthesis operator associated with the collection Φ = (ϕ i ) i∈I ⊂ R n , the bias α ∈ R m , and the index set J ⊆ I is defined by ReLU-synthesis Note that R m is fixed as domain, the sum, however, runs over the index set J. When using the ReLU-synthesis operator associated with a dual frame of Φ J we obtain a reconstruction formula in the spirit of (45).Theorem 4.2 (ReLU-dual I).Let Φ be α-rectifying on K for α ∈ R m and choose x 0 ∈ K. Let Φ I α x 0 = ( φi ) i∈I α x 0 be any dual frame for Φ I α x 0 , and Dα ReLU-synthesis the associated ReLU-synthesis operator.Then for all x ∈ K such that I α x 0 ⊆ I α x it holds that ReLU-synthesis Proof.For x ∈ K with I α x 0 ⊆ I α x , the operator composition in (47) reduces to the usual frame decomposition with Φ I α x 0 , Dα ReLU-synthesis The condition I α x 0 ⊆ I α x for a reference vector x 0 ∈ K means that we may use the same left-inverse Dα I α x 0 for all input elements x that share at least all active elements with Φ I α x 0 .By re-writing the condition on the level of index sets, we can alternatively choose a reference sub-space via an index set J instead of fixing a reference vector x 0 .Corollary 4.3 (ReLU-dual II).Let Φ be α-rectifying on K for α ∈ R m and choose J ⊆ I such that Φ J is a frame.Let ΦJ be a dual frame for Φ J and Dα J the associated ReLU-synthesis operator.Then for all x ∈ K with J ⊆ I α ReLU-synthesis x it holds that Dα J C α x = x.The approach in the above corollary is particularly useful in the context of the bias estimation procedures described in Section 3.2: Given a decomposition of Φ into sub-frames, either by all different most correlated bases or via the facets of P Φ , we can compute all associated left-inverses in advance and use them for reconstruction on demand.More precisely, for every x ∈ K there is a sub-frame associated with a most correlated bases J * (x) such that Dα J * (x) is a left-inverse of C α .Similarly, if Φ is omnidirectional, then for every x ∈ K there is a facet F such that Dα I F is a left-inverse of C α .In both cases, there are only finitely many such sub-frames.Summarizing, we have the following. ReLU-synthesis Corollary 4.4.Let Φ be α-rectifying on K.For any x ∈ K there is J ⊆ I such that Dα J is a left-inverse of C α . ReLU-synthesis The numerical implementation of the ReLU-synthesis is straightforward when using canonical duals of the sub-frames Φ J .A detailed discussion and corresponding pseudo-code can be found in Appendix C. Excursion: Reconstruction from PReLU layers There are various modifications of the ReLU activation function, one of them being the parametrized ReLU, or PReLU, given by PReLU γ = max(γs, s) with 0 < γ ≤ 1 [18].As this is an injective activation function, the associated PReLU layer with weights given by Φ and any bias α is injective if and only if Φ is a frame.In this case, for any x ∈ K we obtain a left-inverse of the PReLU layer by Excursion: Reconstruction from PReLU layers where Φ = ( φi ) i∈I is any dual frame for Φ. The frame algorithm for ReLU layers The frame algorithm is an iterative scheme that constructs a sequence of vectors in R n from given frame coefficients (⟨x, ϕ i ⟩) i∈I that converges to the input x exponentially fast [11].This sequence (y k ) ∞ k=0 is defined as y 0 = 0 and The frame algorithm for ReLU layers for k ≥ 0. Letting A, B be the optimal frame bounds for Φ then for 0 < λ < B 2 we have for all k ≥ 0 that ∥x − y k+1 ∥ ≤ κ λ ∥x − y k ∥, where κ λ = max{|1 − λA|, |1 − λB|}.Note that the optimal value for the parameter λ is 2 A+B .In practice, the frame algorithm is a great tool to do reconstruction in situations, where computing the exact solution with the canonical dual (or any dual) frame becomes too expensive. The frame algorithm for ReLU layers Clearly, the procedure can be directly applied for the reconstruction of x from the output of a ReLU layer by reducing the sum in (49) to run only over I α The frame algorithm for ReLU layers x (the active frame elements).To see that this is really what we want, note that for all i ∈ I α The frame algorithm for ReLU layers x we have ⟨x, ϕ i ⟩ = ReLU(⟨x, ϕ i ⟩ − α i ) + α i .Therefore, the differences in the sum in (49) over I α The frame algorithm for ReLU layers x are indeed taken between the values of the unbiased output of the ReLU layer and ⟨y k , ϕ i ⟩.Hence, if our frame Φ is α-rectifying on K then for any x ∈ K we obtain a ReLUreconstruction sequence (y k ) ∞ k=0 that satisfies ∥x − y k+1 ∥ ≤ κ x,λ ∥x − y k ∥ for all k ≥ 0, where κ x,λ = max{|1 − λA x |, |1 − λB x |}, and A x , B x are the optimal frame bounds for Φ I α The frame algorithm for ReLU layers x .However, we can do better than this.Following the idea in [2], we can extend the frame algorithm by using the bias values α i for all inactive frame elements as a proxy for the lost frame coefficients.This gives an algorithm that always outperforms the naive approach in the setting where we use the optimal parameter for the full frame.Proposition 4.5 (ReLU frame algorithm).Let Φ be α-rectifying for α ∈ R m on K ⊆ R n .For any x ∈ K, let the ReLU-reconstruction sequence (y k ) ∞ k=0 be given as y 0 = 0 and The frame algorithm for ReLU layers for all k ≥ 0. Let λ = 2 A+B .If λ 0 = 0 then ∥x − y k+1 ∥ ≤ κ λ ∥x − y k ∥ for all k ≥ 0, where The frame algorithm for ReLU layers A+B and for every k ≥ 0 the optimal lower frame bound for Φ I α The frame algorithm for ReLU layers x is strictly less than the optimal frame bound for Φ I α The frame algorithm for ReLU layers x ∪I α y k then there is 0 The frame algorithm for ReLU layers Since the proof is analogous to the one of Theorem 5.2 in [2], we omit it here and refer to the appendix. The frame algorithm for ReLU layers We note that using λ = λ 0 = 2 A+B as parameters in (50) is very natural as we may not always want to compute the optimal frame bounds for each activated sub-frame, but instead use a reasonably universal parameter that we only have to compute once.However, the design of the algorithm leaves it open to also use other parameters.A comprehensive analysis of which parameters work well is left as an open problem.Note further that the assumption on the frame bounds for Φ I α The frame algorithm for ReLU layers x and Φ I α The frame algorithm for ReLU layers x ∪I α y k is very mild.In fact, it is always fulfilled as long as y k does not lie in the span of one of the eigenvectors of the associated frame operator.In the worst case where this happens for all k ≥ 0 then ε x,y k = 0 and the extended frame algorithm is as fast as the naive one. Stability of the reconstruction In this section, we revisit a result by [26] on the lower Lipschitz bound of a ReLU layer and translate it into the language of frame theory as done in [4] and [2].As a small extension, Image of ReLU layers In the context of our work, it is specifically interesting to know what the image of a ReLU layers looks like.The impact is two-fold. Image of ReLU layers (1) To study the injectivity of a ReLU layer that applies to the output of a previous one it is crucial to know how its image looks like. Image of ReLU layers (2) Reconstructing samples from the image of a ReLU layer yields a valuable method to generate new consistent data and understand the effect of their ReLU layer. Image of ReLU layers We give a partial answer to this question in the following.For bounded K we can use the upper bound in (53) to find the smallest closed non-negative ball in R m that contains C α (K). Image of ReLU layers Lemma 4.10.Let Φ be α-rectifying on K bounded with M = sup x∈K ∥x∥.Letting B α denote the largest optimal upper frame bound among all sub-frames Φ I α x with x ∈ K, then Image of ReLU layers where √ B α M is the minimal radius. Image of ReLU layers Proof.By (53), for x ∈ K we have that ∥C α x∥ 2 ≤ B α ∥x∥ 2 ≤ B α M 2 .The application of the ReLU function then corresponds to the projection onto the non-negative part of B √ BαM , i.e., B + √ BαM .Since all estimations are sharp, the claim follows.As already mentioned, understanding the images of specific sets under ReLU layers is crucial to understanding how data is processed and passed on to the next layer.The above lemma is just a small step towards revealing this knowledge which can be used for unraveling certain behaviors of neural networks, and further, enhancing their interpretability and transparency. Conclusion This manuscript studies the injectivity of ReLU layers and the exact recovery of input vectors from their output using frame theory as a tool.Among many basic properties and insights about ReLU layers on bounded domains, the main theoretical contribution is three different characterizations of the injectivity of ReLU layers that together provide a complete picture of its injectivity behavior as a non-linear deterministic operator.A significant portion of the research focuses on the computation of a maximal bias for a given frame Φ and a domain K, such that the associated ReLU layer is injective on K.This characterization is particularly interesting as it allows us to apply the theoretical results in practical applications.We discuss two different methods to approach this, both of which have distinct advantages and disadvantages, and provide algorithmic solutions to compute approximations of a maximal bias in practice.The second part of this work is devoted to the derivation of reconstruction formulas for injective ReLU layers, based on the concept of duality in frame theory.A brief local stability analysis of the reconstruction operator completes the discussion.In summary, this paper provides a methodology on how to study the channeling of information in ReLU layers with biases and given input data, made possible by using frame theory as a tool.The results are designed in a general, yet, accessible way such that they may stimulate further theoretical research, but are also directly applicable in practice.While we are pleased to contribute to advancing the understanding of these fundamental and ubiquitous building blocks of neural networks, many critical aspects remain to be explored.A central question in this context is how information propagates through ReLU networks, so how can we rigorously characterize the injectivity of the composition of ReLU layers. C -Algorithms We discuss the implementation of the presented algorithmic approaches and provide detailed pseudo-code.Our Python implementations can be found under https://github.com/danedanehaider/Alpha-rectifying-frames. C -Algorithms C1. Sampling-based bias estimation.Given a frame Φ, a data domain K, and a sequence of samples X N ⊂ K, Algorithm 1 demonstrates the sampling-based bias estimation presented in Theorem 3.13.The samples x k ∈ X N can be chosen to be random samples, e.g., x k ∼ U(K) for suitable K. Assuming the frame to be full-spark, then J * (x k ) consists of the indices for the largest n frame coefficients (⟨x k , ϕ i ⟩) i∈I . C -Algorithms Algorithm 1 Sampling-based approach for approximating α ♭ K Input: Φ, X N , K initialize (α (0) ) = α ∆ Φ , k = 0 for z in X N do compute (⟨z, ϕ i ⟩) i∈I get J * (z) update (α (k+1) ) i ← min{⟨z, ϕ i ⟩, (α (k) ) i } for all i ∈ J * (z) k = k + 1 end for C -Algorithms The for-loop can be replaced with a while-loop conditioned on ∥α (k+steps) − α (k) ∥ > ε > 0, where the parameter steps determines how many updates should be done before checking the condition.This is very useful to avoid early stopping. C -Algorithms C2. Polytope bias estimation.Given a frame Φ and a bounded domain K.The vertex-facet relations for P Φ encoded in I F j can be computed with convex hull algorithms, e.g., using the property simplices from scipy.spatial.ConvexHull in Python.In the following, we demonstrate how to compute the biases from Proposition 3.16. C -Algorithms (i) K = ∂P Φ : Recall that α ∆ Φ is given by α ∆ Φ i = min ℓ∈I F j j:ϕ i ∈F j ⟨ϕ ℓ , ϕ i ⟩. C -Algorithms (58) C -Algorithms Algorithm 2 PBE for ∂P Φ Input: Φ compute I F j for all facets for j = 1, . . ., #facets do β j = min k<ℓ∈I F j ⟨ϕ k , ϕ ℓ ⟩ end for for i = 1, . . ., m do α ∆ Φ i = min j:i∈I F j β j end for (ii) K = S : Recall that α ∆ S is given by α ∆ S i = min{ min y∈F S j j:ϕ i ∈F j ⟨y, ϕ i ⟩, α ∆ Φ i }. C -Algorithms First, we show that for fixed i ∈ I F j , min y∈F S j j:ϕ i ∈F j ⟨y, ϕ i ⟩ (60) can be computed using convex linear programs.Letting C I F j , D I F j denote the analysis and synthesis operator associated with Φ I F j , respectively.We can write any x ∈ F S j as x = ℓ∈I F j c ℓ ϕ ℓ = D I F j c for some vector c ≥ 0. So for any i ∈ I F j the solution of (60) is found by solving the linear program (61) C -Algorithms If α ∆ Φ i < 0, then the above minimum is negative since α ∆ S i ≤ α ∆ Φ i < 0. Therefore, we can replace ∥D I F j c∥ 2 = 1 by ∥D I F j c∥ 2 ≤ 1 making the problem convex. C -Algorithms (iii) K = D r,s : Let 0 ≤ s < r and recall that α ∆ B is given by α ∆ B i = min{s, α ∆ S i }. C -Algorithms (62) C -Algorithms One gets the general case by scaling with r −1 .The case s = 0 yields a bias estimation for B r .Since (62) depends on α ∆ S in a trivial way, we omit the algorithm. C -Algorithms Note that if we insert columns of zeros in DJ for all coordinates that have not been activated, then the resulting matrix would be the synthesis operator associated with a non-canonical dual frame for Φ in the classical sense.Applying it to an output vector that is restricted to only the coordinates in J, as presented here, computes the corresponding input by avoiding unnecessary multiplications with zeros.Finally, we want to perform the actual reconstruction: Given z = C α x 0 for some x 0 ∈ K, we can read off I α x 0 from z directly (under the assumption that ⟨x 0 , ϕ i ⟩ ̸ = α i for all i ∈ I).Assuming that we have a suitable list of index sets of sub-frames (e.g., all most correlated bases of all facet sub-frames), finding those that are contained in I α C -Algorithms x 0 is easy.Choose one, say J.The choice J = I α x 0 is valid too.Then the matrix DJ provides reconstruction as follows. C -Algorithms Algorithm 5 Applying the ReLU-synthesis: Reconstruction of x 0 from z = C α x 0 Input: Φ, α, z find J ⊆ I α x 0 such that Φ J is a frame z ← z + α (unbias) restrict to J via ζ ← (z i ) i∈J reconstruct DJ ζ = x 0 (see Algorithm 4) C4.ReLU frame algorithm.For the sake of completeness, we give a proof of Proposition 4.5 that follows the lines of the one of Theorem 5.2 in [2]. C -Algorithms Proof of Proposition 4.5.At first note that applying the (classical) frame algorithm (49) with Φ I α C -Algorithms x and λ = 2 A+B gives the constant κ λ = 1 − A x 2 A+B since 2 A+B < 2 Ax+Bx .Now, for every i ∈ I α y k \ I α x we define γ i = α i − ⟨y k , ϕ i ⟩ ⟨x − y k , ϕ i ⟩ and note that 0 ≤ γ i < 1.It is easy to see that the extended frame algorithm (50) constructs the same sequence of vectors (y k ) ∞ k=0 as applying the (classical) frame algorithm (49) using the frame Φ γ = (ϕ i ) i∈I α C -Algorithms x ∪ (γ 1 /2 ϕ i ) i∈I α y k .Let A ′ denote the optimal lower frame bound for Φ I α x ∪I α y k and A ′′ the one for Φ γ .Then, by assumption that A x < A ′ , together with γ i < 1, we have A x < A ′ < A ′′ ≤ A. Applying the convergence result for the (classical) frame algorithm for Φ γ gives C -Algorithms where 0 < ε x,y k < 1. Figure 2 : Figure 2: Left: The frame composed of the standard basis and its negative elements is 0rectifying on R 2 .Mid: The standard basis is 0-rectifying on R 2 + and (−1)-rectifying on B. Right: The triangle frame is (− 12 )-rectifying on B, but never on R 2 since there will always be cones where only one element is active (lighter areas). Figure 2 : and assume that Φ is r-rectifying on K.For any x ∈ K we deduce ⟨x, ϕ j ⟩ ≤ inf x∈K max J⊆I Φ J basis min j∈J ⟨x, ϕ j ⟩ = α c . Figure 4 : Figure 4: The three subplots show different decompositions of the sphere in R 3 .The black dots indicate the m = 12 frame elements of a random frame on S. From left to right: The facets F j of the inscribing polytope P Φ , the associated spherical caps F S j = cone(F j ) ∩ S, and the spherical patches associated to different most correlated bases obtained by J * (x).While the facets provide a very intuitive and simple decomposition into sub-frames, the decomposition via the most correlated bases minimizes the correlation directly. Figure 6 : Figure 6: Per iteration k, the plots show the proportion of a test sample sequence Y M where the ReLU layer with bias α (k) is injective.Left: n = 3. Right: n = 30; Both for redundancies 2, 3.3, and 9.The ReLU layers are becoming injective reliably after about 10 4 iterations.The procedure is fastest for low dimensions and low redundancy. Figure 7 : Figure 7: The plots show the injectivity behavior of random ReLU layers for different redundancies (2 ≤ n ≤ 30, n ≤ m ≤ 150).The brightness encodes the proportion of the values of the given bias α that are smaller than the ones in (α (N ) − ρ * (n, N )) for N = 5 • 10 5 .For values of one (yellow), the ReLU layer is injective on B. In all settings, the samples in X N are i.i.d.standard normal and the bias i.i.d.normal with different variances.From left to right: σ 2 = 0, σ 2 = 0.1, and σ 2 = 1.For σ 2 = 0 we observe the clear transition from non-injective to injective at a redundancy of 6.7 (solid magenta line) that aligns well with the conjecture from the literature.For larger variance, the transition blurs out quickly and prevents us from predicting clear statements about injectivity. Figure 8 : Figure 8: Left: The inscribing polytope for the Tetrahedron frame.Right: The Euclidean distance of α (k) to the maximal bias of the Tetrahedron frame α S on a log y-scale over 10 5 iterations.In cases where the inscribing polytope is a simplicial and regular polytope, the sampling-based bias estimation is sub-optimal, and the polytope approach already gives the maximal bias. Figure 9 : Figure 9: Left: The frame is omnidirectional.Right: The frame is not omnidirectional. Figure 9 : min j:ϕ i ∈F j C I F j D I F j c i subject to c ≥ 0 ∥D I F j c∥ 2 = 1. Figure 9 : is a Lipschitz stability analysis of ReLU layers, our goal is to demystify the injectivity of a single ReLU layer in a more realistic setting, namely with any given weights and biases on bounded input data domains K ⊆ R Figure 9 : n , and to provide methods of verifying injectivity in practice.This extends the ideas and methods by Haider et al. introduced in [17] significantly.Further related preprints are by Behrmann et al., who study the pre-images of ReLU layers from a geometric point of view [5] and by Maillard et al., which focus on injectivity of ReLU layers with random weights

섹션 본문 253문단 · 71,788자

(제목 없음)

1Injectivity is the defining property of a mapping that ensures no information is lost and any input can be perfectly reconstructed from its output.By performing hard thresholding, the ReLU function naturally interferes with this property, making the injectivity analysis of ReLU layers in neural networks a challenging yet intriguing task that has not yet been fully solved.This article establishes a frame theoretic perspective to approach this problem.The main objective is to develop a comprehensive characterization of the injectivity behavior of ReLU layers in terms of all three involved ingredients: (i) the weights, (ii) the bias, and (iii) the domain where the data is drawn from.Maintaining a focus on practical applications, we limit our attention to bounded domains and present two methods for numerically approximating a maximal bias for given weights and data domains.These methods provide sufficient conditions for the injectivity of a ReLU layer on those domains and yield a novel practical methodology for studying the information loss in ReLU layers.Finally, we derive explicit reconstruction formulas based on the duality concept from frame theory.

Introduction

2The Rectified Linear Unit defined as ReLU(s) = max(0, t) for t ∈ R has become indispensable as a non-linear activation function in artificial neural networks [14,21,15,25].Since originally introduced as a way to regularize the gradients in deep network architectures, there have been hardly any networks that do not use ReLU activation or some derivation of it [12,18,23].

3A ReLU layer C α (x) = ReLU(Cx−α) is the composition of an affine linear map comprising the multiplication by a weight matrix C ∈ R m×n and the shift by a bias vector α ∈ R m , with an entry-wise application of ReLU on its output.The injectivity of a ReLU layer, and with that, the possibility of inverting it and inferring x from C α (x), is a desired property in various applications.There has been interest in building injective models and inverting them on their range to regularize ill-posed inverse problems or designing injective generative models, such as normalizing flows, for manifold learning or compressed sensing [20,27,6].Generally, knowing if a layer involves a loss of information increases the interpretability of the network immensely.As such, one can use an inverse mapping to trace back each layer output to its source input, which can help to decipher the decision-making process, diagnose model behavior, identify biases, and study accountability.Although the injectivity of ReLU layers has received increasing attention in recent years, it is still not fully understood, especially when it comes to the numerical verification in practice.

4The goal of this paper is to demystify the injectivity of a single ReLU layer as a deterministic non-linear map on a comprehensive level.This involves a thorough analysis of fundamental properties of ReLU layers that are relevant for applications, and different characterizations of injectivity with respect to all properties involved, namely weights, bias, and input domain.By translating selected theoretical results into algorithmic solutions we present novel ways of verifying injectivity on bounded input domains in practice.Explicit reconstruction formulas and their implementation, together with a brief local stability analysis complete the claim of the paper.

5The methodology to achieve these goals is based on frame theory, a mathematical paradigm that deals with stable, potentially redundant, and invertible representations of functions by means of inner products [11].To make use of this machinery and all tools that come with it, we shall consider a weight matrix C ∈ R m×n in terms of its row vectors

6If C has more rows than columns (m ≥ n) and full rank, the collection of row vectors (ϕ i ) m i=1 is a spanning set for the domain space R n .In other words, the associated linear transform C : R n → R m is injective.In the context of frame theory, we say that (ϕ i ) m i=1 is a frame for R n [11] and C is the associated analysis operator.The application of C to x is interpreted as measuring the correlation of x to all frame vectors ϕ i via x → (⟨x, ϕ i ⟩) m i=1 .The resulting so-called frame coefficients (⟨x, ϕ i ⟩) m i=1 give a (potentially redundant) representation of x, from which we can always infer x explicitly.Roughly speaking, frame theory is the study of "quantifying" injectivity of a redundant representation in the sense of its numerical stability and constructing recovery maps with desired properties via the concept of dual frames.In this sense, it provides exactly the right tools for the goal of the paper.

7Although frame theory deals with linear representations, it has been shown to be suitable for non-linear problems as well.One example is phase-retrieval [3] where, in the real setting, one asks for the injectivity and stability of the map

8It is well known that C | .| is injective if and only if for any partition of the collection (⟨x, ϕ i ⟩) m i=1 into two sub-collections, at least one of them is a frame [3].Inspired by this approach, we may write a ReLU layer analogously as the map

9In [26] (using another terminology) it has been shown that C α is injective if and only if for any x ∈ R n the frame vectors that are not affected by ReLU are a frame.We shall call a frame with this property α-rectifying on R n .While this characterization forms the basis of our work, we will focus on the practical assumption that, in applications, it may not always be most informative to consider the entire R n as the domain where a ReLU layer should be injective.In fact, when considering standard normalization schemes of data sets for training and testing neural networks, it seems more reasonable to study injectivity only on bounded subsets K ⊆ R n where the data is assumed or processed to live in.Indeed, a ReLU layer might be injective on K but not on R n .In this paper, we show that the choice of the data domain can have a profound impact on the injectivity behavior of C α , and discuss how to leverage this fact in practice.Prototypical examples of such domains include the closed ball in R n of radius r > 0, given by B r = {x ∈ R n : ∥x∥ ≤ r}, the closed donut arising by excluding small data points D r,s = B r \ B s with s < r, and the sphere S = {x ∈ R n : ∥x∥ = 1} [22,19].Furthermore, when considering two consecutive ReLU layers, we can restrict the injectivity property of the second one to domains that lie in R n + , such as the non-negative closed ball B + r = B r ∩R n + .The restriction of the domain of C α from R n to a bounded K ⊆ R n increases the feasibility and applicability of the problem in practice, while also making the mathematical setting more versatile.Furthermore, it establishes a natural connection to the bias vector and provides a framework where we can control the injectivity behavior through these two ingredients.This in turn allows us to approach the injectivity analysis also algorithmically.

10The main theoretical component of this paper is a comprehensive characterization of the injectivity of a ReLU layer as a deterministic map, summarized in the following theorem.

11Theorem.Let Φ = (ϕ i ) m i=1 be a frame for R n , α ∈ R m , and ∅ ̸ = K ⊆ R n .Under the assumptions that Φ includes a unique most correlated basis everywhere (Def 3.7), K is open or strictly convex, and bias-exact for Φ (Def.3.11), the following are equivalent.

12(i) The ReLU layer C α , associated with Φ and α, is injective on K.

13(ii) The frame Φ is α-rectifying on K (Def 2.2, Thm 2.4, 2.5).

14(iii) The domain K lies in the maximal domain K * α (Thm 3.4).

15(iv) The values of the bias α do not exceed the values of the maximal bias α ♯ K (Thm 3.12).For any bias α the maximal domain K * α can be constructed explicitly as the union of intersections of closed affine half-spaces.For any domain K the maximal bias α ♯ K can be approximated numerically via sampling or via the inscribing polytope associated with Φ.

16The main practical component of the paper comprises two algorithmic constructions of biases that approximate the maximal bias α ♯ K from the theorem above in different situations.

17These can be used to study and effectively control the injectivity behavior of a ReLU layer in practice.Moreover, using the duality concept from frame theory we derive inversion formulas for injective ReLU layers that can be implemented easily as locally linear operators.

Related work

18The approach in classical phase-retrieval in R n by Balan et al. in [3] was decisive for the idea of characterizing the injectivity of a ReLU layer in terms of a property of the associated frame.The same approach is taken by Alharbi et al. to study the recovery of vectors from saturated inner measurements [2].In a machine learning context, Puthawala et al.

19have introduced the notion of directed spanning sets in [26] as an equivalent concept to the admissibility condition by Bruna et al. in [8] to characterize a ReLU layer to be injective on R n .While the primary goal in [26] is the study of globally injective ReLU-networks on R n , and the one in [8] [24].

Outline

20The paper is divided into four sections.In Section 2, we introduce α-rectifying frames as a characterizing family of frames that are associated with ReLU layers that are injective on a given input domain and discuss fundamental properties that are crucial for applications.

21In Section 3, we study the interplay of input domain and bias vector and derive a maximal domain and a maximal bias such that the associated ReLU layers become critically injective.This leads to two further characterizations of injectivity.Moreover, we present two methods to approximate the maximal bias and provide algorithmic solutions to apply them in practice.Section 4 is dedicated to explicit reconstruction formulas for injective ReLU layers and a brief local stability analysis of the recovery map.

Frames and the Injectivity of ReLU Layers

22When applying a matrix C ∈ R m×n to a vector x ∈ R n we can reconstruct x if and only if the collection of row vectors of C spans R n .Frame theory offers a definition of a spanning set that allows us to quantify "how good" it spans R n .So, throughout this paper, we denote a collection of m vectors by Φ = (ϕ i ) i∈I ⊂ R n , using index sets I with |I| = m ≥ n.Then, Φ is a frame for R n if there are constants 0 < A ≤ B, called the frame bounds of Φ, such that

23for all x ∈ R n [10].For J ⊆ I, we denote by Φ J = (ϕ i ) i∈J the sub-collection of Φ with respect to the index set J. Any frame with m = n is a basis and we will always assume that Φ does not contain the zero vector.It is easy to see that ( 4) is equivalent to Φ being a spanning set and that the frame bounds A, B reflect the numerical stability properties of the representation of x under Φ.The analysis operator associated with Φ is given as

24mapping a vector x to its frame coefficients as discussed in the introduction.So finally, we have that Φ is a frame, if and only if C is injective.Together with the assumption on the input domain mentioned in the introduction, this motivates to define a ReLU layer as follows.

25Definition 2.1 (ReLU layer).A ReLU layer associated with a collection of weight vectors Φ = (ϕ i ) i∈I ⊂ R n , a bias vector α = (α 1 , ..., α m ) ⊤ ∈ R m and an input domain K ⊆ R n is defined as the non-linear map given by

26To encode the injectivity of C α directly in terms of Φ we introduce a family of frames called α-rectifying frames.

Alpha-rectifying frames

27For any given x ∈ K the shift by the bias and the application of the ReLU function on the frame coefficients act as a thresholding mechanism that neglects all frame elements ϕ i where ⟨x, ϕ i ⟩ < α i , rendering them inactive.According to this observation, for x ∈ R n and α ∈ R m we are interested in the index set associated with those frame elements that are active for x and α.We shall denote it by

28Dual to this notion, for i ∈ I and α ∈ R m we denote the closed affine half-space of points where the frame element ϕ i is active by

29The following definition gives the frame theoretic perspective to [26,Definition 1].

30x is a frame for R n .Figure 1 illustrates the two notions in ( 6) and (7) on the closed unit ball B in R 2 (left, mid), and shows a simple example of an α-rectifying frame (right).

31While many papers only consider ReLU layers without bias vectors and with input on whole R n [26,24], for our approach, bias vectors and the input domain play important roles, and the following basic properties of ReLU layers become crucial.Throughout the paper, for α, α ′ ∈ R m we shall use the notation α ≤ α ′ for α i ≤ α ′ i for all i ∈ I, and α < α ′ for α i < α ′ i for all i ∈ I.

32Figure 1: Illustrations of the notions I α x and Ω α i related to active frame elements on B. The frame (ϕ 1 , ϕ 2 ) in the most right example is α-rectifying on

33Proposition 2.3.Let Φ be α ′ -rectifying on K ′ .The following holds.

34Hence, we are naturally interested in knowing the largest possible domains and biases that allow the α-rectifying property.In Section 3 we prove that indeed one obtains full characterizations of the injectivity of a ReLU layer via a maximal domain and a maximal bias.

35We now present the fundamental connection between the α-rectifying property and the injectivity of C α on K, forming the backbone of this paper.Theorems 2.4 and 2.5 address the two directions separately, each focusing on specific properties of K, thereby generalizing [26,Theorem 2].

36Recall that a set U is called strictly convex if for all x, y ∈ U and λ ∈ (0, 1), x λ := (1 − λ)x − λy ∈ Ů , where Ů is the interior of U .In particular, Ů ̸ = ∅.

Theorem 2.5 (Injectivity of ReLU layers II). Given

37from which we can deduce that ⟨x, ϕ i ⟩ = ⟨y, ϕ i ⟩ for all i ∈ I β x .By assumption that Φ is α-rectifying, Φ I α

38x is a frame, and since β < α we have that Φ I β x is one, too.It follows that x = y and therefore that C β is injective on K.

39To show the moreover part, let C α x = C α y, for x, y ∈ K. Clearly, ⟨x, ϕ i ⟩ = ⟨y, ϕ i ⟩ (9) for all i ∈ I α x ∩ I α y .We will show that if K is open or convex, then Φ I α

40x ∩I α y is a frame.Let us first consider the case where K is open.We may choose ε > 0 such that the open ball around x, denoted by B • ε (x), is contained in K.When assuming that x ̸ = y then there is δ < 1 with 0 < δ < ε • ∥x − y∥ −1 such that

41Now let i ∈ I α x δ .By the linearity of the inner product, we have the following.

42Therefore, I x δ ⊆ I α x ∩ I α y .By (10), we have that x δ ∈ K and since we assumed Φ Ix δ to be a frame, so is Φ I α x ∩I α y .Now let us assume K to be convex.For λ ∈ (0, 1),

43By the same arguments as above, ( 11) and ( 12) hold for ⟨x λ , ϕ i ⟩, hence I x λ ⊆ I α x ∩ I α y .By assumption, Φ Ix λ is a frame and thereby, Φ I α x ∩I α y is a frame.So for both cases, we can deduce that x = y, hence C α is injective.

44Proof of Theorem 2.5.We prove the claim by counterposition.Assume that Φ is not αrectifying.Then there is x ∈ K such that (ϕ i ) i∈I α

45x is not a frame.Hence, there is

46If K is open, for all sufficiently small ε > 0 we have that

47If I α x = I, then (15) already implies C α y + = C α y − , so that C α is not injective on K. To address the case I α

48x ⊂ I, we recall that ⟨x, ϕ i ⟩ < α i holds for all i ∈ I \ I α x .Therefore, we may choose ε sufficiently small, such that y ± ∈ K and

49Observation ( 16) leads to

50According to (15) and ( 17), we derive C α y + = C α y − .Thus, C α is not injective on K.

51Note that if K is strictly convex it contains more than one element and for every z ∈ K where z ̸ = x and λ ∈ (0, 1) with the same assumptions on x as above,

52Using the linearity of the inner product, there is λ sufficiently small such that

53Since K is open and not empty, we can apply the same argument as above with x λ to show that C α is not injective on K.

54This shows that the injectivity of a ReLU layer is contingent upon topological properties of the domain from which the data is drawn.For the cases R n and B r , we have established equivalence, where the former case corresponds to [26,Theorem 2].Since the non-negative ball B + r = B r ∩ R n + is convex but not open or strictly convex, only the direction in Theorem 2.4 holds.In the case of the donut D r,s = B r \ B s , which is not open and not convex, only the first part of Theorem 2.4 holds, i.e., injectivity for strictly smaller biases.In Section 3.1, we give an example of a similar scenario where injectivity fails.

55While the α-rectifying property makes the injectivity of a ReLU layer more accessible, it remains challenging to verify it in practice.In the following, we discuss how specific properties of the frame influence its α-rectifying property, and how to leverage them.

Normalized frames

56It is a simple, yet, crucial observation that we may restrict the α-rectifying property to frames with unit norm vectors by scaling the bias with the norms of the frame elements.In the context of neural networks, normalizing the underlying frame (or the weight matrix in a row-wise manner) is a standard normalization technique [30].We write Φ ⊂ S.

57The statement follows from the fact that ⟨x,

58for all x ∈ K. Therefore, we may always assume ∥ϕ i ∥ = 1 for all i ∈ I, which simplifies the problem setting substantially.The norms can be reintroduced at any stage of processing or analysis.

Full-spark frames

59The effect of ReLU can be interpreted as introducing input-dependent erasures in the underlying frame, i.e., losing certain coefficients [16].In this context, the spark of a frame has been shown to be a useful concept.It is defined as the smallest number s ≥ n + 1 of linearly dependent frame elements that one can choose from Φ.In other words, any sub-collection with s − 1 frame elements from Φ is a frame.Frames with s = n + 1 are called full-spark frames.

60This family of frames has shown to be maximally robust to erasures [1] which makes the full-spark property interesting for injective ReLU layers in particular.For phase retrieval, it is known that if a full-spark frame has m ≥ 2n−1 elements then the phase-retrieval operator (2) is injective [3].For the ReLU case, knowing the spark of Φ relaxes the condition for a frame to be α-rectifying to a counting argument.

61Corollary 2.7.Let Φ be a frame with spark s then Φ is α-rectifying on K if and only if

62Although it is an NP-hard problem to verify if a given frame is full-spark, in a numerical setting it is a mild condition that is almost surely satisfied in the presence of randomness.Indeed, if the entries of the frame elements are i.i.d.samples from an absolutely continuous probability distribution, then the associated random frame is full-spark with probability one [1].Since most initialization methods in neural networks are based on i.i.d.sampling schemes, full-spark frames appear naturally in the context of deep learning.

Perturbed frames

63For a bounded domain K the α-rectifying property is robust to perturbation.In particular, small perturbations of an α-rectifying frame result in an α ′ -rectifying frame where α ′ is close to α.

64It is known that for any frame Φ there is an arbitrarily small perturbation such that the resulting perturbed frame is full-spark [10].Therefore, we may interpret Lemma 2.8 in the sense that for any α-rectifying frame, there is an arbitrarily close full-spark frame that is α ′ -rectifying with α ′ being arbitrarily close to α.

Redundancy

65One of the central properties of a frame is its redundancy, i.e., the ratio q = m n ≥ 1.For random ReLU layers with i.i.d.Gaussian entries and no bias, it has been studied at which redundancy they become injective on R n asymptotically [26,24].Let p m,n denote the probability that C α with m frame elements in R n and α = 0 is injective then it has been proven that q ≤ 3.3 implies that lim n→∞ p m,n = 0 and q ≥ 9.091 implies that lim n→∞ p m,n = 1.Furthermore, the authors in [24] state the conjecture that there exists a redundancy q ∈ (6.6979, 6.6981) where the transition from non-injectivity to injectivity happens.We will revisit this conjecture in a non-asymptotic setting in the experimental part later in the paper (Section 3.3).

66In a non-random setting, a trivial leverage of redundancy is considering the collection Ψ = (Φ, −Φ) for any given frame Φ. Doubling the redundancy in this symmetric way makes Ψ become 0-rectifying on R n by construction (see Figure 2 left) [8,26,32].In a general deterministic setting, however, it is difficult to establish sufficient conditions for the α-rectifying property only in terms of redundancy as it depends heavily on the geometric characteristics of the frame.As already mentioned in Section 2.3, this is in contrast to the phase-retrieval setting, where a redundancy of q ≥ 2n−1 n , together with a full spark assumption is already sufficient for injectivity.In the ReLU case, it is known that a redundancy of two is necessary when considering α = 0 and K = R n [8].We extend this known result from α = 0 to arbitrary α in the following proposition.Proposition 2.9.Any α-rectifying frame on R n has at least redundancy two.

67Proof.By assuming that the zero vector is not a frame element, we can choose x ∈ R n with ⟨x, ϕ i ⟩ ̸ = 0 for all i ∈ I.We denote

68By the choice of x, the sets I + x and I − x form a disjoint partition of I. Let α ∈ R m and define

69then for all t > t * > 0 we have

70Hence,

71Assuming Φ to be α-rectifying on R n implies that Φ I α u and Φ I α v are frames, i.e., contain at least n elements in particular.Since I α u ∩ I α v = ∅, it must hold that m ≥ 2n.Assuming that the input for a ReLU layer is contained in B r , we find that the necessary redundancy-two condition from Proposition 2.5 breaks.We use boldface notation for bias vectors with constant entries, i.e., r ∈ R m denotes the vector with entries r ∈ R.

72Lemma 2.10.Any normalized frame is (−r)-rectifying on B r .If it is additionally a basis, this is also necessary, i.e., −r is the maximal value.

73Proof.Let x ∈ B r .Since ⟨x, ϕ i ⟩ = ∥x∥⟨ x ∥x∥ , ϕ i ⟩ ≥ −∥x∥ ≥ −r the first statement follows.For the second, let Φ be a basis, then Φ is α-rectifying on B r if and only if for every x ∈ B r it holds that I = I α x .In particular, since −r • Φ ⊂ B r and for every i ∈ I, the maximal choice of the α i is determined by the fact that

74This emphasizes that the choice of the input domain can have a significant impact on the α-rectifying property.The following section will examine this interaction between domain and bias in greater detail and explain how it can be leveraged.

Interplay of Domain and Bias

75In the context of applications, we may find ourselves in a situation where we have provided a trained ReLU layer and wish to ascertain whether it is injective for a specific data set.One way to address this is to verify that the data set in question is contained within a set where we have already established that the ReLU layer is injective.This leads to the following natural question.

76An alternative approach, building upon the inclusiveness property of ReLU layers (Prop.2.3), is to ascertain that the values of the given bias do not exceed the values of a bias for which we already know that the corresponding ReLU layer is injective.This leads to the dual question to the one above.

77Answering these questions will provide us with two further characterizations of the αrectifying property in terms of domain and bias, respectively.With this, we obtain alternative ways of verifying the injectivity of the associated ReLU layer.To better understand how bias and domain interact, we point out some basic scaling relations.Lemma 3.1.Let Φ be α-rectifying on K.The following holds.

78(iii) If 0 ∈ K, then at least n bias values are non-positive.

79Proof.All properties are easy to see.

80x is a frame and 0 = ⟨0, ϕ i ⟩ ≥ α i holds for all i ∈ I α x .Since |I α

81x | ≥ n, the claim follows.

82Consequently, by either scaling the data or the bias, it may be possible to compensate for situations where a frame is not α-rectifying on K but is on K ′ ⊊ K.The following examples show such compensation through restrictions other than scaling.

83Example 3.2.A basis can never be α-rectifying on R n for any α.However, the standard basis for R n is 0-rectifying on R n + (Figure 2 mid). 2 )-rectifying on B, but never on R 2 since there will always be cones where only one element is active (lighter areas).

84Example 3.3.The frame

85is not α-rectifying on R n for any α since m = 3 < 4 = 2n.However, by a geometric argument (see Figure 2 right), it is easy to see that Φ is

86is the largest possible value here.

87This makes clear that it is essential to select the domain carefully if we want to effectively study the injectivity behavior of the associated ReLU layer.This leads us to Question Q1 .

Maximal domain

88We aim to identify the maximal domain K for a frame Φ and a bias α.This provides a characterization of the α-rectifying property from a geometric point of view.Recall that for i ∈ I and α ∈ R m we denote the closed affine half-space where the frame element ϕ i is active for α by

89Extending the intuition from the example in Figure 1 (right), we find that any frame is α-rectifying on the intersection of sufficiently many Ω α i 's.Restricting to minimal frames, i.e., basis, reveals the characterization.Theorem 3.4 (Maximal domain).Let Φ ⊂ R n be a frame and α ∈ R m .The maximal domain where Φ is α-rectifying is given by

90In other words, Φ is α-rectifying on K if and only if

91Figure 3: The dark areas in the left and mid picture indicate the maximal domains K * α for the triangle frame with zero bias (left), and a normalized random frame with random bias (mid).The right illustration corresponds to Example 3.10.We point out how K 2 = {x ∈ K : 2 ∈ J * (x)} looks like, where J * (x) is the most correlated basis for x, see Definition 3.7.

92Proof.Let x ∈ K. Assuming Φ to be α-rectifying on K, then Φ I α

93x is a frame.Since (in R n ) every frame contains a basis, there is L ⊆ I α

94x such that the sub-collection Φ L is a basis.Clearly, ⟨x, ϕ i ⟩ ≥ α i still holds for all i ∈ L, hence, x ∈ K * α .For the converse direction, by definition of

95x , it follows that Φ I α x is a frame.

96Using Theorem 3.4 we find that any normalized frame Φ ⊂ S is α-rectifying on the closed ball B r if and only if r ≤ inf

97Another consequence of the theorem, together with (ii) of Lemma 3.1 is that Φ is 0-rectifying on B r if and only if Φ is 0-rectifying on R n .Hence, in this setting, checking a small neighborhood around the origin is already sufficient for the entire space.Note that the implication does not hold for α < 0. We refer to Example 3.3 for an example.

98The characterization in Theorem 3.4 further allows extending the implication from the α-rectifying property to the injectivity of C α (Theorem 2.4) to domains that are not open or convex, such as the sphere S, the donut D r,s , and discrete data sets.

99Note that, in general, the set K *

100α is neither open nor convex.We can use this to demonstrate that a violation of the assumptions on K in Theorem 2.4 (i.e., not open and not convex) indeed leads to the conclusion that C α is not injective.

101Example 3.6.Consider the frame Φ 3 defined in Example 3.3, and look at

102(see Figure 3 left).For α = 0 we have that

103A similar example can be constructed for the standard basis in R n , α = 0, and K = B + r .See Figure 2 (mid) for an illustration in R 2 .The geometric intuition from the construction of the maximal domain reveals a natural trade-off to the bias vector, where

104This should serve as the linking idea to the fact that finding a maximal bias for the αrectifying property can reveal another perspective to Theorem 3.4.With this, we proceed to answer Question Q2 .

Maximal bias

105We aim to construct a maximal bias for a given frame Φ and domain K.This provides a characterization of the α-rectifying property which is particularly suitable for verifying it in applications as it is straightforward to implement numerically.Our approach to this is to decompose a frame Φ into sub-frames with highly correlated frame elements and identify the smallest analysis coefficients among all points x ∈ K associated with these sub-frames.We present two approaches for such a decomposition.Approach A is based on finding the n most correlated elements of Φ for each x ∈ K.It allows us to identify the maximal bias and with this the characterization of the α-rectifying property of Φ under reasonable assumptions.Approach B, first introduced in [17], is based on the vertex-facet configuration of the inscribing polytope associated with Φ.It gives a geometrically intuitive sufficient condition for the α-rectifying property of Φ but yields the maximal bias only in special situations.Algorithmic solutions are provided along with the theoretical results.

Approach A: Most correlated bases

106The construction of the maximal bias is based on the idea of finding the least correlated frame element in the most correlated basis among all x ∈ K.

107Definition 3.7.Let Φ be a frame and x ∈ K.We call Φ J * (x) a most correlated basis for x if J * (x) ⊆ I satisfies that for all J ⊆ I such that Φ J is a basis it holds that

108We say that Φ includes a unique most correlated basis everywhere if J * (x) is unique for every x ∈ K.

109To give an illustration, in the setting of Example 3.6 we have that J * (x 1 ) = {1, 3} and J * (x 2 ) = {1, 2}.Alternatively, we may interpret the condition in (26) in the sense that J * (x) maximizes the functional

110As a preliminary stage, we construct a maximal constant bias.This construction is similar to the one for the critical saturation level in [2].

111Proposition 3.8.Let Φ be a frame and K ⊆ R n .The maximal constant bias for Φ and K is given by α c with

112In other words, Φ is r-rectifying on K if and only if r ≤ α c .

113Proof.First, we show that Φ is α c -rectifying on K. Let x ∈ K then there is a basis Φ J(x) such that for all j ∈ J(x) ⟨x,

114To construct a (non-constant) maximal bias vector we restrict ourselves to frames that include a unique most correlated basis everywhere.Similar to the full-spark assumption, this is a mild condition in a numerical setting since for any frame there is an arbitrarily small perturbation such that the resulting perturbed frame includes a unique most correlated basis everywhere (c.f.Lemma 2.8).If the frame is full-spark then the most correlated basis for x is given by the collection of the n frame elements which have the largest frame coefficients with x.A random frame fulfills this condition with probability one.Under this assumption, we can partition K uniquely into subsets that are associated with a frame element that belongs to a most correlated basis.For every i ∈ I we denote the corresponding set by

115Since every x ∈ K has a most correlated basis i∈I K i = K indeed holds.The right picture in Figure 3 illustrates the set K i in R 2 , and the right plot in Figure 4 illustrates the decomposition of S in R 3 into K i 's.By minimizing the frame coefficients of x ∈ K i similar to (28) we indeed obtain a bias such that Φ possesses the α-rectifying property but it is in general not maximal.

116Proposition 3.9.Let Φ be a frame that includes a unique most correlated basis everywhere, and let K ⊆ R n .If α ♭ K is given as

117Note that if K i is empty then ϕ i is never contained in a most correlated basis.This means that ϕ i is irrelevant for the α-rectifying property of Φ, i.e., the corresponding bias can be chosen arbitrarily large without affecting it.We shall exclude these cases from the estimation for a maximal bias.

118Moreover, although α ♭ K gives a simple and intuitive indication of the critical bias, there is still room for increasing this bias while maintaining the α-rectifying property.Instead of minimizing over K i as in Proposition 3.8, we shall minimize over the set of all points x such that i ∈ J * (x) and no element outside the most correlated basis is active for x and α ♭ K .This set is given as

119Since K ♯ i is a subset of K i the bias values that we get from minimizing over the K ♯ i will be larger than the ones of α ♭ K .However, note that if

120then whenever ϕ i belongs to the most correlated basis for x, there is additionally another active frame element from outside the most correlated basis.Similarly to when K i = ∅, the frame element ϕ i can then be interpreted as being redundant in the sense that it can be completely removed from Φ while preserving the α-rectifying property.We give an example of such a pathological situation.

121Example 3.10.For the frame

122and K = B we have that α ♭ B = 0 and

123The right picture in Figure 3 shows this setting.For every x ∈ K 2 there is an element outside the most correlated basis that is additionally active.It follows that K ♯ 2 = ∅.Hence, ϕ 2 is redundant for the α-rectifying property of Φ.

124Hence, to guarantee that a maximal bias exists we shall assume K ♯ i ̸ = ∅ for all i ∈ I. Definition 3.11.We call K ⊆ R n to be bias-exact for Φ if K ♯ i ̸ = ∅ for all i ∈ I, where K ♯ i is defined as in (32).

125The following theorem contains the main result on the maximal bias and represents the counterpart to Theorem 3.4 on the maximal domain.

126Theorem 3.12 (Maximal bias).Let Φ be a frame that includes a unique most correlated basis everywhere and K ⊆ R n be bias-exact for Φ.The maximal bias for Φ and K is given by α

127In other words, Φ is α-rectifying on K if and only if α ≤ α ♯ K .

128Proof.For the converse direction, we have that ⟨x, ϕ j ⟩ ≥ (α ♯ K ) j for all j ∈ J * (x) and x ∈ K ♯ j ̸ = ∅.Since Φ J * (x) is a basis, Φ is α ♯ K -rectifying on K.We show the implication direction by counterposition.Let i ∈ I and assume that Φ is α-rectifying on K where α is given by α i = (α ♯ K ) i + ε for some ε > 0 and α j = (α ♯ K ) j for j ̸ = i.By definition of the infimum in (33), the set K ♯ i (32), and the construction and uniqueness of the most correlated basis (27) there is

129for all j / ∈ J * (x 0 ).This implies that the active coordinates for x 0 and α are exactly given by

130As a consequence, Φ I α x 0 is not a frame.Therefore, Φ is not α-rectifying on K i , finishing the proof.

131Note that while assuming uniqueness of the most correlated basis everywhere is natural in the numerical setting, it excludes frames that exhibit certain symmetries, such as the frame from Example 3.10.In such a case, the computations of the biases in (31) and (33) will in general depend on the choice of the most correlated basis and therefore give ambiguous results.By including a condition that chooses one of the most correlated bases, Proposition 3.9 and Theorem 3.12 can also be formulated without the uniqueness everywhere assumption.We will not pursue this idea here.

132Summarizing, Proposition 3.9 provides a simple and intuitive sufficient condition for the α-rectifying property on K via the bias vector α ♭ K .On the other hand, Theorem 3.12 provides a full characterization via the more complicated bias vector α ♯ K under some additional assumptions that are difficult to check in practice.In fact, except for special situations, it is unclear how to compute both of the presented bias vectors explicitly.To implement the construction of a bias for verifying injectivity in applications, we therefore present an algorithmic approach that computes α ♭ X N for a finite sampling set X N ⊂ K as an approximation for α ♭ K .

133Algorithmic solution for Approach A. We show how α ♭ K can be approximated numerically via sampling.Let X N = (x k ) N k=1 ⊂ K be a sequence of N samples in K.By iteratively updating the values of the bias estimation corresponding to the most correlated basis of the current sample as in Proposition 3.9, we obtain an approximation of α ♭ K through the sampling set X N .To measure the sampling error quantitatively, we use the Euclidean covering radius (or "mesh norm") of X N for K [13], defined by

134Theorem 3.13 (Sampling-based Bias Estimation).Let X N = {x i } N i=1 ⊂ K and Φ ⊂ S be a normalized full-spark frame.Choose α (0) ∈ R m and iteratively define for all 1 ≤ k ≤ N and i

135Then Φ is α (N ) -rectifying on X N .Moreover, Φ is (α (N ) − ρ(X N ; K))-rectifying on K.

136If the elements in Φ are not normalized, we can extend the statement above by including the norms w = (∥ϕ i ∥) i∈I , obtaining that Φ is (α (N ) − ρ(X N ; K) • w)-rectifying on K.If the frame elements of Φ lie in K, a good initialization is starting the bias estimation with the frame elements themselves as samples.Otherwise, we may set (α (0) ) i = ∞ for all i ∈ I.

137Proof of Theorem 3.13.Let x ∈ K, then there is

138By rearranging (37) it follows that ⟨x, ϕ j ⟩ ≥ (α (N ) ) j − ρ(X N ; K).We deduce that I α (N )

139for all x ∈ K. Clearly, Φ is α (N ) -rectifying on X N by construction.Using (37), the second claim follows immediately.

140Implementing the algorithm described in Theorem 3.13 can be done via a Monte-Carlo approach, where X N is a collection of N random samples on K w.r.t.some probability measure on K, see Appendix C1.We demonstrate numerical experiments in Section 3.3.Intuitively, we want a measure that guarantees a small covering radius ρ(X N ; K) for large N , such that α (N ) converges to α ♭ K in probability.The uniform distribution on B r is a possible example.If X N are i.i.d.uniform samples on S the expectation of ρ(X N ; S) is given by

141The above estimate and more explicit tail-bound estimates for the probability distribution of ρ(X N ; S) are derived in [28].Unfortunately, this indicates that in high dimensions it becomes infeasible to handle the covering radius only by increasing the number of test samples N .

142Hence, it appears necessary to construct the sampling sequence X N in a more structured way, e.g., by quasi Monte-Carlo methods [7], or by sampling directly from the distribution of the dataset.With the latter approach, the number of sampling points for a good approximation of α ♭ K can potentially be reduced, and the injectivity of the ReLU layer is ensured on a domain that is tailored to the dataset.

Approach B: Facets of the inscribing polytope

143We obtain another natural decomposition of Φ into sub-frames with high correlation via the convex polytope that arises from taking the convex hull of the set of all elements in Φ [17].This so-called inscribing polytope of Φ [29] is given by

144Any non-empty intersection of P Φ with an affine half-space such that none of the interior points of P Φ (w.r.t. the induced topology on P Φ ) lie on its boundary is called a face of P Φ [33].The 0-dimensional faces of P Φ are known as vertices and the (n − 1)-dimensional faces are called facets.Assuming normalized frames here (Φ ⊂ S) the set of vertices of P Φ always coincides with the set of frame elements of Φ.Note that this is generally the case if the elements in Φ lie in a strictly convex set.Moreover, every facet is a convex polytope where the vertices coincide with a sub-collection of Φ, and every element occurs as a vertex at least once.We refer to Figure 5 for an illustration in R 3 .For a facet F , we denote the index set corresponding to its vertices by

145The following property is key, stated and proven in [17].

146Lemma 3.14.Let Φ be a frame and F be a facet of P Φ .If 0 / ∈ F , then Φ I F is a frame.

147This ensures that the facets of P Φ provide a natural decomposition into sub-frames Φ I F of Φ.Moreover, for any facet F , there is a ∈ R n , a ̸ = 0 and b ∈ R such that F = {x ∈ P Φ : ⟨a, x⟩ = b}, and therefore,

148Hence, the vertices of any facet are a frame that is highly correlated to all points "close" to the facet.In particular, Φ I F is the most correlated basis for the normal vector a.Now, analog to the decomposition of K using most correlated bases (30) we can decompose K into facet-specific subsets F K j , each associated with a facet F j of P Φ (according to some enumeration of the facets).A natural and practical approach in this setting is a decomposition into conical caps resulting in

149Figure 4 shows the facets F j of the inscribing polytope (left), and the decomposition of S into spherical caps F S j (mid) for a i.i.d.randomly generated frame Φ with elements on S. While the facets provide a very intuitive and simple decomposition into sub-frames, the decomposition via the most correlated bases minimizes the correlation directly.

150To guarantee that K = j F K j and that 0 does not lie on any of the facets (requirement for using Lemma 3.14) we have to assume that 0 lies in the interior of P Φ (w.r.t. the topology in R n ).The property of Φ that ensures this was introduced in [5, Definition 1], where Φ is called omnidirectional.Equivalently, we can say that there is no half-space containing all elements of Φ, which can be easily verified numerically via convex optimization, see the appendix in [5].Moreover, every non-omnidirectional frame can be made omnidirectional by including a vector constructed as the negative normalized mean of all frame elements, see Appendix B.

151Remark.The construction of the F K j using cones and the assumption of omnidirectionality are natural if K is centered around the origin.In other situations, one might want to come up with alternative constructions of F K j and a different notion of omnidirectionality that are more suited to the geometry K.In this work, we restrict ourselves to the described setting.

152Assuming omnidirectionality, we can use Lemma 3.14 to identify the minimal analysis coefficient ⟨x, ϕ i ⟩ that can occur for any x contained in any F K j that contains ϕ i .This guarantees that for any x ∈ F K j the sub-frame Φ I F j is active.Following [17], the procedure is called polytope bias estimation (PBE).The following theorem generalizes the results in [17] from B r and B + r to general bounded K. Theorem 3.15 (Polytope Bias Estimation).Let Φ ⊂ S be a normalized omnidirectional frame and

153Proof.Since Φ is omnidirectional, for any x ∈ K there is a facet F j such that x ∈ F K j .It follows from (42) that ⟨x, ϕ i ⟩ ≥ α ∆ K i for all i ∈ I F j .By Lemma 3.14, Φ I F j is a frame, hence, Φ is α ∆ K -rectifying on K.

154Figure 5: For the Icosahedron frame we have that x ∈ F j ⇔ I F j = J * (x) (left).For less regular frames, this does not hold anymore (mid).The right picture illustrates the PBE on B for the Icosahedron frame.To get α ∆ B 2 the infima are taken over the points in the conical parts (dark gray area) for all adjacent facets of ϕ 2 (blue).This procedure naturally takes the geometry of the frame into account and provides an intuitive way of estimating a large bias vector such that the frame becomes α-rectifying.Note, however, that in general this only yields a sufficient condition.A special case where it is also necessary is discussed in Lemma 3.17.In the following, we demonstrate how the PBE simplifies for specific concrete situations.

155Algorithmic solution for Approach B. The advantage of the PBE is that for simple standard domains K it is easy to compute α ∆ K via linear programs.In the following proposition, we formulate the PBE for five prototypical domains.We provide a detailed discussion and corresponding pseudo-code for implementing the corresponding optimizations in Appendix C. Proposition 3.16.Let Φ ⊂ S be a normalized omnidirectional frame.The following holds.

156(i) Φ is α ∆ Φ -rectifying on the boundary of the polytope ∂P Φ = j F j with α ∆ Φ given by

157(ii) Φ is α ∆ S -rectifying on the sphere S with α ∆ S given by

158The inner minima are the solutions of convex linear programs.In particular, they are equal to α ∆ Φ i whenever they are non-negative.

159(iii) Φ is (r −1 • α ∆ B )-rectifying on the donut D r,s for 0 ≤ s < r with α ∆ B given by

160The case s = 0 yields a bias estimation for the closed ball B r (Figure 5).

161(iv) Let J + = {j ∈ I :

162)-rectifying on the non-negative part of the ball B + r with α ∆ B + given by

163where

164Proof.The points (i) − (iv) are direct consequences of [17,Theorem 4.4 and Theorem 4.6],

165where detailed proofs can be found.To show (v), note that (s • ϕ i ) i∈I has the same combinatorial facet structure as Φ and therefore it is still omnidirectional.In particular, ( Bs ) c = {x = sty : y ∈ S, t ≥ 1}.

166The statement follows by ⟨sty, ϕ i ⟩ ≥ s • α ∆ Φ i for t ≥ 1 and s ≥ 0. Other than the Monte-Carlo sampling-based approach, this bias estimation procedure yields a deterministic sufficient condition for the α-rectifying property, which is necessary only in special situations.In general, there are two properties of the inscribing polytope P Φ that affect the PBE in a way that the estimated biases become smaller.

167(1) The more vertices a facet has, the smaller the infima in (42) become.In the case where all facets have the minimal number of n vertices, P Φ is called simplicial.It is known that a polytope with vertices that are i.i.d.uniform samples on S is simplicial with probability one [9].

168(2) The decomposition of K using cones in ( 41) is natural and convenient for implementation, but leads to a sub-optimal partition if P Φ is geometrically very irregular, i.e., the sizes of the facets are significantly different.In such a scenario, for x ∈ F K j where F j is a very large facet, there might be a smaller neighboring facet F k which provides larger analysis coefficients for x and, hence, a better estimation.For an illustration of such a situation see the center plot in Figure 5.

169For frames with inscribing polytopes that are simplicial and regular, we can show that the PBE indeed yields a maximal bias.We set K = S. Lemma 3.17.Let Φ ⊂ S be a normalized omnidirectional frame such that P Φ is simplicial and for all i ∈ I it holds that ⟨ϕ i , ϕ k ⟩ = ⟨ϕ i , ϕ ℓ ⟩ for all ϕ k , ϕ ℓ sharing a facet with ϕ i .Then Φ is α-rectifying on S if and only if α ≤ α ∆ S .

170Proof.The converse direction directly follows from Theorem 3.15.We show the implication direction by counterposition.At first note that the regularity condition implies that α ∆ S is constant.Let α ∈ R m be such that α i > α ∆ S i for fixed i ∈ I.There is a facet F with i ∈ I F and x * ∈ F S satisfying ⟨x * , ϕ i ⟩ = α ∆ S i < α i .By regularity, it follows that I α x * = I F \ {i}.Since P Φ is simplicial Φ I F \{i} is not a frame, hence, Φ is not α-rectifying on S.

171Examples for this are frames whose inscribing polytopes are convex regular polytopes in R n .In a more general sense, we expect the PBE to be very effective for frames with evenly distributed frame elements.

172Remark.The two bias estimation procedures described in Approach A and B are fundamentally linked.For each facet F of P Φ the hole radius of F is defined as the Euclidean distance from the boundary to the center of its spherical cap F S (41).The Euclidean covering radius (35) of Φ for S is the largest hole radius among all facets [31].

Numerical experiments

173For a given sampling sequence X N and a full-spark assumption on Φ, the numerical implementation of the sampling-based bias estimation in Theorem 3.13 is straightforward.Similarly, there are convex hull algorithms available, such that the implementation of the cases of the PBE from Proposition 3.16 is straightforward, too.Besides the pseudo-code found in the appendix, we provide concrete implementations in Python, together with the code for reproducing all experiments in this section in the accompanying repository https://github.com/danedane-haider/Alpha-rectifying-frames.

Evolution towards injectivity (Approach A)

174We demonstrate the basic functionality of the Monte-Carlo sampling-based algorithm.For this, we choose the frame Φ and the sampling sequences X N to consist of i.i.d.uniform samples on B. For every step in the approximation of α ♭ B we measure the proportion of samples from an unseen test sampling sequence Y M (also i.i.d.uniform on B), for which Φ is α (k) -rectifying.Figure 6 shows the empirical mean and variance over 1000 independent trials of this procedure for two different dimensions, n = 3 (left) and n = 30 (right), and three different redundancies (2, 3.3, and 9), respectively.We observe that in some configurations the associated ReLU layer is injective already after a few hundred iterations.In others, it takes up to 1000 iterations.It is especially fast for ReLU layers in low dimensions with low redundancy.This can be explained by the fact that for draws of Φ which yield very unevenly distributed points on B (which happens more likely in high dimensions with high redundancy) the iterative scheme struggles to update α (k) efficiently, which results in the procedure taking particularly long.In general, all tested examples became injective reliably.

Effect of redundancy (Approach A)

175We use approximations of α ♭ B to verify the injectivity of ReLU layers with random weights and biases systematically for different redundancies.Thereby, we numerically verify the conjecture stated in [24] that the transition from non-injectivity to injectivity happens at a redundancy q ∈ (6.6979, 6.6981) in a non-asymptotic setting.We let both, the frame Φ and the sampling sequence X N contain i.i.d.standard normal points and compute α (N ) with N = 5 • 10 5 for all redundancy settings where 2 ≤ n ≤ 30 and n ≤ m ≤ 150.By Theorem 3.13, we know that for every setting Φ is α (N ) -rectifying on X N .Inspired by the asymptotic expression for the covering radius in (38), we subtract a correcting term of ρ * (n, N ) = 0.05 • log(N ) N 1 n to compensate for insufficient amount of sampling in higher dimensions.This yields that for every setting we have that Φ is α (N ) − ρ * (n, N ) -rectifying on B with high probability.The factor 0.05 was chosen experimentally.

176To test if the ReLU layer associated with one of the realizations of Φ is injective for a given bias α we have to verify that α ≤ α (N ) − ρ * (n, N ).We compare three settings for biases with i.i.d.normal values with mean zero and variances,

177Figure 7 shows the results for the three settings from left to right.Setting (i) is the one where the conjecture in [24] was formulated.Looking at the solid magenta line in Figure 7 (left) we can observe that our method is capable of numerically reproducing the conjecture.On the injectivity of random ReLU layers with non-zero bias, there are no theoretical results in the literature so far.Hence, our approach yields some novel insights here.For small variance (Setting (ii)) we observe that the clear boundary from the previous setting blurs out.For the standard variance in setting (iii) this behavior further intensifies.Note that an according change of the variances in the distribution of Φ or X N instead gives the same result.These observations show that the way the bias in a ReLU layer is initialized has a big influence on its injectivity.

Approximation of the maximal bias (Approach A & B)

178In the setting of Lemma 3.17 we have shown that the PBE yields a maximal bias.This allows us to study the approximation of the sampling-based approach to the maximal bias For values of one (yellow), the ReLU layer is injective on B. In all settings, the samples in X N are i.i.d.standard normal and the bias i.i.d.normal with different variances.From left to right: σ 2 = 0, σ 2 = 0.1, and σ 2 = 1.For σ 2 = 0 we observe the clear transition from non-injective to injective at a redundancy of 6.7 (solid magenta line) that aligns well with the conjecture from the literature.For larger variance, the transition blurs out quickly and prevents us from predicting clear statements about injectivity.

179α S by the PBE over the iterations.Figure 8 shows this in the example of the Tetrahedron frame, where the PBE yields that α S = 1 √ 3 .We plot ∥α (k) − α S ∥ as k increases and find that the approximation is very slow, which emphasizes the superiority of the polytope approach in this setting.

Remarks on the limitations

180Not surprisingly, both algorithms suffer from high dimensionality.For the sampling-based approach, the asymptotic behavior of the covering radius (38) indicates that it may become infeasible to reach a good approximation of α ♭ K only by increasing the number of samples.Yet, with some experimenting on the factor, we can use expression (38) to effectively compensate for insufficient sampling in high dimensions.It has particularly high potential when injectivity is only required on specific data points of interest.In such a situation, the sampling set can be constructed in a custom data-driven way that respects the distribution of the data.

181For the polytope bias estimation, the numerical computation of the convex hull to obtain the vertex-facet relations becomes infeasible in high dimensions.A possible remedy is to use dimensionality reduction and do the bias estimation in a lower dimensional space.The benefits of the method are that injectivity follows deterministically and that it comes with a lot of intuition an can be studied further using more advanced tools from convex geometry.

182With this, we conclude the part of the paper that is concerned with the analysis of the injectivity of a ReLU layer.The last chapter is dedicated to the reconstruction of the input from the output of an injective ReLU layer.k) to the maximal bias of the Tetrahedron frame α S on a log y-scale over 10 5 iterations.In cases where the inscribing polytope is a simplicial and regular polytope, the sampling-based bias estimation is sub-optimal, and the polytope approach already gives the maximal bias.

Duality and Reconstruction

183If a ReLU layer C α is injective, there is an inverse mapping that can infer any input from the output.This extends to the possibility of synthesizing new data that correspond to arbitrary coefficient vectors in the image of the ReLU layer, or studying the connection of single weights to the input by perturbing the corresponding output coefficient, thereby being able to interpret the output values.

184In [2], the authors propose to reconstruct the input from its saturated frame coefficients via a custom-modified version of the frame algorithm [11].This idea can also be adapted to ReLU layers.Our main focus lies on another approach, where we propose to construct explicit perfect reconstruction formulas in the form of locally linear operators.

ReLU-synthesis

185First, we recall the concept of a dual frame, which is closely tied to two operators.The first one is the synthesis operator which maps the frame coefficients back to the input space as

186The application of this operator is realized via the multiplication by the transpose of the analysis matrix from the left, D = C ⊤ .The second operator arises as the concatenation of analysis, followed by synthesis, also known as the frame operator,

187In matrix notation, S = DC.The frame operator is positive and self-adjoint, and if Φ is a frame, it is additionally invertible.Hence, one can write any x ∈ R n as

188The collection Φ = (S −1 ϕ i ) i∈I is called the canonical dual frame for Φ.Denoting the synthesis operator associated with Φ by D, then Equation ( 44) is equivalent to

189In other words, D is a left-inverse of C (given by the pseudo-inverse of C) [10].This can be thought of as reconstructing x from its frame coefficients using the canonical dual frame Φ.

190If Φ is redundant (m > n), there are infinitely many different possibilities of constructing a left-inverse of C. All of them can be interpreted as the synthesis operator of a (noncanonical) dual frame.Using this machinery, we can define a reconstruction operator for C α analogously to (45).Note, however, that unless I α x ̸ = I for all x ∈ K, there is not one reconstruction operator for all x ∈ K. Definition 4.1.The ReLU-synthesis operator associated with the collection Φ = (ϕ i ) i∈I ⊂ R n , the bias α ∈ R m , and the index set J ⊆ I is defined by

191Note that R m is fixed as domain, the sum, however, runs over the index set J. When using the ReLU-synthesis operator associated with a dual frame of Φ J we obtain a reconstruction formula in the spirit of (45).Theorem 4.2 (ReLU-dual I).Let Φ be α-rectifying on K for α ∈ R m and choose x 0 ∈ K. Let Φ I α x 0 = ( φi ) i∈I α x 0 be any dual frame for Φ I α x 0 , and Dα

192the associated ReLU-synthesis operator.Then for all x ∈ K such that I α x 0 ⊆ I α x it holds that

193Proof.For x ∈ K with I α x 0 ⊆ I α x , the operator composition in (47) reduces to the usual frame decomposition with Φ I α x 0 , Dα

194The condition I α x 0 ⊆ I α x for a reference vector x 0 ∈ K means that we may use the same left-inverse Dα I α x 0 for all input elements x that share at least all active elements with Φ I α x 0 .By re-writing the condition on the level of index sets, we can alternatively choose a reference sub-space via an index set J instead of fixing a reference vector x 0 .Corollary 4.3 (ReLU-dual II).Let Φ be α-rectifying on K for α ∈ R m and choose J ⊆ I such that Φ J is a frame.Let ΦJ be a dual frame for Φ J and Dα J the associated ReLU-synthesis operator.Then for all x ∈ K with J ⊆ I α

195x it holds that Dα J C α x = x.The approach in the above corollary is particularly useful in the context of the bias estimation procedures described in Section 3.2: Given a decomposition of Φ into sub-frames, either by all different most correlated bases or via the facets of P Φ , we can compute all associated left-inverses in advance and use them for reconstruction on demand.More precisely, for every x ∈ K there is a sub-frame associated with a most correlated bases J * (x) such that Dα J * (x) is a left-inverse of C α .Similarly, if Φ is omnidirectional, then for every x ∈ K there is a facet F such that Dα I F is a left-inverse of C α .In both cases, there are only finitely many such sub-frames.Summarizing, we have the following.

196Corollary 4.4.Let Φ be α-rectifying on K.For any x ∈ K there is J ⊆ I such that Dα J is a left-inverse of C α .

197The numerical implementation of the ReLU-synthesis is straightforward when using canonical duals of the sub-frames Φ J .A detailed discussion and corresponding pseudo-code can be found in Appendix C.

Excursion: Reconstruction from PReLU layers

198There are various modifications of the ReLU activation function, one of them being the parametrized ReLU, or PReLU, given by PReLU γ = max(γs, s) with 0 < γ ≤ 1 [18].As this is an injective activation function, the associated PReLU layer with weights given by Φ and any bias α is injective if and only if Φ is a frame.In this case, for any x ∈ K we obtain a left-inverse of the PReLU layer by

199where Φ = ( φi ) i∈I is any dual frame for Φ.

The frame algorithm for ReLU layers

200The frame algorithm is an iterative scheme that constructs a sequence of vectors in R n from given frame coefficients (⟨x, ϕ i ⟩) i∈I that converges to the input x exponentially fast [11].This sequence (y k ) ∞ k=0 is defined as y 0 = 0 and

201for k ≥ 0. Letting A, B be the optimal frame bounds for Φ then for 0 < λ < B 2 we have for all k ≥ 0 that ∥x − y k+1 ∥ ≤ κ λ ∥x − y k ∥, where κ λ = max{|1 − λA|, |1 − λB|}.Note that the optimal value for the parameter λ is 2 A+B .In practice, the frame algorithm is a great tool to do reconstruction in situations, where computing the exact solution with the canonical dual (or any dual) frame becomes too expensive.

202Clearly, the procedure can be directly applied for the reconstruction of x from the output of a ReLU layer by reducing the sum in (49) to run only over I α

203x (the active frame elements).To see that this is really what we want, note that for all i ∈ I α

204x we have ⟨x, ϕ i ⟩ = ReLU(⟨x, ϕ i ⟩ − α i ) + α i .Therefore, the differences in the sum in (49) over I α

205x are indeed taken between the values of the unbiased output of the ReLU layer and ⟨y k , ϕ i ⟩.Hence, if our frame Φ is α-rectifying on K then for any x ∈ K we obtain a ReLUreconstruction sequence (y k ) ∞ k=0 that satisfies ∥x − y k+1 ∥ ≤ κ x,λ ∥x − y k ∥ for all k ≥ 0, where κ x,λ = max{|1 − λA x |, |1 − λB x |}, and A x , B x are the optimal frame bounds for Φ I α

206x .However, we can do better than this.Following the idea in [2], we can extend the frame algorithm by using the bias values α i for all inactive frame elements as a proxy for the lost frame coefficients.This gives an algorithm that always outperforms the naive approach in the setting where we use the optimal parameter for the full frame.Proposition 4.5 (ReLU frame algorithm).Let Φ be α-rectifying for α ∈ R m on K ⊆ R n .For any x ∈ K, let the ReLU-reconstruction sequence (y k ) ∞ k=0 be given as y 0 = 0 and

207for all k ≥ 0. Let λ = 2 A+B .If λ 0 = 0 then ∥x − y k+1 ∥ ≤ κ λ ∥x − y k ∥ for all k ≥ 0, where

208A+B and for every k ≥ 0 the optimal lower frame bound for Φ I α

209x is strictly less than the optimal frame bound for Φ I α

210x ∪I α y k then there is 0

211Since the proof is analogous to the one of Theorem 5.2 in [2], we omit it here and refer to the appendix.

212We note that using λ = λ 0 = 2 A+B as parameters in (50) is very natural as we may not always want to compute the optimal frame bounds for each activated sub-frame, but instead use a reasonably universal parameter that we only have to compute once.However, the design of the algorithm leaves it open to also use other parameters.A comprehensive analysis of which parameters work well is left as an open problem.Note further that the assumption on the frame bounds for Φ I α

213x and Φ I α

214x ∪I α y k is very mild.In fact, it is always fulfilled as long as y k does not lie in the span of one of the eigenvectors of the associated frame operator.In the worst case where this happens for all k ≥ 0 then ε x,y k = 0 and the extended frame algorithm is as fast as the naive one.

Stability of the reconstruction

215In this section, we revisit a result by [26] on the lower Lipschitz bound of a ReLU layer and translate it into the language of frame theory as done in [4] and [2].As a small extension,

Image of ReLU layers

216In the context of our work, it is specifically interesting to know what the image of a ReLU layers looks like.The impact is two-fold.

217(1) To study the injectivity of a ReLU layer that applies to the output of a previous one it is crucial to know how its image looks like.

218(2) Reconstructing samples from the image of a ReLU layer yields a valuable method to generate new consistent data and understand the effect of their ReLU layer.

219We give a partial answer to this question in the following.For bounded K we can use the upper bound in (53) to find the smallest closed non-negative ball in R m that contains C α (K).

220Lemma 4.10.Let Φ be α-rectifying on K bounded with M = sup x∈K ∥x∥.Letting B α denote the largest optimal upper frame bound among all sub-frames Φ I α x with x ∈ K, then

221where √ B α M is the minimal radius.

222Proof.By (53), for x ∈ K we have that ∥C α x∥ 2 ≤ B α ∥x∥ 2 ≤ B α M 2 .The application of the ReLU function then corresponds to the projection onto the non-negative part of B √ BαM , i.e., B + √ BαM .Since all estimations are sharp, the claim follows.As already mentioned, understanding the images of specific sets under ReLU layers is crucial to understanding how data is processed and passed on to the next layer.The above lemma is just a small step towards revealing this knowledge which can be used for unraveling certain behaviors of neural networks, and further, enhancing their interpretability and transparency.

Conclusion

223This manuscript studies the injectivity of ReLU layers and the exact recovery of input vectors from their output using frame theory as a tool.Among many basic properties and insights about ReLU layers on bounded domains, the main theoretical contribution is three different characterizations of the injectivity of ReLU layers that together provide a complete picture of its injectivity behavior as a non-linear deterministic operator.A significant portion of the research focuses on the computation of a maximal bias for a given frame Φ and a domain K, such that the associated ReLU layer is injective on K.This characterization is particularly interesting as it allows us to apply the theoretical results in practical applications.We discuss two different methods to approach this, both of which have distinct advantages and disadvantages, and provide algorithmic solutions to compute approximations of a maximal bias in practice.The second part of this work is devoted to the derivation of reconstruction formulas for injective ReLU layers, based on the concept of duality in frame theory.A brief local stability analysis of the reconstruction operator completes the discussion.In summary, this paper provides a methodology on how to study the channeling of information in ReLU layers with biases and given input data, made possible by using frame theory as a tool.The results are designed in a general, yet, accessible way such that they may stimulate further theoretical research, but are also directly applicable in practice.While we are pleased to contribute to advancing the understanding of these fundamental and ubiquitous building blocks of neural networks, many critical aspects remain to be explored.A central question in this context is how information propagates through ReLU networks, so how can we rigorously characterize the injectivity of the composition of ReLU layers.

C -Algorithms

224We discuss the implementation of the presented algorithmic approaches and provide detailed pseudo-code.Our Python implementations can be found under https://github.com/danedanehaider/Alpha-rectifying-frames.

225C1. Sampling-based bias estimation.Given a frame Φ, a data domain K, and a sequence of samples X N ⊂ K, Algorithm 1 demonstrates the sampling-based bias estimation presented in Theorem 3.13.The samples x k ∈ X N can be chosen to be random samples, e.g., x k ∼ U(K) for suitable K. Assuming the frame to be full-spark, then J * (x k ) consists of the indices for the largest n frame coefficients (⟨x k , ϕ i ⟩) i∈I .

226Algorithm 1 Sampling-based approach for approximating α ♭ K Input: Φ, X N , K initialize (α (0) ) = α ∆ Φ , k = 0 for z in X N do compute (⟨z, ϕ i ⟩) i∈I get J * (z) update (α (k+1) ) i ← min{⟨z, ϕ i ⟩, (α (k) ) i } for all i ∈ J * (z) k = k + 1 end for

227The for-loop can be replaced with a while-loop conditioned on ∥α (k+steps) − α (k) ∥ > ε > 0, where the parameter steps determines how many updates should be done before checking the condition.This is very useful to avoid early stopping.

228C2. Polytope bias estimation.Given a frame Φ and a bounded domain K.The vertex-facet relations for P Φ encoded in I F j can be computed with convex hull algorithms, e.g., using the property simplices from scipy.spatial.ConvexHull in Python.In the following, we demonstrate how to compute the biases from Proposition 3.16.

229(i) K = ∂P Φ : Recall that α ∆ Φ is given by α ∆ Φ i = min ℓ∈I F j j:ϕ i ∈F j ⟨ϕ ℓ , ϕ i ⟩.

230(58)

231Algorithm 2 PBE for ∂P Φ Input: Φ compute I F j for all facets for j = 1, . . ., #facets do β j = min k<ℓ∈I F j ⟨ϕ k , ϕ ℓ ⟩ end for for i = 1, . . ., m do α ∆ Φ i = min j:i∈I F j β j end for (ii) K = S : Recall that α ∆ S is given by α ∆ S i = min{ min y∈F S j j:ϕ i ∈F j ⟨y, ϕ i ⟩, α ∆ Φ i }.

232First, we show that for fixed i ∈ I F j , min y∈F S j j:ϕ i ∈F j ⟨y, ϕ i ⟩ (60) can be computed using convex linear programs.Letting C I F j , D I F j denote the analysis and synthesis operator associated with Φ I F j , respectively.We can write any x ∈ F S j as x = ℓ∈I F j c ℓ ϕ ℓ = D I F j c for some vector c ≥ 0. So for any i ∈ I F j the solution of (60) is found by solving the linear program (61)

233If α ∆ Φ i < 0, then the above minimum is negative since α ∆ S i ≤ α ∆ Φ i < 0. Therefore, we can replace ∥D I F j c∥ 2 = 1 by ∥D I F j c∥ 2 ≤ 1 making the problem convex.

234(iii) K = D r,s : Let 0 ≤ s < r and recall that α ∆ B is given by α ∆ B i = min{s, α ∆ S i }.

235(62)

236One gets the general case by scaling with r −1 .The case s = 0 yields a bias estimation for B r .Since (62) depends on α ∆ S in a trivial way, we omit the algorithm.

237Note that if we insert columns of zeros in DJ for all coordinates that have not been activated, then the resulting matrix would be the synthesis operator associated with a non-canonical dual frame for Φ in the classical sense.Applying it to an output vector that is restricted to only the coordinates in J, as presented here, computes the corresponding input by avoiding unnecessary multiplications with zeros.Finally, we want to perform the actual reconstruction: Given z = C α x 0 for some x 0 ∈ K, we can read off I α x 0 from z directly (under the assumption that ⟨x 0 , ϕ i ⟩ ̸ = α i for all i ∈ I).Assuming that we have a suitable list of index sets of sub-frames (e.g., all most correlated bases of all facet sub-frames), finding those that are contained in I α

238x 0 is easy.Choose one, say J.The choice J = I α x 0 is valid too.Then the matrix DJ provides reconstruction as follows.

239Algorithm 5 Applying the ReLU-synthesis: Reconstruction of x 0 from z = C α x 0 Input: Φ, α, z find J ⊆ I α x 0 such that Φ J is a frame z ← z + α (unbias) restrict to J via ζ ← (z i ) i∈J reconstruct DJ ζ = x 0 (see Algorithm 4) C4.ReLU frame algorithm.For the sake of completeness, we give a proof of Proposition 4.5 that follows the lines of the one of Theorem 5.2 in [2].

240Proof of Proposition 4.5.At first note that applying the (classical) frame algorithm (49) with Φ I α

241x and λ = 2 A+B gives the constant κ λ = 1 − A x 2 A+B since 2 A+B < 2 Ax+Bx .Now, for every i ∈ I α y k \ I α x we define γ i = α i − ⟨y k , ϕ i ⟩ ⟨x − y k , ϕ i ⟩ and note that 0 ≤ γ i < 1.It is easy to see that the extended frame algorithm (50) constructs the same sequence of vectors (y k ) ∞ k=0 as applying the (classical) frame algorithm (49) using the frame Φ γ = (ϕ i ) i∈I α

242x ∪ (γ 1 /2 ϕ i ) i∈I α y k .Let A ′ denote the optimal lower frame bound for Φ I α x ∪I α y k and A ′′ the one for Φ γ .Then, by assumption that A x < A ′ , together with γ i < 1, we have A x < A ′ < A ′′ ≤ A. Applying the convergence result for the (classical) frame algorithm for Φ γ gives

243where 0 < ε x,y k < 1.

Figure 2 :

244Figure 2: Left: The frame composed of the standard basis and its negative elements is 0rectifying on R 2 .Mid: The standard basis is 0-rectifying on R 2 + and (−1)-rectifying on B. Right: The triangle frame is (− 12 )-rectifying on B, but never on R 2 since there will always be cones where only one element is active (lighter areas).

245and assume that Φ is r-rectifying on K.For any x ∈ K we deduce ⟨x, ϕ j ⟩ ≤ inf x∈K max J⊆I Φ J basis min j∈J ⟨x, ϕ j ⟩ = α c .

Figure 4 :

246Figure 4: The three subplots show different decompositions of the sphere in R 3 .The black dots indicate the m = 12 frame elements of a random frame on S. From left to right: The facets F j of the inscribing polytope P Φ , the associated spherical caps F S j = cone(F j ) ∩ S, and the spherical patches associated to different most correlated bases obtained by J * (x).While the facets provide a very intuitive and simple decomposition into sub-frames, the decomposition via the most correlated bases minimizes the correlation directly.

Figure 6 :

247Figure 6: Per iteration k, the plots show the proportion of a test sample sequence Y M where the ReLU layer with bias α (k) is injective.Left: n = 3. Right: n = 30; Both for redundancies 2, 3.3, and 9.The ReLU layers are becoming injective reliably after about 10 4 iterations.The procedure is fastest for low dimensions and low redundancy.

Figure 7 :

248Figure 7: The plots show the injectivity behavior of random ReLU layers for different redundancies (2 ≤ n ≤ 30, n ≤ m ≤ 150).The brightness encodes the proportion of the values of the given bias α that are smaller than the ones in (α (N ) − ρ * (n, N )) for N = 5 • 10 5 .For values of one (yellow), the ReLU layer is injective on B. In all settings, the samples in X N are i.i.d.standard normal and the bias i.i.d.normal with different variances.From left to right: σ 2 = 0, σ 2 = 0.1, and σ 2 = 1.For σ 2 = 0 we observe the clear transition from non-injective to injective at a redundancy of 6.7 (solid magenta line) that aligns well with the conjecture from the literature.For larger variance, the transition blurs out quickly and prevents us from predicting clear statements about injectivity.

Figure 8 :

249Figure 8: Left: The inscribing polytope for the Tetrahedron frame.Right: The Euclidean distance of α (k) to the maximal bias of the Tetrahedron frame α S on a log y-scale over 10 5 iterations.In cases where the inscribing polytope is a simplicial and regular polytope, the sampling-based bias estimation is sub-optimal, and the polytope approach already gives the maximal bias.

Figure 9 :

250Figure 9: Left: The frame is omnidirectional.Right: The frame is not omnidirectional.

251min j:ϕ i ∈F j C I F j D I F j c i subject to c ≥ 0 ∥D I F j c∥ 2 = 1.

252is a Lipschitz stability analysis of ReLU layers, our goal is to demystify the injectivity of a single ReLU layer in a more realistic setting, namely with any given weights and biases on bounded input data domains K ⊆ R

253n , and to provide methods of verifying injectivity in practice.This extends the ideas and methods by Haider et al. introduced in [17] significantly.Further related preprints are by Behrmann et al., who study the pre-images of ReLU layers from a geometric point of view [5] and by Maillard et al., which focus on injectivity of ReLU layers with random weights

참고문헌 22건

  1. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification 2015 10.1109/iccv.2015.123
  2. Quantized Frame Expansions with Erasures Applied and Computational Harmonic Analysis · Elsevier BV · 2001 10.1006/acha.2000.0340
  3. An Inscribing Model for Random Polytopes Discrete & Computational Geometry · Springer Science+Business Media · 2007 10.1007/s00454-007-9012-3
  4. Full Spark Frames Journal of Fourier Analysis and Applications · Birkhäuser · 2012 10.1007/s00041-012-9235-4
  5. Saving phase: Injectivity and stability for phase retrieval Applied and Computational Harmonic Analysis · Elsevier BV · 2013 10.1016/j.acha.2013.10.002
  6. On point energies, separation radius and mesh norm for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si1.gif" overflow="scroll"><mml:mi>s</mml:mi></mml:math>-extremal configurations on compact sets in <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si2.gif" overflow="scroll"><mml:msup><mml:mrow><mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msup></mml:math> Journal of Complexity · Elsevier BV · 2005 10.1016/j.jco.2005.04.005
  7. On signal reconstruction without phase Applied and Computational Harmonic Analysis · Elsevier BV · 2005 10.1016/j.acha.2005.07.001
  8. The Covering Radius of Randomly Distributed Points on a Manifold International Mathematics Research Notices · Oxford University Press · 2015 10.1093/imrn/rnv342
  9. Random polytopes in a ball Journal of Applied Probability · Cambridge University Press · 1984 10.2307/3213693
  10. Points on manifolds with asymptotically optimal covering radius Journal of Complexity · Elsevier BV · 2018 101016jjco201803002
  11. ImageNet classification with deep convolutional neural networks Communications of the ACM · Association for Computing Machinery · 2017 10.1145/3065386
  12. Deep Convolutional Framelets: A General Deep Learning Framework for Inverse Problems SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2018 10.1137/17m1141771
  13. Analysis of Invariance and Robustness via Invertibility of ReLU-Networks arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1806.09730
  14. Points on manifolds with asymptotically optimal covering radius Journal of Complexity · Elsevier BV · 2018 10.1016/j.jco.2018.03.002
  15. Lectures on Polytopes Updated Seventh Printing of the First Edition 1995 10.1007/978-1-4613-8431-1
  16. Finite Frames Applied and numerical harmonic analysis · Springer International Publishing · 2012 10.1007/978-0-8176-8373-3
  17. Efficient BackProp Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-35289-8_3
  18. Normalization Techniques in Training DNNs: Methodology, Analysis and Application IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2023 10.1109/tpami.2023.3250241
  19. An Introduction to Frames and Riesz Bases Applied and numerical harmonic analysis · Springer International Publishing · 2003 10.1007/978-0-8176-8224-8
  20. Asymptotic Distributions of Covering and Separation Measures on the Hypersphere Discrete & Computational Geometry · Springer Science+Business Media · 2022 10.1007/s00454-022-00413-9
  21. Declipping and the recovery of vectors from saturated measurements arXiv (Cornell University) · Cornell University · 2024 10.48550/arxiv.2402.03237
  22. Injectivity of ReLU networks: Perspectives from statistical physics Applied and Computational Harmonic Analysis · Elsevier BV · 2024 10.1016/j.acha.2024.101736