Distributionally Robust and Multi-Objective Nonnegative Matrix Factorization
Nicolas Gillis, Le Thi Khanh Hien, Valentin Leplat, Vincent Y. F. Tan

TL;DR
This paper introduces a distributionally robust multi-objective NMF framework that optimizes for the worst-case error across multiple objectives, enhancing robustness when the noise model is unknown.
Contribution
The paper proposes a novel multi-objective NMF formulation with a dual optimization approach for distributional robustness, using a simple multiplicative update algorithm.
Findings
DR-NMF is robust to unknown noise models.
The approach effectively minimizes the maximum error across objectives.
Results on synthetic, document, and audio data demonstrate its effectiveness.
Abstract
Nonnegative matrix factorization (NMF) is a linear dimensionality reduction technique for analyzing nonnegative data. A key aspect of NMF is the choice of the objective function that depends on the noise model (or statistics of the noise) assumed on the data. In many applications, the noise model is unknown and difficult to estimate. In this paper, we define a multi-objective NMF (MO-NMF) problem, where several objectives are combined within the same NMF model. We propose to use Lagrange duality to judiciously optimize for a set of weights to be used within the framework of the weighted-sum approach, that is, we minimize a single objective function which is a weighted sum of the all objective functions. We design a simple algorithm based on multiplicative updates to minimize this weighted sum. We show how this can be used to find distributionally robust NMF (DR-NMF) solutions, that is,…
| Data set | Clustering accuracy (%) | (%) | (%) | |||||
| KL-NMF | Fro-NMF | DR-NMF | Fro-NMF | DR-NMF | KL-NMF | DR-NMF | ||
| NG20 | 20 | 42.15 | 23.08 | 28.74 | 21.47 | 3.85 | 149.48 | 3.83 |
| ng3sim | 3 | 63.48 | 38.06 | 49.87 | 16.82 | 2.70 | 17.32 | 2.70 |
| classic | 4 | 83.66 | 55.64 | 78.46 | 13.19 | 0.74 | 2.44 | 0.74 |
| ohscal | 10 | 37.45 | 30.50 | 32.13 | 10.03 | 1.76 | 9.60 | 1.75 |
| k1b | 6 | 64.27 | 59.19 | 60.30 | 9.00 | 1.32 | 5.02 | 1.32 |
| hitech | 6 | 43.29 | 46.94 | 48.02 | 8.27 | 1.12 | 3.98 | 1.13 |
| reviews | 5 | 75.65 | 51.19 | 74.88 | 7.89 | 1.03 | 7.70 | 1.03 |
| sports | 7 | 43.93 | 40.37 | 50.26 | 9.60 | 1.24 | 7.10 | 1.24 |
| la1 | 6 | 65.95 | 65.04 | 67.98 | 9.26 | 1.03 | 3.61 | 1.03 |
| la12 | 6 | 56.25 | 54.80 | 54.29 | 7.32 | 0.70 | 2.76 | 0.70 |
| la2 | 6 | 54.96 | 49.17 | 52.07 | 9.21 | 0.82 | 3.04 | 0.82 |
| tr11 | 9 | 62.32 | 50.48 | 51.45 | 22.88 | 4.48 | 97.27 | 4.47 |
| tr23 | 6 | 34.80 | 35.29 | 38.73 | 56.04 | 3.83 | 47.36 | 3.78 |
| tr41 | 10 | 54.33 | 44.99 | 53.08 | 24.38 | 4.93 | 46.17 | 4.90 |
| tr45 | 10 | 46.81 | 38.26 | 39.13 | 42.52 | 10.15 | 50.14 | 10.15 |
| Average | 55.29 | 45.53 | 51.96 | 17.86 | 2.65 | 30.20 | 2.64 | |
| Data set | (%) | (%) | |||
|---|---|---|---|---|---|
| KL-NMF | DR-NMF | IS-NMF | DR-NMF | ||
| syntBassDrum | 543 | 39.54 3.28 | 7.06 3.01 | 108.09 16.78 | 7.06 3.01 |
| pianoMary | 586 | 387.51 253.67 | 9.73 2.74 | 177.71 22.79 | 9.73 2.74 |
| preludeJSB | 2582 | 31.81 3.57 | 13.05 3.55 | 185.93 54.84 | 13.04 3.55 |
| syntCCcyGC | 1377 | 9.79 0.64 | 2.63 0.38 | 42.21 10.29 | 2.63 0.38 |
| trioBrahms | 14813 | 360.49 44.65 | 14.74 1.99 | 257.61 130.29 | 14.74 1.99 |
| triobapitru | 6200 | 354.66 25.31 | 9.16 2.03 | 249.99 28.72 | 9.15 2.03 |
| voicecell | 2181 | 186.46 2.20 | 13.98 3.75 | 191.12 23.43 | 13.98 3.75 |
| ShanHursunrise | 4102 | 53.51 8.32 | 12.31 1.36 | 184.72 34.74 | 12.30 1.35 |
| sisecmixdrums | 1249 | 25.61 0.87 | 12.74 1.38 | 292.40 56.62 | 12.74 1.38 |
| sisecmixfemale | 1249 | 37.68 2.88 | 12.12 0.85 | 100.67 8.88 | 12.12 0.85 |
| Average | 148.71 34.54 | 10.75 2.10 | 179.05 38.74 | 10.75 2.10 | |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Distributionally Robust and Multi-Objective
Nonnegative Matrix Factorization
Nicolas Gillis, Le Thi Khanh Hien, Valentin Leplat,
and Vincent Y. F. Tan N. Gillis, L. T. K. Hien and V. Leplat are with Department of Mathematics and Operational Research, Faculté Polytechnique, Université de Mons, Rue de Houdain 9, 7000 Mons, Belgium. This work was supported by the Fonds de la Recherche Scientifique - FNRS and the Fonds Wetenschappelijk Onderzoek - Vlanderen (FWO) under EOS Project no O005318F-RG47, and by the European Research Council (ERC starting grant no 679515).
E-mails: {nicolas.gillis, thikhanhhien.le, valentin.leplat}@umons.ac.be V. Y. F. Tan is with the Department of Electrical and Computer Engineering, Department of Mathematics, National University of Singapore, Singapore 119077. This work is also supported by a Singapore National Research Foundation (NRF) Fellowship (R-263-000-D02-281).
E-mail: [email protected] Manuscript accepted, February 2021.
Abstract
Nonnegative matrix factorization (NMF) is a linear dimensionality reduction technique for analyzing nonnegative data. A key aspect of NMF is the choice of the objective function that depends on the noise model (or statistics of the noise) assumed on the data. In many applications, the noise model is unknown and difficult to estimate. In this paper, we define a multi-objective NMF (MO-NMF) problem, where several objectives are combined within the same NMF model. We propose to use Lagrange duality to judiciously optimize for a set of weights to be used within the framework of the weighted-sum approach, that is, we minimize a single objective function which is a weighted sum of the all objective functions. We design a simple algorithm based on multiplicative updates to minimize this weighted sum. We show how this can be used to find distributionally robust NMF (DR-NMF) solutions, that is, solutions that minimize the largest error among all objectives, using a dual approach solved via a heuristic inspired from the Frank-Wolfe algorithm. We illustrate the effectiveness of this approach on synthetic, document and audio data sets. The results show that DR-NMF is robust to our incognizance of the noise model of the NMF problem.
Index Terms:
Nonnegative matrix factorization, Multiple objectives, Distributional robustness, Multiplicative updates
1 Introduction
Nonnegative matrix factorization (NMF) consists in the following problem: Given a nonnegative matrix and a factorization positive rank , find two nonnegative matrices and such that . NMF is a linear dimensionality reduction technique for nonnegative data. In fact, assuming each column of is a data point, it is reconstructed via a linear combination of basis elements given by the columns of while the columns of provide the weights (or coefficients) to reconstruct each column of within that basis, that is, for all ,
[TABLE]
NMF has attracted a lot of attention since the seminal paper of Lee and Seung [1], with applications in image analysis, document classification and music analysis. See for example [2, 3] and the references therein. Many NMF models have been proposed over the years. They mostly differ in two aspects:
Additional constraints are added to the factor matrices and such as sparsityÌ [4], spatial coherence [5] or smoothness [6]. These constraints are motivated by a priori information on the sought solution and depend on the application at hand. Note that these additional constraints are in most cases imposed via a penalty term in the objective function. 2. 2.
The choice of the objective function that assesses the quality of an approximation by evaluating some distance between and differs. This choice is usually motivated by the noise model/statistics assumed on the data matrix . The most widely used class of objective functions are component-wise and based on the -divergences defined as follows: for ,
[TABLE]
We will use the following matrix-wise notation,
[TABLE]
Minimizing the -divergence in NMF is equivalent to maximizing the log-likelihood of the NMF model under different noise distributions [7, 8]. The following special cases are of particular interest (see for example [7] for a discussion):
- •
is the Frobenius norm (additive Gaussian noise).
- •
is the Kullback-Leibler (KL) divergence (Poisson noise).
- •
is the Itakura-Saito (IS) divergence (multiplicative Gamma noise).
In this paper, we focus on the second aspect, namely, the choice of the objective function. We will consider a multi-objective NMF (MO-NMF) formulation. More precisely, we will consider a weighted sum of the different objective functions, which is arguably one of the most widely used approach in multi-objective optimization [9]. Our main motivation to consider this class of models is that in many applications it is not clear which objective function to use because the statistics of the noise is unknown. To the best of our knowledge, there are currently three main classes of methods to handle this situation:
- •
The user chooses the objective function she/he believes is the most suitable for the application at hand. This is, as far as we know, the simplest and most widely-used approach. However, this approach is an ad hoc one.
- •
The objective function is automatically selected using cross-validation, where the training is done on a subset of the entries of the input data matrix and the testing on the remaining entries [10, 11].
- •
The most suitable objective function is chosen using some statistically motivated criteria such as score matching [12] or maximum likelihood [13].
However, in all the above approaches, if the choice of the objective function is wrong, the NMF solution provided could be far from the desired solution (as we will show in our numerical experiments in Section 5). Another possibility which we propose in this paper is to compute an NMF solution that is robust to different types of noise distributions; this is referred to as distributionally robust, and is closely related to robust optimization [14]. In mathematical terms, we will consider the problem
[TABLE]
As we will see, this problem can be tackled by minimizing a weighted sum of the different objective functions [9], exactly as for MO-NMF, but where the weights assigned to the different objective functions are automatically tuned within the iterative process.
Outline of the paper
In Section 2, we first define MO-NMF and explain how to scale the objective functions to make the comparison between the constituent NMF objective functions. Then we give our main motivation to consider MO-NMF, namely to be able to compute distributionally robust NMF (DR-NMF) solutions, that is, solutions that minimize the largest objective function value. In Section 3, we propose simple multiplicative updates (MU) to solve a weighted-sum approach for MO-NMF. In Section 4, we propose a heuristic scheme to solve DR-NMF which updates the primal variables using the MU and the dual variable using the Frank-Wolfe descent direction. Finally, we illustrate in Section 5 the effectiveness of our approach on synthetic, document and audio data sets.
2 Multi-Objective NMF (MO-NMF)
Let be a finite subset of . We consider in this paper the following MO-NMF problem:
[TABLE]
Note that we focus on -divergences to simplify our presentation and because these are the most widely-used divergences to measure the “distance” between the given matrix and its approximation in the NMF literature. However, our approach can adapted to be used for other objectives functions (for example, -divergences [15]). To tackle this problem, we consider the standard weighted-sum approach [16] which consists in solving the following minimization problem which involves a single objective function:
[TABLE]
where , , and . Using different values for allows to generate different Pareto-optimal solutions. See Section 5.1 for some examples. Note, however, that it does not allow to generate all Pareto-optimal solutions [16]. A Pareto-optimal solution is a solution that is not dominated by any other solution. That is, is a Pareto-optimal solution if there does not exist a feasible solution such that
- •
for all , and
- •
there exists such that .
Multi-objective optimization has already been considered for NMF problems. However, most of the existing literature considers combining a single data fitting term with penalty terms on the factor matrices; for example, an penalty to obtain sparse solutions [17]. As far as we know, the only paper where several objectives are used to balance different data fitting terms is [18]. The authors combined two objectives, one being a standard data fitting term (more precisely, they used the Frobenius norm ) and the other being a data fitting term in a feature space obtained using a nonlinear kernel (that is, a term of the form where corresponds to the norm in the feature space). Hence this approach is rather different than ours where we allow more than two objectives and where we only focus on the input space. Moreover, we will optimize the weights in a principled optimization-theoretic fashion, whereas [18] uses an ad hoc manner to combine the two terms. Another related work [19] considers a data fusion problem where several data sets, denoted , share the same factor . Their goal is to compute and such that for . To achieve this goal, the authors use a weighted objective function for some well-chosen weights ’s, and some parameters ’s that depend on the noise statistic of the corresponding data set. Again, this is a rather different setup that ours as there is no distributionally robust aspect.
2.1 Scaling of the objectives
It can be easily checked that for any constant , we have
[TABLE]
Hence the values of the divergences for different values of depend highly on the scaling of the input matrix. This is usually not a desirable property in practice, since most data sets are not particularly properly scaled and since scaling simply multiplies the noise by a constant which in most cases does not change its distribution (only its parameters). Therefore, we will scale the objectives to have a meaningful linear combination, in the sense that each term in the sum has the same importance. It will be particularly crucial for our DR-NMF model described in the next section. In fact, as we will see in Section 5, DR-NMF will generate solutions that have small error for all objectives instead of just one; and as such, the solutions inherit superior qualities of the ones generated by different divergences. We will use the following approach to scale the different objective functions. First, we compute a solution for to obtain the error . Note that we can only compute this minimization in an approximate fashion because the NMF problem is NP-hard [20]. Then, we define
[TABLE]
so that . Finally, we will only consider the MO-NMF problem where the objectives are replaced by their normalized versions , that is,
[TABLE]
where . In Section 3, we propose a MU algorithm to tackle this problem.
2.2 Main motivation: Distributionally robust NMF
If the noise model on the data is unknown, but it is known that it corresponds to a distribution associated with a -divergence with (for example, the Tweedie distribution as discussed in [8]), it makes sense to consider the following distributionally robust NMF (DR-NMF) problem
[TABLE]
We use , not , because otherwise, in most cases, the above problem amounts to minimizing a single objective corresponding to the -divergence with the largest value; see the discussion in Section 2.1 where is a subset of ’s of interest. In Section 4, we will design an algorithm to tackle this problem based on MO-NMF. We remark that, as mentioned in the introduction, Problem (2) is intrinsically a deterministic robust optimization problem. However, since each -divergence is associated to a distribution of noise (see some examples in the introduction), we prefer using the name DR-NMF for Problem (2) to emphasize its essence, which is finding a solution that is robust to different types of noise distributions.
3 Multiplicative updates for (1)
In this section, we propose MU for (1) which we will be able to use as a subroutine to tackle MO-NMF and DR-NMF. As with most NMF algorithms, we use an alternating strategy; that is, we will first optimize over the variable for fixed and then reverse their roles. By the symmetry of the problem (), we will focus on the update of ; the update of can be obtained similarly.
3.1 Deriving MU
Let us recall the standard way MU are derived (see for example [21, 7, 22]) on the following general optimization problem with nonnegativity constraints
[TABLE]
Let us apply a rescaled gradient descent method to (3), that is, use the following update
[TABLE]
where is the current iterate, is the next iterate, and is a diagonal matrix with positive diagonal elements. Let and be such that . Taking for all , we obtain the following MU rule:
[TABLE]
where (resp. ) refers to component-wise multiplication (resp. division) between two vectors or matrices. Note that we need strict positivity of and , otherwise we would encounter problems involving division by zero or a variable directly set to zero, which is not desirable. Using the above simple rule with proper choices for and leads to algorithms that are, in many cases, guaranteed to not increase the objective function, that is, ; see below for some examples, and [22] for a discussion and an unified rule to design such updates. This is a desirable property since it avoids any line-search procedure and also preserves non-negativity naturally. If we cannot guarantee that the updates are non-increasing, the step length can be reduced, that is, use
[TABLE]
for some which leads to
[TABLE]
For example, one can set the step size for the smallest such that the error decreases; such a is guaranteed to exist since the rescaled gradient direction is a descent direction. We implemented such a line search; see Algorithm 1 below. This idea is similar to that in [23]. Moreover, it would be worth investigating the use of regularizers to guarantee convergence to stationary points without the use of a line search [24].
For , we have that and the MU are not able to modify : this is the so-called zero-locking phenomenon [25]. A possible way to fix this issue in practice is to use a lower bound on the entries of , say , replacing with . This allows such algorithms to be guaranteed to converge to a stationary point of [26, 27]. More precisely, any sequence of solutions generated by the modified MU has at least one convergent subsequence and the limit of any convergent subsequence is a stationary point [27]. Moreover, it can also be shown [26, Chap. 4.1] that such stationary points are close to stationary points of the original problem in (3). We will use this simple strategy in this paper.
3.2 Multiplicative Updates for (1)
We now provide more details on how to choose and for the family of -divergences in order to tackle (1). For all , we have
[TABLE]
where denotes the gradient with respect to variable , and
[TABLE]
where is the component-wise exponentiation by of the matrix . To solve (1) using MU, we simply use the linear combination of the above standard choice [8]; see Algorithm 1 for the update of (the update for is obtained in the same way by symmetry). Note that the line-search procedure (steps 3 to 6) is very rarely entered (we have only observed it in all our numerical experiments described in Section 5 when , that is, only for IS-NMF alone). Note also that the only difference between and is a constant term; see Section 2.1. In the case of a single objective (i.e., that ), Algorithm 1 particularizes to the standard MU algorithm for NMF; see for example [7] and the references therein.
Because of the step length procedure that guarantees the objective function to not increase (steps 3-6), the use of Algorithm 1 in an alternating scheme to solve (1) by updating and alternatively is guaranteed to not increase the objective function. Since the objective function is bounded below, this guarantees that the objective function values converge as goes to infinity.
4 Algorithm for DR-NMF
As is a non-convex function, obtaining a global solution for (2) efficiently is not possible in general. In particular, deciding whether the minimum in (2) is equal to zero (that is, deciding whether there exists and such that ) is NP-hard [20]. In the following, we propose to find an approximate solution for the DR-NMF problem via a weighted sum of the different objective functions. We first observe that
[TABLE]
Hence (2) can be reformulated as
[TABLE]
4.1 Related works on min-max problems
The problem in (5) is a min-max problem. Let us present a brief review of well-known methods for solving a general min-max problem, also known as a saddle point problem (SSP), of the form
[TABLE]
where and are closed convex sets. SPPs are abound in game theory, machine learning and statistics. A special class of SPPs is the class of bilinear SPPs which assume that the objective can be expressed as where is a linear operator, and are differentiable functions, and the coupling between and is linear in and linear in . Bilinear SPPs have been extensively studied and can be solved efficiently by several methods such as Nesterov’s smoothing method [28] and the primal-dual hybrid gradient method [29, 30]. For non-bilinear SPPs, the proximal mirror descent method (which subsumes the proximal gradient descent method as a special case [31, 32, 33]), is often the method of choice since it is a direct method applied to the underlying SPP (while [28] requires advanced smoothing techniques) and it can be adapted to the case in which regularizers or constraints are present, assuming the involving proximal maps can be computed. In another line of works, the approach of sequentially solving auxiliary sub-problems (which can have closed-form solutions or can be approximately solved by suitable solvers) to alternatively update (while fixing ) and (while fixing ) has also been developed in the literature [34, 35, 36].
To establish convergence guarantees of algorithms for SPPs, the following three typical assumptions are made in the literature: (A) is convex in and concave in , (B) the gradient map is Lipschitz continuous, and (C) the SPP has at least one saddle-point, that is, there exists such that
[TABLE]
Assumption (C) is satisfied when and are convex compact sets and is a continuous convex-concave function [37, Proposition 5.5.3], hence Assumption (C) can be omitted for SPPs under these settings [31, 32]. For SPPs under other settings (for example when or is unbounded, or when is not convex-concave), Assumption (C) concerning the existence of saddle points is a standard assumption for the development of numerical algorithms for solving SPPs; see [30, 34, 33] and references therein. Our SPP (5) neither satisfies Assumption (A) nor Assumption (B) since is not convex and is not Lipschitz continuous. These facts prevents us from applying standard SPP algorithms with convergence guarantees to solve (5).
4.2 Preliminaries
The following proposition provides some properties of saddle points of . Its proof can be derived from [37, Proposition 3.4.1] and the definition of subgradients.
Proposition 1**.**
Consider the SPP in (6). Suppose that for each , and are subdifferentiable on and respectively. Then,
(I) is a saddle point of (6) if and only if there exist a subgradient of at and a subgradient of at such that
[TABLE]
(II) is a saddle point of (6) if and only if strong duality holds, that is,
[TABLE]
and
[TABLE]
Suppose has a saddle point. Proposition 1 shows that if we can find a solution of the dual problem and a solution of , that is, , such that the equation also holds, then is a saddle point of , which then leads to the fact that is a solution of the primal problem . This motivates us to use a dual subgradient method that solves the dual problem of (5), which is the maximization problem of a concave function. This is described in the next subsection.
4.3 A dual subgradient method
Define the functions , and , and the set
[TABLE]
It then follows from Danskin’s theorem [37, Proposition B.25] that the vector with
[TABLE]
where , is a subgradient of at . We now solve the dual problem
[TABLE]
to obtain an optimal solution . We observe that is concave and, as such, a subgradient method with a suitable choice of step sizes guarantees the convergence to a global optimal solution of the concave maximization problem in (9); see, for example, [38].
Algorithm 2 describes a dual subgradient method. It is worth noting that Problem (9) can also be solved by a mirror descent method; see for example [39, Chapter 4].
Note that we take in Step 4 of Algorithm 2 to be the Euclidean projection operator. This allows us to establish a convergence guarantee for the sequence of dual parameters generated in Step 4 of Algorithm 2 by applying [38, Theorem 3]. Specifically, suppose the step sizes satisfy , and . Then the sequence generated by Algorithm 2 converges to a solution of (9). Furthermore, suppose is a limit point of and assume that is lower semicontinuous at . Then we have . Indeed, let be such that as . Step 3 of Algorithm 2 implies that
[TABLE]
Taking , we obtain
[TABLE]
Hence .
We have shown that the iterates generated by Algorithm 2 converge to a solution of the dual problem and to a solution of . After obtaining , the discussion after Proposition 1 indicates that if we assume that has a saddle point (which is a common assumption as mentioned in Section 4.1) and that we can find a solution of that satisfies the condition \lambda^{*}=\Pi_{\Lambda}\big{(}\lambda^{*}+L^{\prime}_{\lambda}(W^{*},H^{*};\lambda^{*})\big{)}, then we can recover a solution of the primal problem (5). Hence we can regard the output of Algorithm 2 as an approximate solution of (5). In practice, we can run Algorithm 2 until we observe that the change between two consecutive iterates is negligible; for example stop the algorithm when for a predetermined tolerance . Since for all , choosing for example means that we stop the algorithm when is modified by less than 0.1% (compared to the previous iterate).
The performance of Algorithm 2 critically depends on the solver for solving the weighted-sum minimization in Step 3, which itself is a difficult non-convex optimization problem. We can use Algorithm 1 to find an approximate solution in Step 3. However, subgradient methods are often slow in practice. Indeed, we observe that Algorithm 2 combined with Algorithm 1 is very slow for the data sets we use in our experiments (see Section 4.5 and Figure 1). Therefore, although Algorithm 2 provides some convergence guarantees for the primal and dual problems, we are motivated to propose another practical approach for finding an approximate solution to (2). In the following, we present a heuristic scheme that performs very well, significantly better than Algorithm 2 where Step 3 is approximately solved via Algorithm 1.
4.4 A Frank-Wolfe heuristic scheme for DR-NMF
Unfortunately, Algorithm 2 is not practical because Step 3 requires one to solve (10) which is NP-hard in general (since it is a generalization of NMF). Hence we instead propose a heuristic scheme described in Algorithm 3.
Let us explain the main ideas behind Algorithm 3. Steps 3 and 4 are designed to decrease . Note that if we perform Steps 3 and 4 repeatedly, its output will approximate the output of Step 3 of Algorithm 2. However, this would be computationally rather expensive as it would require many updates of for each , and the MU constitutes the most expensive steps of Algorithm 3.
The descent direction used to update at iteration is the one from the Frank-Wolfe (FW) algorithm [40], which is also known as the conditional gradient method; see for example [41] and the references therein. In the context of solving DR-NMF (2), let us explain the intuition behind the descent direction , defined in Step 5 of Algorithm 3. Letting , we have for all that
[TABLE]
Defining as the vector with a single non-zero entry equal to one at position , see (11), we have Therefore, since we are trying to solve the optimization problem , the -divergence should be given more importance at the next iteration in order for to decrease, and hence the maximum among the -divergences to decrease as well at the next iteration. Finally, Algorithm 3 updates in Step 6 as follows
[TABLE]
In our experiments, we choose the step sizes . We leave the fine-tuning of the step sizes as a future direction of research, although we have tried different step sizes, and we were not able to find step sizes that perform significantly better than . In fact, the performance for of similar order is very similar. For example, the standard FW parameter choice of which yields essentially the same but slightly worse performance.
We emphasize that Algorithm 3 is a heuristic algorithm, and we leave convergence guarantees as a research topic for future work. We use Algorithm 3 in our experiments and observe that it performs very well in terms of simultaneously decreasing all -divergences for . Thus, we do not need prior knowledge on the noise distribution or, equivalently, on the value of .
4.5 Comparison between the dual subgradient method and the heuristic scheme for DR-NMF
The update in Step 5 of Algorithm 3 results in faster convergence compared to the subgradient direction (see Step 4 of Algorithm 2) because it gives much more importance to the -divergence that is maximal at the current iteration. In fact, the entries of the subgradient are always all positive (unless in which case the problem is solved). Thus, the direction that places weight only at the current maximum -divergence (as is done in Step 5 of Algorithm 3) outperforms the subgradient direction empirically, leading to much faster convergence in practical problems.
Let us compare the dual subgradient method and the heuristic scheme for DR-NMF on a simple synthetic data set. However, we have made the same observations on all other data sets we have experimented with such as the ones presented in Section 5.
Figure 1 illustrates the distinction between the two algorithms with a synthetic experiment that compares Algorithm 3 with the variant in which Step is replaced with a standard subgradient step, that is, Step 4 of Algorithm 2. In this illustrative experiment, the entries of a -by- matrix are generated uniformly at random in the interval , and we use and , that is, DR-NMF with the IS-divergence, the KL-divergence and the Frobenius norm. Both variants are initialized with the same matrices whose entries are also generated uniformly at random in .
We observe that the variant using the subgradient converges very slowly. Indeed, the maximum of the three objectives (the IS-divergence) is far from convergence, even after iterations.111It required iterations to make the IS-divergence and the Frobenius norm intersect, but then the Frobenius norm becomes larger and, within the next iterations (for a total of iterations), the IS divergence remains larger hence convergence is not attained. In contrast, Algorithm 3 converges much faster. In particular, the values of the IS-divergence and the Frobenius norm quickly converge to one another. All in all, Algorithm 3 finds a solution with scaled -divergence within 2% of the smallest possible values for the three -divergences within iterations, that is, for . This is made possible because of our more aggressive heuristic strategy to update . In contrast, if one uses the subgradient direction, about iterations are required to obtain the same approximation guarantee.
Remark 1** (Property of DR-NMF solutions).**
We observe on Figure 1 that the two scaled -divergences with the largest values are equal to each another. The same behaviour will often be observed in the extensive sets of experiments in Section 5. Let us explain why this is expected to happen. First, recall that the lowest possible value of a single scaled -divergence is one; see Section 2.1. Second, the maximum scaled -divergence is attained at a single scaled -divergence when it is strictly larger than all the other scaled -divergences. In that case, the maximum scaled -divergence will be larger than one, and hence it can typically222Because of the non-convexity of the objectives of DR-NMF, such a descent direction is not guaranteed to exist. be reduced locally while ensuring that the other -divergences remain smaller, hence reducing the maximum scaled -divergence.
5 Numerical Experiments
In this section, we apply DR-NMF on several data sets. In all cases, we perform 1000 iterations. All tests are preformed using Matlab R2015a on a laptop Intel CORE i7-7500U CPU @2.9GHz 24GB RAM. The code is available on Code Ocean via https://doi.org/10.24433/CO.7769595.v1.
5.1 MO-NMF: Examples of the Pareto frontier on synthetic data
In this section, we illustrate the use of Algorithm 1 to compute Pareto-optimal solutions. We will focus on the case , that is, IS- and KL-divergences and the Frobenius norm. Note, however, that our algorithm and code can deal with any and any finite set .
We generate the input matrix as follows: X=\max\big{(}0,\tilde{W}\tilde{H}+N\big{)} where the component matrices , and the noise matrix are generated as follows:
- •
The entries of and are generated using the uniform distribution in the interval [0,1]. We define which is the noiseless low-rank matrix.
- •
Let us define if , otherwise. Let also
[TABLE]
where
- –
is multiplicative Gamma noise where each entry of is generated using the normal distribution of mean [math] and variance ,
- –
each entry of is generated according to the Poisson distribution of parameter (for simplicity, since the expected value of is the same for all ),
- –
each entry of is generated using the normal distribution of mean [math] and variance .
We set with .
Finally, is a low-rank matrix to which had been contaminated with 20% of noise (that is, ) and then was projected onto the nonnegative orthant. The noise is constructed using the distributions corresponding to .
Figure 2 shows the Pareto-optimal solutions for MO-NMF. More precisely, it provides the solution for the problems
[TABLE]
where for , and for . To simplify computation, we have used the true underlying solution as the initialization (using random or other initializations sometimes generate solution which are more often not on the Pareto frontier because NMF may have many local minima). The Pareto frontier is as expected: the smallest possible value for each objective is 1 (because of the scaling), for which the other objective function is the largest. As changes, one objective increases while the other decreases. The DR-NMF solution computed with Algorithm 3 finds the point on the Pareto frontier such that for .
For DR-NMF, we observe that
- •
The solution of DR-NMF does not necessarily coincide with a value of close to . For example, for the case of the IS divergence with the Frobenius norm, it is close to .
- •
Using DR-NMF allows to obtain a solution with low error for both objectives, always at most 2% worse than the lowest error. Minimizing a single objective sometimes leads to solution with error up to 35% higher than the lowest (in the case IS divergence with Frobenius norm). We will observe a similar behaviour on real data sets.
5.2 Sparse document data sets:
For sparse data sets, it is known that only the -divergence for can exploit the sparsity structure. In fact, in all other cases, all entries of the product have to be computed explicitly which is impractical for large sparse matrices since can be dense. In other words, let denote the number of non-zero entries of . Then the MU for NMF with the -divergence for can be run in operations, while for the other values of , it requires operations.
As explained in [42], for sparse word-count matrices, Poisson noise is the most appropriate model; in fact, Gaussian noise (and any dense noise) does not make much sense on sparse data sets. Hence we expect KL-NMF to provide better results than Fro-NMF. However, we believe it is rather interesting to run DR-NMF with on such data sets to see how it performs. One should expect DR-NMF to perform on average worse than KL-NMF (since it has to take into account the Frobenius norm which is not appropriate) but better than the Frobenius norm (since it takes into account the more appropriate KL-NMF).
In this section, we use the 15 sparse document data sets from [43]. These are large and highly sparse matrices whose entries is the number of times word appears in document . We apply KL-NMF, Fro-NMF and DR-NMF with . To simplify the comparison, reduce the computational load and to have a good initial solution,
we use the same initial matrices in all cases, namely the solution obtained by the successive projection algorithm [44] that has provable guarantee under the separability condition [45, 46].
We perform rank- factorization where is the number of classes reported for these data sets.
Table I reports the results. The first and second columns report the name of the data set and the number of classes, respectively. The next four columns report the accuracies of the clustering obtained with the factorizations produced by KL-NMF, Fro-NMF, and DR-NMF with solved via Algorithm 3. Given the true disjoint clusters for and given a computed disjoint clustering , its accuracy is defined as
[TABLE]
where is the set of permutations of . For simplicity, given an NMF where each row of corresponds to a topic,
we cluster the documents by selecting its closest topic, that is, document is assigned to the topic that maximizes .
The next three columns report how much higher the KL error (in percent) of the solutions of Fro-NMF and DR-NMF are compared to KL-NMF, that is, it reports
[TABLE]
where is the solution computed by KL-NMF. The last three columns report how much higher the Frobenius error (in percent) of the solutions of KL-NMF and DR-NMF are compared to Fro-NMF, that is,
[TABLE]
where is the solution computed by Fro-NMF.
We observe the following:
- •
In terms of clustering, DR-NMF in fact allows us to be robust in the sense that it is able to provide in all cases at least the second highest clustering accuracy. On four data sets, it is even able to provide the highest accuracy, sometimes by a large margin. Globally, DR-NMF does not perform as well as KL-NMF although on average their accuracy only differs by 3.32%. However, DR-NMF performs better than Fro-NMF, with 6.44% higher accuracy on average.
- •
In terms of error, as already noted in the previous section, DR-NMF is able to simultaneously provide solutions with small KL and Frobenius error, on average 2.65% higher than the solution computed with a single objective. On the other hand, optimizing a single objective often leads to very large errors for the other one, up to 149% on NG20, with an average of 17.86% for Fro-NMF and 30.20% for KL-NMF.
5.3 Dense time-frequency matrices of audio signals:
NMF has been used successfully to separate sources from a single audio recording. However, there is a debate in the literature as to whether the KL or the IS divergence should be used; see [47, 48] and the references therein. In fact, as we will see, IS-NMF and KL-NMF provide rather different results on different audio data sets. On one hand, due to its insensitivity to scaling (see Section 2.1), IS-NMF gives the same relative importance to all entries of the data matrix. For example, the error for approximating 1 by 10 is the same as for approximating 10 by 100, that is, . On the other hand, KL-NMF gives more importance to larger entries as it is (linearly) sensitive to scaling; for example, the error for approximating 1 by 10 is ten times smaller than approximating 10 by 100, that is, .
5.3.1 Quantitative results
Our DR-NMF approach overcomes the issue of having to choose between the IS- and KL-divergences by generating solutions which possess small IS and KL errors simultaneously. We use 10 diverse audio data sets:
- •
voicecell, syntBassDrum and syntCCcyGC were downloaded from http://isse.sourceforge.net/demos.html.
- •
preludeJSB is the the well-tempered Clavier performed by Glenn Gould 1/13 between the 19th et 49th seconds, downloaded from https://www.youtube.com/watch?v=IrJjPYi_vhM.
- •
ShanHursunrise was downloaded from http://bass-db.gforge.inria.fr/fasst/.
- •
trioBrahms and triobapitru were derived from the TRIOS data set [49]; see https://c4dm.eecs.qmul.ac.uk/rdr/handle/123456789/27.
- •
sisecmixdrums and sisecmixfemale come from the SISEC data set; see http://sisec.wiki.irisa.fr/tiki-indexbfd7.html?page=Underdetermined+speech+and+music+mixtures.
- •
pianoMary is a recording at the third author’s house.
Table II reports the results, exactly as done in the last columns of Table I, except that it also reports the standard deviation among 10 random initializations.
For these data sets, the results are even more striking than for the sparse text data sets in Section 5.2. In particular, DR-NMF has on average an error higher by about 10% compared to both IS-NMF and KL-NMF, while KL-NMF (resp. IS-NMF) has on average an increase in IS error of 149% (resp. 179%). Moreover, DR-NMF is more robust in the sense that its standard deviation is significantly lower. This shows that by taking into account different objectives, DR-NMF is less sensitive to initialization.
As we will see in the next section, using DR-NMF allows to obtain more robust results than using IS-NMF or KL-NMF alone.
5.3.2 Qualitative results
In the previous section, we have shown quantitative results showing that DR-NMF is able to obtain solutions with low KL and IS divergence simultaneously. In this section, we investigate the data set pianoMary in more detail and show that DR-NMF also leads to better separation for three comparative studies described in detail below: (1) no noise added to the signal, (2) Poisson noise added and (3) Gamma noise added. This data set is the first 4.7 seconds of “Mary had a little lamb”. The sequence is composed of three notes, namely, , and . The recorded signal is downsampled to Hz yielding samples. The short-time Fourier transform (STFT) of the input signal is computed using a Hamming window of size leading to a temporal resolution of 32ms and a frequency resolution of 31.25Hz. We use 50% overlap between two frames, leading to frames and frequency bins. Figure 3 displays the musical score.
There are three notes plus a fourth source. This last source is the very first offset of each note in the musical sequence, that is, some common mechanical vibration acting in the piano just before triggering a specific note, which can be associated to the hammer noise (denoted ), hence the correct rank is ; see [50] for more details.
No added noise
Figure 4 displays the evolution of the scaled IS- and KL-divergences along iterations. DR-NMF is able to compute a solution with low IS and KL error, which is not the case of IS-NMF and DR-NMF (in particular, KL-NMF has IS error almost 9 times larger than IS-NMF).
However, the three solutions generated by IS-NMF, KL-NMF and DR-NMF all give a correct separation. The reason is that this recording is of good quality hence the noise is rather low.
Poisson noise
The second comparative study is performed on the same data set with Poisson noise added to the input audio spectrogram following the methodology described in Section 5.1. We use with and . Figure 5 displays the rows of (that is, the activations of the notes over time) for NMF with IS- and KL-divergences, and for DR-NMF with with .
As expected with this noise model and high noise level, IS-NMF is not able to extract the three notes, while KL-NMF and DR-NMF identify them. In fact, the recovered activations, that is, the rows of , correspond to the activations of the notes from the musical score shown on Figure 3: is activated once, twice and four times. Note that the hammer noise () is not extracted (a source is set to zero) but is mixed with and to a smaller extent with . This illustrates that DR-NMF is robust to different types of noises (in this case, Poisson noise).
Gamma noise
The third comparative study is performed on the same data set with multiplicative Gamma noise, accordingly to the the methodology described in Section 5.1. We use with and . For this experiment, we overestimate the number of sources present into the input spectrogram by choosing ; this allows to highlight the differences between the different NMF variants better. Figure 6 displays the rows of for NMF with IS- and KL-divergences, and for DR-NMF with .
KL-NMF identifies five sources among which the third one has no physical meaning and seems to be a mixture of several notes. IS-NMF correctly identifies the three notes, the fourth estimate (the hammer) is less accurately estimated in terms of amplitude for the activations but IS-NMF is able to set to zero the fifth estimate which is appealing as it automatically remove an unnecessary component. DR-NMF again takes advantage from both divergences as it is able to extract the three notes correctly, the fourth estimate (the hammer) is well extracted and the fifth estimate is close to zero. This again illustrates that DR-NMF is robust to different types of noises (in this case, multiplicative Gamma noise).
6 Conclusion and further work
In this paper, we have proposed an NMF model that takes into account several data fitting terms. We then proposed to tackle this problem with a weighted-sum approach with carefully chosen weights, and designed variations of MU algorithm to minimize the corresponding objective function. We used this model to design a DR-NMF algorithm, inspired from the Frank-Wolfe algorithm, that allows to obtain NMF solutions with low reconstruction errors with respect to several objective functions. We illustrated the effectiveness of this approach on synthetic, document and audio data sets. For audio data sets, DR-NMF provided particularly stunning results, being able to obtain solutions with significantly lower IS and KL errors (simultaneously), while generating meaningful solutions under different noise models or statistics.
It is our hope that the proposed algorithms for DR-NMF (Algorithm 3) resolve the long-standing debate [47, 48] on whether to use IS- or KL-NMF for audio data sets.
Using DR-NMF provides a safe alternative when one is uncertain of the noise statistics of audio data sets. Indeed, the noise statistics is rarely, if at all, known in practice.
Possible further research include the design of more efficient algorithms to solve multi-objective NMF, the extension of our distributionally robust model to low-rank tensor decompositions, and the refinment of our model by adding additional penalty terms or contraints to exploit properties, such as sparsity, smoothness or minimum volume [15, 3, 51], in the decompositions. Another challenging direction of research is to consider the DR-NMF problem with an uncountably infinite uncertainty set such as . Finally, an important direction of research that we plan to investigate is the design of an efficient algorithm for DR-NMF with convergence guarantees; see Section 4.
Acknowledgments
We thank the reviewers and the handling editor for their insightful comments that helped us improve the paper.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] D. D. Lee and H. S. Seung, “Learning the parts of objects by non-negative matrix factorization,” Nature , vol. 401, no. 6755, p. 788, 1999.
- 2[2] A. Cichocki, R. Zdunek, and S.-i. Amari, “New algorithms for non-negative matrix factorization in applications to blind source separation,” in Acoustics, Speech and Signal Processing, 2006. ICASSP 2006 Proceedings. 2006 IEEE International Conference on , vol. 5. IEEE, 2006, pp. V–V.
- 3[3] N. Gillis, “The why and how of nonnegative matrix factorization,” Regularization, Optimization, Kernels, and Support Vector Machines , vol. 12, no. 257, pp. 257–291, 2014.
- 4[4] P. O. Hoyer, “Non-negative matrix factorization with sparseness constraints,” Journal of Machine Learning Research , vol. 5, no. Nov, pp. 1457–1469, 2004.
- 5[5] X. Liu, W. Xia, B. Wang, and L. Zhang, “An approach based on constrained nonnegative matrix factorization to unmix hyperspectral data,” IEEE Transactions on Geoscience and Remote Sensing , vol. 49, no. 2, pp. 757–772, 2011.
- 6[6] S. Essid and C. Févotte, “Smooth nonnegative matrix factorization for unsupervised audiovisual document structuring,” IEEE Transactions on Multimedia , vol. 15, no. 2, pp. 415–425, 2013.
- 7[7] C. Févotte and J. Idier, “Algorithms for nonnegative matrix factorization with the β 𝛽 \beta -divergence,” Neural Computation , vol. 23, no. 9, pp. 2421–2456, 2011.
- 8[8] V. Y. F. Tan and C. Févotte, “Automatic relevance determination in nonnegative matrix factorization with the β 𝛽 \beta -divergence,” IEEE Transactions on Pattern Analysis and Machine Intelligence , vol. 35, no. 7, pp. 1592–1605, 2013.
