Adapting Whisper for Code-Switching through Encoding Refining and Language-Aware Decoding

Jiahui Zhao, Hao Shi, Chenrui Cui, Tianrui Wang, Hexin Liu +3 more
12/21/2024
cs.CLcs.SDeess.AS

No confident code implementation found for this paper.

Abstract

Code-switching (CS) automatic speech recognition (ASR) faces challenges due to the language confusion resulting from accents, auditory similarity, and seamless language switches. Adaptation on the pre-trained multi-lingual model has shown promising performance for CS-ASR. In this paper, we adapt Whisper, which is a large-scale multilingual pre-trained speech recognition model, to CS from both encoder and decoder parts. First, we propose an encoder refiner to enhance the encoder's capacity of intra-sentence swithching. Second, we propose using two sets of language-aware adapters with different language prompt embeddings to achieve language-specific decoding information in each decoder layer. Then, a fusion module is added to fuse the language-aware decoding. The experimental results using the SEAME dataset show that, compared with the baseline model, the proposed approach achieves a relative MER reduction of 4.1% and 7.2% on the dev_man and dev_sge test sets, respectively, surpassing state-of-the-art methods. Through experiments, we found that the proposed method significantly improves the performance on non-native language in CS speech, indicating that our approach enables Whisper to better distinguish between the two languages.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2024adapting,
  title  = {Adapting Whisper for Code-Switching through Encoding Refining and Language-Aware Decoding},
  author = {Jiahui Zhao and Hao Shi and Chenrui Cui and Tianrui Wang and Hexin Liu and Zhaoheng Ni and Lingxuan Ye and Longbiao Wang},
  year   = {2024},
  eprint = {2412.16507},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.16507v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.16507.svg)](https://codeofpaper.com/paper/2412.16507)

Discussion