Decomposition Polyhedra of Piecewise
Linear Functions
October 07, 2024
In this paper we contribute to the frequently studied question of how to decompose a continuous piecewise linear (CPWL) function into a difference of two convex CPWL functions. Every CPWL function has infinitely many such decompositions, but for applications in optimization and neural network theory, it is crucial to find decompositions with as few linear pieces as possible. This is a highly challenging problem, as we further demonstrate by proving that a recently proposed approach by [1] does not extend beyond two dimensions. To make the problem more tractable, we propose to fix an underlying polyhedral complex determining the possible locus of nonlinearity. Under this assumption, we prove that the set of decompositions forms a polyhedron that arises as intersection of two translated cones. We prove that irreducible decompositions correspond to the bounded faces of this polyhedron and minimal solutions must be vertices. We then identify cases with a unique minimal decomposition, and illustrate how our insights have consequences in the theory of submodular functions. Finally, we improve upon previous constructions of neural networks for a given convex CPWL function and apply our framework to obtain results in the nonconvex case.
Continuous piecewise linear (CPWL) functions play a crucial role in optimization and machine learning. While they have traditionally been used to describe problems in geometry, discrete and submodular optimization, or statistical regression, they recently gained significant interest as functions represented by neural networks with rectified linear unit (ReLU) activations [2]. Extensive research has been put into understanding which neural network architectures are capable of representing which CPWL functions [3]–[6]. A major source of complexity in all the aforementioned fields is nonconvexity. Indeed, not only are nonconvex optimization problems generally much harder to solve than convex ones, but also for neural networks, nonconvexities are usually responsible for making the obtained representations complicated.
It is a well-known folklore fact that every (potentially nonconvex) CPWL function \(f\colon \mathbb{R}^n\to\mathbb{R}\) can be written as the difference \(f=g-h\) of two convex CPWL functions [7], [8]. Consequently, a natural idea to circumvent the challenges induced by nonconvexity is to use such a decomposition \(f=g-h\) and solve the desired problem separately for \(g\) and \(h\). This is the underlying idea of many successful optimization routines, known as DC programming (see survey by [9]), and also occurs in the analysis of neural networks [10], [11]. However, the crucial question arising from this strategy is: how much more complex are \(g\) and \(h\) compared to \(f\)? A well-established measure for the complexity of a CPWL function is the number of its linear pieces. Therefore, the main question we study in this article is the following.
Problem 1. How to decompose a CPWL function \(f\) into a difference \(f=g-h\) of two convex CPWL functions with as few pieces as possible?
There exist many ways in the literature to obtain decompositions into two convex functions, as we discuss later, but none of them guarantees minimality or at least a useful bound on the number of pieces of \(g\) and \(h\) depending on those of \(f\). In fact, no finite procedure is known that guarantees to find a minimal decomposition, despite a recent attempt by [1].
In this article, we propose a novel perspective on 1 making use of polyhedral geometry and prove a number of structural results. We then apply our approach to existing decompositions in the literature, as well as to the theory of submodular functions and to the construction of neural networks representing a given CPWL function, serving as an additional motivation. Our detailed contributions are outlined as follows.
After setting the preliminaries in 2 and introducing different ways to represent and study CPWL functions in 3, 4 presents our new polyhedral approach to 1. Instead of aiming for a globally optimal decomposition, we propose to restrict to solutions that are compatible with a given regular polyhedral complex \(\mathcal{C}\). In short, this means fixing where the functions \(g\) and \(h\) may have breakpoints, that is, points where they are not locally linear. We prove that the set of solutions to decompose \(f\) in a way that is compatible with \(\mathcal{C}\) is a polyhedron \(\mathcal{D}_{\mathcal{C}}(f)\) that arises as the intersection of two shifted polyhedral cones (5). We call this the decomposition polyhedron of \(f\) with respect to \(\mathcal{C}\). We prove several structural properties of \(\mathcal{D}_{\mathcal{C}}(f)\). Among them, we show that the bounded faces of \(\mathcal{D}_{\mathcal{C}}(f)\) are exactly those that cannot easily be simplified by subtracting a convex function (7), and we show that a minimal solution must be a vertex of \(\mathcal{D}_{\mathcal{C}}(f)\) (11). The latter implies a finite procedure to find a minimal decomposition among those that are compatible with \(\mathcal{C}\), by simply enumerating the (potentially many) vertices of \(\mathcal{D}_{\mathcal{C}}(f)\). It also implies that, if there is a unique vertex, then there is a unique minimal decomposition. We demonstrate that this is indeed the case for important CPWL functions, e.g., the median function, or those computed by a 1-hidden-layer ReLU network.
In 5, we demonstrate that our framework naturally translates to the setting of virtual polytopes [12]. We explain how decomposing a positively homogeneous CPWL function corresponds to finding representatives of a virtual polytope as a Minkowski difference of two conventional polytopes. Our main results translate directly, showing that minimal representatives, those with the fewest vertices, must correspond to vertices of an analogous “representative polyhedron”.
Afterwards, in 6, we put our investigations into a broader context within the existing literature. We compare our minimality conditions with existing methods to construct decompositions. Notably, in this context, we refute a conjecture by [1], who provide an optimal construction method in dimension 2 and suggest that it might generalize to higher dimensions. However, we show that the construction does not generalize in the suggested way.
In 7, we show that our framework entails the setup of set functions which are decomposed into differences of submodular set functions. Representing a set function as such a difference is a popular approach to solve optimization problems similarly to DC programming, see [13]–[15]. We apply our results from 4 to obtain analogous structural insights about (submodular) set functions (8).
Finally, in 8, we study the problem of constructing neural networks representing a given CPWL function. For convex CPWL functions, we blend two incomparable previous constructions by [6] and [4] to let the user freely choose a trade-off between depth and width of the constructed networks. We then apply the results of this paper to extend this to the nonconvex case by first decomposing the input function as a difference of two convex ones.
We emphasize that the focus of our paper is fundamental research by building a theoretical foundation to tackle 1 and connecting it with other fields. As such, our paper does not imply any direct improvement for a practical task, but it might prove helpful for that in the future. In particular, it is beyond the scope of our paper to provide any implementation of a (heuristic or exact) method to decompose a CPWL function into a difference of two convex ones. We consider it an exciting avenue for future research to do so, and to apply it to DC programming, discrete optimization, or neural networks.
On the theoretical side, the approach of fixing an underlying compatible polyhedral complex imposes some restriction on the set of possible solutions and can therefore be seen as a limitation. However, we think that this assumption is well justified by the structural properties this assumption allows us to infer and by the examples we demonstrate to fit into the framework. Even with this assumption, the problem remains very challenging.
Explicit constructions to decompose CPWL functions as differences of convex CPWL functions can be found in several articles, such as [8], [16]–[18]. This was initiated in the \(1\)-dimensional case by [19], and already laid out for positively homogeneous functions in general dimensions by [7]. Typically, such decompositions are based on certain representations of CPWL functions, which have been constructed, e.g., in [20]–[22]; see also [23], [24] for a fresh perspective. These representations also help to understand the representative capabilities of neural networks, see [2], [4], [6].
Recently, a minimal decomposition for the \(2\)-dimensional case was given by [1]. They use a duality between CPWL functions and polyhedral geometry, based on the “balancing condition” from tropical geometry. This condition has already been studied by [25] in terms of weight spaces of polytopes. Generally, methods from tropical geometry have been successfully used to understand the geometry of neural networks [10], [26], [27]. In this context, a central open question is the required depth to exactly represent CPWL functions on \(\mathbb{R}^n\) [3], [5], [6], [28], [29].
Submodular functions are sometimes called the discrete analogue of convex functions, and optimizing over them is a widely studied problem, which is also relevant for machine learning. A submodular function can be minimized in polynomial time [30]. In analogy to DC programming, this sparked the idea of minimizing a general set function by representing it as a difference of two submodular ones [13]–[15]. Related decompositions were recently studied by [31]. In polyhedral theory, such a decomposition is equivalent to Minkowski differences of generalized permutahedra [32], [33].
Another closely related stream of work is concerned with the (exact and approximate) representative capabilities of neural networks, starting with universal approximation theorems [34], and specializing to ReLU networks, their number of pieces, as well as depth-width-tradeoffs [2], [35]–[37]. In addition, [11], [38], [39] provide neural network constructions and bounds for CPWL functions related to combinatorial optimization problems. Geometric insights have also proven to be useful to understand the computational complexity of tasks related to neural networks, like training and verification [40]–[44]. Recently, [45] give an explicit construction of how to efficiently approximate the maximum function with ReLU networks.
In this section we introduce the necessary preliminaries on polyhedral geometry and CPWL functions; see [46] for more details.
For a vector \(a \in \mathbb{R}^{d}\) and a scalar \(b \in \mathbb{R}\), the hyperplane \[H_{a,b} \mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid \langle a,x \rangle+b=0\}\]subdivides \(\mathbb{R}^d\) into half-spaces \[H^{+}_{a,b} \mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid \langle a,x \rangle+b\geq 0\} \text{ and }H^{-}_{a,b} \mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid \langle a,x \rangle+b\leq0\}.\] A polyhedron \(P\) is the intersection of finitely many half-spaces and a polytope is a bounded polyhedron. A hyperplane supports \(P\) if it bounds a half-space containing \(P\), and any intersection of \(P\) with such a supporting hyperplane yields a face \(F\) of \(P\). For any direction \(u \in \mathbb{R}^d\), it holds that \(P^u \mathrel{\vcenter{:}}= \operatorname{argmax}\{\langle u,y \rangle \mid y \in P\}\) is a face of \(P\) and every face of \(P\) except for the empty face is of this form. A face is a proper face if \(F \subsetneq P\) and inclusion-maximal proper faces are referred to as facets. A polyhedral cone \(C \subseteq \mathbb{R}^d\) is a polyhedron such that \(\lambda u + \mu v \in C\) for every \(u,v \in C\) and \(\lambda, \mu \in \mathbb{R}_{\geq 0}\). The dual cone of \(C\) is \(C^\vee = \{y \in (\mathbb{R}^d)^* \mid \langle x,y \rangle\geq 0 \text{ for all } x \in C\}.\) A cone is pointed if it does not contain a line. A cone \(C\) is simplicial, if there are linearly independent vectors \(v_1,\ldots,v_k\in \mathbb{R}^d\) such that \(C=\{\sum_{i=1}^k\lambda_i v_i \mid \lambda_i \geq 0\}\). For a cone \(C\) and \(t \in \mathbb{R}^d\), we call \(t+C\) a shifted cone or translated cone. A ray \(\rho\) is a one-dimensional pointed cone; a vector \(r\) is a ray generator of \(\rho\) if \(\rho = \{\lambda\, r \mid \lambda \geq 0\}\). A ray \(\rho \subseteq C\) of a cone \(C\) is an extreme ray if there do not exist \(\lambda_1,\lambda_2 >0\) and distinct rays \(\rho_1,\rho_2 \subseteq C\) such that \(\rho = \lambda_1 \rho_1 + \lambda_2 \rho_2\). A polyhedral complex \(\mathcal{C}\) is a finite collection of polyhedra such that
\(\emptyset \in \mathcal{C}\)
if \(P \in \mathcal{C}\) then all faces of \(P\) are in \(\mathcal{C}\), and
if \(P, P' \in \mathcal{C}\), then \(P \cap P'\) is a face both of \(P\) and \(P'\).
For a polyhedral complex \(\mathcal{C}\) in \(\mathbb{R}^d\) and \(k \leq d\) we denote by \(\mathcal{C}^k\) the set of \(k\)-dimensional polyhedra in \(\mathcal{C}\). A polyhedral fan is a polyhedral complex in which every polyhedron is a cone. We call \(\mathcal{C}^{d-1}\) the facets of \(\mathcal{C}\) and \(\mathcal{C}^d\) the regions of \(\mathcal{C}\). The dimension of a complex \(\mathcal{C}\) is the maximal dimension of its polyhedra. A polyhedral complex \(\mathcal{C}\) in \(\mathbb{R}^d\) is called pure of dimension \(k\) if all its maximal polyhedra have dimension \(k\), and complete if the union of its polyhedra covers \(\mathbb{R}^d\). In this paper, we mainly consider pure and complete polyhedral complexes.
Given two \(d\)-dimensional polyhedral complexes \(\mathcal{C}, \mathcal{Q}\), the complex \(\mathcal{C}\) is a refinement of \(\mathcal{Q}\) if for every \(\tau \in \mathcal{C}^d\) there exists \(\sigma \in \mathcal{Q}^d\) such that \(\tau \subseteq \sigma\). The complex \(\mathcal{Q}\) is a coarsening of \(\mathcal{C}\) if \(\mathcal{C}\) is a refinement of \(\mathcal{Q}\). The star of a face \(\tau \in \mathcal{C}\) is the set of all faces containing \(\tau\), i.e., \(\operatorname{star}_{\mathcal{C}}(\tau) = \{\sigma \in \mathcal{C}\mid \tau \subseteq \sigma\}\). The support of a polyhedral complex \(\mathcal{C}\) is given by \(|\mathcal{C}|=\bigcup_{P \in \mathcal{C}} P\).
A function \(f\colon\mathbb{R}^d\to\mathbb{R}\) is called continuous and piecewise linear (CPWL)1, if there exists a complete polyhedral complex \(\mathcal{C}\) such that the restriction of \(f\) to each polyhedron \(P\in\mathcal{C}\) is an affine linear function. If this condition is satisfied, we say that \(f\) and \(\mathcal{C}\) are compatible with each other. A vector \(x \in \mathbb{R}^d\) is a breakpoint of \(f\) if there is no open set \(U \subseteq \mathbb{R}^d\) containing \(x\) such that \(f\) is affine linear on \(U\). The breakpoints of \(f\) are contained in the union \(\bigcup_{\sigma \in \mathcal{C}^{d-1}} \sigma\) of facets of every complex \(\mathcal{C}\) compatible with \(f\). The restriction \(f_{|R}\) of the function \(f\) to a region \(R\) of \(\mathcal{C}\) is called a linear component of \(f\). The number of pieces of \(f\) is the smallest possible number of regions \(\#\mathcal{C}^d\) of a compatible polyhedral complex \(\mathcal{C}\). We denote by \(\operatorname{CPWL}_d\) the vector space of CPWL functions from \(\mathbb{R}^d\) to \(\mathbb{R}\).
If \(f\) is a convex CPWL function, then it can be written as the maximum of its linear components \(f(x)=\max_{i\in[k]} \langle a_i,x \rangle + b_i\). It follows that there is a unique coarsest compatible polyhedral complex \(\mathcal{C}_f\), namely the one with \[\mathcal{C}_f^d = \{\{x\in \mathbb{R}^d\mid \langle a_i,x \rangle + b_i = f(x) \}\mid i \in [k]\}.\] Hence, for convex functions, the number of pieces and the number of linear components coincides. We denote by \(\operatorname{CPWL}^+_d\) the cone of convex CPWL functions from \(\mathbb{R}^d\) to \(\mathbb{R}\). We call a polyhedral complex \(\mathcal{C}\) regular, if there exists a convex CPWL function \(f\) such that \(\mathcal{C}=\mathcal{C}_f\).
In this section, we describe several ways to represent and study CPWL functions from a polyhedral perspective. First, we show that CPWL functions can be parameterized by encoding their local convexity or concavity at the facets of a compatible polyhedral complex, leading to the notion of a balanced complex. Positively homogeneous convex CPWL functions, in particular, correspond to polytopes, and the associated balanced fan is the normal fan of the polytope. This section develops these correspondences in more detail. Most of the results are classical in tropical geometry (see e.g. [47] and [48]) and already appear in [25], but sometimes we adapt them slightly to fit our setting.
A pure \(d\)-dimensional polyhedral complex \(\mathcal{C}\) can be equipped with a weight function \(w : \mathcal{C}^{d-1} \to \mathbb{R}\), as we describe as follows. Given a face \(\sigma \in \mathcal{C}\), we denote by \(\operatorname{aff}(\sigma) \subseteq \mathbb{R}^d\) the unique smallest affine subspace containing \(\sigma\). The relative interior of \(\sigma\) is the interior of \(\sigma\) inside the affine space \(\operatorname{aff}(\sigma)\). For any dimension \(k\leq d\) and any \(\tau \in \mathcal{C}^{k-1},\sigma \in \mathcal{C}^{k}\) with \(\tau \subseteq \sigma\), let \(e_{\sigma/\tau} \in \mathbb{R}^d\) be the normal vector of \(\tau\) with respect to \(\sigma\), that is, the unique vector with length one that is parallel to \(\operatorname{aff}(\sigma)\), orthogonal to \(\operatorname{aff}(\tau)\), and points from the relative interior of \(\tau\) into the relative interior of \(\sigma\). A pair \((\mathcal{C},w)\) forms a (weighted) balanced polyhedral complex if the weight function satisfies the balancing condition at every \(\tau \in \mathcal{C}^{d-2}\): \[\label{eq:balancing-condition} \sum\limits_{\substack{\sigma \in \mathcal{C}^{d-1}: \\ \sigma \supset \tau}} w(\sigma)\cdot e_{\sigma/\tau}=0.\tag{1}\]
In the case where \(\mathcal{C}\) is a polyhedral fan in \(\mathbb{R}^2\), there is only one \(0\)-dimensional face, namely the origin. The balancing condition then requires that the weighted sum of the unit-length ray generators of the rays in \(\mathcal{C}\) equals the zero vector. In higher dimensions, taking the star of a codimension-\(2\) face \(\tau\) and modding out \(\tau\) yields a two-dimensional fan. Intuitively, the balancing condition requires that this two-dimensional fan is balanced in the same sense as described above, see 1 for an illustration.
Lemma 1. Let \(f\) be a CPWL function compatible with the polyhedral complex \(\mathcal{C}\). For a facet \(\sigma \in \mathcal{C}^{d-1}\), let \(P,Q \in \mathcal{C}^d\) be the unique polyhedra such that \(P \cap Q = \sigma\) and let \(a_P,a_Q \in \mathbb{R}^d, b_P,b_Q\in \mathbb{R}\) such that \(f_{|P}(x) = \langle a_P,x \rangle + b_P\) for \(x \in P\) and \(f_{|Q}(x) = \langle a_Q,x \rangle + b_Q\) for \(x \in Q\). Then, the function \(w_f \colon \mathcal{C}^{d-1} \to \mathbb{R}\) with \[w_f(\sigma) \mathrel{\vcenter{:}}= \langle e_{P/\sigma}, a_{P} \rangle + \langle e_{Q/\sigma}, a_{Q} \rangle = \langle e_{P/\sigma}, a_{P} - a_{Q} \rangle\] defines a balanced polyhedral complex \((\mathcal{C},w_f)\).
Proof. Note that if \(f\) is locally convex at \(\sigma\), then \(\langle e_{P/\sigma}, a_{P} - a_{Q} \rangle = \|a_{P} - a_{Q}\|_2\) and if \(f\) is locally concave at \(\sigma\), then \(\langle e_{P/\sigma}, a_{P} - a_{Q} \rangle = -\|a_{P} - a_{Q}\|_2\). The proof proceeds analogously to the case where \(f\) has only convex breakpoints and the coefficients of the affine maps are rational. In this case, the lemma follows from the structure theorem of tropical geometry ([47] Proposition 3.3.2). Here, we present an adjusted proof (to not necessarily convex functions and irrational coefficients). Let \(\tau \in \mathcal{C}^{d-2}\) and \(\{P_1,\ldots,P_m\}=\operatorname{star}_\mathcal{C}(\tau) \cap \mathcal{C}^d\) and \(\{\sigma_1,\ldots,\sigma_m\}=\operatorname{star}_\mathcal{C}(\tau) \cap \mathcal{C}^{d-1}\) be ordered in a cyclic way, that is, \(P_i \cap P_{i+1} = \sigma_i\) for \(i \in [m]\), where \(P_{m+1}=P_1\). Note that, since \(f\) is continuous, we have that \(a_{P_i}-a_{P_{i+1}} \in \operatorname{span}(e_{P_i/\sigma_i})\). The linear map \(T_\tau \colon \operatorname{aff}(\tau)^\perp \to \operatorname{aff}(\tau)^\perp\) satisfying \(T_\tau(e_{P_i/\sigma_i}) = e_{\sigma_i/\tau}\) (given by a rotation matrix) is an automorphism, implying that \[\begin{align} \sum_{\substack{\sigma \supset \tau\\\sigma \in \mathcal{C}^{d-1}}} w_f(\sigma)\cdot e_{\sigma/\tau}&= \sum_{i=1}^{m}w_f(\sigma_i)\cdot T_\tau(e_{P_i/\sigma_i})\\&= T_\tau\left(\sum_{i=1}^{m}\langle e_{P_i/\sigma_i},a_{P_i}-{a_{P_{i+1}}} \rangle\cdot e_{P_i/\sigma_i}\right)\\&= T_\tau\left(\sum_{i=1}^{m}\langle e_{P_i/\sigma_i},e_{P_i/\sigma_i} \rangle\cdot (a_{P_i}-{a_{P_{i+1}}})\right)\\&= T_\tau(0)=0. \end{align}\] ◻
Lemma 2. Let \((\mathcal{C},w)\) be a balanced polyhedral complex. Then there exists a function \(f\) compatible with \(\mathcal{C}\) such that \(w_f=w\).
Proof. In the case that \(w_f\) is nonnegative, the lemma follows from [47] Proposition 3.3.10. Here, we present an adjusted proof (to not necessarily convex functions and irrational coefficients). Let \(\mathcal{C}^d=\{P_1, \ldots, P_k\}\) and for \(P \in \mathcal{C}^d, \sigma \in \mathcal{C}^{d-1}\), let \(b_{P/\sigma} \in \mathbb{R}\) such that \(\sigma\) is contained in the hyperplane \(\{x \in \mathbb{R}^d \mid \langle e_{P/\sigma},x \rangle+b_{P/\sigma}=0\}\) and define the function \(f_{P/\sigma}\colon\mathbb{R}^d \to \mathbb{R}\) by \(f_{P/\sigma}(x)=\langle e_{P/\sigma},x \rangle+b_{P/\sigma}\). Since \(\mathcal{C}\) is complete, the graph \(G=(V,E)\) given by \(V=\{1,\ldots,k\}\) and \(E=\{\{i,j\}\mid P_i \cap P_j \in \mathcal{C}^{d-1}\}\) is connected. Start by defining the function \(f_{|P_1} = 0\). For \(1<i\leq k\), let \((j_1,\ldots, j_m)\) be a path from \(1\) to \(i\) and for \(\ell \in[m-1]\), let \(\sigma_\ell = P_{j_\ell} \cap P_{j_{\ell+1}}\) and define the function \[f_{|P_i}= \sum_{\ell=1}^{m-1} w(\sigma_\ell) \cdot f_{P_{j_\ell}/\sigma_\ell}.\] First, we argue that \(f_{|P_i}\) is well-defined, that is, the definition of \(f_{|P_i}\) does not depend on the path from vertex \(1\) to \(i\). Equivalently, it suffices to show that for any cycle \((i_1,\ldots,i_m)\) in \(G\) with \(i_1=i_m\), it holds that \(\sum_{\ell=1}^{m-1} w(\sigma_\ell) f_{{P_{i_\ell}/\sigma_\ell}}=0\), where \(\sigma_\ell = P_{i_\ell} \cap P_{i_{\ell+1}}\). Since \(\mathcal{C}\) is complete any cycle decomposes into cycles \((i_1,\ldots,i_m)\) corresponding to the star of a cone \(\tau \in \mathcal{C}^{d-2}\), that is, \(\{\sigma_1,\ldots, \sigma_{m-1}\} = \{\sigma \in \mathcal{C}^{d-1} \mid \sigma \supset \tau\}\). Since the map \(T_\tau\) from 1 is an automorphism, it holds that \(\sum_{\ell=1}^{m-1} w(\sigma_\ell)\cdot e_{\sigma_\ell/\tau}=0\) if and only if \(\sum_{\ell=1}^{m-1} w(\sigma_\ell) \cdot e_{P_{i_\ell}/\sigma_\ell}=0\).
So, let \(x \in \mathbb{R}^d\) be arbitrary and \(x' \in \operatorname{aff}(\tau)\) and \(x''\in \operatorname{aff}(\tau)^\perp\) such that \(x=x'+x''\). Since \(w\) is balanced, it holds that \(\sum\limits_{\substack{\sigma \supset \tau\\\sigma \in \mathcal{C}^{d-1}}} w(\sigma)\cdot e_{\sigma/\tau}=0\) and hence it follows that \[\begin{align} \sum_{\ell=1}^{m-1} w(\sigma_\ell) f_{{P_{i_\ell}/\sigma_\ell}}(x) &= \sum_{\ell=1}^{m-1} w(\sigma_\ell) \cdot (\langle e_{P_{i_\ell}/\sigma_\ell} ,x'+x'' \rangle+b_{P_{i_\ell}/\sigma_\ell}) \\&= \sum_{\ell=1}^{m-1} w(\sigma_\ell) \cdot \langle e_{P_{i_\ell}/\sigma_\ell} ,x'' \rangle \\&= \langle \sum_{\ell=1}^{m-1} w(\sigma_\ell) \cdot e_{P_{i_\ell}/\sigma_\ell,x''} \rangle \\&=0. \end{align}\]
By definition, \(f\) is a CPWL function and compatible with \(\mathcal{C}\). Let \(P,Q \in \mathcal{C}^{d}\) such that \(\sigma = P \cap Q \in \mathcal{C}^{d-1}\). Then it holds that \(a_P-a_Q=w(\sigma)\cdot e_{P/\sigma}\) and hence \[w_f(\sigma)=\langle e_{P/\sigma}, a_{P} \rangle + \langle e_{Q/\sigma}, a_{Q} \rangle= \langle e_{P/\sigma},a_P-a_Q \rangle =\langle e_{P/\sigma},w(\sigma)\cdot e_{P/\sigma} \rangle = w(\sigma),\] finishing the proof. ◻
Lemma 3. Let \(\mathcal{C}\) be a polyhedral complex in \(\mathbb{R}^d\). The set of CPWL functions compatible with \(\mathcal{C}\) forms a linear subspace \(\mathcal{V}_\mathcal{C}\) of the vector space \(\operatorname{CPWL}_d\) of CPWL functions from \(\mathbb{R}^d\) to \(\mathbb{R}\).
Proof. Let \(f,g\) be CPWL functions which are compatible with \(\mathcal{C}\), and \(\lambda, \mu \in \mathbb{R}\). Then for any \(P \in \mathcal{C}^d\) holds \((\lambda f + \mu g)_{|P} = \lambda f_{|P} + \mu g_{|P}\), which is an affine function restricted to \(P\). Thus, the set \(\mathcal{V}_\mathcal{C}\) of CPWL functions compatible with \(\mathcal{C}\) forms a linear subspace of the space of continuous functions. ◻
Let \(\operatorname{Aff}(\mathbb{R}^d)\) be the space of affine functions from \(\mathbb{R}^d\) to \(\mathbb{R}\). For many of our arguments, adding or subtracting an affine function \(a\in \operatorname{Aff}(\mathbb{R}^d)\) does not change anything. In particular, a function \(f\) is convex if and only if \(f+a\) is convex. Therefore it makes sense to define the quotient space \(\overline{\mathcal{V}}_\mathcal{C}\mathrel{\vcenter{:}}=\mathcal{V}_\mathcal{C}/\operatorname{Aff}(\mathbb{R}^d)\), where we identify functions in \(\mathcal{V}_\mathcal{C}\) that only differ by adding an affine function. 1 and 2 imply that we can parameterize a function \(f \in \overline{\mathcal{V}}_\mathcal{C}\) by keeping track of “how convex or concave” the function is at the common face \(\sigma \in \mathcal{C}^{d-1}\) of two neighboring pieces, as we summarize in the following lemma.
Lemma 4. The vector space \(\mathcal{W}_\mathcal{C}\mathrel{\vcenter{:}}= \{w \colon \mathcal{C}^{d-1} \to \mathbb{R}\mid (\mathcal{C},w)\) is balanced\(\}\) is isomorphic to \(\overline{\mathcal{V}}_\mathcal{C}\).
Proof. By 1, \(f \mapsto w_f\) is a linear map from \(\mathcal{V}_\mathcal{C}\) to \(\mathcal{W}_\mathcal{C}\), which is surjective by 2. The kernel of the map is \(\operatorname{Aff}(\mathbb{R}^d)\). To see this, let \(f\) be in the kernel of the map \(f \mapsto w_f\). It holds that \[w_f(\sigma) = \langle e_{P/\sigma},a_P \rangle+\langle e_{Q/\sigma},a_Q \rangle = \langle e_{P/\sigma},a_P-a_Q \rangle = 0\] if and only if \(a_P-a_Q=0\) due to the fact that \(a_P-a_Q \in \operatorname{span}(e_{P/\sigma})\). Due to the continuity of \(f\), this also implies that \(b_{P}=b_Q\) and hence \(f_{|Q}=f_{|P}\) and therefore \(f\) is affine linear. ◻
Corollary 1. \(\mathcal{V}_\mathcal{C}\) is finite-dimensional.
Proof. By 4, we have that \(\overline{\mathcal{V}}_\mathcal{C}= \mathcal{V}_\mathcal{C}/ \operatorname{Aff}(\mathbb{R}^d) \cong \mathcal{W}_\mathcal{C}\). Thus, the dimension of \(\mathcal{V}_\mathcal{C}\) is bounded from above by \(\dim(\mathcal{W}_\mathcal{C})+\dim(\operatorname{Aff}(\mathbb{R}^d))\leq \#\mathcal{C}^{d-1}+(d+1)\). ◻
In the following proposition, we prove that nonnegative (positive) weights in fact correspond to the function being (strictly) convex.
Proposition 2. A function \(f \in \mathcal{V}_\mathcal{C}\) is convex if and only if \(w_f\) is nonnegative. Moreover, \(f\) is strictly convex with \(\mathcal{C}= \mathcal{C}_f\) if and only if \(w_f\) is strictly positive.
Proof. The function \(f\) is convex if and only if it is locally convex around every \(x \in \mathbb{R}^d\). If \(x\) is in the relative interior of some \(P \in \mathcal{C}^d\), then this is clearly satisfied since the function is locally affine linear. Now, assume that \(f\) is not locally convex around a \(x \in \tau\) for some \(\tau \in \mathcal{C}^{d-2}\). In other words, there are \(y,z \in \mathbb{R}^d\) and \(\lambda \in (0,1)\) such that \(f(\lambda z + (1-\lambda)y) > \lambda f(z) + (1-\lambda)f(y)\) and such that the line between \(x\) and \(y\) intersects \(\tau\). Let \(L\) be the Lipschitz constant of \(f\) and \(\delta \mathrel{\vcenter{:}}= f(\lambda z + (1-\lambda)y) - \lambda f(z) - (1-\lambda)f(y) > 0\). Let \(\varepsilon \mathrel{\vcenter{:}}= \frac{\delta}{4L} > 0\). Then there are \(v,w \in \mathbb{R}^d\) with \(\|v\|,\|w\| < \varepsilon\) such that the line between \(z+v\) and \(y+w\) does not intersect any face \(\tau \in \mathcal{C}^{d-2}\). But then,
\[\begin{align} f(\lambda (z+v) + (1-\lambda)(y+w))&\geq f(\lambda z + (1-\lambda)y) - L (\|\lambda v \| + \|(1-\lambda)w\|) \\& > f(\lambda z + (1-\lambda)y) - 2L\varepsilon \\&= \delta +\lambda f(z) + (1-\lambda)f(y) - 2L\varepsilon \\&\geq \delta + \lambda f(z+v) + (1-\lambda)f(y+w) - 2L\varepsilon - 2L\varepsilon \\&= \lambda f(z+v) + (1-\lambda)f(y+w) \end{align}\]
and there must be a \(x'\) in the relative interior of some \(\sigma \in \mathcal{C}^{d-1}\) with \(\sigma =P \cap Q\) for \(Q \in \mathcal{C}^d\) such that \(f\) is not locally convex around \(x'\). Hence, \(f\) is convex if and only if \(f\) is locally convex around every \(\sigma \in \mathcal{C}^{d-1}\), that is, \(f\) is locally convex around every \(x\) in the relative interior of \(\sigma\). For any such \(x\), there is a \(\lambda >0\) such that \(x + \lambda \cdot e_{P/ \sigma} \in P\) and \(x + \lambda \cdot e_{Q/ \sigma} \in Q\), by construction of \(e_{P/ \sigma}\) and \(e_{Q/ \sigma}\). Recall from the proof of 4 that \(w_f(\sigma)=\langle e_{P/\sigma}, a_{P} \rangle + \langle e_{Q/\sigma}, a_{Q} \rangle\), where \(f_{|P}(x) = \langle a_P,x\rangle +b_P\) and \(f_{|Q}(x) = \langle a_Q,x\rangle +b_Q\). Since \(P,Q \in \mathcal{C}^d\) and \(\| e_{P/\sigma} \| = \|e_{Q/\sigma}\| = 1\), we have that \(x\) is the midpoint of \(x + \lambda \cdot e_{P/\sigma}\) and \(x + \lambda \cdot e_{Q/\sigma}\). Therefore, \(f\) is convex if and only if \(f(x) \leq \frac{1}{2} f(x + \lambda \cdot e_{P/\sigma}) + \frac{1}{2} f(x + \lambda \cdot e_{Q/ \sigma})\). Equivalently, \[0 \leq f(x + \lambda \cdot e_{P/\sigma}) + f(x + \lambda \cdot e_{Q/ \sigma}) - 2f(x) = \lambda(\langle e_{P/\sigma}, a_{P} \rangle + \langle e_{Q/\sigma}, a_{Q} \rangle)=\lambda \cdot w_f(\sigma).\] If \(\mathcal{C}= \mathcal{C}_f\), then we have strict local convexity at every \(\sigma \in \mathcal{C}^{d-1}\), which means a strict inequality in the inequality above. ◻
Lemma 5. The set \(\mathcal{V}_\mathcal{C}^+\) of convex functions in \(\mathcal{V}_\mathcal{C}\) forms a polyhedral cone and \[\overline{\mathcal{V}}_\mathcal{C}^+\mathrel{\vcenter{:}}= \mathcal{V}_\mathcal{C}^+/\operatorname{Aff}(\mathbb{R}^d)\] forms a polyhedral cone in \(\overline{\mathcal{V}}_\mathcal{C}\).
Proof. 4 and 2 imply that the set of convex functions in \(\overline{\mathcal{V}}_\mathcal{C}\) satisfies \[\overline{\mathcal{V}}_\mathcal{C}^+\cong \mathcal{W}_\mathcal{C}^+\mathrel{\vcenter{:}}= \bigcap_{\sigma \in \mathcal{C}^{d-1}}\{w \in \mathcal{W}_\mathcal{C}\mid w(\sigma) \geq 0\}.\] This is a finite intersection of linear inequalities, so \(\mathcal{W}_\mathcal{C}^+\) is a polyhedral cone. Moreover, “\(\cong\)” is a linear isomorphism, which implies that \(\overline{\mathcal{V}}_\mathcal{C}^+\) is a polyhedral cone. The first statement thus follows from \(\mathcal{V}_\mathcal{C}^+ = \overline{\mathcal{V}}_\mathcal{C}^++\operatorname{Aff}(\mathbb{R}^d)\). ◻
Example 1 (Median). In this example, we have a look at the different parameterizations for the function that computes the median of \(3\) numbers. To have a \(2\)-dimensional example, we set \(x_3 \mathrel{\vcenter{:}}= 0\). The cones of the form \[P_{\pi}=\{x \in \mathbb{R}^2 \mid x_{\pi(1)} \leq x_{\pi(2)} \leq x_{\pi(3)}\}\] are the maximal cones of the braid fan (8), where \(\pi \colon [3] \to [3]\) is a permutation. Then, let \(f \colon \mathbb{R}^2 \to \mathbb{R}\) be the function given by \(f_{|P_{\pi}}(x) = x_{\pi(2)}\). The function \(f\) has concave breakpoints whenever the median and the higher coordinate change, i.e., at the facets that are given as \(\sigma_{\pi,1}=\{x \in \mathbb{R}^2 \mid x_{\pi(1)} \leq x_{\pi(2)} = x_{\pi(3)}\}\) and convex breakpoints whenever the median and the lower coordinate change, that is, at the facets that are given as \(\sigma_{\pi,2}=\{x \in \mathbb{R}^2 \mid x_{\pi(1)} = x_{\pi(2)} \leq x_{\pi(3)}\}\). Since \(\|e_1-e_2\|_2 =\sqrt{2}\) and \(\|e_1\|_2=\|e_2\|_2=1\), it holds that \[w_f(\sigma_{\pi,1})= \begin{cases} -\sqrt{2} & x_{\pi(1)}=x_3 \\ -1 & x_{\pi(1)} \neq x_3 \end{cases} \quad \text{ and } \quad w_f(\sigma_{\pi,2})= \begin{cases} \sqrt{2} & x_{\pi(3)}=x_3 \\ 1 & x_{\pi(3)} \neq x_3. \end{cases}\] See 2 for a \(2\)-dimensional illustration.
In this section, we describe the duality between positively homogeneous convex CPWL functions and polytopes. The Minkowski sum of two polytopes \(P,Q \subseteq \mathbb{R}^d\) is defined as \(P+Q\mathrel{\vcenter{:}}=\{p+q:p\in P,q\in Q\}\).
A CPWL function \(f \colon \mathbb{R}^d \to \mathbb{R}\) is positively homogeneous if \(f(\lambda x) = \lambda f(x)\) for all \(x \in \mathbb{R}^d\) and \(\lambda \geq 0\). If \(f\) is convex, then it is positively homogeneous if and only if \(f(0)=0\), and \(\mathcal{C}_f\) is a polyhedral fan. In this case, it can be written as \(f(x) = \max_{i \in [k]} \langle x,a_i \rangle\), where \(a_i \in \mathbb{R}^d\). We define the Newton polytope of such a function \(f\) as the convex hull \(\operatorname{Newt}(f) = \operatorname{conv}(a_1,\dots,a_k)\). Conversely, the support function \(f_P\) of a polytope \(P\) is given by \(f_P(x) = \max_{y \in P} \langle y,x \rangle\). See 3 for an example.
Theorem 3 (see, e.g., [6], [49]). For all convex positively homogeneous CPWL functions \(f\colon \mathbb{R}^d \to \mathbb{R}\), it holds that \(f\) is the support function of \(\operatorname{Newt}(f)\). Moreover, it holds that \(\operatorname{Newt}(f) + \operatorname{Newt}(g) =\operatorname{Newt}(f+g)\) and \(\operatorname{Newt}(\lambda f) = \lambda \operatorname{Newt}(f)\) for all convex positively homogeneous CPWL functions \(f,g \colon \mathbb{R}^d \to \mathbb{R}\) and all \(\lambda \geq 0\).
We now give an interpretation of \(\mathcal{C}_f\) and \(w_f\) in terms of the Newton polytope. Given any \(d\)-dimensional polytope \(P \subset \mathbb{R}^{d}\), the (outer) normal cone of a \(k\)-dimensional face \(F\) of \(P\) is the \((d-k)\)-dimensional cone \[\label{eq:normal-cone} N_F(P) = \left\{x \in \mathbb{R}^{d} \;\middle| \;\langle z,x \rangle = \max_{y \in P} \langle y,x \rangle \text{ for all } z \in F \right\}.\tag{2}\] In particular, if \(P = \operatorname{Newt}(f)\) and \(v\) is a vertex of \(P\), then the description of the normal cone turns into \[N_v(\operatorname{Newt}(f)) = \left\{x \in \mathbb{R}^{d} \;\middle| \;\langle v,x \rangle = f(x) \right\},\] and agrees with a polyhedron in \(\mathcal{C}_f^d\). The normal fan of a polytope is the collection of normal cones over all faces. Thus, for positively homogeneous convex functions, the polyhedral complex \(\mathcal{C}_f\) agrees with the normal fan of \(\operatorname{Newt}(f)\), and the number of linear pieces of \(f\) equals the number of vertices of \(\operatorname{Newt}(f)\). An example is given in 3. The duality between \(\mathcal{C}_f\) and \(\operatorname{Newt}(f)\) also establishes a bijection between facets \(\sigma \in \mathcal{C}_f^{d-1}\) and edges of \(\operatorname{Newt}(f)\), and for the corresponding weight function \(w_f\) holds that \(w_f(\sigma)\) equals the Euclidean length of the edge that is dual to \(\sigma\). This correspondence extends to general convex CPWL functions, where \(\mathcal{C}_f\) is a complex which is dual to a regular polyhedral subdivision of \(\operatorname{Newt}(f)\), and \(w_f\) corresponds to lengths of edges in this subdivision (see e.g. [47]).
We call a polytope \(Q\) a deformation of a polytope \(P\) if there exists a polytope \(R\) and a scalar \(\lambda > 0\) such that \(\lambda P = Q + R\). Equivalently, \(Q\) is a deformation of \(P\) if and only if the normal fan of \(Q\) is a coarsening of the normal fan of \(P\).
The deformation cone \(\mathcal{DC}(P)\) of a polytope \(P\) consists of all its deformations, which can be parameterized by translation and edge lengths. Specifically, assign a nonnegative real value to each edge of \(P\) such that for all \(2\)-faces form actual polygons, that is, the balancing condition is met. The resulting polytope is a deformation of \(P\), and all deformations of \(P\) arise in this way. The linear condition that the edge lengths form polygons for the \(2\)-faces is equivalent to the condition that the corresponding weight function is balanced [25]. In other words, if we mod out translation, the deformation cone modulo translation \(\overline{\mathcal{DC}}(P)\) becomes a pointed polyhedral cone, isomorphic to \(\mathcal{W}^+_{\mathcal{C}}\) where \(\mathcal{C}\) is the normal fan of \(P\). The following lemma summarizes the discussion.
Lemma 6. Let \(P\) be a polytope and \(\mathcal{C}\) the normal fan of \(P\). Then, the following three cones are linearly isomorphic:
the deformation cone modulo translation \(\overline{\mathcal{DC}}(P)\)
the cone \(\mathcal{W}^+_{\mathcal{C}}\) of all balanced nonnegative weights on \(\mathcal{C}\) and
the cone \(\overline{\mathcal{V}}^+_{\mathcal{C}}\) of convex CPWL functions compatible with \(\mathcal{C}\) modulo affine linear functions.
Although general positively homogeneous CPWL functions may not admit a Newton polytope due to potential concave folds (which would correspond to negative edge lengths), the isomorphism between Newton polytopes and positively homogeneous convex CPWL functions extends to a linear isomorphism through the notion of virtual polytopes, which are formal Minkowski differences of polytopes.
We now review the notion of virtual polytopes adapted to our setting. For a thorough introduction to virtual polytopes, we refer to [12]. The set of polytopes \(\mathcal{P}_d\) in \(\mathbb{R}^d\) together with Minkowski addition forms a commutative semigroup, having the \(0\)-dimensional polytope that consists only of the zero vector as neutral element. For any polytopes \(P,Q,R \in \mathcal{P}_d\), there holds the cancellation law, which says that if \(P+Q=R+Q\), then \(P=R\). This allows to construct the Grothendieck group \(\mathcal{VP}_d \mathrel{\vcenter{:}}=\{(P, Q) : P, Q \in \mathcal{P}_d\} / \sim\) where the equivalence relation \(\sim\) is defined by \[(P_1, Q_1) \sim (P_2, Q_2) \iff P_1 + Q_2 = P_2 + Q_1.\] We write the equivalence class represented by \((P,Q)\) as \(P-Q\) and call it a virtual polytope. Every CPWL function \(f\) is the difference of two convex functions \(g-h\) and it is easy to check that the virtual polytope \(\operatorname{Newt}(g) - \operatorname{Newt}(h)\) is independent of the choice of convex functions \(g\) and \(h\) allowing to define \(\operatorname{Newt}(f) \mathrel{\vcenter{:}}= \operatorname{Newt}(g) - \operatorname{Newt}(h)\). The set of virtual polytopes is a vector space with the scalar multiplication given by \(\lambda (P-Q) \mathrel{\vcenter{:}}= \lambda P - \lambda Q\) which is isomorphic to the vector space \(\operatorname{CPWL}^0_d\) of positively homogeneous CPWL functions.
Proposition 4. The map \(\operatorname{Newt}\colon \operatorname{CPWL}^0_d \to \mathcal{VP}_d\), \(f \mapsto \operatorname{Newt}(f)\) is a vector space isomorphism.
Proof. Follows immediately from 3. ◻
In this section, we introduce and generally study the main concept of this paper, decomposition polyhedra. These polyhedra describe the set of possible decompositions of a CPWL function \(f\) into a difference \(f=g-h\) that are compatible with a given polyhedral complex.
Definition 1. For a CPWL function \(f\) and a polyhedral complex \(\mathcal{C}\), the decomposition polyhedron of \(f\) with respect to \(\mathcal{C}\) is \(\mathcal{D}_{\mathcal{C}}(f)\mathrel{\vcenter{:}}=\{(g,h)\mid g,h\in\overline{\mathcal{V}}_\mathcal{C}^+, f=g-h\}.\)
The projection \(\pi((g,h))=g\) induces an isomorphism between \(\mathcal{D}_{\mathcal{C}}(f)\) and \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) since \(\mathcal{D}_{\mathcal{C}}(f) = \{(g,g-f) \mid g \in \pi(\mathcal{D}_{\mathcal{C}}(f)) \}.\) We now show that \(\mathcal{D}_{\mathcal{C}}(f)\) is indeed a polyhedron, which arises as the intersection of two shifted copies of a cone.
Proposition 5. The set \(\mathcal{D}_{\mathcal{C}}(f)\) is a polyhedron that arises as the intersection of convex functions with the affine hyperplane \(H_f = \{(g,h) \mid f = g-h\}\), namely \[\mathcal{D}_{\mathcal{C}}(f) = (\overline{\mathcal{V}}_\mathcal{C}^+\times \overline{\mathcal{V}}_\mathcal{C}^+) \cap H_f.\] Under the bijection \(\pi\), the decomposition polyhedron is the intersection of two shifted copies of the polyhedral cone \(\overline{\mathcal{V}}_\mathcal{C}^+\). More specifically, \(\pi(\mathcal{D}_{\mathcal{C}}(f)) = \overline{\mathcal{V}}_\mathcal{C}^+\cap (\overline{\mathcal{V}}_\mathcal{C}^++ f).\)
Proof. For the set of decompositions holds \[\begin{align} \mathcal{D}_{\mathcal{C}}(f) = \{(g,h) \mid g \in \overline{\mathcal{V}}_\mathcal{C}^+, h \in \overline{\mathcal{V}}_\mathcal{C}^+, f = g - h\} = (\overline{\mathcal{V}}_\mathcal{C}^+\times \overline{\mathcal{V}}_\mathcal{C}^+) \cap H_f. \end{align}\] For the projection, we have \[\begin{align} \pi(\mathcal{D}_{\mathcal{C}}(f)) &= \pi(\{(g,g-f) \mid g \in \overline{\mathcal{V}}_\mathcal{C}^+, g-f \in \overline{\mathcal{V}}_\mathcal{C}^+\})\\ &= \{g \mid g \in \overline{\mathcal{V}}_\mathcal{C}^+, g \in f+\overline{\mathcal{V}}_\mathcal{C}^+\} = \overline{\mathcal{V}}_\mathcal{C}^+\cap (f+ \overline{\mathcal{V}}_\mathcal{C}^+).\qedhere \end{align}\] ◻
Remark 6. Under the isomorphism of Lemma 4, we identify \(\mathcal{D}_{\mathcal{C}}(f)\) with the polyhedron \(\{(w_g,w_h) \in \mathcal{W}_\mathcal{C}^+\times \mathcal{W}_\mathcal{C}^+\mid w_g-w_h=w_f\}\) in \(\mathcal{W}_\mathcal{C}\times \mathcal{W}_\mathcal{C}\) and \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) with the polyhedron \(\{w_g \in \mathcal{W}_\mathcal{C}^+\mid w_g \geq w_f\}\), where \(\mathcal{W}_\mathcal{C}^+= \{w \in \mathcal{W}_\mathcal{C}\mid w \geq 0\}\).
For the remainder of this section, we analyze the faces of the polyhedron \(\mathcal{D}_{\mathcal{C}}(f)\) in terms of the properties of the corresponding decompositions.
Definition 2. A decomposition \((g,h)\in\mathcal{D}_{\mathcal{C}}(f)\) is called reduced, if there is no convex function \(\phi\in\overline{\mathcal{V}}_\mathcal{C}^+\setminus\{0\}\) such that \(g-\phi\) and \(h-\phi\) are both convex.
If a decomposition is not reduced, then we can obtain a “better” decomposition by simultaneously simplifying both \(g\) and \(h\) through subtracting a convex function \(\phi\). Hence, it makes sense to put a special emphasis on reduced decompositions. Conveniently, the following theorem links this notion to the geometry of \(\mathcal{D}_{\mathcal{C}}(f)\).
Theorem 7. A decomposition \((g,h)\in\mathcal{D}_{\mathcal{C}}(f)\) is reduced if and only if \((g,h)\) is contained in a bounded face of \(\mathcal{D}_{\mathcal{C}}(f)\).
The statement follows from a more general statement about polyhedra. Recall that any polyhedron \(P\) can written as the Minkowski sum \[P = Q + \operatorname{recc}(P) = \{ q + c \mid q \in Q, c \in \operatorname{recc}(P) \}\] where \(Q\) is a bounded polytope, and \(\operatorname{recc}(P)=\{v \in \mathbb{R}^d \mid x+tv \in P\) for all \(x\in P, t\geq0\}\) the recession cone of \(P\), see [46].
Proposition 8. A point \(x \in P\) is contained in a bounded face of \(P\) if and only if \(x - c \not\in P \;\forall c \in \operatorname{recc}(P) \setminus \{0\}\).
Proof. Any nonempty face of the polyhedron \(P\) is of the form \[P^u = \{ x \in P \mid \langle x, u \rangle \geq \langle y, u \rangle \;\forall y \in P \},\] and for Minkowski sums holds \(P^u = Q^u + \operatorname{recc}(P)^u\). Let \(x \in P\) be a point contained in a bounded face \(P^u\) of \(P\). Since \(P^u\) is bounded, we have that \(P^u = Q^u + \operatorname{recc}(P)^u\) with \(\operatorname{recc}(P)^u = \{0\}\) being the unique bounded face of \(\operatorname{recc}(P)\). Thus, \(\langle c, u \rangle < \langle 0, u \rangle\) for all \(c \in \operatorname{recc}(P) \setminus \{0\}\). This implies that \(\langle x - c, u \rangle = \langle x, u \rangle - \langle c, u \rangle > \langle x, u \rangle\) and therefore, by the definition of \(P^u\), we have that \(x -c \not \in P\).
Conversely, suppose that \(x \in P\) is not contained in a bounded face. We want to show that there exists some direction \(c \in \operatorname{recc}(P) \setminus \{0\}\) such that \(x-c \in P\). Since \(x\) is not contained in a bounded face, it is contained in the relative interior of an unbounded face \(F\) (where possibly \(F=P\)). Since the face is unbounded, it contains a ray \(x + \mathbb{R}_{\ge 0} c\) for some direction \(c \in \operatorname{recc}(P)\). On the other hand, since \(x \in \operatorname{int}(F)\), we have that \(x - \varepsilon c \in F\) for \(\varepsilon > 0\) small enough. As \(\operatorname{recc}(P)\) is a cone, we have that \(\varepsilon c \in \operatorname{recc}(P)\), which finishes the proof. ◻
Having this at hand, we can prove 7.
Proof of 7. Since \(\pi\) induces a bijection between \(\mathcal{D}_{\mathcal{C}}(f)\) and its image, this is also a bijection between bounded faces. By 5, \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) is a polyhedron with recession cone \(\overline{\mathcal{V}}_\mathcal{C}^+\). 8 implies that \(g\) is contained in a bounded face if and only if there exists no convex function \(\phi \in \overline{\mathcal{V}}_\mathcal{C}^+\setminus \{0\}\) such that \(g - \phi \in \pi(\mathcal{D}_{\mathcal{C}}(f))\). Therefore, \(\pi^{-1}(g) = (g,h)\) with \(h = g-f\) is contained in a bounded face of \(\mathcal{D}_{\mathcal{C}}(f)\) if and only if there is no \(\phi \in \overline{\mathcal{V}}_\mathcal{C}^+\setminus \{0\}\) such that \((g - \phi, g-f-\phi) = (g - \phi, h-\phi) \in \mathcal{D}_{\mathcal{C}}(f)\). Since \((g-\phi) - (h- \phi) = f\), this is equivalent to \(g - \phi\) or \(h -\phi\) being nonconvex, i.e., \((g,h)\) is reduced. ◻
Next, we describe the face relations of decomposition polyhedra by coarsenings of the corresponding functions.
Definition 3. We call a convex function \(g \in \overline{\mathcal{V}}_\mathcal{C}^+\) a coarsening of another convex function \(g' \in \overline{\mathcal{V}}_\mathcal{C}^+\) if the unique coarsest polyhedral complex \(\mathcal{C}_g\) of \(g\) is a coarsening of the unique coarsest polyhedral complex \(\mathcal{C}_{g'}\). The coarsening is called non-trivial if \(\mathcal{C}_g \neq \mathcal{C}_{g'}\).
For a pair of convex CPWL functions \((g,h)\), we call \((g',h')\) a coarsening of \((g,h)\) if \(g-h=g'-h'\) and \(g'\) and \(h'\) are coarsenings of \(g\) and \(h\) respectively. The coarsening is called non-trivial if \((\mathcal{C}_g,\mathcal{C}_h) \neq (\mathcal{C}_{g'},\mathcal{C}_{h'})\). For a function \(f \in \mathcal{V}_\mathcal{C}\), let \(\operatorname{supp}_\mathcal{C}(f)= \{\sigma \in \mathcal{C}^{d-1} \mid w_f(\sigma) \neq 0\}\).
Note that the entire definition does not depend on the underlying complex \(\mathcal{C}\) and the corresponding considered set \(\overline{\mathcal{V}}_\mathcal{C}^+\).
Lemma 7. A convex function \(g' \in \overline{\mathcal{V}}_\mathcal{C}^+\) is a coarsening of \(g\in \overline{\mathcal{V}}_\mathcal{C}^+\) if and only if \(\operatorname{supp}_\mathcal{C}({g'}) \subseteq \operatorname{supp}_\mathcal{C}(g)\). The coarsening is non-trivial if and only if \(\operatorname{supp}_\mathcal{C}({g'}) \subset \operatorname{supp}_\mathcal{C}(g)\).
Proof. First note that \(B(g) \mathrel{\vcenter{:}}= \bigcup\limits_{\sigma \in \operatorname{supp}_\mathcal{C}(g)}\sigma\) are exactly the points where \(g\) is not affine linear. Hence, the closures of the connected components of the complement of \(B(g)\) are the maximal polyhedra of the unique coarsest polyhedral complex \(\mathcal{C}_g\) compatible with \(g\).
Let \(\operatorname{supp}_\mathcal{C}({g'}) \subseteq \operatorname{supp}_\mathcal{C}(g)\). Equivalently, for the complement holds \((\mathbb{R}^d \setminus B(g)) \subseteq (\mathbb{R}^d \setminus B(g'))\), and the same holds for the closures of the (open) connected components, i.e., the maximal faces in \(\mathcal{C}^d_{g}\) and \(\mathcal{C}^d_{g'}\). In other words, this is equivalent to that for every face \(P \in \mathcal{C}_g^d\) there exists some \(P' \in \mathcal{C}_{g'}^d\) such that \(P\subseteq P'\). Thus, \(\operatorname{supp}_\mathcal{C}({g'}) \subseteq \operatorname{supp}_\mathcal{C}(g)\) if and only if \(\mathcal{C}_{g'}\) is a coarsening of \(\mathcal{C}_g\).
The coarsening is non-trivial if and only if there is a \(P' \in \mathcal{C}_{g'}^d\) such that there is no \(P \in \mathcal{C}_{g}^d\) with \(P' \subseteq P\). This is the case if and only if there is a \(\sigma \in \mathcal{C}_{g}^{d-1}\) that intersects the interior of \(P'\), which occurs if and only if \(\sigma \in \operatorname{supp}_\mathcal{C}(g) \setminus \operatorname{supp}_\mathcal{C}(g')\). ◻
We now prove the following proposition that relates coarsenings of the decompositions to inclusion relations of the minimal faces that contain the decompositions.
Proposition 9. For \((g,h) \in \mathcal{D}_{\mathcal{C}}(f)\), let \(F\) be the minimal face of \(\mathcal{D}_{\mathcal{C}}(f)\) containing \((g,h)\). Then \((g',h')\) is a coarsening of \((g,h)\) if and only if there is a face \(G\) of \(\mathcal{D}_{\mathcal{C}}(f)\) with \(G \subseteq F\) such that \((g',h') \in G\). The coarsening is non-trivial if and only if \(G \subset F\).
Proof. For a face \(F\), let \(\mathcal{G}_F= \{\sigma \in \mathcal{C}^{d-1} \mid w_g(\sigma)=0\) for all \((w_g,w_h) \in F\}\) and \(\mathcal{H}_F= \{\sigma \in \mathcal{C}^{d-1} \mid w_h(\sigma)=0\) for all \((w_g,w_h) \in F\}\) be the set of facets where the corresponding inequalities ensuring convexity of the functions \(g\) and \(h\) are tight. It is not hard to see that \(G \subseteq F\) if and only if \(\mathcal{G}_F \subseteq \mathcal{G}_G\) and \(\mathcal{H}_F \subseteq \mathcal{H}_G\). In other words, if \((g',h')\) is contained in a face \(G \subseteq F\), then one can move from \((g,h)\) to \((g',h')\) without losing tight inequalities. Hence, Lemma 7 implies that \((g',h')\) is a coarsening of \((g,h)\). If \(G \subset F\), then either \(\mathcal{G}_F \subset \mathcal{G}_G\) or \(\mathcal{H}_F \subset \mathcal{H}_G\). Thus, another inequality becomes tight when moving from \((g,h)\) to \((g',h')\) implying that the coarsening is non-trivial.
For the converse direction, let \((g',h')\) be a coarsening of \((g,h)\), which in particular means that \(g'\) and \(h'\) are compatible with \(\mathcal{C}\). Hence, \(f=g'-h'\) implies that \((g',h')\in\mathcal{D}_{\mathcal{C}}(f)\). Now, assume that there is no face \(G\subseteq F\) such that \((g',h') \in G\). Then the line between \((g,h)\) and \((g',h')\) is not contained in \(F\). Thus, a tight inequality gets lost when moving from \((g,h)\) towards \((g',h')\). Hence, without loss of generality, there is a \(\sigma \in \operatorname{supp}_\mathcal{C}(g')\setminus \operatorname{supp}_\mathcal{C}(g)\), which according to Lemma 7 is a contradiction to \((g',h')\) being a coarsening of \((g,h)\). ◻
Theorem 10. Let \((g,h)\in\mathcal{D}_{\mathcal{C}}(f)\), then the following three statements are equivalent:
There is no non-trivial coarsening of \((g,h)\).
\((g,h)\) is a vertex of \(\mathcal{D}_{\mathcal{C}}(f)\).
\((g,h)\) is a vertex of \(\mathcal{D}_{\mathcal{Q}}(f)\) for all polyhedral complexes \(\mathcal{Q}\) compatible with \(g\) and \(h\).
Proof. [thm:vertex95characterization1] and [thm:vertex95characterization2] are equivalent by Proposition 9. [thm:vertex95characterization3] trivially implies [thm:vertex95characterization2]. Hence, it remains to show [thm:vertex95characterization1] \(\implies\) [thm:vertex95characterization3]. Assume that there is a polyhedral complex \(\mathcal{Q}\) compatible with \(g\) and \(h\) such that \((g,h)\) is not a vertex of \(\mathcal{D}_{\mathcal{Q}}(f)\). Then there is a vertex \((g',h')\) of \(\mathcal{D}_{\mathcal{Q}}(f)\) contained in the face containing \((g,h)\). By Proposition 9, it follows that \((g',h')\) is a non-trivial coarsening of \((g,h)\). ◻
Definition 4. A decomposition \((g,h)\in\mathcal{D}_{\mathcal{C}}(f)\) is called minimal, if it is not dominated by any other decomposition, that is, if there is no other decomposition \((g',h')\in\mathcal{D}_{\mathcal{C}}(f)\) where \(g'\) has at most as many pieces as \(g\), \(h'\) has at most as many pieces as \(h\), and one of the two has strictly fewer pieces. See 5 for a visualization.
The number of pieces relates to the notion of monomial complexity studied in [1], where a minimal decomposition translates to a decomposition which is minimal with respect to monomial complexity. We now give a geometric interpretation of this property in terms of \(\mathcal{D}_{\mathcal{C}}(f)\).
Theorem 11. A minimal decomposition \((g,h)\in\mathcal{D}_{\mathcal{C}}(f)\) is always a vertex of \(\mathcal{D}_{\mathcal{C}}(f)\).
Proof. If \((g,h)\) is not a vertex, then by 10, there is a non-trivial coarsening \((g',h')\) of \((g,h)\). Thus, \((g,h)\) is dominated by \((g',h')\) and therefore not minimal. ◻
This theorem implies a simple finite procedure to find a minimal decomposition: enumerate all the vertices of \(\mathcal{D}_{\mathcal{C}}(f)\) and choose one satisfying 4. It also suggests the following important special case.
Proposition 12. If \(\mathcal{D}_{\mathcal{C}}(f)\), or equivalently \(\pi(\mathcal{D}_{\mathcal{C}}(f))\), has a unique vertex, then this vertex corresponds to the unique minimal decomposition within \(\mathcal{D}_{\mathcal{C}}(f)\).
Proof. As \(\mathcal{D}_{\mathcal{C}}(f)\) is nonempty, there must exist a minimal decomposition. By 11, every minimal decomposition must be a vertex. As there is only one vertex, it must coincide with the unique minimal decomposition. ◻
We now demonstrate that this case is not only convenient, but also it indeed arises for important classes of functions. To this end, recall that \(\pi(\mathcal{D}_{\mathcal{C}}(f)) = \overline{\mathcal{V}}_\mathcal{C}^+\cap (\overline{\mathcal{V}}_\mathcal{C}^++ f)\), where \(\overline{\mathcal{V}}_\mathcal{C}^+\) is a convex, pointed polyhedral cone. In the following lemma, we give some sufficient conditions for such intersections of shifted cones to yield a polyhedron with a unique vertex.
Lemma 8. Let \(C \subset \mathbb{R}^d\) be a convex, pointed polyhedral cone, and \(t \in \mathbb{R}^d\) If \(C\) is simplicial then \(C \cap (C+t)\) is a translate of \(C\). If \(C\) is not simplicial, then \(C \cap (C+t)\) is a translate of \(C\) if \(t \in C\).
Proof. If \(C\) is a simplicial full-dimensional cone, then it is the image of the nonnegative orthant under an affine isomorphism. Thus, it suffices to show that \(C \cap (C + t)\) is a shifted cone for \(C = \mathbb{R}_{\geq 0}^d\). Let \(\hat{t} \in \mathbb{R}^d\) such that \(\hat{t}_i = \max(t_i, 0)\). Then \[C \cap (C + t) = \{x \mid x_i \geq 0 \text{ and } x_i \geq t_i \} = \{x \mid x_i \geq \hat{t}_i \} = C + \hat{t}.\] On the other hand, if \(C\) is an arbitrary polyhedral cone and \(t \in C\), then \(C \cap (C + t) = C+t\), and hence a shifted cone. ◻
Example 2. The converse of the second statement from 8 does not hold, that is, \(t \not\in C\) does not imply that \(C \cap (C+t)\) is not a shifted cone. Indeed, let \(C = \operatorname{cone}\left( \left( \begin{smallmatrix} 1 \\ 0 \\ 0 \end{smallmatrix} \right) , \left( \begin{smallmatrix} 1 \\ 1 \\ 0 \end{smallmatrix} \right) , \left( \begin{smallmatrix} 1 \\ 0 \\ 1 \end{smallmatrix} \right) , \left( \begin{smallmatrix} 1 \\ 1 \\ 1 \end{smallmatrix} \right) \right) \text{ and } t = \left( \begin{smallmatrix} 0 \\ 1 \\ 1 \end{smallmatrix} \right) .\) Then \(C \cap (C+t) = C + \left( \begin{smallmatrix} 1 \\ 1 \\ 1 \end{smallmatrix} \right)\) is a shifted cone. On the other hand, the choice \(t = \left( \begin{smallmatrix} 0 \\ 1 \\ 2 \end{smallmatrix} \right)\) yields the unbounded polyhedron \(C \cap (C + t) = \operatorname{conv}\left( \left( \begin{smallmatrix} 2 \\ 2 \\ 2 \end{smallmatrix} \right) , \left( \begin{smallmatrix} 2 \\ 1 \\ 2 \end{smallmatrix} \right) \right) + C,\) which has two vertices and one line segment as bounded faces.
Moreover, the support of a decomposition can serve as a certificate to verify if a decomposition is a unique vertex, and hence minimal. For \(f \in \overline{\mathcal{V}}_\mathcal{C}\), let \(\operatorname{supp}_\mathcal{C}^+(f) \mathrel{\vcenter{:}}= \{\sigma \in \mathcal{C}\mid w_f(\sigma) > 0\}\) and \(\operatorname{supp}_\mathcal{C}^-(f) \mathrel{\vcenter{:}}= \{\sigma \in \mathcal{C}\mid w_f(\sigma) < 0\}\).
Proposition 13. If for \(f \in \overline{\mathcal{V}}_\mathcal{C}\), there are \(g,h \in \overline{\mathcal{V}}_\mathcal{C}^+\) such that \(f=g-h\) and \(\operatorname{supp}_\mathcal{C}^+(f)=\operatorname{supp}_\mathcal{C}(g)\) as well as \(\operatorname{supp}_\mathcal{C}^-(f)=\operatorname{supp}_\mathcal{C}(h)\), then \((g,h)\) is the unique vertex of \(\mathcal{D}_{\mathcal{Q}}(f)\) for every regular complete complex \(\mathcal{Q}\) compatible with \(f\). In this case, \(g\) and \(h\) have at most as many pieces as \(f\).
Proof. Let \(\mathcal{Q}\) be any regular complete complex that is compatible with \(f\). Then, \(g\) and \(h\) are as well compatible with \(\mathcal{Q}\), since \(\operatorname{supp}_\mathcal{C}(g),\operatorname{supp}_\mathcal{C}(h) \subseteq \operatorname{supp}_\mathcal{C}(f)\) implies that also \(\operatorname{supp}_\mathcal{Q}(g),\operatorname{supp}_\mathcal{Q}(h) \subseteq \operatorname{supp}_\mathcal{Q}(f)\). Let \((g',h') \in \mathcal{D}_{\mathcal{Q}}(f)\). Then it holds that \(\operatorname{supp}^+_\mathcal{Q}(f) \subseteq \operatorname{supp}_\mathcal{Q}(g')\) since \(w_{g'}-w_f=w_{h'} \geq 0\). Hence, \(\operatorname{supp}_\mathcal{Q}(g) \subseteq \operatorname{supp}_\mathcal{Q}(g')\) and 7 implies that \(g\) is a coarsening of \(g'\) and analogously it follows that \(h\) is a coarsening of \(h'\). Therefore, \((g,h)\) is a coarsening of every decomposition and thus by 10 the only vertex of \(\mathcal{D}_{\mathcal{Q}}(f)\). Clearly, \(g\) and \(h\) cannot have more pieces than \(f\). ◻
While 13 sounds technical, it is powerful as it allows us to prove that important functions satisfy the condition of 12.
Definition 5. A hyperplane function with \(k\) hyperplanes is a function \(f \colon \mathbb{R}^d \to \mathbb{R}\) given by \(f(x) = \sum_{i \in [k]} \lambda_i \cdot \max\{\langle x,a_i \rangle+b_i,\langle x,c_i \rangle+d_i\}\) for any \(a_i,c_i \in \mathbb{R}^d, b_i,d_i, \lambda_i \in \mathbb{R},i \in [k]\).
Hyperplane functions are precisely the functions that are computable by a ReLU neural network with one hidden layer and appear in this context as 2-term max functions ([6]). They also coincide with functions computable with the hinging hyperplane model ([22], [50]).
Example 3 (Minimal decomposition for hyperplane functions). Let \(f \colon \mathbb{R}^d \to \mathbb{R}\) be a hyperplane function given as \(f(x) = \sum_{i \in [k]} \lambda_i \cdot \max\{\langle x,a_i \rangle+b_i,\langle x,c_i \rangle+d_i\}\). We can assume without loss of generality that the hyperplanes \[H_i= \{x \in \mathbb{R}^d \mid \langle x,a_i \rangle+b_i=\langle x,c_i \rangle+d_i\}\] are pairwise distinct, because otherwise we can simply adjust \(\lambda_i\). The polyhedral complex \(\mathcal{C}\) induced by the hyperplane arrangement \(\{H_i\}_{i \in [k]}\) is compatible with \(f\). The convex functions \(g,h\) given by \[g(x) = \sum_{\lambda_i \geq 0} \lambda_i \cdot \max\{\langle x,a_i \rangle+b_i,\langle x,c_i \rangle+d_i\}\] and \[h(x) = \sum_{ \lambda_i < 0} -\lambda_i \cdot \max\{\langle x,a_i \rangle+b_i,\langle x,c_i \rangle+d_i\}\] are the unique minimal decomposition of \(f\) since \[\operatorname{supp}_\mathcal{C}(g)=\operatorname{supp}^+_\mathcal{C}(f)= \{\sigma \in \mathcal{C}^{d-1} \mid \sigma \subseteq \bigcup_{\lambda_i \geq 0} H_i\}\] and \[\operatorname{supp}_\mathcal{C}(h)=\operatorname{supp}^-_\mathcal{C}(f)= \{\sigma \in \mathcal{C}^{d-1} \mid \sigma \subseteq \bigcup_{\lambda_i < 0} H_i\}.\] See 6 for an illustration of the minimal decomposition of a hyperplane function.
Definition 6. The \(k\)-th order statistic is the function \(f\colon\mathbb{R}^d\to\mathbb{R}\) that returns the \(k\)-th largest entry of an input vector \(x\in\mathbb{R}^d\). For \(k=\lfloor \frac{d}{2}\rfloor\), this coincides with the median.
Example 4 (Minimal decomposition of \(k\)-th order statistic). We construct a polyhedral complex that is compatible with the \(k\)-th order statistic. For \(U\subseteq[d]\) with \(|U|=k-1\) and \(i \in [d] \setminus U\), let \[P_{i,U}= \{x \in \mathbb{R}^d \mid x_j \leq x_i \leq x_\ell \; \text{ for all } \ell\in U, j \in [d] \setminus U \}.\] All such polyhedra and their faces form a polyhedral complex \(\mathcal{C}\) that is a coarsening of the braid arrangement (see 8) and compatible with the function \(f\colon \mathbb{R}^d \to \mathbb{R}\) given by \(f(x)=x_i\) for \(x \in P_{i,U}\). It is not hard to see that \(f=g-h\) where \(g,h \in \overline{\mathcal{V}}_\mathcal{C}^+\) are convex functions given by\[g(x) \mathrel{\vcenter{:}}= \max\limits_{\substack{I\subseteq [d]\\ |I|= k}} \left(\sum_{i \in I}x_i\right) \text{ and } h(x) \mathrel{\vcenter{:}}= \max\limits_{\substack{I\subseteq [d]\\ |I|= k-1}} \left(\sum_{i \in I}x_i\right).\] Moreover, for \(i,j \notin U\), let \[\sigma_{i,j,U} \mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid x_\ell \leq x_j = x_i \leq x_m \text{ for all } m\in U, \ell \in [d] \setminus U \}.\] Then \[\operatorname{supp}_\mathcal{C}(g)=\operatorname{supp}_\mathcal{C}^+(f)=\{\sigma_{i,j,U} \mid U\subseteq[d], |U|=k-2\}\] and \[\operatorname{supp}_\mathcal{C}(h)=\operatorname{supp}_\mathcal{C}^-(f)=\{\sigma_{i,j,U} \mid U\subseteq[d], |U|=k-1\}.\] Thus, 13 implies that \((g,h)\) is the unique vertex of the decomposition polyhedra corresponding to every regular polyhedral complex compatible with \(f\). See 7 for an illustration of the unique minimal decomposition of the median function.
7 characterizes the reduced decompositions as bounded faces and 13 provides a condition that can identify a given decomposition as the minimal one. The natural follow-up question is how to find these decompositions. In the following, we show that this can be done via linear programming over the decomposition polyhedron.
Theorem 14. A decomposition in \(\pi(\mathcal{D}_{\mathcal{C}}(f)) = \overline{\mathcal{V}}_\mathcal{C}^+\cap (f+ \overline{\mathcal{V}}_\mathcal{C}^+)\) is reduced if and only if it is the minimizer in \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) of a direction contained in the interior of the dual cone of \(\overline{\mathcal{V}}_\mathcal{C}^+\). In particular, if \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) has a single vertex, then the unique minimizer is the unique reduced and minimal decomposition. Under the isomorphism to \(\mathcal{W}_\mathcal{C}\), the direction \(u\) can be chosen as \(u(\sigma)=1\) for all \(\sigma \in \mathcal{C}^{d-1}\).
Before proving this statement, we give a description of the dual cone \((\overline{\mathcal{V}}_\mathcal{C}^+)^\vee\). Recall that \(\overline{\mathcal{V}}_\mathcal{C}^+\cong \bigcap_{\sigma \in \mathcal{C}^{d-1}}\{w \in \mathcal{W}_\mathcal{C}\mid w(\sigma) \geq 0\}\), i.e., the intersection of the nonnegative orthant \(\{w \colon \mathcal{C}^{d-1} \to \mathbb{R}\mid w(\sigma) \geq 0\}\) with the linear space \(\mathcal{W}_\mathcal{C}\). By duality of intersections and sums, it follows that \((\overline{\mathcal{V}}_\mathcal{C}^+)^\vee\) is isomorphic to the Minkowski sum of the nonnegative orthant with \(\mathcal{W}_\mathcal{C}^\perp\). In particular, any weight function \(w\) with positive weights \(w(\sigma) > 0\) lies in the interior. 14 follows from the following more general fact about faces of polyhedra.
Lemma 9. Let \(C\) be a convex, pointed polyhedral cone and \(P\) a polyhedron with recession cone \(C\). Then \(u \in \operatorname{int}(C^\vee)\) is a direction in the interior of the dual cone of \(C\) if and only if the face \(P^u\) of \(P\) which is minimized by \(u\) is a bounded face.
Proof. Let \(P = C + Q\), where \(Q\) is a bounded polyhedron. Then for any direction \(u\) holds \(P^u = C^u + Q^u\). As \(C\) is a pointed cone, we have that \(C^u\) is bounded if and only if \(u \in \operatorname{int}(C^\vee)\). Since \(Q^u\) is bounded for any direction, it follows that \(P^u\) is bounded if and only if \(u \in \operatorname{int}(C^\vee)\). ◻
Proof of 14. \(\mathcal{D}_{\mathcal{C}}(f) = \overline{\mathcal{V}}_\mathcal{C}^+\cap (\overline{\mathcal{V}}_\mathcal{C}^++f)\) is a polyhedron with recession cone \(\overline{\mathcal{V}}_\mathcal{C}^+\). Applying 9 yields that for any \(u \in (\operatorname{int}((\overline{\mathcal{V}}_\mathcal{C}^+)^\vee)\), every minimizer in \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) lies in a bounded face, which, by 7, are precisely the reduced decompositions. Moreover, if \(\pi(\mathcal{D}_{\mathcal{C}}(f))\) contains a unique vertex then by 12 this coincides with the unique minimal decomposition. ◻
The framework of decomposition polyhedra has a natural translation to the setting of virtual polytopes. In this section, we translate our main results to this context, providing structural insights into the problem of finding “minimal” representatives for a given virtual polytope.
As discussed in 3, the vector space \(\operatorname{CPWL}^0_d\) of positively homogeneous CPWL functions is isomorphic to the vector space \(\mathcal{VP}_d\) of virtual polytopes. Under this isomorphism, a convex positively homogeneous CPWL function corresponds to its Newton polytope. Consequently, decomposing a function \(f \in \operatorname{CPWL}^0_d\) into a difference of convex functions, \(f=g-h\), is equivalent to finding a representative for the virtual polytope \(\operatorname{Newt}(f)\) as a Minkowski difference of two conventional polytopes, \(\operatorname{Newt}(f) = \operatorname{Newt}(g) - \operatorname{Newt}(h)\).
This equivalence allows us to rephrase 1 in a purely geometric language, see also [1]. A common measure for the complexity of a polytope is its number of vertices. The geometric problem is thus:
Problem 15. Given a virtual polytope \(V \in \mathcal{VP}_d\), find a representative \(V = P - Q\) where \(P, Q \in \mathcal{P}_d\) such that the number of vertices of \(P\) and \(Q\) are minimized.
Our theory provides a new perspective for this problem. Let \(R\) be a polytope and \(\mathcal{C}\) its normal fan. We restrict our search to representatives \(P-Q\) where \(P\) and \(Q\) are in the deformation cone of \(R\), or equivalently, the normal fans of \(P\) and \(Q\) are coarsenings of \(\mathcal{C}\). This is equivalent to requiring that the corresponding CPWL functions \(f_P\) and \(f_Q\) are compatible with \(\mathcal{C}\). For a virtual polytope \(V\) whose corresponding CPWL function \(f_V = \operatorname{Newt}^{-1}(V)\) is compatible with \(\mathcal{C}\), we define its representative polyhedron as \[\mathcal{R}_{\mathcal{C}}(V) \mathrel{\vcenter{:}}= \{(P,Q) \in \mathcal{P}_d \times \mathcal{P}_d \mid V = P-Q, P,Q \in \mathcal{DC}(R) \}.\] The linear isomorphism \(\operatorname{Newt}\) maps the decomposition polyhedron \(\mathcal{D}_{\mathcal{C}}(f_V)\) bijectively to the representative polyhedron \(\mathcal{R}_{\mathcal{C}}(V)\). This immediately allows us to translate our main theorems.
Corollary 2. The set \(\mathcal{R}_{\mathcal{C}}(V)\) is a polyhedron that arises as the intersection of two shifted copies of the deformation cone \(\mathcal{DC}(R)\).
Proof. This is a direct translation of 5 via the vector space isomorphism \(\operatorname{Newt}\). ◻
Definition 7. A representative \((P,Q)\in\mathcal{R}_\mathcal{C}(V)\) is called minimal, if it is not dominated by any other representation, that is, if there is no other representation \((P',Q')\in\mathcal{R}_\mathcal{C}(V)\) where \(P'\) has at most as many vertices as \(P\), \(Q'\) has at most as many vertices as \(Q\), and one of the two has strictly fewer vertices.
Corollary 3. A minimal representative \((P,Q) \in \mathcal{R}_{\mathcal{C}}(V)\) must be a vertex of \(\mathcal{R}_{\mathcal{C}}(V)\).
Proof. Follows immediately from 11 and the fact that the number of pieces of a convex, positively homogeneous CPWL function corresponds to the number of vertices of its Newton polytope. Thus, minimality as defined in 4 corresponds precisely to minimizing the number of vertices of the representative polytopes. ◻
Similarly, we can translate the notion of a reduced decomposition. A representative \((P,Q)\) is irreducible if there is no non-trivial polytope \(A\) (i.e., \(A\) is not just a point) such that \(P' = P-A\) and \(Q' = Q-A\) are both still valid polytopes. If such an \(A\) exists, \((P', Q')\) would be a geometrically simpler representative of the same virtual polytope \(V\).
Corollary 4. A representative \((P,Q) \in \mathcal{R}_{\mathcal{C}}(V)\) is irreducible if and only if it is contained in a bounded face of the representative polyhedron \(\mathcal{R}_{\mathcal{C}}(V)\).
Proof. This follows directly from 7, as subtracting a convex function \(\phi\) from both components of a decomposition \((g,h)\) corresponds to subtracting the polytope \(\operatorname{Newt}(\phi)\) from both polytopes in the representative \((P,Q)\). ◻
These results imply that the search for minimal representatives of a virtual polytope \(V\) that are in the deformation cone of a summand polytope \(R\) (with normal fan \(\mathcal{C}\)) can be performed by enumerating the vertices of its representative polyhedron \(\mathcal{R}_\mathcal{C}(V)\). If this polyhedron has a unique vertex, that vertex corresponds to the unique minimal representative.
Constructions of decompositions of CPWL functions as a difference of two convex functions have appeared in many contexts. In this section, we relate some of these existing constructions to our framework. Moreover, we provide a counterexample to a construction which was proposed by [1] to obtain a minimal decomposition in general dimensions.
The literature contains a variety of different constructions to decompose a CPWL function. It is worth noting, however, that these constructions usually follow one of two main themes. The first theme is to construct \((g,h)\) in a way such that they are compatible with the complex \(\mathcal{C}\) that arises by extending the codimension-\(1\) faces of \(\mathcal{C}_f\) to hyperplanes, see e.g. [16] and [18]. The second theme is to exploit the properties of the lattice representation of a CPWL function [17].
Both of these themes were already illustrated by [8], and we briefly describe their constructions here.
Construction 16 (Hyperplane extension). For all convex breakpoints, the local convex functions are extended to global convex functions with breakpoints supported on a single hyperplane, and the function \(g\) is defined as the sum of all these functions. To analyze it in our framework, let \(\mathcal{C}\) be any polyhedral complex that is compatible with \(f\) and let \(w_f \in \mathcal{W}_\mathcal{C}\) be the weight function corresponding to \(f\). For \(\sigma \in \mathcal{C}^{d-1}\), let \(H_\sigma\) be the hyperplane spanned by \(\sigma\) and \(\mathcal{A}^+_f=\{H_\sigma \mid w_f(\sigma) > 0\}\) be the hyperplane arrangement consisting of the hyperplanes supporting the breakpoints where \(f\) is convex. Let \(\mathcal{H}^+_f\) be the common refinement of the polyhedral complex induced by \(\mathcal{A}^+_f\) and \(\mathcal{C}\). The weight function \(w_g \colon \mathcal{C}^{d-1} \to \mathbb{R}\) given by \[w_g(\sigma) \mathrel{\vcenter{:}}= \sum\limits_{\substack{\sigma \subseteq H_{\sigma'},\\w_f(\sigma')>0}}w_f(\sigma')\] is in \(\mathcal{W}_{\mathcal{H}^+_f}\) and nonnegative and hence the corresponding function \(g \in \mathcal{V}_{\mathcal{H}^+_f}\) is convex. It follows that \(h \mathrel{\vcenter{:}}= g-f\) is convex as well, yielding the desired decomposition.
Construction 17 (Local Maxima Decomposition). Let \(\{P_1,\ldots,P_m\}=\mathcal{C}^d\) and \(f_i\) be the unique linear extension of \(f_{|P_i}\). Moreover, let \(M_i \mathrel{\vcenter{:}}= \{j \in [m] \mid f_i(x) \geq f_j(x)\) for all \(x \in P_i\}\) and \(g_i \mathrel{\vcenter{:}}= \max_{j \in M_i}f_j\). Then \[f = \min_{i \in [m]} \max_{j \in M_i} f_i= \min_{i \in [m]}g_i.\] It follows that \(g \mathrel{\vcenter{:}}= \sum_{i \in [m]}g_i\) is a convex function. Furthermore, let \(h_i \mathrel{\vcenter{:}}= g-g_i\), then \(h \mathrel{\vcenter{:}}= \max_{i \in [m]}h_i\) is a convex function as well and it holds that \[g-h = g-\max_{i \in [m]} (g-g_i) = g -(g- \min_{i \in [m]} g_i) = g -(g -f)=f.\] Let \(H_{i,j} \mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid f_i(x) = f_j(x)\}\) and \(\mathcal{A}_f =\{H_{i,j} \mid i\neq j\}\). Furthermore, let \(\mathcal{H}_f\) be the polyhedral complex induced by the hyperplane arrangement \(\mathcal{A}_f\). Then we have that \(g,h \in \mathcal{V}_{\mathcal{H}_f}\).
In the following, we show that for the functions that compute the \(k\)-th order statistic, both constructions do not yield the unique minimal decompositions, which exist by 12. This implies the following result.
Proposition 18. There is a CPWL function \(f\) such that 16 17 do not provide a vertex of \(\mathcal{D}_{\mathcal{C}}(f)\) for any regular polyhedral complex \(\mathcal{C}\) compatible with \(f\).
Example 5 (Hyperplane extension of \(k\)-th order statistic). Let \(f\) be the function from 4. For any \(i,j \in [d]\) and \(U \subseteq [d]\) with \(i,j\in U\) and \(|U|=k+1\) it holds that \(\sigma_{i,j,U} \in \operatorname{supp}^+(f)\) and \(H_{\sigma_{i,j,U}} = \{x \in \mathbb{R}^d \mid x_i = x_j\}\). Hence, \(\mathcal{C}_g\) is the braid fan (see 8) and it holds that \(g(x) = \binom{d}{k-1}\sum_{i \neq j} \max\{x_i,x_j\}\). Thus, the unique vertex \((g^*,h^*)\) from 4 is clearly a non-trivial coarsening of the decomposition obtained from the hyperplane extension (since \(g^*\) is a non-trivial coarsening of \(g\)) and hence the decomposition cannot be a vertex of \(\mathcal{D}_{\mathcal{Q}}(f)\) for any regular polyhedral complex \(\mathcal{Q}\).
Example 6 (Local maxima decomposition of \(k\)-th order statistic). Let \(f\) be the function from 4. Then, for \(U\subseteq[d]\) with \(|U|=k-1\) and \(i \in [d] \setminus U\), we have that \(g_{i,U}(x)=\max\limits_{j \in [d]\setminus U}x_j.\) Thus, \[g(x)= \sum_{i,U} g_{i,U}(x) = (d-k+1)\cdot \sum\limits_{\substack{S \subseteq [d]\\|S|=d-k+1}} \max_{j \in S}x_j.\] Note that \(g\) has only breakpoints when two coordinates that are among the \(k\) highest coordinates swap places in the ordering. More precisely, the order of the lowest \(d-k\) coordinates is irrelevant for \(g\). So, for any \(T \subseteq [d]\) such that \(|T|=d-k\) and any bijection \(\pi \colon [k] \to [d] \setminus T\), let \[P_{T,\pi}\mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid x_j \leq x_{\pi(1)} \leq \ldots \leq x_{\pi(k)} \text{ for all } j \in T\}.\] It follows that the set of full-dimensional cones \(\mathcal{C}^d_g\) of the unique coarsest polyhedral complex \(\mathcal{C}_g\) compatible with \(g\) is given as \(\mathcal{C}_g^d=\{P_{T,\pi}\}_{T,\pi}.\) Again, the unique vertex \((g^*,h^*)\) from 4 is clearly a non-trivial coarsening of the decomposition obtained from the lattice representation and hence the decomposition cannot be a vertex of \(\mathcal{D}_{\mathcal{Q}}(f)\) for any regular polyhedral complex \(\mathcal{Q}\).
16 and 17 provide decompositions and hence also regular polyhedral complexes \(\mathcal{H}_f\) respectively \(\mathcal{H}^+_f\) compatible with a given CPWL function \(f\). The two examples show that the constructions do not necessarily yield vertices of the decomposition polyhedra \(\mathcal{D}_{\mathcal{H}_f}(f)\) respectively \(\mathcal{D}_{\mathcal{H}^+_f}(f)\). One might be tempted to search within the polyhedra \(\mathcal{D}_{\mathcal{H}_f}(f)\) and \(\mathcal{D}_{\mathcal{H}^+_f}(f)\) for the global optimal solution. However, the global optimal solution is not necessarily contained in these polyhedra, as we will show later. For this, we will use the fact that in dimension two, there is always a unique minimal decomposition due to a result from [1], which we will sketch in the next section.
The duality between positively homogeneous convex CPWL functions and Newton polytopes, as described in 3, serves as a motivation for [1] to construct minimal decompositions \(f = g-h\) of positively homogeneous CPWL functions as the difference of two convex such functions in dimension \(2\).
In this section, we present their minimal decomposition which they accomplish by introducing a single new \(1\)-dimensional face to \(\mathcal{C}_f\) and an adapted weight function to satisfy the balancing condition.
Theorem 19 ([1]). For every positively homogeneous CPWL-function \(f\colon \mathbb{R}^2\to \mathbb{R}\), there exists a unique (up to adding a linear function) minimal representation as the difference of two convex functions \(g,h\).
The decomposition can be obtained as follows. Let \(\mathcal{C}_f\) be a \(2\)-dimensional polyhedral fan compatible with \(f\) with rays \(\rho_1,\dots,\rho_m \subset \mathbb{R}^2\) and ray generators \(r_1,\dots,r_m \in \mathbb{R}^2\) such that \(\|r_i\|=1\) for \(i=1,\dots,m\). Furthermore, let \(w_f\) be the corresponding element in \(\mathcal{W}_{\mathcal{C}_f}\) and \(w^+_f \mathrel{\vcenter{:}}= \max \{w_f,0\}\). We now define an additional ray \(\rho_{m+1}\) with ray generator \[r_{m+1} = -\sum_{i = 1}^m \max(w_f(\rho_i),0) r_i\] and a convex function \(g\) through the weights \[w_g(\rho_i) = \begin{cases} w_f(\rho_i) & \text{if } w_f(\rho_i) > 0, i \in [m] \\ 0 & \text{if } w_f(\rho_i) \leq 0, i \in [m] \\ \sum_{i = 1}^m \max(w_f(\rho_i),0) & \text{if } i = m+1. \end{cases}\] This defines the convex functions \(g\), \(h = g-f\), and results in a minimal decomposition \(f = g-h\) in the 2-dimensional positively homogeneous case. Considering this construction through to the duality to Newton polytopes, we can identify rays of \(\mathcal{C}_f\) which correspond to convex breakpoints of \(f\) with edges of the Newton polytope \(\operatorname{Newt}(g)\), and the construction from 19 adds a "missing" edge to the Newton polygon \(\operatorname{Newt}(g)\).
With 19, we can prove that the decomposition polyhedra \(\mathcal{D}_{\mathcal{H}_f}(f)\) and \(\mathcal{D}_{\mathcal{H}^+_f}(f)\) corresponding to the polyhedral complexes obtained from hyperplane extensions \(\mathcal{H}^+_f\) (16) and local maxima decompositions \(\mathcal{H}^+_f\) (17) do not necessarily contain the global minimal decomposition of \(f\) into convex functions.
Proposition 20. There is a CPWL function \(f\) and convex CPWL functions \(g,h\) with \(f=g-h\) such that every decomposition \((g',h') \in \mathcal{D}_{\mathcal{H}_f}(f)\) as well as every decomposition \((g',h') \in \mathcal{D}_{\mathcal{H}^+_f}(f)\) is dominated by \((g,h)\).
Proof. Let \(\mathcal{C}\) be the polyhedral complex in \(\mathbb{R}^2\) with rays \(\rho_1=\operatorname{cone}((1,0))\), \(\rho_2=\operatorname{cone}((0,1))\), \(\rho_3=\operatorname{cone}((1,2))\) and \(\rho_4=\operatorname{cone}((2,1))\). Let \(w_f(\rho_1)=w_f(\rho_2)=1\) and \(w_f(\rho_3)=w_f(\rho_4)=\frac{\sqrt{5}}{3}\). Then according to 19 the unique minimal decomposition is given by the complex obtained by adding the ray \(\rho_5=\operatorname{cone}((-1,-1))\) and the weight function \[w_g(\rho) = \begin{cases} w_f(\rho) & \rho \in \operatorname{supp}_\mathcal{C}^+(f) \\ 0 & \rho \in \operatorname{supp}_\mathcal{C}^-(f) \\ \sqrt{2} & \rho =\rho_5 \end{cases}\] as well as \(w_h=w_g-w_f\). Nevertheless, the ray \(\rho_5\) is not contained in (the support of) \(\mathcal{H}_f\) and hence this solution is not in \(\mathcal{D}_{\mathcal{H}_f}(f)\). Since \((g,h)\) is the unique (up to adding a linear function) minimal decomposition, it follows that any solution in \(\mathcal{D}_{\mathcal{H}_f}(f)\) must be dominated by \((g,h)\). Since \(\mathcal{H}^+_f\) is a coarsening of \(\mathcal{H}_f\), it holds that every decomposition in \(\mathcal{D}_{\mathcal{H}^+_f}(f)\) is contained in \(\mathcal{D}_{\mathcal{H}_f}(f)\) as well, implying the result for \(\mathcal{D}_{\mathcal{H}^+_f}(f)\). ◻
Based on their \(2\)-dimensional construction, [1] propose a procedure to reduce the \(d\)-dimensional case to \(2\)-dimensions via projections.
Construction 21 ([1]). Let \(f \colon \mathbb{R}^d \to \mathbb{R}\) be a positively homogeneous CPWL-function and \(\mathcal{C}\) a polyhedral fan compatible with \(f\). The attempt is to balance \(w^+_f\) locally around every \(\tau \in \mathcal{C}^{d-2}\) and then “glue together” the local balancings to a global balancing. So, for some \(\tau \in \mathcal{C}^{d-2}\), suppose that \(\{\sigma_1,\ldots, \sigma_k \}= \operatorname{star}_\mathcal{C}(\tau)\) are the cones containing \(\tau\). The rays spanned by \(e_{\sigma_i/\tau}\) that inherit the weights \(w^+_f(\sigma_i)\) for \(i\in [k]\) induce a \(2\)-dimensional fan \(\mathcal{C}_\tau\) in the \(2\)-dimensional linear space \(\operatorname{span}(\tau)^\perp\) orthogonal to \(\operatorname{span}(\tau)\). Let \(P_\tau\) be the polygon in \(\operatorname{span}(\tau)^\perp\) corresponding to the minimal balancing of \(w^+_f\) regarded as map \(w^+_f \colon \mathcal{C}_\tau^1 \to \mathbb{R}\). Now proceed with the following steps.
For every \(\tau \in \mathcal{C}^{d-2}\), construct the polygon \(P_\tau\).
Place the polygons \(P_\tau\) in \(\mathbb{R}^d\) in such a way, that whenever \(\tau_1,\tau_2 \in \mathcal{C}^{d-2}\) are faces of \(\sigma \in \operatorname{supp}^+_\mathcal{C}(f)\), then the edges in \(P_{\tau_1}\) and \(P_{\tau_2}\) that correspond to \(\sigma\) are identified with each other.
Take the convex hull \(P_g\) of the polygons \(\{P_\tau\}_{\tau \in \mathcal{C}^{d-2}}\).
The support function \(g\) of the polytope \(P_g\) and \(h\mathrel{\vcenter{:}}= g-f\) are a decomposition of \(f\).
One can check that for some \(\sigma \in \mathcal{C}^{d-1}\) and \(\tau\in \mathcal{C}^{d-2}\) being a face of \(\sigma\), the edge \(e_{\sigma}\) of length \(w(\sigma)\) which is perpendicular in \(\operatorname{span}(\tau)^\perp\) to \(\tau\) is independent of the choice of the face \(\tau\). In particular, the direction of the edge \(e_\sigma\) is normal to the hyperplane spanned by \(\sigma\). However, it remained unclear whether or not the second step in this procedure is always well-defined, that is, that placing the polygons in such a coherent way is possible. To make this more precise, let for some \(\tau \in \mathcal{C}^{d-2}\) the edges of the polygon \(P_\tau\) be given in a cyclic way \(\{e_{\sigma_1}, \ldots, e_{\sigma_m}\}\). Placing a polygon \(P_\tau\) refers to choosing an \(x_\tau \in \mathbb{R}^d\) and defining the placed polygon as \(P_\tau(x_\tau)=\operatorname{conv}(x_\tau,x_\tau+e_{\sigma_1},x_\tau+ e_{\sigma_1}+e_{\sigma_2},\ldots,x_\tau+\sum_{i=1}^m e_{\sigma_m})\). Placing them in a coherent way means choosing an \(x_\tau \in \mathbb{R}^d\) for every \(\tau \in \mathcal{C}^{d-2}\) such that \(P_{\tau_1}(x_{\tau_1}) \cap P_{\tau_2}(x_{\tau_2}) = \operatorname{conv}(x_\sigma, x_\sigma + e_\sigma)\) for some \(x_\sigma \in \mathbb{R}^d\) whenever \(\tau_1\) and \(\tau_2\) are faces of \(\sigma\). A priori it is not clear that such \(x_\tau\) always exist. The following example will in fact show that the resulting linear equation system not always yields a solution.
Example 7 (Counterexample to 21). 9 is an illustration of \(4\) polygons with labelled edges that cannot be placed in \(\mathbb{R}^3\) such that the edges of different polygons with the same label are identified with each other. Hence, applying the above procedure to the CPWL-function \(f\colon \mathbb{R}^3 \to \mathbb{R}\) given by \[f(x)= \max\{0,\max\limits_{\substack{i,j\in [3]\\ i\neq j}}\{\min \{x_i,x_j-x_i\}\}\}\] is not well-defined since these \(4\) polygons arise and should be identified in the indicated way, which is impossible.
We describe the \(2\)-skeleton of a polyhedral fan \(\mathcal{C}\) that is compatible with \(f\). Since \(f\) is positively homogeneous, \(\mathcal{C}\) is a fan. Thus, its combinatorics can be visualized by intersecting it with a sphere centered at the origin and projecting radially; this is the role of 10. The full-dimensional cones of the fan are the linear regions of \(f\), and on each such region \(f\) agrees with one of the linear forms appearing in its defining expression, namely one of \(0\), \(x_i\), or \(x_j-x_i\).Recall that \(e_i\) is the \(i\)-th standard unit vector. The rays are given as follows: \[\begin{gather} \mathcal{C}^1= \{\operatorname{cone}(-e_i), \operatorname{cone}(e_i), \operatorname{cone}(e_i+e_j), \operatorname{cone}(e_i+e_j+2e_k), \operatorname{cone}(e_i+2e_j+2e_k),\\ \operatorname{cone}(e_i+e_j+2e_k), \operatorname{cone}(e_i+e_j+e_k)\mid i,j,k \in [3] \text{ pairwise distinct}\} \end{gather}\]
and the \(2\)-dimensional cones as \[\begin{align} \mathcal{C}^2= \{&\operatorname{cone}(e_i,-e_j), \operatorname{cone}(-e_i,e_i+e_j+2e_k), \operatorname{cone}(-e_i,e_j+e_k), \operatorname{cone}(e_i,e_i+e_j+2e_k),\\& \operatorname{cone}(e_j+e_k,e_i+e_j+2e_k), \operatorname{cone}(e_i+e_j+2e_k,e_i+2e_j+2e_k),\\& \operatorname{cone}(e_i+e_j+2e_k,e_i+e_j+e_k), \operatorname{cone}(e_i+2e_j+2e_k,e_i+e_j+e_k),\\& \operatorname{cone}(e_j+e_k,e_i+2e_j+2e_k) \mid i,j,k \in [3] \text{ pairwise distinct}\} \end{align}\] The weight function \(w_f \colon \mathcal{C}^2\to \mathbb{R}\) given by \[\begin{align} &w(\operatorname{cone}(e_i,-e_j))=1\\ &w(\operatorname{cone}(-e_i,e_i+e_j+2e_k))=-\sqrt{5}\\ &w(\operatorname{cone}(-e_i,e_j+e_k))=\sqrt{8}\\ &w(\operatorname{cone}(e_i,e_i+e_j+2e_k))=\sqrt{2},\\ &w(\operatorname{cone}(e_j+e_k,e_i+e_j+2e_k))=\sqrt{3},\\ &w(\operatorname{cone}(e_i+e_j+2e_k,e_i+2e_j+2e_k))=-\sqrt{5},\\ &w(\operatorname{cone}(e_i+e_j+2e_k,e_i+e_j+e_k))=\sqrt{2},\\ &w(\operatorname{cone}(e_i+2e_j+2e_k,e_i+e_j+e_k))=\sqrt{2},\\ &w(\operatorname{cone}(e_j+e_k,e_i+2e_j+2e_k))=0 \end{align}\] corresponds to the function \(f\) and is therefore balanced. See 10 for a \(2\)-dimensional illustration of \(\mathcal{C}\).
Consider the \(4\) rays \[\begin{align} \rho_1 = \operatorname{cone}((0,1,1)),\rho_2 = \operatorname{cone}((1,1,2)),\rho_3 = \operatorname{cone}((1,2,1)),\rho_4=\operatorname{cone}((1,1,1)) \end{align}\] For the four rays \(\rho_1,\rho_2,\rho_3,\rho_4\) considered below, the positive part \(w_f^+\) is already balanced in the corresponding two-dimensional quotient fans. Equivalently, the positive edge vectors around each of these rays already close up to form a polygon. Hence, in the local two-dimensional step of 21, no additional “missing” edge is introduced at these rays. The obstruction is therefore not local balancing, but the subsequent global gluing step: the locally constructed polygons cannot be placed in \(\mathbb{R}^3\) so that equally labelled edges are identified coherently. We will see that the corresponding polygons \(P_{\rho_1},P_{\rho_2},P_{\rho_3}\) and \(P_{\rho_4}\) equal the ones in Figure 9. The \(2\)-dimensional cones which are in the stars of the \(4\) rays are the following: \[\begin{align} &\sigma_{1}=\operatorname{cone}((0,1,1),(-1,0,0)),\, \sigma_2=\operatorname{cone}((0,1,1),(1,2,1)),\, \sigma_3=\operatorname{cone}((0,1,1),(1,1,2)),\\&\sigma_4=\operatorname{cone}((1,1,2),(1,1,1)), \sigma_5=\operatorname{cone}((1,1,2),(1,0,1)),\, \sigma_6=\operatorname{cone}((1,1,2),(0,0,1)),\\&\sigma_7=\operatorname{cone}((1,2,1),(0,1,0)),\, \sigma_8=\operatorname{cone}((1,2,1),(1,1,0)),\, \sigma_9=\operatorname{cone}((1,2,1),(1,1,1)),\\&\sigma_{10}=\operatorname{cone}((1,1,1),(2,2,1)),\, \sigma_{11}=\operatorname{cone}((1,1,1),(2,1,1),\, \sigma_{12}=\operatorname{cone}((1,1,1),(2,1,2),\\& \sigma_{13}=\operatorname{cone}((1,2,2),(1,1,1)), \end{align}\]
The directions of the edges of the polygons are given by the normal vectors of the hyperplanes spanned by the corresponding \(2\)-dimensional cone and their length by the weight of the corresponding \(2\)-dimensional cone.
\[\begin{align} &e_{\sigma_1}=(0,2,-2),\, e_{\sigma_2}=(1,-1,1),\, e_{\sigma_3}=(-1,-1,1), \,e_{\sigma_4}=(1,-1,0),\, e_{\sigma_5}=(1,1,-1),\, \\ &e_{\sigma_6}=(-1,1,0),\, e_{\sigma_7}=(1,0,-1),\, e_{\sigma_8}=(-1,1,-1),\, e_{\sigma_9}=(-1,0,1), \,e_{\sigma_{10}}=(1,-1,0),\\ &e_{\sigma_{11}}=(0,-1,1),\, e_{\sigma_{12}}=(-1,0,1),\, e_{\sigma_{13}}=(0,1,-1) \end{align}\] In order to construct the polygons, one needs to consider the orientation of the edge (and the normal vector) in the particular polygon. One can convince themselves that the polygons \(P_{\rho_1},P_{\rho_2},P_{\rho_3}\) and \(P_{\rho_4}\) of the \(4\) rays are given as: \[\begin{align} P_{\rho_1}(x_{\rho_1})&=\operatorname{conv}(x_{\rho_1}+e_{\sigma_1}, x_{\rho_1}+e_{\sigma_1}+e_{\sigma_2},x_{\rho_1}+e_{\sigma_1}+e_{\sigma_2}+e_{\sigma_3}) \\ P_{\rho_2}(x_{\rho_2})&=\operatorname{conv}(x_{\rho_2}-e_{\sigma_3}, x_{\rho_2}-e_{\sigma_3}-e_{\sigma_4},x_{\rho_2}-e_{\sigma_3}-e_{\sigma_4}-e_{\sigma_5},x_{\rho_2}-e_{\sigma_3}-e_{\sigma_4}-e_{\sigma_5}-e_{\sigma_6}) \\P_{\rho_3}(x_{\rho_3})&=\operatorname{conv}(x_{\rho_3}-e_{\sigma_2},x_{\rho_3}-e_{\sigma_2}+e_{\sigma_7},x_{\rho_3}-e_{\sigma_2}+e_{\sigma_7}+e_{\sigma_8},x_{\rho_3}-e_{\sigma_2}+e_{\sigma_7}+e_{\sigma_8}+e_{\sigma_9}) \\P_{\rho_4}(x_{\rho_4})&=\operatorname{conv}(x_{\rho_3}+e_{\sigma_9},x_{\rho_4}+e_{\sigma_9}+e_{\sigma_{10}},x_{\rho_4}+e_{\sigma_9}+e_{\sigma_{10}}+e_{\sigma_{11}},\\&x_{\rho_4}+e_{\sigma_9}+e_{\sigma_{10}}+e_{\sigma_{11}}+e_{\sigma_{12}},x_{\rho_4}+e_{\sigma_9}+e_{\sigma_{10}}+e_{\sigma_{11}}+e_{\sigma_{12}}+e_{\sigma_4},\\&x_{\rho_4}+e_{\sigma_9}+e_{\sigma_{10}}+e_{\sigma_{11}}+e_{\sigma_{12}}+e_{\sigma_4}+e_{\sigma_{13}}). \end{align}\]
Figure 9 already shows that they cannot be placed in a coherent way. To make this mathematically precise, one obtains a system of linear equations for \(x_{\rho_1},x_{\rho_2},x_{\rho_3}\) and \(x_{\rho_4}\), by plugging in the values for the normal vectors, that ensures that the edges for the same \(2\)-dimensional cone in different polygons are identified. This linear equation system does not have a solution.
Our conclusion is that the construction by [1] does not extend beyond the \(2\)-dimensional case, leaving it an open problem to find any finite algorithm that guarantees to return a minimal decomposition without fixing an underlying polyhedral complex. Note that for any fixed underlying polyhedral complex, 11 implies a finite algorithm by enumerating the vertices of the decomposition polyhedron, as discussed earlier.
In this section, we demonstrate that a special case of our framework is to decompose a general set function into a difference of submodular set functions and translate our results to this setting. Such decompositions are a popular approach to solve optimization problems, as discussed in the introduction.
Definition 8. The braid arrangement in \(\mathbb{R}^d\) is the hyperplane arrangement consisting of the \(\binom{d}{2}\) hyperplanes \(x_i=x_j\), with \(1\leq i<j \leq d\). The braid fan \(\mathcal{B}_d\) is the polyhedral fan induced by the braid arrangement.
Let \(\mathcal{F}_d\) be the vector space of set functions from \(2^{[d]}\) to \(\mathbb{R}\). We first show that functions in \(\mathcal{V}_{\mathcal{B}_d}\) are in one-to-one correspondence with the set functions \(\mathcal{F}_d\). To this end, for a set \(S\subseteq[d]\), let \(\mathbb{1}_S=\sum_{i\in S} e_i\) be the indicator vector of \(S\), that is, the vector that contains entries \(1\) for indices in \(S\) and \(0\) otherwise.
Proposition 22. The linear map \(\Phi \colon \mathcal{V}_{\mathcal{B}_{d}} \to \mathcal{F}_{d}\) given by \(\Phi(f) = F(S) = f(\mathbb{1}_S)\) is an isomorphism.
Proof. The map \(\Phi\) is clearly a linear map. To prove that \(\Phi\) is an isomorphism, we show that a function \(f\in \mathcal{V}_{\mathcal{B}_{d}}\) is uniquely determined by its values on \(\{\mathbb{1}_S\}_{S\subseteq [d]}\) and any choice of real values \(\{y_S\}_{S\subseteq [d]}\) gives rise to a function \(f\in \mathcal{V}_{\mathcal{B}_{d}}\) such that \(f(\mathbb{1}_S)=y_S\).
First, note that the maximal cones of \(\mathcal{B}_d\) are of the form \(C_{\pi}=\{x \in \mathbb{R}^d \mid x_{\pi(1)} \leq \ldots \leq x_{\pi(d)}\}\) for a permutation \(\pi \colon [d] \to [d]\). There are exactly the \(d+1\) indicator vectors \(\{\mathbb{1}_{S_i}\}_{i=0,\ldots,d}\) contained in \(C_{\pi}\), where \(S_i \mathrel{\vcenter{:}}=\{\pi(d+1-i),\ldots,\pi(d)\}\) for \(i \in [d]\) and \(S_0 \mathrel{\vcenter{:}}= \emptyset\). Moreover, the vectors \(\{\mathbb{1}_{S_i}\}_{i=0,\ldots,d}\) are affinely independent and hence the values \(\{f(\mathbb{1}_{S_i})\}_{i=0,\ldots,d}\) uniquely determine the affine linear function \(f_{|C_{\pi}}\). Therefore, \(f\) is uniquely determined by \(\{f(\mathbb{1}_{S})\}_{S\subseteq[d]}\).
Given any values \(\{y_S\}_{S \subseteq [d]}\), by the discussion above, there are unique affine linear maps \(f_{|C_{\pi}}\) yielding \(f_{|C_{\pi}}(\mathbb{1}_S)=y_S\) for all \(S \subseteq [d]\) such that \(\mathbb{1}_S \in C_{\pi}\). It remains to show that the resulting function \(f\) is well-defined on the facets. Any such facet is of the form \[C_{\pi,i}=\{x \in \mathbb{R}^d \mid x_{\pi(1)} \leq \ldots \leq x_{\pi(i)} = x_{\pi(i+1)} \leq \ldots \leq x_{\pi(d)}\},\] which is the intersection of \(C_{\pi}\) and \(C_{\pi \circ (i,i+1)}\), where \((i,i+1)\) denotes the transposition swapping \(i\) and \(i+1\). However, the indicator vectors \(\{\mathbb{1}_{S_i}\}_{i\in[d]\setminus \{i\}}\) contained in \(C_{\pi,i}\) are a subset of the indicator vectors contained in \(C_{\pi}\) and \(C_{\pi \circ (i,i+1)}\). Therefore, it holds that \(f_{|C_{\pi}}(x)=f_{|C_{\pi \circ (i,i+1)}}(x)\) for all \(x \in C_{\pi,i}\) implying that \(f\) is well-defined as a CPWL function. ◻
If we think this the other way around, starting with a set function \(F\), then \(f=\Phi^{-1}(F)\) is by definition a continuous extension of \(F\). It turns out that this particular extension is known as the Lovász extension [51], as we argue below. The Lovász extension is an important concept in the theory and practice of submodular function optimization as it provides a link between discrete submodular functions and continuous convex functions.
Definition 9. For a set function \(F \colon 2^{[d]} \to \mathbb{R}\), the Lovász extension \(f \colon \mathbb{R}^d \to \mathbb{R}\) is defined by \(f(x) = \sum_{i=0}^d \lambda_i F(S_i)\), where \(\emptyset=S_0 \subset S_1 \subset \ldots \subset S_d = [d]\) is a chain such that \(\sum_{i=1}^d \lambda_i \mathbb{1}_{S_i} =x\) and \(\lambda_i \geq 0\) for all \(i\in [d]\) and \(\lambda_0=1-\sum_{i=1}^d\lambda_i\).
Remark 23. In many contexts in the literature, the Lovász extension is only defined on the hypercube \([0,1]^d\). For our purposes, it is more convenient to omit this restriction, which is captured by the above definition.
The intuition of the Lovász extension can already be seen in the proof of 22: depending on the ordering of the components of an input vector \(x\), the Lovász extension writes \(x\) as an affine combination of indicator vectors \(\mathbb{1}_{S_i}\), and uses the coefficients of the affine combination to compute the value \(f(x)\). Following the intuition, we see in the next proposition that \(\Phi^{-1}(F)\) is actually the Lovász extension of \(F\).
Proposition 24. For a set function \(F\in \mathcal{F}_d\), the function \(f=\Phi^{-1}(F)\) is precisely the Lovász extension of \(F\).
Proof. By the definition of the Lovász extension, it follows that it is compatible with \(\mathcal{B}_d\). Thus, the Lovász extension is contained in \(\mathcal{V}_{\mathcal{B}_{d}}\). Moreover, as it is an extension that fixes indicator vectors, it follows that \(\Phi\) applied to the Lovász extension of \(F\) gives back \(F\). As \(\Phi\) is an isomorphism by 22, the Lovász extension must be exactly \(\Phi^{-1}(F)\). ◻
Definition 10. A set function \(F \colon 2^{[d]} \to \mathbb{R}\) is called submodular if \[F(A) +F(B) \geq F(A \cup B) + F(A \cap B)\label{eq:submodular}\tag{3}\] for all \(A,B \subseteq [d]\). \(F\) is called modular if equality holds for all \(A,B \subseteq [d]\).
The following well-known property is key to the insights of this section.
Proposition 25 ([51]). A set function \(F\) is submodular if and only if its Lovász extension \(f=\Phi^{-1}(F)\) is convex.
Applying our insights from 4 to the previous proposition, we obtain the following well-known statement.
Corollary 5. The set of submodular functions forms a polyhedral cone \(\mathcal{SM}_d\) in the vector space \(\mathcal{F}_d\).
In particular, we can specialize 1 in the setting of this section as follows.
Problem 26. Given a set function \(F\in\mathcal{F}_d\), how to decompose it into a difference of submodular set functions such that their Lovász extensions have as few pieces as possible?
Having a Lovász extension with few pieces is desirable because it allows the submodular function to be stored and accessed efficiently during computational tasks. As 26 is a special case of 1, we are able to translate our results from 4 to the setting of submodular functions.
Let \(\mathcal{MOD}_d\subseteq \mathcal{F}_d\) be the vector space of modular functions, that is, set functions that satisfy 3 with equality. Note that a set function is modular if and only if its Lovász extension is an affine function [51]. Since for any \(M \in \mathcal{MOD}_d\), a set function \(F\) is submodular if and only if \(F+M\) is submodular, we define the vector space \(\overline{\mathcal{F}}_d = \mathcal{F}_d / \mathcal{MOD}_d\) of set functions modulo modular functions. Furthermore, let \(\overline{\mathcal{SM}}_d\) be the cone of submodular functions in this quotient.
A decomposition \((G,H) \in \overline{\mathcal{SM}}_d \times \overline{\mathcal{SM}}_d\) of a set function \(F\in \overline{\mathcal{F}}_d\) is called irreducible if there does not exist a submodular function \(I \in \overline{\mathcal{SM}}_d\setminus \{0\}\) such that \(G-I\) and \(H-I\) are submodular. Since a set function \(M \in \mathcal{F}_d\) is modular if and only if \(\Phi^{-1}(M)\) is affine linear, the isomorphism \(\Phi\) of Proposition 22 descends to an isomorphism \(\Phi \colon \overline{\mathcal{F}}_d \to \overline{\mathcal{V}}_{\mathcal{B}_d}\) such that \(\Phi(\overline{\mathcal{SM}}_d) = \overline{\mathcal{V}}^+_{\mathcal{B}_d}\).
For a set function \(F \in \overline{\mathcal{F}}_d\), the set of decompositions \[\mathcal{D}_{}(F)\mathrel{\vcenter{:}}= \{(G,H) \in \overline{\mathcal{SM}}_d \times \overline{\mathcal{SM}}_d \mid F=G-H\}\] is a polyhedron.
Corollary 6. A decomposition \((G,H)\) is irreducible if and only if \((G,H)\) is contained in a bounded face of \(\mathcal{D}_{}(F)\).
Proof. The extension of \(\overline{\Phi}\) to the cartesian product \(\overline{\Phi} \times \overline{\Phi} \colon \overline{\mathcal{V}}_{\mathcal{B}_d} \times \overline{\mathcal{V}}_{\mathcal{B}_d} \to \overline{\mathcal{F}}_d \times \overline{\mathcal{F}}_d\) is an isomorphism. Then the statement follows from the fact that \(\mathcal{D}_{}(F)= (\overline{\Phi}\times \overline{\Phi}) (\mathcal{D}_{\mathcal{B}_d}(\Phi^{-1}(F))\) and 7. ◻
Definition 11. For a submodular function \(F \colon 2^{[d]} \to \mathbb{R}\), the base polytope \(B(F)\) is defined as \[B(F) \mathrel{\vcenter{:}}= \{x \in \mathbb{R}^d \mid \sum_{i \in S} x_i \leq F(S) \, \forall S\subset [d], \sum_{i \in [d]}x_i = F([d])\}.\]
Since we factored out modular functions, we can assume without loss of generality that a set function \(F \in \overline{\mathcal{F}}_d\) is normalized, that is, \(F(\emptyset) =0\). In this case, \(f=\Phi^{-1}(F)\) is positively homogeneous. For the remainder of this section, we will assume all set functions to be normalized and all CPWL functions to be positively homogeneous. If \(F\) is submodular, \(f\) agrees with the support function of the base polytope \(B(F)\), and therefore \(B(F)\) is the Newton polytope \(\operatorname{Newt}(f)\) of the Lovász extension \(f\) (see e.g. [52] Theorem 12.3.). The Newton polytopes of functions that differ by a linear map are translations of each other and modular functions correspond to linear functions [51]. Hence, the set of base polytopes in \(\mathbb{R}^d\) modulo translation is precisely the set of Newton polytopes of functions compatible with the braid fan, which are also known as generalized permutahedra. We denote the cone of generalized permutahedra by \(\overline{\mathcal{GP}}_d\) and hence the maps \[B \colon \overline{\mathcal{F}}_d \to \overline{\mathcal{GP}}_d, F \mapsto B(F)\] and \[\operatorname{Newt}\colon \overline{\mathcal{V}}^+_{\mathcal{B}_d} \to \overline{\mathcal{GP}}_d, f \mapsto \operatorname{Newt}(f)\] are well-defined and we obtain the following diagram: \[\begin{tikzcd} \overline{\mathcal{SM}}_d \arrow{r}{B} \arrow{d}[swap]{\overline{\Phi}}&\overline{\mathcal{GP}}_d \\ \overline{\mathcal{V}}^+_{\mathcal{B}_d} \arrow[swap]{ur}{\operatorname{Newt}}\end{tikzcd}\] In this setting, we call a decomposition \((G,H)\in\mathcal{D}_{}(F)\) minimal, if it is not dominated by any other decomposition, that is, if there is no other decomposition \((G',H')\in\mathcal{D}_{}(F)\) where \(B(G')\) has at most as many vertices as \(B(G)\), \(B(H')\) has at most as many vertices as \(B(H)\), and one of the two has strictly fewer vertices.
For a tuple of submodular functions \((G,H) \in \overline{\mathcal{SM}} \times \overline{\mathcal{SM}}\), let \((\mathcal{P}_{G},\mathcal{P}_H)\) be the tuple of the normal fans of the base polytopes \(B(G)\) and \(B(H)\). A decomposition \((G',H')\in\mathcal{D}_{}(F)\) is called a (non-trivial) coarsening of \((G,H)\in\mathcal{D}_{}(F)\) if \(\mathcal{P}_{G'}\) and \(\mathcal{P}_{H'}\) are coarsenings of \(\mathcal{P}_{G}\) and \(\mathcal{P}_H\), respectively (and at least one of them is a non-trivial coarsening).
Corollary 7. \((G,H) \in \mathcal{D}_{}(F)\) is a vertex if and only if there is no non-trivial coarsening of \((G,H)\).
Proof. Since \(g=\Phi^{-1}(G)\) and \(h=\Phi^{-1}(H)\) are the support functions of the base polytopes \(B(G)\) respectively \(B(H)\), the tuple of normal fans \((\mathcal{P}_{G},\mathcal{P}_H)\) agrees with the tuple \((\mathcal{P}_g,\mathcal{P}_h)\) of the unique coarsest polyhedral complexes compatible with \(g\) and \(h\). Hence by 10, there is no non-trivial coarsening of \((G,H)\) if and only if \((g,h)\) is a vertex of \(\mathcal{D}_{\mathcal{P}}(f)\) which is the case if and only if \((G,H)\) is a vertex of \(\mathcal{D}_{}(F)\). ◻
Corollary 8. For a normalized set function \(F \in \overline{\mathcal{F}}_d\), a minimal decomposition of \(F\) is a vertex of \(\mathcal{D}_{}(F)\).
Proof. If \((G,H)\) is not a vertex, then there is a coarsening \((G',H') \in \mathcal{D}_{}(F)\) of \((G,H)\) implying that \((G',H')\) dominates \((G,H)\). ◻
The following example shows that the Lovász extensions of cut functions are hyperplane functions thus admit a unique minimal decomposition into submodular functions, which are themselves cut functions. In particular, the Lovász extensions of the decomposition have at most as many pieces as the Lovász extensions of the original cut function.
Example 8 (Minimal decompositions of cut functions). Let \(G=(V,E)\) be a graph where \(V=[n]\) and \(c \colon E \to \mathbb{R}\) a weight function on the edges. Let \(F \in \mathcal{F}_n\) be the cut function given by \(F(S)=\sum_{\{u,v\} \in \delta(S)}c(\{u,v\})\), where \(\delta(S) \mathrel{\vcenter{:}}= \{\{u,v\} \in E \mid u \in S, v \in V\setminus S\}\). The function \(f \mathrel{\vcenter{:}}= \Phi^{-1}(F) \in \mathcal{V}_{\mathcal{B}_n}\) is given by \(f(x) = \sum_{\{u,v\} \in E} c(\{u,v\}) \cdot f_{u,v}(x)\), where \(f_{u,v}(x)=\max\{x_u-x_v,x_v-x_u\}\). To see this, first note that \(f \in \mathcal{V}_{\mathcal{B}_n}\). Thus, it suffices to check that \(F(S)=f(\mathbb{1}_S)\) for all \(S \subseteq [n]\), which follows due to the observation that \[f_{u,v}(\mathbb{1}_S)=\begin{cases} 1 & \{u,v\} \in \delta(S) \\ 0 & \{u,v\} \not \in \delta(S) \end{cases}\] Hence, 3 implies that the functions \[g= \sum_{ c(\{u,v\}) > 0} c(\{u,v\}) \cdot f_{u,v} \text{ and } h= \sum_{c(\{u,v\}) < 0} c(\{u,v\}) \cdot f_{u,v}\] form the unique minimal decomposition of \(f\). Thus, \(G=\Phi(g)\) and \(H=\Phi(h)\), the submodular functions given by \[G(S) = \sum\limits_{\substack{\{u,v\} \in \delta(S)\\c(\{u,v\}) >0}}c(\{u,v\}) \text{ and } H(S) = \sum\limits_{\substack{\{u,v\} \in \delta(S)\\c(\{u,v\}) <0}}c(\{u,v\})\] are the unique minimal decompositions of \(F\) into submodular functions.
In this section we consider the following question: Given a CPWL function \(f\colon\mathbb{R}^d\to\mathbb{R}\) with \(q\) pieces and \(k\) affine components, what is the necessary depth, width, and size of a neural network exactly representing this function? To this end, we first discuss the necessary background on neural networks and known results on neural complexity. We then prove better results for the case of \(f\) being convex. Finally, we extend these results to nonconvex functions by writing them as a difference of convex functions.
For a number of hidden layers \(\ell\geq0\), a neural network with rectified linear unit (ReLU) activations is defined by a sequence of \(\ell+1\) affine transformations \(T_i:\mathbb{R}^{n_{i-1}}\to\mathbb{R}^{n_i}\), \(i\in[\ell+1]\). We assume that \(n_0=d\) and \(n_{\ell+1}=1\). If \(\sigma\) denotes the function that computes the ReLU function \(x\mapsto \max\{x,0\}\) in each component, the neural network is said to compute the function \(f\colon\mathbb{R}^d\to \mathbb{R}\) given by \(f=T_{\ell+1}\circ\sigma\circ T_\ell\circ\sigma\circ\dots\circ\sigma \circ T_1\). We say that the neural network has depth \(\ell+1\), width \(\max_{i\in[\ell]} n_i\), and size \(\sum_{i\in[\ell]} n_i\).
It is well-known that the maximum of \(d\) numbers can be computed with depth \(\lceil \log_2d \rceil+1\) and overall size \(\mathcal{O}(d)\) [2]. This simple fact has been used in the literature to deduce exact representations of CPWL functions with neural networks from known representations of CPWL functions. We would like to focus on two of them here, which are in a sense incomparable. The first one goes back to [6] and builds upon ideas from [22]. We present it here in a slightly stronger form that follows from [23].
Theorem 27. Every CPWL function \(f\colon \mathbb{R}^d\to\mathbb{R}\) with \(k\) affine components can be represented by a neural network with depth \(\lceil \log_2(d+1) \rceil+1\) and overall size \(\mathcal{O}(k^{d+1})\).
The second one goes back to [4] and is based on the lattice representation of CPWL functions, compare [20].
Theorem 28 ([4]). Every CPWL function \(f\colon \mathbb{R}^d\to\mathbb{R}\) with \(q\) pieces and \(k\) affine components can be represented by a neural network with depth \(\lceil \log_2k\rceil + \lceil\log_2q\rceil+1\) and overall size \(\mathcal{O}(kq)\).
As noted before, one can assume that \(d< k \leq q\), since otherwise we could affinely project to a lower dimension without losing information. In fact, one would usually assume that the input dimension \(d\) is much lower than the number of affine components \(k\). Therefore, 27 provides the better representation in terms of depth, while 28 provides the better representation in terms of size. However, both theorems offer only fixed depth-size tradeoffs: each prescribes a particular depth and size bound, without allowing the user to interpolate between these two regimes. So, the naturally occurring question is: can we somehow freely choose a depth and trade depth against size in these representations? In other words: can we smoothly interpolate between the low-depth high-size representation of 27 and the low-size high-depth representation of 28? In the remaining section we present results that achieve this to some extent.
In this part, we prove that in the convex case one can obtain a flexible depth-size tradeoff by grouping the affine components, applying the low-depth construction from 27 within each group, and then combining the group maxima using the standard ReLU construction for the maximum function.
Theorem 29. Every convex CPWL function \(f\colon \mathbb{R}^d\to\mathbb{R}\) with \(q=k\) affine components can be represented by a neural network with \(\lceil \log_2 (d+1) \rceil +\lceil\log_2 r \rceil\) many hidden layers and overall size \(\mathcal{O}(rs^{d+1})\), for any free choice of parameters \(r\) and \(s\) with \(rs\geq k\).
Proof. Recall that a convex CPWL function can be written as the maximum of its affine components, that is, \(f(x)=\max_{i\in[k]}\langle a_i,x \rangle+b_i\). The idea is to split the \(k\) affine components of \(f\) into \(r\) groups of size at most \(s\), apply 27 to compute the maximum within each group, and then simply compute the maximum of the \(r\) group maxima in a straight-forward way.
Let us first focus on computing the maximum of at most \(s\) affine components within each of the \(r\) groups. By 27, one can achieve this with a neural network with \(\lceil \log_2(d+1) \rceil+1\) many hidden layers and overall size \(\mathcal{O}(s^{d+1})\). We put all these \(r\) neural networks in parallel to each other and add, at the end, the simple neural network computing the maximum of these \(r\) maxima according to [2], which has \(\lceil\log_2 r \rceil\) many hidden layers and overall size \(\mathcal{O}(r)\). Altogether, the resulting neural network will have the desired depth and size. ◻
In this sense, the construction interpolates between the low-depth representation of 27 and the low-size high-depth behavior of 28. In order to see how this provides a tradeoff between the representations of 27 and 28, it is worth looking at the extreme cases. If we choose \(r=1\) and \(s=k\), we exactly obtain the bounds from 27. On the other hand, if we choose \(r=k\) and \(s=1\), we obtain a neural network with depth \(\mathcal{O}(\log k)\) and size \(\mathcal{O}(k)\), which is qualitatively close to the bounds of 28. In fact, the even better size bound stems from the fact that our construction heavily relies on convexity.
In conclusion, by choosing an appropriate \(r\) (and corresponding \(s\)), the user can freely decide how to trade depth against size in neural network representations and thereby interpolate between the two extreme representations of 27 and 28.
The construction of 29 provides a nice blueprint of how to interpolate between 27 and 28, but it has the big limitation that it only works in the convex case. Simply mixing the two known representations of [thm:nnsfromwangsun,thm:nnsfromlattice] does not appear to work in the nonconvex case, as one cannot as easily identify groups of affine components that can be treated separately.
Instead we propose a different approach: given a CPWL function, first split it into a difference of two convex ones and then apply 29 to these two functions. To do this efficiently, it requires to find a good answer to 1.
As discussed in this paper, it is quite challenging to give a satisfying answer to 1 in full generality, but there are special cases, where we do have a good answer; see 4. In these special cases, we can extend the interpolation between the two representations in the following way. We need the following useful lemma.
Lemma 10. Let \(\mathcal{C}\) be a regular polyhedral complex. Then every CPWL function compatible with \(\mathcal{C}\) can be written as a difference of two convex CPWL functions that are also compatible with \(\mathcal{C}\). In particular, \(\overline{\mathcal{V}}_\mathcal{C}=\operatorname{span}(\overline{\mathcal{V}}_\mathcal{C}^+)\).
Proof. Let \(f\in\overline{\mathcal{V}}_\mathcal{C}^+\) be an arbitrary function. Since \(\mathcal{C}\) is regular, by definition there exists a convex function \(g\in\mathcal{V}_\mathcal{C}\) such that \(\mathcal{C}= \mathcal{C}_g\). 2 implies that \(w_g(\sigma) > 0\) for all \(\sigma \in \mathcal{C}^{d-1}\). For sufficiently large \(\lambda>0\), it follows that \(w_{f+\lambda g}\geq 0\) and thus \(f = (f+\lambda g) - \lambda g\) is a representation of \(f\) as a difference of two compatible, convex functions, as desired. ◻
We then obtain the following result by combining 29 with 10.
Corollary 9. Let \(f\colon \mathbb{R}^d\to\mathbb{R}\) be a CPWL function that is compatible with a regular polyhedral complex \(\mathcal{C}\) with \(\tilde{q}=\#\mathcal{C}^d\) full-dimensional polyhedra. Then, \(f\) can be represented by a neural network with \(\lceil \log_2(d+1)\rceil + \lceil\log_2 r \rceil\) many hidden layers and overall size \(\mathcal{O}(rs^{d+1})\), for any free choice of parameters \(r\) and \(s\) with \(rs\geq \tilde{q}\).
Proof. By 10, \(f\) can be decomposed into a difference of two convex functions which are compatible with \(\mathcal{C}\). Consequently, each of them has at most \(\tilde{q}\) affine components. Applying 29 to both functions separately and simply putting the two corresponding neural networks in parallel, subtracting the outputs, yields a neural network representing \(f\) with the desired size bounds. ◻
From the theoretical perspective, the maybe most dominant open question is the following precise version of 1.
Problem 30. Given a CPWL function \(f\) in dimension \(d\) with \(q\) pieces, does there always exist a decomposition \(f=g-h\) such that the number of pieces of \(g\) and \(h\) is polynomial in \(d\) and \(q\)?
A positive answer to 30 would have useful consequences for our two applications in the context of (submodular) set function optimization and neural network representations. However, also a negative answer would be equally interesting.
One possible approach to resolve 30 could be to analyze which objective direction according to 14 leads to a good vertex of the decomposition polyhedron and prove theoretical properties about that vertex. The same theorem might also be key to developing algorithms that find good decompositions with linear programming. Generally, while beyond the scope of this paper, turning any of our insights into practical algorithms, preferably with theoretical guarantees, is a broad avenue for future research.
Marie-Charlotte Brandenburg was partially supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation. Moritz Grillo was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy — The Berlin Mathematics Research Center MATH+ (EXC-2046/1, project ID: 390685689). Part of this work was completed while Christoph Hertrich was affiliated with Université Libre de Bruxelles, Belgium, and received support by the European Union’s Horizon Europe research and innovation program under the Marie Skłodowska-Curie grant agreement No 101153187—NeurExCo.
In our paper, we define piecewise linear functions to have finitely many pieces.↩︎