A Style Transfer Approach to Source Separation
Shrikant Venkataramani, Efthymios Tzinis, Paris Smaragdis

TL;DR
This paper introduces a novel style transfer approach to source separation using cycle-consistent variational auto-encoders, enabling separation without paired training data by learning shared representations across mixture and clean sound domains.
Contribution
It proposes a new method that treats source separation as a style transfer problem, removing the need for paired training data through shared latent representations.
Findings
Achieves source separation without paired supervision.
Utilizes cycle-consistent variational auto-encoders for domain mapping.
Demonstrates effective separation in experimental results.
Abstract
Training neural networks for source separation involves presenting a mixture recording at the input of the network and updating network parameters in order to produce an output that resembles the clean source. Consequently, supervised source separation depends on the availability of paired mixture-clean training examples. In this paper, we interpret source separation as a style transfer problem. We present a variational auto-encoder network that exploits the commonality across the domain of mixtures and the domain of clean sounds and learns a shared latent representation across the two domains. Using these cycle-consistent variational auto-encoders, we learn a mapping from the mixture domain to the domain of clean sounds and perform source separation without explicitly supervising with paired training examples.
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.
A Style Transfer Approach to Source Separation
Abstract
Training neural networks for source separation involves presenting a mixture recording at the input of the network and updating network parameters in order to produce an output that resembles the clean source. Consequently, supervised source separation depends on the availability of paired mixture-clean training examples. In this paper, we interpret source separation as a style transfer problem. We present a variational auto-encoder network that exploits the commonality across the domain of mixtures and the domain of clean sounds and learns a shared latent representation across the two domains. Using these cycle-consistent variational auto-encoders, we learn a mapping from the mixture domain to the domain of clean sounds and perform source separation without explicitly supervising with paired training examples.
Index Terms— Style transfer, source separation, unsupervised learning, domain translation, deep learning, neural networks, consistency loss
1 Introduction
With the recent advances in deep learning, several sophisticated neural networks have been proposed and used for source separation [1, 2, 3, 4, 5, 6]. Most of these efforts have focused on solving the problem in a supervised setting where there is access to the clean version of the sources in the mixture. The mixture is given as an input to the network and the network is trained to produce an output that resembles the clean sounds. Consequently, supervised source separation using neural networks relies on the availability of paired mixture-clean data in the training set and cannot be used when such paired datasets are not available or expensive to collect. To relax these constraints, a few recent papers use other forms of information like the spatial separation between the sources in a multi-microphone setting, to train the networks for unsupervised source separation [7, 8, 9, 10]. However, these constraints continue to impose restrictions on single-channel source separation, where such secondary forms of information about the sources are not available.
The goal of style transfer (aka. domain translation) is to map a data-point from the source domain to a corresponding data-point in the target domain. During this mapping, the content remains unchanged while the style of the data undergoes a modification. In the case of audio, several problems of interest fall under the category of domain translation. For example, in voice conversion [11] a sentence recorded by a speaker is transformed to make it sound as if the sentence was spoken by someone else. In source separation, the network learns to map the recording of a mixture to the clean recording of the source we wish to extract [1, 2, 3, 4, 5, 6]. The mappings from the source to the target domain can be learned in a supervised or an unsupervised manner. Unsupervised Domain Translation (UDT) attempts to learn the mappings from the source to the target domain, without paired training examples. Accordingly, using UDT for source separation would relax the constraints on the training data and enable us to extract the desired source from the mixture without paired training examples.
In this paper, we relax the constraints on the training data by interpreting single-channel source separation as an unsupervised style-transfer problem. Instead of paired mixture-clean training examples, we assume that we have several mixture recordings and several clean examples of the source we wish to isolate. However, we do not have any information about the relationships between the clean recordings of the source and the mixture recordings. In fact, the mixture and source examples could be completely unpaired and come from distinct recordings. We investigate the use of UDT where we learn a shared latent space for the mixtures and the clean sounds. The joint latent representation enables us to learn a mapping from the domain of mixtures to the domain of clean examples, performing source separation without supervising with paired training examples. Finally, we emphasize that we do not define style and content explicitly by imposing specific modeling structures. The neural network proposed automatically understands these aspects based on the training examples provided for the two domains and can possibly be extended to other UDT applications in audio.
2 Related Work
Domain translation maps a point in the source domain to a corresponding point in the target domain. As shown in [12], such domain translation problems can be probabilistically interpreted as learning a joint distribution for the source and target domains. In the case of images, domain transfer algorithms have been used to map images between different painting styles while keeping the content fixed (for eg., Monet paintings to natural images and vice versa). Several Generative Adversarial Network (GAN) based architectures have been proposed for supervised image-to-image translation [13, 14, 15].
More recently, GANs have also been successfully used for unsupervised image-to-image translation [16]. To simplify the complexity of GAN based networks, Liu et.al., proposed the UNIT algorithm [12] using Variational Auto-Encoders (VAEs) to learn generative models for the source and target domains. As described in [12], the source and target domain training examples define a marginal distribution for the source and target domains respectively. Further, the goal of UDT is to estimate the joint distribution of the two domains, given their marginal distributions. This problem is an ill-posed problem and requires additional assumptions on the joint distribution [17]. To this end, Liu et. al., show that a necessary condition for UDT is to have a shared latent space between the source and target domains. This implies that a pair of points having the same content in the source and target domains should be mapped to the same point in the latent space. Since we do not have access to such paired training examples, we use additional consistency terms in the cost-function to enforce a shared latent space as described in Section 3.2.
In the case of style transfer problems for audio data, style and content are ambiguous [18]. Consequently, style transfer approaches for audio have largely resulted in efforts that match the timbres of the source and target domains (for example, opera sounds have been matched to sound like cats licking milk) [18, 19]. In such cases, it is difficult to define what a good network output is supposed to sound like. Also, these efforts have not been targeted at any specific application and a tangible metric to evaluate the performance of the network is also difficult to obtain. In the case of music, style transfer approaches have been used for timbral transfer [20, 21]. Mor et. al., use audio style transfer to translate music across different instruments and styles and demonstrate that their approach transfers stylistic musical elements also [22]. GAN based networks have been proposed for voice transfer applications [11, 23, 24] and singing voice separation [25] without paired data. In this paper, we explore the use of a network inspired by the UNIT architecture [12] for UDT and show how it can be used for source separation without paired training examples. In doing so, we use a very narrow interpretation of style and content for source separation: the content refers to the source we wish to extract from the mixture and style refers to the presence or absence of interfering sources. The performance of style transfer can also be evaluated using the metrics we commonly use to evaluate source separation performance [26, 27].
3 Unsupervised Domain Translation for Source Separation
We now introduce the idea of UDT for audio and show how it can be used for source separation. We interpret source separation as a style transfer problem of learning a mapping from the mixture domain to the domain of clean sounds. For the sake of simplicity, we assume that the goal is to extract the female speaker from a mixture of one male and one female speaker respectively. However, the approach developed below is general and can be used to extract any desired source from a mixture if example recordings of the source are available. Thus, in our setting, the source domain training set consists of several example mixtures of male and female speakers. The target domain training set consists of several examples of isolated female speech.
3.1 Network Architecture
We first describe the network architecture used for source separation using UDT. We use a modified version of UNIT [12] for our audio domain translation application. Figure 1 gives the block diagram of the network architecture used. All the audio signals are first transformed into the time-frequency domain using a short-time Fourier transform (STFT) operation. We compute the magnitude spectrograms from their STFT representations and use them as the inputs to the network. The networks are also trained to estimate magnitude spectrograms at their outputs. From Figure 1, we see that the network basically consists of two individual auto-encoders. The encoder and decoder act as a VAE for the source domain (domain of mixtures). Similarly, and act as an encoder and decoder forming the VAE for the target domain (domain of isolated female speech). The magnitude spectrograms of the mixture and female speech examples are given as inputs to respective VAEs. To implement the VAEs, we use the reparameterization trick [28]. We add a random vector drawn from the multi-variate Gaussian distribution to the encoder outputs to backpropagate the gradients through the sampling step.
Instead of allowing the VAEs to operate independently, we force them to learn a shared or joint latent representation for the source (mixtures) and target (female speech) domains. Similar latent space sharing strategies have been previously applied in non-negative matrix partial cofactorization (NMPCF) for extracting the common source across multiple spectrograms [29]. The implications of a shared latent representation are as follows: consider a mixture-clean pair of spectrograms where the mixture is formed by mixing the clean utterance corresponding to the spectrogram with an interfering source. The respective encoders and would map and to the same latent representation. Also, given an arbitrary latent representation , we can use the two decoders and to generate a pair of corresponding mixture and clean spectrograms. Training these auto-encoders using only reconstruction terms in the cost function results in two independently trained auto-encoders for the source and target domains. To ensure a shared latent space, we train the auto-encoders in tandem and also use cycle-consistency loss terms in the cost-function [12, 16, 23]. The details of the cost-function used to train the network are given in Section 3.2. In addition, the final layer of the encoders and the first layer of the decoders also share their weights.
From the network architecture in Figure 1, we see that we can now simultaneously obtain four types of mapped outputs. Given a mixture spectrogram , denotes the latent representation of . Alternatively, for a source spectrogram , returns its latent representation. We now have the following mapping pathways:
- •
The path gives the mixture reconstruction .
- •
The path extracts the source of interest from the mixture.
- •
The path reconstructs the source spectrogram giving .
- •
The path gives a dummy mixture spectrogram that contains as one of the sources.
At inference time, the mixture spectrogram is transformed to the latent space by . The target decoder operates on this latent representation and estimates the separated spectrogram of the source.
3.1.1 Encoder/Decoder Architecture
Figure 2 shows a block diagram of the encoder and decoder architectures used in this paper. For the encoders, the input is a spectorgram with frequency coefficients. The encoder is formed by a cascade of three conv-layer blocks. Each conv-layer block consists of a 1D convolutional layer with a kernel width of and a soft-plus non-linearity, followed by a batch normalization layer [30] and a dropout layer with [31]. Each conv-layer block transforms its input into a -dimensional space ( input and output channels). The final conv-layer block gives the latent representation. Similarly, the decoder architecture consists of a series of three transposed conv-layer blocks. The transposed conv-layer block is identical to the conv layer block except for the 1D convolutional layer which is now replaced by a 1D transposed convolutional layer.
3.2 Cost Function
3.2.1 Reconstruction Loss
The network architecture basically consists of two auto-encoders, for the source and target domain respectively. Thus, the cost-function should include a term to minimize the discrepancy between the reconstructions and the inputs. We use the mean squared error (MSE) between and for the source domain VAE and MSE between and for the target domain VAE.
3.2.2 Consistency Loss
To ensure that the two auto-encoders are not trained independently and share a common latent representation, a necessary condition is to include the following cycle-consistency terms into the cost-function [12, 16, 23]. The consistency terms ensures that for a point in the latent space, a decoding followed by an encoding operation maps to vicinity of the same point in the latent space. We use two forms of cycle-consistency terms in the loss function. For the straight-consistency terms, we ideally want,
[TABLE]
Similarly, for the cross-consistency terms we require,
[TABLE]
We measure the discrepancy between the left and right sides of the above equations using their MSEs and incorporate them into the cost-function for minimization.
Finally, as a consequence of using a VAE, we also have a sparsity term on the encoder outputs to push the latent representation towards a zero-mean distribution. The overall cost-function is a combination of the reconstruction, cycle-consistency and terms.
4 Experiments
A key feature of using UDT for source separation is that it allows us to identify and extract a specific source of interest, without any information about the interfering sources in the mixture. We setup a source separation task along these lines to evaluate the separation performance of UDT and compare it with its supervised counterpart. The details and results of the experiments are presented next.
4.1 Experimental Setup
In our separation experiment, we train our networks to extract the utterance of the female speaker from a mixture of one male and one female speaker. For the training data, we generate mixture and female-speech examples having a duration of secs each, using the TIMIT database [32]. We use the recordings from “dr1”, “dr2” and “dr3” directories for our experiments. Training the UDT network for source separation requires a set of mixture examples and an unpaired set of clean female speech examples. To generate the set of mixtures, we randomly select a pair of male and female speakers from dr1 and randomly pick an utterance for each speaker from the available recordings. We then randomly select -sec snippets from each selected recording and mix them at [math] dB to generate the mixture. Thus the mixture examples entirely come from the dr1 directory. For female speech examples, we use the female speakers from dr2. As before, we randomly select female speaker recordings and generate -sec snippets. For the test set, we generate similar (mixture, female-speech) pairs from dr3 and evaluate the networks on their separation performance on this test set. The magnitude spectrograms of these recordings are computed using an STFT operation with a window size of samples and a hop of samples. We raise the -dimensional magnitude spectrograms by a power of to emphasize the contribution of low-energy time-frequency bins.
To assess the upper bound of separation performance, we compare the separation performance of UDT with an equivalent supervised source separation model. We use a denoising VAE having the same encoder, decoder architecture as described in Figure 2. Recent experiments have shown that VAE based networks are better than auto-encoders for supervised single-channel source separation [33]. The mixtures from dr1 and their paired female speech examples are also used as the training set for a supervised denoising auto-encoder. The network is evaluated and compared on the test set drawn from dr3.
The UDT and supervised networks are both trained to estimate the spectrogram of the female speech utterance in the mixture. To transform these estimated spectrograms into their respective waveforms, we undo the power operation, multiply with the mixture phase and invert with the inverse-STFT operation. We compare the separation performance using median scale-invariant source to distortion ratio (SI-SDR) values [27] and BSS_Eval metrics source-to-interference ratio (SIR) and sources-to-artifact ratio (SAR) [26]. The source-to-distortion ratio (SDR) values obtained were similar ( dB higher) to the SI-SDR metric and showed similar characteristics in terms of variance and median values.
4.2 Results and Discussion
Figure 3 gives the separation performance of UDT and supervised network. The results are shown in the form of a box plot of SI-SDR values. The middle and right box plots compare UDT and supervised separation on the test set drawn from dr3. Since UDT did not access the clean versions of the mixture examples used for training, we also report the separation performance on the mixture examples used for training. The box plot on the left gives the SI-SDR values on the training set drawn from dr1. We show these plots on a set of mixtures for each case.
On the test-set, we see that UDT gives a median separation performance of dB, an approximate drop of dB compared to supervised source separation. The variance of the metrics shown is also higher for UDT. However, these results are comparable and significant considering the fact that UDT learns to separate mixtures without any information about the corresponding clean versions of the sources. The separation performance evaluated on the training mixtures seems to provide an improvement over the test set. Also, we can learn to separate mixtures without any information regarding the other sources in the mixture, along the lines of supervised source separation. We also note that we did not explicitly specify the style and content of our domain transfer problem. This information was implicitly embedded in the training datasets by providing several unpaired examples of mixtures and clean female speech. Similar to partial cofactorization versions of NMF [29], UDT understands and exploits the common structure across the domain of mixtures and the domain of clean sources to automatically identify the style and content. Thus, UDT can potentially spawn algorithms for other audio style transfer applications.
5 Conclusion
Supervised source separation using neural networks requires paired training examples where, we input a mixture into the network and adapt the parameters to produce an output the resembles the corresponding clean source. To ease these requirements, we investigated the use of unsupervised domain (style) transfer for source separation. Learning a shared latent representation for the domain of mixtures and the domain of clean examples allows us to perform separation by mapping between these domains without paired training examples. The separation experiments show that we can extract sources without a substantial degradation in separation performance compared to supervised source separation. The network also understands the application specific nature of style and content in an audio context from the training examples provided, possibly providing a general framework for other audio style transfer tasks.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Yi Luo and Nima Mesgarani, “Tasnet: Time-domain audio separation network for real-time single-channel speech separation,” in 2018 Proceedings of ICASSP . IEEE, 2018.
- 2[2] Ziqiang Shi, Huibin Lin, Liu Liu, Rujie Liu, and Jiqing Han, “Furcanet: An end-to-end deep gated convolutional, long short-term memory, deep neural networks for single channel speech separation,” ar Xiv preprint ar Xiv:1902.00651 , 2019.
- 3[3] John R Hershey, Zhuo Chen, Jonathan Le Roux, and Shinji Watanabe, “Deep clustering: Discriminative embeddings for segmentation and separation,” in 2016 Proceedings of ICASSP . IEEE, 2016, pp. 31–35.
- 4[4] Shrikant Venkataramani, Jonah Casebeer, and Paris Smaragdis, “End-to-end source separation with adaptive front-ends,” in 2018 52nd Asilomar Conference on Signals, Systems, and Computers . IEEE, 2018, pp. 684–688.
- 5[5] Yi Luo, Zhuo Chen, John R Hershey, Jonathan Le Roux, and Nima Mesgarani, “Deep clustering and conventional networks for music separation: Stronger together,” in 2017 Proceedings of ICASSP . IEEE, 2017, pp. 61–65.
- 6[6] Scott Wisdom, John R Hershey, Kevin Wilson, Jeremy Thorpe, Michael Chinen, Brian Patton, and Rif A Saurous, “Differentiable consistency constraints for improved deep speech enhancement,” in 2019 Proceedings of ICASSP . IEEE, 2019, pp. 900–904.
- 7[7] Efthymios Tzinis, Shrikant Venkataramani, and Paris Smaragdis, “Unsupervised deep clustering for source separation: Direct learning from mixtures using spatial information,” in 2019 Proceedings of ICASSP . IEEE, 2019, pp. 81–85.
- 8[8] Prem Seetharaman, Gordon Wichern, Jonathan Le Roux, and Bryan Pardo, “Bootstrapping single-channel source separation via unsupervised spatial clustering on stereo mixtures,” in 2019 Proceedings of ICASSP . IEEE, 2019, pp. 356–360.
