ΟΔΗΓΟΣ Audio AI

Διαχωρισμός RNN διπλής διαδρομής

Dual-path RNN (DPRNN) is a neural network design for separating overlapping voices in a single-microphone recording.

Ακούστε αυτόν τον οδηγόαφήγηση με AI · ~8 min

Σε αυτήν τη σελίδα9 min read
  1. Επισκόπηση
  2. Βασικά takeaways
  3. Βαθιά κατάδυση
  4. Size the chunks for a DPRNN separator
  5. Υλοποίηση σε πραγματικό κόσμο
  6. Το μέλλον του διαχωρισμού RNN διπλής διαδρομής
  7. Κάνοντάς το στην πράξη
  8. Πηγές και περαιτέρω ανάγνωση
  9. Συνεχίστε την εξερεύνηση
  10. Συχνές ερωτήσεις

Επισκόπηση

It cuts a very long sequence into short chunks and alternates between a recurrent network that reads inside each chunk and one that reads across chunks. Introduced in 2019, it set a record on the WSJ0-2mix benchmark with a model 20 times smaller than the previous best, and its dual-path layout became the template for later separation models.

Βασικά takeaways

  1. DPRNN splits a long feature sequence into overlapping chunks and alternates recurrent passes within chunks and across chunks.
  2. Choosing chunk length near the square root of twice the sequence length makes each recurrent pass handle only hundreds of steps.
  3. DPRNN-TasNet reached 18.8 dB SI-SNRi on WSJ0-2mix with 2.6 million parameters, 20 times smaller than the previous best model.
  4. SepFormer kept DPRNN's dual-path layout but replaced recurrence with Transformers, reaching 22.3 dB on WSJ0-2mix with 26 million parameters.
  5. On noisy, reverberant mixtures DPRNN scored 8.4 dB, showing a large gap between clean benchmarks and real recordings.

Βαθιά κατάδυση

Speech separation is the task of taking one recording in which several people talk at once and producing one clean track per speaker, often called the cocktail party problem. Dual-path recurrent neural network, or DPRNN, is a way of organizing the network that does this. It was introduced by Yi Luo of Columbia University with Zhuo Chen and Takuya Yoshioka of Microsoft in the paper "Dual-Path RNN: Efficient Long Sequence Modeling for Time-Domain Single-Channel Speech Separation", posted in October 2019 and presented at ICASSP 2020. Its contribution is not a new kind of neuron but a new arrangement that lets ordinary recurrent networks handle extremely long inputs.

The problem it solves comes from time-domain separation. Earlier systems worked on spectrograms, but Conv-TasNet, published by Yi Luo and Nima Mesgarani in 2018, showed that learning directly from the waveform worked better. Its design has three parts: a learned encoder that turns short windows of audio into feature vectors, a separator that estimates a mask (a set of weights saying how much of each feature belongs to each speaker), and a decoder that turns masked features back into audio. Shorter encoder windows give better separation, but a 4-second clip at 8 kHz holds 32,000 samples, and with a 2-sample window the separator must model tens of thousands of steps. Recurrent networks, which read a sequence one step at a time while carrying a memory, are hard to train over sequences that long. Convolutional separators only see a fixed stretch of context.

DPRNN works in three stages. First, segmentation: the long sequence of feature vectors is cut into chunks of length K that overlap by half, and the chunks are stacked into a three-dimensional block, like pages of a book. Second, block processing: an intra-chunk recurrent network reads along each chunk to model local detail such as the shape of a syllable, and then an inter-chunk recurrent network reads across chunks at the same position to connect distant parts of the utterance. These two passes form one DPRNN block, and the paper stacks six of them, each using bidirectional LSTM layers with 128 hidden units in each direction. Third, overlap-add: the chunks are laid back out in order and overlapping parts are summed, restoring the original length. If K is chosen near the square root of twice the sequence length, both recurrent networks see sequences of only a few hundred steps instead of tens of thousands.

The results were striking for the model's size. On WSJ0-2mix, a standard benchmark of artificial two-speaker mixtures from Wall Street Journal read speech with 30 hours of 8 kHz training audio, swapping Conv-TasNet's convolutional separator for DPRNN raised scale-invariant signal-to-noise ratio improvement (SI-SNRi, how many decibels cleaner the output is than the mixture) from 15.2 to 16.0 dB while nearly halving the model from 5.1 to 2.6 million parameters. Shrinking the encoder window from 16 samples to 2, which DPRNN made trainable, raised SI-SNRi to 18.8 dB. The previous best system, FurcaNeXt, used 51.4 million parameters, 20 times more. For comparison, deep clustering, the 2015 method by John Hershey and colleagues that introduced this two-speaker evaluation, improved signal quality by about 6 dB.

DPRNN changed the field mostly through its layout. In 2020 the Dual-Path Transformer Network (DPTNet) kept the chunk structure but used Transformer layers combined with a recurrent network, reporting 20.6 dB signal-to-distortion ratio on WSJ0-2mix. SepFormer, from Cem Subakan and colleagues at ICASSP 2021, explicitly adopted DPRNN's dual-scale approach with an IntraTransformer and an InterTransformer and no recurrence at all, reaching 22.3 dB SI-SNRi with data augmentation. The authors noted that DPRNN's recurrent connections, especially in the global pass, limit parallel computation, which is the main reason later work replaced them.

Compared with alternatives, DPRNN is small and accurate but sequential. Convolutional separators like Conv-TasNet are fast and parallel but see limited context. Transformer dual-path models such as SepFormer are more accurate and parallelize better on GPUs but are much larger, 26 million parameters against 2.6 million. Multi-microphone methods such as beamforming use spatial information DPRNN does not have, and DPRNN works with a single channel. Spectrogram-based methods are easier to interpret but were outperformed on clean benchmarks by time-domain models from Conv-TasNet onward.

The main limitation is the gap between benchmark and reality. WSJ0-2mix is clean read speech mixed artificially, and real rooms add noise and reverberation. On the paper's own noisy, reverberant LibriSpeech mixtures, DPRNN achieved 8.4 dB SI-SNRi, far below its 18.8 dB on clean data, and a speech recognizer still made 25.9% word errors on its output against 9.1% on reverberant speech with no overlap. Standard DPRNN models are trained for a fixed number of speakers, so a two-speaker model cannot handle three talkers without changes. Very short encoder windows make sequences long and computation heavy even with chunking, and recurrent layers process steps in order, which slows inference on GPUs.

In practice DPRNN is easy to reproduce. The paper trained on 4-second segments for 100 epochs with the Adam optimizer, a starting learning rate of 0.001 decayed by 0.98 every two epochs, and utterance-level permutation invariant training, which scores every possible matching of outputs to speakers and trains on the best one. Open implementations exist in the Asteroid toolkit, which also covers the noisy WHAM and WHAMR datasets and LibriMix. Building a real product still requires training data that resembles the target setting, since models trained only on WSJ0-2mix degrade on real recordings.

04Δουλευμένο παράδειγμα

Size the chunks for a DPRNN separator

  1. Start with a 4-second, two-speaker mixture sampled at 8 kHz, which is 32,000 samples.

  2. Use an encoder window of 2 samples with a hop of 1 sample, giving about 32,000 feature frames (L).

  3. Compute the chunk size: the square root of 2 times 32,000 is about 253, so choose K = 250 with a hop of 125.

  4. Count chunks: about 32,000 / 125, roughly 256 chunks (S), so the tensor is 64 features by 250 by 256 when the encoder has 64 filters.

  5. Trace one block: the intra-chunk LSTM runs 256 times over 250 steps, then the inter-chunk LSTM runs 250 times over 256 steps.

  6. Compare with a plain LSTM, which would need one pass over 32,000 steps, and note that the longest path any LSTM sees is now about 256 steps.

Αυτό που δείχνει

A chunk configuration matching the paper's best WSJ0-2mix setting (window 2, chunk 250). To check it, run a DPRNN implementation such as Asteroid's and confirm the separator's internal tensor has the predicted shape, then measure SI-SNRi on a held-out mixture.

Υλοποίηση σε πραγματικό κόσμο

In the 2019 paper, DPRNN-TasNet separated two-speaker mixtures in WSJ0-2mix with an 18.8 dB scale-invariant signal-to-noise improvement using 2.6 million parameters.

On noisy, reverberant two-speaker mixtures built from LibriSpeech, the same paper cut speech recognition word error rate from 28.7% to 25.9% compared with Conv-TasNet's convolutional separator.

The open-source Asteroid toolkit for PyTorch includes a DualPathRNN implementation with a recipe for the noisy WHAM dataset, alongside Conv-TasNet, DPTNet and other separation models.

SepFormer (ICASSP 2021) keeps DPRNN's chunk-based intra and inter layout but swaps the recurrent networks for Transformers, reaching 22.3 dB on WSJ0-2mix; a SpeechBrain checkpoint is downloadable from Hugging Face.

A causal version, with a one-directional recurrent network across chunks, lets DPRNN run with latency set by the chunk size, which suits streaming uses such as live captioning.

Το μέλλον του διαχωρισμού RNN διπλής διαδρομής

The dual-path idea outlived its recurrent networks. After DPRNN in 2019, DPTNet in 2020 and SepFormer in 2021 kept the chunk-wise local and global split while moving to attention, and SepFormer's authors cited speed and memory advantages over recurrent models with comparable quality. Open problems in single-channel separation are less about architecture than about realism: models score above 20 dB on clean synthetic mixtures but far lower in noisy, reverberant rooms, as DPRNN's own 8.4 dB result on reverberant LibriSpeech mixtures showed. Research directions include training on more realistic data such as the WHAM and WHAMR noisy and reverberant extensions available in Asteroid, handling an unknown or changing number of speakers in long meetings, and reducing compute for on-device use, where DPRNN's 2.6-million-parameter size remains attractive. Joint training with speech recognition, so separation is judged by transcription accuracy rather than signal metrics, is another active line. Which of these will matter most for products such as meeting transcription and hearing assistance is not settled.

Κάνοντάς το στην πράξη

Γιατί έχει σημασία

  • Πρόσβαση και προσέγγιση χρηστών. Βελτιώνει την προσβασιμότητα μέσω διασυνδέσεων μεταγραφής, αφήγησης και φωνής.
  • Κόστος και προϋπολογισμός. Οι ομάδες πολυμέσων μπορούν να αποστέλλουν γυαλισμένο ήχο πιο γρήγορα με μικρότερους προϋπολογισμούς.
  • Ταχύτητα και κλίμακα. Τα συστήματα που αντιμετωπίζουν πελάτες μπορούν να επεξεργάζονται προφορικές αλληλεπιδράσεις σε μεγαλύτερη κλίμακα.

Προσέξτε

  • Οι κίνδυνοι κατάχρησης φωνής και πλαστοπροσωπίας αυξάνονται όταν λείπει η συγκατάθεση.
  • Η ακρίβεια μπορεί να πέσει σε τόνους, διαλέκτους ή θορυβώδη περιβάλλοντα.
  • Ο συνθετικός ήχος μπορεί να εκληφθεί εσφαλμένα ως αυθεντική ομιλία χωρίς σαφή σήμανση.

Επόμενα βήματα

  1. Λάβετε ρητή συγκατάθεση για λήψη φωνής, κλωνοποίηση και επαναχρησιμοποίηση.
  2. Δοκιμάστε την ποιότητα σε διαφορετικά ηχεία και συνθήκες φόντου.
  3. Καθορίστε πότε ένας άνθρωπος πρέπει να επανεξετάσει ή να εγκρίνει τα αποτελέσματα.
  4. Επισημάνετε τον συνθετικό ήχο και κρατήστε αρχεία προέλευσης για υπευθυνότητα.

Πηγές και περαιτέρω ανάγνωση

  1. arXiv (ICASSP 2020)Dual-path RNN: efficient long sequence modeling for time-domain single-channel speech separation
  2. arXiv (IEEE/ACM TASLP)Conv-TasNet: Surpassing Ideal Time-Frequency Magnitude Masking for Speech Separation
  3. arXivDeep clustering: Discriminative embeddings for segmentation and separation
  4. arXiv (Interspeech 2020)Dual-Path Transformer Network: Direct Context-Aware Modeling for End-to-End Monaural Speech Separation
  5. arXiv (ICASSP 2021)Attention is All You Need in Speech Separation
  6. GitHub (Asteroid team)Asteroid: the PyTorch-based audio source separation toolkit for researchers
  7. Hugging Face (SpeechBrain)speechbrain/sepformer-wsj02mix

Συνεχίστε την εξερεύνηση

Δωρεάν ενημερωτικό δελτίο

Λάβετε την καθημερινή ενημέρωση AI

Τρία επαληθευμένα νέα AI κάθε πρωί της εβδομάδας, γραμμένα σε απλή αγγλική. Δωρεάν για πάντα, χωρίς διαφημίσεις.

Ένα email κάθε εργάσιμη ημέρα. Κατάργηση συνδρομής με ένα κλικ. Δεν πουλάμε ή μοιραζόμαστε ποτέ τη διεύθυνσή σας.

Δοκιμάστε τον εαυτό σας

Take the Dual-Path RNN Separation quiz

Άμεση ανάδραση σε κάθε απάντηση, και πιστοποιητικό με επαληθεύσιμο ID μόλις περάσετε το μάθημα.

Έναρξη κουίζ

Υποστηρίξτε τη δωρεάν εκπαίδευση AI. AI Understanding είναι μια μη κερδοσκοπική οργάνωση 501(c)(3) — χωρίς διαφημίσεις, χωρίς τοίχο πληρωμής, ποτέ. Κάντε μια δωρεά

Συχνές ερωτήσεις

What is Dual-Path RNN Separation?

Dual-path RNN (DPRNN) is a neural network design for separating overlapping voices in a single-microphone recording. It cuts a very long sequence into short chunks and alternates between a recurrent network that reads inside each chunk and one that reads across chunks. Introduced in 2019, it set a record on the WSJ0-2mix benchmark with a model 20 times smaller than the previous best, and its dual-path layout became the template for later separation models.

Ποιο πρόβλημα επιλύει κυρίως το Dual-Path RNN;

Το DPRNN αναδιοργανώνει πολύ μεγάλες ακολουθίες χρονικού τομέα σε κομμάτια, έτσι ώστε τα RNN να μπορούν να χειρίζονται τόσο το τοπικό όσο και το παγκόσμιο πλαίσιο χωρίς να πνίγονται σε μήκος.

Ποια είναι τα δύο «μονοπάτια» σε ένα RNN διπλής διαδρομής;

Ένα RNN επεξεργάζεται σε κάθε κομμάτι για τοπικά μοτίβα. οι άλλες διεργασίες σε κομμάτια για δομή μεγάλης εμβέλειας.

Πώς προετοιμάζεται η μακρά ακολουθία χαρακτηριστικών πριν από τα μπλοκ διπλής διαδρομής;

Το DPRNN διπλώνει τη μεγάλη ακολουθία σε μια μήτρα επικαλυπτόμενων τμημάτων, έτσι ώστε κάθε RNN να επεξεργάζεται μόνο ένα σύντομο παράθυρο.

Σε ποιο υπάρχον πλαίσιο εντάχθηκε το DPRNN ως αντικατάσταση διαχωριστή;

Το DPRNN αντικατέστησε τον διαχωριστή TCN εντός του αγωγού Conv-TasNet, διατηρώντας τον κωδικοποιητή και τον αποκωδικοποιητή που μάθατε.

Ποιο μεταγενέστερο μοντέλο διατήρησε τη δομή διπλής διαδρομής του DPRNN αλλά αντικατέστησε τα RNN με μετασχηματιστές;

Το SepFormer επαναχρησιμοποίησε τη σχεδίαση διπλής διαδρομής intra/inter-chunk, αλλά άλλαξε τα επαναλαμβανόμενα κελιά με την αυτοπροσοχή του Transformer.

Συνέχισε να μαθαίνεις

Σχετικοί οδηγοί

Επιλέχθηκαν περισσότεροι οδηγοί για αυτό το θέμα

Λάβετε ένα δωρεάν πιστοποιητικό AIΈνα σύντομο δωρεάν μάθημα και εξέταση. Χωρίς κόστος, χωρίς κάρτα. Περίπου 2,5 ώρες.Ξεκινήστε δωρεάν →