Skip to main content
QUICK REVIEW

[Paper Review] Onssen: an open-source speech separation and enhancement library

Zhaoheng Ni, Michael Mandel|arXiv (Cornell University)|Nov 3, 2019
Speech and Audio ProcessingComputer Science18 references5 citations
TL;DR

Onssen is an open-source PyTorch-based library for deep learning-based speech separation and enhancement, enabling researchers to train and benchmark T-F mask-based models (e.g., Deep Clustering, Chimera, Chimera++) on custom datasets with minimal code. It achieves state-of-the-art SDR scores (e.g., 11.0 on wsj0-2mix) matching original paper results, offering unified training workflows and extensibility for new models and datasets.

ABSTRACT

Speech separation is an essential task for multi-talker speech recognition. Recently many deep learning approaches are proposed and have been constantly refreshing the state-of-the-art performances. The lack of algorithm implementations limits researchers to use the same dataset for comparison. Building a generic platform can benefit researchers by easily implementing novel separation algorithms and comparing them with the existing ones on customized datasets. We introduce "onssen": an open-source speech separation and enhancement library. onssen is a library mainly for deep learning separation and enhancement algorithms. It uses LibRosa and NumPy libraries for the feature extraction and PyTorch as the back-end for model training. onssen supports most of the Time-Frequency mask-based separation algorithms (e.g. deep clustering, chimera net, chimera++, and so on) and also supports customized datasets. In this paper, we describe the functionality of modules in onssen and show the algorithms implemented by onssen achieve the same performances as reported in the original papers.

Motivation & Objective

  • To address the lack of accessible, reusable implementations of deep learning speech separation algorithms, which hinders reproducibility and cross-method comparison.
  • To provide a unified, modular framework that allows researchers to easily implement, train, and evaluate novel separation models on diverse datasets without rewriting core training pipelines.
  • To support both mask-based and end-to-end speech separation approaches, including Deep Clustering, Chimera, and Chimera++ with Permutation-Invariant Training (PIT).
  • To enable consistent benchmarking by ensuring identical training and evaluation protocols across different models and datasets.
  • To foster extensibility by encouraging community contributions of new model architectures, feature extractors, and dataset loaders through standardized interfaces.

Proposed method

  • Onssen uses a modular architecture with dedicated Data, Model, Loss, and Trainer modules, all configured via a JSON configuration file to decouple model definition from training logic.
  • It leverages Librosa and NumPy for audio feature extraction (e.g., log-magnitude STFT) and PyTorch as the deep learning backend for model training and optimization.
  • The library implements Permutation-Invariant Training (PIT) by default, computing losses over all possible speaker permutations and selecting the one with minimum loss to resolve label permutation issues.
  • It supports multiple loss functions, including Magnitude Spectral Approximation (MSA) with L1 norm and Truncated Phase-Sensitive Approximation (tPSA), crucial for phase-aware speech reconstruction.
  • The Chimera and Chimera++ losses combine deep clustering loss (for embedding learning) and mask inference loss (for T-F mask prediction), with a default weight of α=0.975 for clustering.
  • The training pipeline is fully configurable via JSON, allowing users to plug in custom models, datasets, and loss functions without modifying core code.

Experimental results

Research questions

  • RQ1Can a unified, open-source library be built to streamline training and benchmarking of diverse deep learning speech separation models across different datasets?
  • RQ2To what extent can Onssen reproduce the state-of-the-art performance of published models like Deep Clustering, Chimera, and Chimera++ on standard benchmarks such as wsj0-2mix?
  • RQ3How effective is the integration of Permutation-Invariant Training (PIT) and phase-aware loss functions (e.g., tPSA) within a modular, reusable framework?
  • RQ4Can the library’s modular design enable efficient extension to new models (e.g., TasNet, conv-TasNet, DPRNN) and datasets with minimal implementation overhead?
  • RQ5How does the library’s training efficiency and scalability compare when supporting multi-GPU and distributed training in future extensions?

Key findings

  • Onssen successfully reproduces the reported SDR scores of key baseline models: 7.6 dB for Deep Clustering, 10.0 dB for uPIT-LSTM, 10.5 dB for Chimera, and 11.0 dB for Chimera++ on the wsj0-2mix dataset.
  • The library achieves performance comparable to original implementations, with Chimera++ attaining 11.0 dB SDR, matching the reported result of 10.9 dB in the original paper.
  • The implementation of the uPIT-LSTM model with MSA loss achieves 10.0 dB SDR, exactly matching the reported performance in the literature.
  • The tPSA loss function is correctly implemented and contributes to improved performance in phase-aware separation, as demonstrated by the high SDR of Chimera++.
  • The modular design enables seamless integration of new models and datasets, with no need to re-implement training loops or feature extraction pipelines.
  • The library supports future extensibility, including planned support for end-to-end models (e.g., conv-TasNet, DPRNN) and distributed training on multi-GPU systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.