Skip to main content
QUICK REVIEW

[Paper Review] Speeding Up Permutation Invariant Training for Source Separation

Thilo von Neumann, Christoph Böddeker|arXiv (Cornell University)|Jul 30, 2021
Speech and Audio ProcessingComputer Science18 references6 citations
TL;DR

This paper proposes an efficient decomposition of the permutation invariant training (PIT) loss into a score matrix and a strictly monotonically increasing function, enabling polynomial-time solutions via the Hungarian algorithm for utterance-level PIT and dynamic programming for Graph-PIT. The approach reduces computational complexity from factorial to polynomial time, making training feasible for large numbers of speakers or long recordings.

ABSTRACT

Permutation invariant training (PIT) is a widely used training criterion for neural network-based source separation, used for both utterance-level separation with utterance-level PIT (uPIT) and separation of long recordings with the recently proposed Graph-PIT. When implemented naively, both suffer from an exponential complexity in the number of utterances to separate, rendering them unusable for large numbers of speakers or long realistic recordings. We present a decomposition of the PIT criterion into the computation of a matrix and a strictly monotonously increasing function so that the permutation or assignment problem can be solved efficiently with several search algorithms. The Hungarian algorithm can be used for uPIT and we introduce various algorithms for the Graph-PIT assignment problem to reduce the complexity to be polynomial in the number of utterances.

Motivation & Objective

  • Address the exponential computational complexity of naive permutation invariant training (PIT) in source separation, especially for large numbers of speakers or long recordings.
  • Overcome the NP-hard complexity of Graph-PIT assignment by reformulating the loss function to allow efficient optimization.
  • Enable practical training of neural networks for both utterance-level and continuous speech separation (CSS) with high speaker counts.
  • Reduce the runtime of the assignment step in PIT to be negligible compared to neural network forward/backward passes.
  • Provide a general framework applicable to both uPIT and Graph-PIT by decomposing the loss into a matrix and monotonic function.

Proposed method

  • Decompose the PIT loss into a score matrix M and a strictly monotonically increasing function, enabling efficient optimization.
  • Apply the Hungarian algorithm to solve the uPIT assignment problem in O(K³) time, where K is the number of speakers.
  • Formulate the Graph-PIT assignment as a graph coloring problem and solve it using dynamic programming with linear time complexity in the number of utterances.
  • Use a pre-computed loss matrix to avoid recomputing the full loss for every permutation, drastically reducing redundant computation.
  • Implement multiple assignment algorithms—including brute-force, branch-and-bound, DFS, and dynamic programming—for comparative evaluation.
  • Optimize matrix computation using dot products instead of MSE to further reduce runtime, especially for large K.

Experimental results

Research questions

  • RQ1Can the permutation problem in utterance-level PIT be solved in polynomial time using a decomposition of the loss function?
  • RQ2Is it possible to reduce the NP-hard complexity of Graph-PIT assignment to polynomial time through reformulation?
  • RQ3How do different assignment algorithms (e.g., dynamic programming, branch-and-bound) compare in runtime and optimality for Graph-PIT?
  • RQ4What is the impact of the assignment step on the overall training time when using large-scale datasets with many speakers?
  • RQ5Can the proposed framework be generalized to both uPIT and Graph-PIT with minimal architectural changes?

Key findings

  • The Hungarian algorithm reduces uPIT assignment time to O(K³), enabling training for up to 100 speakers in under a second.
  • Dynamic programming solves the Graph-PIT assignment problem in linear time relative to the number of utterances, achieving optimal solutions.
  • The run-time of the assignment step becomes negligible—under 10 ms—for realistic cases, even for 100 speakers, when using the optimized Hungarian algorithm.
  • Exponential-time algorithms like brute-force and branch-and-bound dominate training time for more than 15 utterances, with the unoptimized version taking over 40 seconds for 15 utterances.
  • The pre-computed score matrix approach reduces redundant loss computation, and using dot product instead of MSE further accelerates matrix computation.
  • The framework enables practical training of Graph-PIT for long recordings with high speaker counts, eliminating the need for stitching in many cases.

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.