Sublabel-Accurate Convex Relaxation of Vectorial Multilabel Energies

04/07/2016 ∙ by Emanuel Laude, et al. ∙ 0

Convex relaxations of nonconvex multilabel problems have been demonstrated to produce superior (provably optimal or near-optimal) solutions to a variety of classical computer vision problems. Yet, they are of limited practical use as they require a fine discretization of the label space, entailing a huge demand in memory and runtime. In this work, we propose the first sublabel accurate convex relaxation for vectorial multilabel problems. The key idea is that we approximate the dataterm of the vectorial labeling problem in a piecewise convex (rather than piecewise linear) manner. As a result we have a more faithful approximation of the original cost function that provides a meaningful interpretation for the fractional solutions of the relaxed convex problem. In numerous experiments on large-displacement optical flow estimation and on color image denoising we demonstrate that the computed solutions have superior quality while requiring much lower memory and runtime.



There are no comments yet.


page 12

page 13

page 14

page 21

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

1.1 Nonconvex Vectorial Problems

In this paper, we derive a sublabel-accurate convex relaxation for vectorial optimization problems of the form


where , and denotes a generally nonconvex pointwise dataterm. As regularization we focus on the total variation defined as:


where is the Schatten- norm on

, i.e., the largest singular value. For differentiable functions

we can integrate (2) by parts to find


where the dual norm penalizes the sum of the singular values of the Jacobian, which encourages the individual components of to jump in the same direction. This type of regularization is part of the framework of Sapiro and Ringach [19].

1.2 Related Work

Due to its nonconvexity the optimization of (1) is challenging. For the scalar case (), Ishikawa [9] proposed a pioneering technique to obtain globally optimal solutions in a spatially discrete setting, given by the minimum s-t-cut of a graph representing the space . A continuous formulation was introduced by Pock et al. [15] exhibiting several advantages such as less grid bias and parallelizability.

In a series of papers [16, 14], connections of the above approaches were made to the mathematical theory of cartesian currents [6] and the calibration method for the Mumford-Shah functional [1], leading to a generalization of the convex relaxation framework [15] to more general (in particular nonconvex) regularizers.

In the following, researchers have strived to generalize the concept of functional lifting and convex relaxation to the vectorial setting (). If the dataterm and the regularizer are both separable in the label dimension, one can simply apply the above convex relaxation approach in a channel-wise manner to each component separately. But when either the dataterm or the regularizer couple the label components, the situation becomes more complex [8, 20].

The approach which is most closely related to our work, and which we consider as a baseline method, is the one by Lellmann et al. [11]. They consider coupled dataterms with coupled total variation regularization of the form (2).

A drawback shared by all mentioned papers is that ultimately one has to discretize the label space. While Lellmann et al. [11] propose a sublabel-accurate regularizer, we show that their dataterm leads to solutions which still have a strong bias towards the label grid. For the scalar-valued setting, continuous label spaces have been considered in the MRF community by Zach et al. [22] and Fix et al. [5]. The paper [21] proposes a method for mixed continuous and discrete vectorial label spaces, where everything is derived in the spatially discrete MRF setting. Möllenhoff et al. [12] recently proposed a novel formulation of the scalar-valued case which retains fully continuous label spaces even after discretization. The contribution of this work is to extend [12] to vectorial label spaces, thereby complementing [11] with a sublabel-accurate dataterm.

1.3 Contribution

In this work we propose the first sublabel-accurate convex formulation of vectorial labeling problems. It generalizes the formulation for scalar-valued labeling problems [12] and thus includes important applications such as optical flow estimation or color image denoising. We show that our method, derived in a spatially continuous setting, has a variety of interesting theoretical properties as well as practical advantages over the existing labeling approaches:

  • We generalize existing functional lifting approaches (see Sec. 2.2).

  • We show that our method is the best convex under-approximation (in a local sense), see Prop. 1 and Prop. 2.

  • Due to its sublabel-accuracy our method requires only a small amount of labels to produce good results which leads to a drastic reduction in memory. We believe that this is a vital step towards the real-time capability of lifting and convex relaxation methods. Moreover, our method eliminates the label bias, that previous lifting methods suffer from, even for many labels.

  • In Sec. 2.3 we propose a regularizer that couples the different label components by enforcing a joint jump normal. This is in contrast to [8], where the components are regularized separately.

  • For convex dataterms, our method is equivalent to the unlifted problem – see Prop. 4. Therefore, it allows a seamless transition between direct optimization and convex relaxation approaches.

1.4 Notation

We write for the standard inner product on or the Frobenius product if are matrices. Similarly without any subscript denotes the usual Euclidean norm, respectively the Frobenius norm for matrices.

We denote the convex conjugate of a function by . It is an important tool for devising convex relaxations, as the biconjugate is the largest lower-semicontinuous (lsc.) convex function below . For the indicator function of a set we write , i.e., if and otherwise. stands for the unit -simplex.

2 Convex Formulation

2.1 Lifted Representation

Motivated by Fig. 5, we construct an equivalent representation of (1) in a higher dimensional space, before taking the convex envelope.

Let be a compact and convex set. We partition into a set of -simplices so that is a disjoint union of up to a set of measure zero. Let be the -th vertex of and denote by the union of all vertices, referred to as labels, with , and . For , we refer to as a sublabel. Any sublabel can be written as a convex combination of the vertices of a simplex with for appropriate barycentric coordinates :


By encoding the vertices using a one-of- representation we can identify any

with a sparse vector

containing at least many zeros and vice versa:


The entries of the vector are zero except for the -th entry, which is equal to one. We refer to as the lifted representation of . This one-to-one-correspondence between and is shown in Fig. 6. Note that both, and depend on . However, for notational convenience we drop the dependence on whenever we consider a fixed point .

Figure 6: This figure illustrates our notation and the one-to-one correspondence between and the lifted containing the barycentric coordinates of the sublabel . The triangulation of is visualized via the gray lines, corresponding to the triangles and the gray dots, corresponding to the vertices , that we refer to as the labels.

2.2 Convexifying the Dataterm

Let for now the weight of the regularizer in (1) be zero. Then, at each point we minimize a generally nonconvex energy over a compact set :

Figure 11: Geometrical intuition for the proposed lifting and standard lifting [11] for the special case of 1-dimensional range and labels

. The standard lifting correponds to a linear interpolation of the original cost in between the locations

, which are associated with the vertices in the lifted energy (lower left). The proposed method extends the cost to the relaxed set in a more precise way: The original cost is preserved on the connecting lines between adjacent (black lines on the bottom right) up to concave parts (red graphs and lower surface on the right). This information, which may influence the exact location of the minimizer, is lost in the standard formulation. If the solution of the lifted formulation is in the interior (gray area) an approximate solution to the original problem can still be obtained via Eq. (5).

We set up the lifted energy so that it attains finite values if and only if the argument is a sparse representation of a sublabel :


Problems (6) and (7) are equivalent due to the one-to-one correspondence of and . However, energy (7) is finite on a nonconvex set only. In order to make optimization tractable, we minimize its convex envelope.

Proposition 1

The convex envelope of (7) is given as:


and are given as , , where are the columns of the matrix .


Follows from a calculation starting at the definition of . See Appendix 0.A for a detailed derivation.

The geometric intuition of this construction is depicted in Fig. 11. Note that if one prescribes the value of in (7) only on the vertices of the unit simplices , i.e., if and otherwise, one obtains the linear biconjugate on the feasible set. This coincides with the standard relaxation of the dataterm used in [16, 10, 4, 11]. In that sense, our approach can be seen as a relaxing the dataterm in a more precise way, by incorporating the true value of not only on the finite set of labels , but also everywhere in between, i.e., on every sublabel.

2.3 Lifting the Vectorial Total Variation

We define the lifted vectorial total variation as


where denotes the distributional derivative of and is positively one-homogeneous, i.e., . For such functions, the meaning of (9) can be made fully precise using the polar decomposition of the Radon measure [2, Cor. 1.29, Thm. 2.38]. However, in the following we restrict ourselves to an intuitive motivation for the derivation of for smooth functions.

Our goal is to find so that whenever corresponds to some , in the sense that whenever . In order for the equality to hold, it must in particular hold for all that are classically differentiable, i.e., , and whose Jacobian is of rank 1, i.e., for some . This rank 1 constraint enforces the different components of to have the same jump normal, which is desirable in many applications. In that case, we observe


For the corresponding lifted representation , we have . Therefore it is natural to require in order to achieve the goal . Motivated by these observations, we define


where , and . Since the convex envelope of (9) is intractable, we derive a “locally” tight convex underapproximation:

Proposition 2

The convex conjugate of is


with convex set


and . are the columns of .


Follows from a calculation starting at the definition of the convex conjugate . See Appendix 0.A.

Interestingly, although in its original formulation (14) the set has infinitely many constraints, one can equivalently represent by finitely many.

Proposition 3

The set in equation (14) is the same as


where the matrices and are given as


Similar to the analysis in [11], equation (14) basically states the Lipschitz continuity of a piecewise linear function defined by the matrices . Therefore, one can expect that the Lipschitz constraint is equivalent to a bound on the derivative. For the complete proof, see Appendix 0.A.

2.4 Lifting the Overall Optimization Problem

Combining dataterm and regularizer, the overall optimization problem is given


A highly desirable property is that, opposed to any other vectorial lifting approach from the literature, our method with just one simplex applied to a convex problem yields the same solution as the unlifted problem.

Proposition 4

If the triangulation contains only 1 simplex, , i.e., , then the proposed optimization problem (16) is equivalent to


which is (1) with a globally convexified dataterm on .


For the substitution into and yields the result. For a complete proof, see Appendix 0.A.

3 Numerical Optimization

3.1 Discretization

For now assume that is a -dimensional Cartesian grid and let denote a finite-difference divergence operator with . Then the relaxed energy minimization problem becomes


In order to get rid of the pointwise maximum over in Eq. (8), we introduce additional variables and additional constraints , so that attains the value of the pointwise maximum:


where the set is given as


For numerical optimization we use a GPU-based implementation111 of a first-order primal-dual method [14]. The algorithm requires the orthogonal projections of the dual variables onto the sets respectively in every iteration. However, the projection onto an epigraph of dimension is difficult for large values of . We rewrite the constraints , , as -dimensional epigraph constraints introducing variables , :


These equality constraints can be implemented using Lagrange multipliers. For the projection onto the set we use an approach similar to [7, Figure 7].

3.2 Epigraphical Projections

Computing the Euclidean projection onto the epigraph of is a central part of the numerical implementation of the presented method. However, for this is nontrivial. Therefore we provide a detailed explanation of the projection methods used for different classes of . We will consider quadratic, truncated quadratic and piecewise linear .

Quadratic case:

Let be of the form . A direct projection onto the epigraph of for is difficult. However, the epigraph can be decomposed into separate epigraphs for which it is easier to project onto: For proper, convex, lsc. functions the epigraph of is the Minkowski sum of the epigraphs of and (cf. [17, Exercise 1.28, Theorem 11.23a]). This means that it suffices to compute the projections onto the epigraphs of a quadratic function and a convex, piecewise linear function by rewriting constraint (21) as


For the projection onto the epigraph of a -dimensional quadratic function we use the method described in [20, Appendix B.2]. The projection onto a piecewise linear function is described in the last paragraph of this section.

Truncated quadratic case:

Let be of the form as it is the case for the nonconvex robust ROF with a truncated quadratic dataterm in Sec. 4.2. Again, a direct projection onto the epigraph of is difficult. However, a decomposition of the epigraph into simpler epigraphs is possible as the epigraph of is the intersection of the epigraphs of and . Hence, one can separately project onto the epigraphs of and . Both of these projections can be handled using the methods from the other paragraphs.

Piecewise linear case:

In case is piecewise linear on each , i.e., attains finite values at a discrete set of sampled sublabels and interpolates linearly between them, we have that


Again this is a convex, piecewise linear function. For the projection onto the epigraph of such a function, a quadratic program of the form


needs to be solved. We implemented the primal active-set method described in [13, Algorithm 16.3], and found it solves the program in a few (usually ) iterations for a moderate number of constraints.

4 Experiments

4.1 Vectorial ROF Denoising

In order to validate experimentally, that our model is exact for convex dataterms, we evaluate it on the Rudin-Osher-Fatemi [18] (ROF) model with vectorial TV (2). In our model this corresponds to defining . As expected based on Prop. 4 the energy of the solution of the unlifted problem is equal to the energy of the projected solution of our method for up to machine precision, as can be seen in Fig. 15 and Fig. 21. We point out, that the sole purpose of this experiment is a proof of concept as our method introduces an overhead and convex problems can be solved via direct optimization. It can be seen in Fig. 15 and Fig. 21, that the baseline method [11] has a strong label bias.

Figure 15: ROF denoising of a vector-valued signal , discretized on 50 points (shown in red). We compare the proposed approach (right) with two alternative techniques introduced in [11] (left and middle). The labels are visualized by the gray grid. While the naive (standard) multilabel approach from [11] (left) provides solutions that are constrained to the chosen set of labels, the sublabel accurate regularizer from [11] (middle) does allow sublabel solutions, yet – due to the dataterm bias – these still exhibit a strong preference for the grid points. In contrast, the proposed approach does not exhibit any visible grid bias providing fully sublabel-accurate solutions: With only labels, the computed solutions (shown in blue) coincide with the “unlifted” problem (green).
Figure 21: Convex ROF with vectorial TV. Direct optimization and proposed method yield the same result. In contrast to the baseline method [11] the proposed approach has no discretization artefacts and yields a lower energy. The regularization parameter is chosen as .

4.2 Denoising with Truncated Quadratic Dataterm

For images degraded with both, Gaussian and salt-and-pepper noise we define the dataterm as . We solve the problem using the epigraph decomposition described in the second paragraph of Sec. 3.2. It can be seen, that increasing the number of labels leads to lower energies and at the same time to a reduced effect of the TV. This occurs as we always compute a piecewise convex underapproximation of the original nonconvex dataterm, that gets tighter with a growing number of labels. The baseline method [11] again produces strong discretization artefacts even for a large number of labels .

Figure 27: ROF with a truncated quadratic dataterm ( and ). Compared to the baseline method [11] the proposed approach yields much better results, already with a very small number of labels.
Figure 43: We compute the optical flow using our method, the product space approach [8] and the baseline method [11] for a varying amount of labels and compare the average endpoint error (aep). The product space method clearly outperforms the baseline, but our approach finds the overall best result already with labels. To achieve a similarly precise result as the product space method, we require times fewer labels, times less memory and times less time. For the same number of labels, the proposed approach requires more memory as it has to store a convex approximation of the energy instead of a linear one.
Figure 47: Large displacement flow between two images (a) using a search window. The result of our method with labels is shown in (b), the baseline [11] in (c). Our method can correctly identify the large motion.

4.3 Optical Flow

We compute the optical flow between two input images . The label space is chosen according to the estimated maximum displacement between the images. The dataterm is , and is based on the norm of the image gradient .

In Fig. 43 we compare the proposed method to the product space approach [8]. Note that we implemented the product space dataterm using Lagrange multipliers, also referred to as the global approach in [8]. While this increases the memory consumption, it comes with lower computation time and guaranteed convergence. For our method, we sample the label space on sublabels and subsequently convexify the energy on each triangle using the quickhull algorithm [3]. For the product space approach we sample the label space at equidistant labels, from to . As the regularizer from the product space approach is different from the proposed one, we chose differently for each method. For the proposed method, we set and for the product space and baseline approach . We can see in Fig. 43, our method outperforms the product space approach w.r.t. the average end-point error. Our method outperforms previous lifting approaches: In Fig. 47 we compare our method on large displacement optical flow to the baseline [11]. To obtain competitive results on the Middlebury benchmark, one would need to engineer a better dataterm.

5 Conclusions

We proposed the first sublabel-accurate convex relaxation of vectorial multilabel problems. To this end, we approximate the generally nonconvex dataterm in a piecewise convex manner as opposed to the piecewise linear approximation done in the traditional functional lifting approaches. This assures a more faithful approximation of the original cost function and provides a meaningful interpretation for the non-integral solutions of the relaxed convex problem. In experimental validations on large-displacement optical flow estimation and color image denoising, we show that the computed solutions have superior quality to the traditional convex relaxation methods while requiring substantially less memory and runtime.

Appendix 0.A Theory

Proof (Proof of Proposition 1)

By definition the biconjugate of is given as


We proceed computing the conjugate of :


We introduce the substitution and obtain


since is invertible for being a non-degenerate triangulation and . With this we can further rewrite the conjugate as

Proof (Proof of Proposition 2)

Define as


Then, can be rewritten as a pointwise minimum over the individual


We begin computing the conjugate of


with the set being defined as


Since the maximum over indicator functions of sets is equal to the indicator function of the intersection of the sets we obtain for

Proof (Proof of Proposition 3)
Figure 48: Figure illustrating the second direction of the proof of Proposition 4. The gray dots and lines visualize the triangulation . The line segment between and is composed of shorter line segments which are fully contained in one of the triangles. On each of the triangles the inequality (39) holds, which allows to conclude that it holds for the whole line segment.

Let s.t. for all and . For any define


and analogously


Let us choose an such that , . Then for all and implies that


holds for all vectors with sufficiently small entries. Inserting the definitions of and we find that


holds for all with sufficiently small entries. For a non-degenerate triangle, is invertible and a simple substitution yields that


holds for all with sufficiently small entries. This means that the operator norm of induced by the norm, i.e. the norm, is bounded by one.

Let us now show the other direction. For s.t. , note that inverting the above computation immediately yields that


holds for all , . Our goal is to show that having this inequality on each simplex is sufficient to extend it to arbitrary pairs of simplices. The overall idea of this part of the proof is illustrated in Fig. 48.

Let and with , be given. Consider the line segment


Since the triangulated domain is convex, there exist and functions such that for , one can write for some . The continuity of implies that , i.e. these points correspond to both simplices, and . Note that this also means that . The intuition of this construction is that the are located on the boundaries of adjacent simplices on the line segment. We find


which yields the assertion.

Proof (Proof of Proposition 4)

Let be given by affinely independent vertices . We show that our lifting approach applied to the label space solves the convexified unlifted problem, where the dataterm was replaced by its convex hull on . Let the matrices and be defined through


The transformation maps to . Now consider the following lifted function parametrized through :


Consider a fixed . Plugging this lifted representation into the biconjugate of the lifted dataterm yields: