Automatic Speech Recognition
Transformers
Safetensors
Chinese
Yue Chinese
English
qwen3_asr
asr
speech-recognition
chinese
dialect
qwen3-asr
audio
Run this model with HF Jobs
Run ASLP-lab/CN-MultiDialect-ASR on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ASLP-lab/CN-MultiDialect-ASR. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ASLP-lab/CN-MultiDialect-ASR on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ASLP-lab/CN-MultiDialect-ASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ASLP-lab/CN-MultiDialect-ASR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ASLP-lab/CN-MultiDialect-ASR")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ASLP-lab/CN-MultiDialect-ASR") model = AutoModelForMultimodalLM.from_pretrained("ASLP-lab/CN-MultiDialect-ASR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md
Browse files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239---license: apache-2.0language:- zh- yue- enpipeline_tag: automatic-speech-recognitionlibrary_name: transformerstags:- asr- speech-recognition- chinese- dialect- qwen3-asr- audiobase_model: Qwen/Qwen3-ASR-1.7Bbase_model_relation: finetune---<p align="center"><img src="https://github.com/ASLP-lab/CN-MultiDialect-ASR/raw/main/assets/logo.jpeg" width="520" alt="CN-MultiDialect-ASR logo"></p># CN-MultiDialect-ASR**On-Policy Self-Distillation for Multi-Dialect ASR: Mastering Dialects, Retaining Mandarin**<div align="center"><p><strong>Shuiyuan Wang<sup>1</sup> · Bingshen Mu<sup>1</sup> · Pengshen Zhang<sup>2</sup> · Chengyou Wang<sup>1</sup> · Yujie Liao<sup>1</sup> · Chengdong Liang<sup>2</sup> · Binbin Zhang<sup>2</sup> · Qiangze Feng<sup>3</sup> · Lei Xie<sup>1</sup></strong></p><p><sup>1</sup> Audio, Speech and Language Processing Group (ASLP@NPU), School of Computer Science, Northwestern Polytechnical University, Xi'an, China<br><sup>2</sup> WeNet Community<br><sup>3</sup> NEXDATA TECHNOLOGY INC.</p></div><div align="center">[](https://arxiv.org/abs/2608.11898)[](https://github.com/ASLP-lab/CN-MultiDialect-ASR)[](https://huggingface.co/ASLP-lab/CN-MultiDialect-ASR)</div>This repository hosts the released **CN-MultiDialect-ASR** checkpoint, adapted from [Qwen3-ASR-1.7B](https://huggingface.co/Qwen/Qwen3-ASR-1.7B) with a three-stage pipeline: continual pre-training (CPT), dialect supervised fine-tuning (SFT), and On-Policy Self-Distillation (OPSD). The goal is to improve Chinese dialect recognition **without raising Mandarin CER**.- Paper: [arXiv:2608.11898](https://arxiv.org/abs/2608.11898)- Code, demo, and training scripts: [ASLP-lab/CN-MultiDialect-ASR](https://github.com/ASLP-lab/CN-MultiDialect-ASR)<div align="center"><img src="https://github.com/ASLP-lab/CN-MultiDialect-ASR/raw/main/assets/opsd.png" alt="OPSD framework" width="90%"><p><em>Overview of the staged adaptation pipeline. Top: base model, CPT, SFT, and OPSD. Bottom: OPSD with student on-policy prefixes, a frozen teacher conditioned on the reference transcript as privileged context, soft targets q<sub>t</sub>, and token-level KL.</em></p></div>## DemoVideo demo with live waveforms and model transcriptions for Mandarin, English, four core dialects, and 15 ChinaVoices dialects.<video src="https://github.com/user-attachments/assets/5d327519-c3aa-4a0e-9213-bf35f2e86608" controls preload="metadata" playsinline width="100%" aria-label="CN-MultiDialect-ASR video demo"></video>## Key Features- **Mandarin–dialect balanced adaptation**: improves Chinese dialect ASR while retaining Mandarin recognition.- **Three-stage pipeline**: CPT strengthens the Chinese ASR foundation, dialect SFT specializes for dialects, and OPSD refines the final checkpoint.- **On-Policy Self-Distillation**: trains on student-decoded prefixes with soft teacher targets, reducing the train–test mismatch of teacher-forced ASR training.- **Drop-in inference**: compatible with the official [`qwen-asr`](https://github.com/QwenLM/Qwen3-ASR) package.## QuickstartInference is compatible with [Qwen3-ASR](https://github.com/QwenLM/Qwen3-ASR). We recommend installing the official `qwen-asr` package in a clean environment.### Environment Setup```bashconda create -n qwen3-asr python=3.12 -yconda activate qwen3-asrpip install -U qwen-asr```For faster inference with the vLLM backend:```bashpip install -U qwen-asr[vllm]```### Model DownloadYou can load the model directly from Hugging Face, or download it locally first:```bash# Hugging Facepip install -U "huggingface_hub[cli]"hf download ASLP-lab/CN-MultiDialect-ASR --local-dir ./CN-MultiDialect-ASR# ModelScope (recommended for users in Mainland China)pip install -U modelscopemodelscope download --model ASLP-lab/CN-MultiDialect-ASR --local_dir ./CN-MultiDialect-ASR```### Python InferenceLoad the model with `Qwen3ASRModel.from_pretrained` and call `transcribe`:```pythonimport torchfrom qwen_asr import Qwen3ASRModelmodel = Qwen3ASRModel.from_pretrained("ASLP-lab/CN-MultiDialect-ASR", # or "./CN-MultiDialect-ASR" for a local pathdtype=torch.bfloat16,device_map="cuda:0",# attn_implementation="flash_attention_2",max_inference_batch_size=32,max_new_tokens=256,)results = model.transcribe(audio="path/to/audio.wav",language="Chinese", # or None for automatic language detection)print(results[0].language)print(results[0].text)```Batch inference is also supported:```pythonresults = model.transcribe(audio=["path/to/mandarin.wav","path/to/dialect.wav",],language=["Chinese", "Chinese"],)for r in results:print(r.language, r.text)```For vLLM backend, streaming inference, and forced alignment, see the [Qwen3-ASR repository](https://github.com/QwenLM/Qwen3-ASR).## Method Overview| Stage | Training data | Goal | Objective ||:-----:|:--------------|:-----|:----------|| `CPT` | Full Mandarin-dialect collection (`~100k` hours) | Build a stronger Chinese ASR foundation | Cross-entropy || `SFT` | Same sources with higher dialect sampling weight and a small Mandarin anchor | Lower dialect CER | Cross-entropy || `OPSD` | Dialect refinement subset (`~5k` hours) | Improve dialect recognition without hurting Mandarin | Token-level KL |At inference time, only the student pathway is used.## Performances### Dialect Overview<div align="center"><img src="https://github.com/ASLP-lab/CN-MultiDialect-ASR/raw/main/assets/radar_1_cer_panels.png" alt="Side-by-side radar of 1-CER on public and internal dialect sets" width="92%"><p><em>Higher is better. Left: 5 public dialect sets; right: 18 internal dialects. Both panels use the same radial scale (0.2–1.0). The figure compares the Qwen3-ASR baseline with the released <strong>CN-MultiDialect-ASR</strong> (OPSD) checkpoint.</em></p></div>### Public Dialect CER (%)| Evaluation set | Dialect | Qwen3-ASR | CN-MultiDialect-ASR ||:--------------:|:-------:|:---------:|:--------------------:|| WenetSpeech-Yue Long | Cantonese | 9.99 | **8.80** || WenetSpeech-Yue Short | Cantonese | 6.93 | **5.31** || WenetSpeech-Chuan Easy | Sichuan | 12.38 | **11.86** || WenetSpeech-Chuan Hard | Sichuan | 21.79 | **21.74** || WenetSpeech-Wu | Wu | 25.74 | **16.26** || **Dialect Avg.** | | 15.37 | **12.79** |### Internal Dialect CER (%)| Dialect | Qwen3-ASR | CN-MultiDialect-ASR ||:-------:|:---------:|:--------------------:|| Anhui | 18.95 | **13.08** || Cantonese | 10.06 | **7.74** || Changsha | 14.79 | **10.23** || Chaoshan | 45.59 | **25.21** || Dongbei | 6.45 | **5.80** || Henan | 8.46 | **5.99** || Kejia | 60.47 | **28.60** || Minnan | 30.03 | **18.59** || Nanchang | 33.41 | **15.58** || Nanjing | 13.37 | **9.33** || Shanxi | 28.53 | **18.69** || Shaanxi | 9.68 | **6.28** || Shandong | 8.78 | **7.64** || Shanghai | 15.78 | 12.07 || Sichuan | 5.99 | 5.38 || Suzhou | 50.35 | **20.73** || Wuhan | 11.30 | **7.59** || Xuzhou | 6.12 | **5.04** || **Internal Avg.** | 21.01 | **12.42** |### Mandarin CER (%)| Evaluation set | Qwen3-ASR | CN-MultiDialect-ASR ||:--------------:|:---------:|:-------------------:|| AISHELL-1 | 1.57 | **1.38** || AISHELL-2 | 2.79 | **2.52** || KeSpeech | 5.11 | **4.56** || SpeechIO-1 | **0.75** | 0.86 || SpeechIO-2 | 3.83 | **3.39** || SpeechIO-3 | 1.39 | **1.27** || Test_Meeting | **6.74** | 6.85 || Test_Net | 5.46 | **5.30** || Mandarin Avg. | 3.46 | **3.27** |## CitationIf you use this model, please cite:```bibtex@misc{wang2026onpolicyselfdistillationmultidialectasr,title={On-Policy Self-Distillation for Multi-Dialect ASR: Mastering Dialects, Retaining Mandarin},author={Shuiyuan Wang and Bingshen Mu and Pengshen Zhang and Chengyou Wang and Yujie Liao and Chengdong Liang and Binbin Zhang and Qiangze Feng and Lei Xie},year={2026},eprint={2608.11898},archivePrefix={arXiv},primaryClass={eess.AS},url={https://arxiv.org/abs/2608.11898}}```## LicenseThe released model is licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0).## ContactFor questions or collaborations, please contact [wangshuiyuan@mail.nwpu.edu.cn](mailto:wangshuiyuan@mail.nwpu.edu.cn).You are also welcome to join our WeChat group for technical discussions and updates.<p align="center"><img src="https://github.com/ASLP-lab/CN-MultiDialect-ASR/raw/main/assets/wechat.jpg" width="300" alt="WeChat group QR code"><br><em>Scan to join our WeChat discussion group</em></p>
README.md+236