YuCeong-May Claude Code commited on
Commit
e7a2d1b
·
verified ·
1 Parent(s): 8382ca0

Rewrite the card for WakeCue-ASR as a standalone work

Browse files

Co-Authored-By: Claude Code <noreply@anthropic.com>

Files changed (1) hide show
  1. README.md +35 -62
README.md CHANGED
@@ -10,56 +10,60 @@ tags:
10
  - target-speaker-asr
11
  - speech-recognition
12
  - multi-speaker
 
 
13
  ---
14
 
15
  # WakeCue-ASR
16
 
17
- ![Unified-TS-ASR: target-speaker ASR with a text cue, enrollment speech, or both](https://huggingface.co/YuCeong-May/WakeCue-ASR/resolve/main/assets/overview.jpg)
18
 
19
- > The model was previously published as *Text-Cue-Guided TS-ASR-Qwen*. The
20
- > repository was renamed; the weights and the SHA-256 below are unchanged.
 
 
 
 
 
21
 
22
- WakeCue-ASR is a target-speaker speech recognizer. Given a
23
- recording where several people talk at once and a short **text cue** (a few
24
- words the target speaker says), it transcribes only the speaker who says the
25
- cue and ignores everyone else. If nobody says the cue, it rejects the request.
26
-
27
- - Demo: [WakeCue-ASR](https://yuceong-may-unified-ts-asr.hf.space/wakecue/). ZeroGPU
28
- hosting is shared with the Unified-TS-ASR demo on the same Space, so the
29
- interactive app runs at `/wakecue` beside it; the
30
- [WakeCue-ASR Space](https://huggingface.co/spaces/YuCeong-May/WakeCue-ASR) page
31
- embeds the same app.
32
  - Inference code: the `tcg_tsasr` package in the WakeCue-ASR Space repository.
33
- - Paper: [Unified Target-Speaker ASR with Text and Enrollment Speech Cues](https://arxiv.org/abs/2609.33853) (arXiv:2609.33853)
34
- - Code: [github.com/YuCeong-May/Unified-TS-ASR](https://github.com/YuCeong-May/Unified-TS-ASR)
35
- - Unified-TS-ASR model: [`YuCeong-May/Unified-TS-ASR`](https://huggingface.co/YuCeong-May/Unified-TS-ASR)
36
  - Language: Mandarin Chinese, 16 kHz audio. Audio within 20 seconds is recommended.
 
 
 
 
37
 
38
- ## Model
39
 
40
  ```
41
- text cue --> CueTokenizer --> CueEncoder --------------------.
42
- v cross-attention in every layer
43
- 16 kHz audio --> 80-dim fbank --> AcousticEncoder (9 x Conformer) --> AudioProjector --> Qwen2.5-0.5B + LoRA
 
 
44
  ```
45
 
46
  | Component | Details | Parameters |
47
  |---|---|---:|
48
- | Front end | 80-dim kaldi fbank, 25 ms window, 10 ms shift | - |
49
  | CueEncoder | 8406-unit cue vocabulary (Chinese characters and subwords) + 4 Transformer layers, dim 256 | 7.5 M |
50
- | AcousticEncoder | 2 x Conv2d (stride 2, 4x subsampling to 25 Hz) + 9 Conformer layers (dim 256, 4 heads, FFN 2048, conv kernel 15); every layer cross-attends to the cue | 27.5 M |
51
- | AudioProjector | Gated 4-frame Conv1d, stride 2 (12.5 audio tokens/s), bottleneck, projected to 896 | 3.6 M |
52
  | LLM | Qwen2.5-0.5B (24 layers, hidden 896) with LoRA r = 64, alpha = 128 on q/k/v/o, gate/up/down and lm_head | 494 M base + 45 M LoRA |
 
 
53
 
54
- The LLM is prompted with the cue and generates greedily:
 
55
 
56
- - `<psok>cue<peok>transcript` when the target speaker is found. The cue is
57
  bracketed where it occurs; the demo strips the brackets.
58
- - `<reject/>` when the cue is not in the audio, or `<psok>cue<peok><reject/>`
59
- when the cue is heard but not from the target speaker.
60
 
61
  `model.pt` (1.6 GB) holds every weight the model needs, including the Qwen2.5-0.5B
62
- base weights, so nothing else is downloaded. The checkpoint also contains a
63
  training-only speaker-classification head (1.8 M), which inference ignores.
64
 
65
  The model has 579 M parameters, 85 M of them trainable (the LoRA adapters and
@@ -69,8 +73,6 @@ Qwen input embedding and output head are tied and, since LoRA is applied to
69
  `lm_head.base_layer.weight` (element-wise identical). That duplicate is what
70
  makes the file 1.6 GB; it is not an extra trained module.
71
 
72
- - SHA-256: `870aef70a8a8c2b292b3eb959ea4a0907edc751848729070aea04465b449fcf5`
73
-
74
  ```python
75
  from tcg_tsasr import TextCueGuidedTSASR # from the Space repository
76
 
@@ -78,6 +80,7 @@ asr = TextCueGuidedTSASR.from_pretrained("YuCeong-May/WakeCue-ASR")
78
  out = asr.transcribe("examples/0.wav", "附近居民")
79
  print(out["text"], out["rejected"])
80
  ```
 
81
  ## Results on TS-Aishell
82
 
83
  TS-Aishell mixes two speakers from AISHELL-1 and the AISHELL-2 test sets (iOS,
@@ -85,8 +88,6 @@ Android, Mic, and a cross-device mix). Each of the five test sets has 6000
85
  mixtures. The text cue is 2-5 consecutive characters taken from the target
86
  transcript. Decoding is greedy.
87
 
88
- ### WakeCue-ASR, by cue length
89
-
90
  CER / SER / reject rate in %. A rejected utterance is scored on whatever text the
91
  model produced.
92
 
@@ -99,36 +100,8 @@ model produced.
99
  | aishell-mix-ts | 8.35 / 37.55 / 2.78 | 5.91 / 32.37 / 2.63 | 4.76 / 28.55 / 3.32 | **3.94** / 23.70 / 5.40 |
100
 
101
  Longer cues help: going from 2 to 5 characters cuts CER by 42-57 % relative.
102
-
103
- ### Comparison with Unified-TS-ASR
104
-
105
- Unified-TS-ASR (Conformer + CTC, 37 M parameters, with its own
106
- [demo Space](https://huggingface.co/spaces/YuCeong-May/Unified-TS-ASR)) attends
107
- to a text cue and an enrollment recording of the target speaker (first 5 s). The
108
- table compares both models at the 5-character cue; Unified-TS-ASR additionally
109
- gets the enrollment. Both use the same 6000 mixtures per set, and both CERs are
110
- computed on the output text, including rejected utterances.
111
-
112
- | Test set | WakeCue-ASR<br>text cue | Unified-TS-ASR<br>text cue + enrollment |
113
- |---|---|---|
114
- | | CER / SER / reject % | CER / SER / reject % |
115
- | aishell1-ts | **1.83** / **13.90** / 0.57 | 5.12 / 37.98 / 0.13 |
116
- | aishell-ios-ts | **6.34** / **29.25** / 7.58 | 9.94 / 49.23 / 0.32 |
117
- | aishell-android-ts | **8.76** / **34.58** / 6.50 | 12.06 / 55.57 / 0.80 |
118
- | aishell-mic-ts | **6.42** / **30.23** / 6.68 | 9.31 / 47.75 / 0.20 |
119
- | aishell-mix-ts | **3.94** / **23.70** / 5.40 | 9.27 / 47.77 / 25.53 |
120
-
121
- - WakeCue-ASR has lower CER on every set (2.9-5.3 points
122
- absolute) and much lower SER, at about 16x the parameters (579 M vs 37 M)
123
- and autoregressive decoding.
124
- - It also rejects more often (5-8 % on AISHELL-2 sets, vs under 1 % for
125
- Unified-TS-ASR), so it is more conservative when the cue is unclear.
126
- - Unified-TS-ASR's 25.5 % reject rate on aishell-mix-ts comes from enrollments
127
- recorded on a different device than the target speech: 33.7 % of those
128
- mismatched pairs (1502 / 4455) are rejected as "speaker not found", vs 0.9 %
129
- (14 / 1545) for same-device pairs.
130
- - The released Unified-TS-ASR checkpoint was trained and evaluated with both cues
131
- present; text-only or enrollment-only use in the demo is outside that setting.
132
 
133
  ## Limitations
134
 
 
10
  - target-speaker-asr
11
  - speech-recognition
12
  - multi-speaker
13
+ - wake-word
14
+ - enrollment-free
15
  ---
16
 
17
  # WakeCue-ASR
18
 
19
+ ![WakeCue-ASR: a speech-LLM framework for enrollment-free, wake-word-guided target-speaker ASR](https://huggingface.co/YuCeong-May/WakeCue-ASR/resolve/main/assets/wakecue-asr.png)
20
 
21
+ **WakeCue-ASR** is a speech-LLM framework for **enrollment-free, wake-word
22
+ guided target-speaker ASR** in complex noisy scenarios. Several people talk at
23
+ once, and the target speaker's command starts with a wake word. Given that wake
24
+ word as a **text cue** — no enrollment recording and no speaker embedding — the
25
+ model transcribes only the speaker who says it and ignores everyone else. If the
26
+ cue is absent, or is said by another speaker, it returns `<reject/>` instead of
27
+ transcribing the wrong person.
28
 
29
+ - Demo: [WakeCue-ASR Space](https://huggingface.co/spaces/YuCeong-May/WakeCue-ASR)
 
 
 
 
 
 
 
 
 
30
  - Inference code: the `tcg_tsasr` package in the WakeCue-ASR Space repository.
 
 
 
31
  - Language: Mandarin Chinese, 16 kHz audio. Audio within 20 seconds is recommended.
32
+ - Weights: `model.pt` (1.6 GB), SHA-256
33
+ `870aef70a8a8c2b292b3eb959ea4a0907edc751848729070aea04465b449fcf5`.
34
+
35
+ ## Architecture
36
 
37
+ ![WakeCue-ASR architecture](https://huggingface.co/YuCeong-May/WakeCue-ASR/resolve/main/assets/architecture.png)
38
 
39
  ```
40
+ cue w ("Hi, Tesla") --> CueEncoder (Transformer x 4) -------------.
41
+ v cross-attention in every layer
42
+ mixture x (wake word --> fbank + conv subsampling (4x) --> Conformer x 9 --> Projector --> Qwen2.5-0.5B + LoRA
43
+ + command + noise, (stride 2)
44
+ overlapping talkers)
45
  ```
46
 
47
  | Component | Details | Parameters |
48
  |---|---|---:|
49
+ | Front end | 80-dim kaldi fbank, 25 ms window, 10 ms shift, conv subsampling (4x) to 25 Hz | - |
50
  | CueEncoder | 8406-unit cue vocabulary (Chinese characters and subwords) + 4 Transformer layers, dim 256 | 7.5 M |
51
+ | AcousticEncoder | 9 Conformer layers (dim 256, 4 heads, FFN 2048, conv kernel 15); every layer cross-attends to the cue | 27.5 M |
52
+ | Projector | Gated 4-frame Conv1d, stride 2 (12.5 audio tokens/s), bottleneck, projected to 896 | 3.6 M |
53
  | LLM | Qwen2.5-0.5B (24 layers, hidden 896) with LoRA r = 64, alpha = 128 on q/k/v/o, gate/up/down and lm_head | 494 M base + 45 M LoRA |
54
+ | CTC head | On the Conformer stack, stage 1 only | 2.2 M |
55
+ | Speaker head | Speaker classification, stage 4 only | 1.8 M |
56
 
57
+ The CTC head and the speaker head are training-time auxiliaries and are not used
58
+ at inference. The LLM is prompted with the cue and decodes greedily:
59
 
60
+ - `<psok>cue<peok>command` when the target speaker is found. The cue is
61
  bracketed where it occurs; the demo strips the brackets.
62
+ - `<psok>cue<peok><reject/>` when the cue is heard but not from the target speaker.
63
+ - `<reject/>` when the cue is not in the audio.
64
 
65
  `model.pt` (1.6 GB) holds every weight the model needs, including the Qwen2.5-0.5B
66
+ base weights, so nothing else is downloaded. The checkpoint also contains the
67
  training-only speaker-classification head (1.8 M), which inference ignores.
68
 
69
  The model has 579 M parameters, 85 M of them trainable (the LoRA adapters and
 
73
  `lm_head.base_layer.weight` (element-wise identical). That duplicate is what
74
  makes the file 1.6 GB; it is not an extra trained module.
75
 
 
 
76
  ```python
77
  from tcg_tsasr import TextCueGuidedTSASR # from the Space repository
78
 
 
80
  out = asr.transcribe("examples/0.wav", "附近居民")
81
  print(out["text"], out["rejected"])
82
  ```
83
+
84
  ## Results on TS-Aishell
85
 
86
  TS-Aishell mixes two speakers from AISHELL-1 and the AISHELL-2 test sets (iOS,
 
88
  mixtures. The text cue is 2-5 consecutive characters taken from the target
89
  transcript. Decoding is greedy.
90
 
 
 
91
  CER / SER / reject rate in %. A rejected utterance is scored on whatever text the
92
  model produced.
93
 
 
100
  | aishell-mix-ts | 8.35 / 37.55 / 2.78 | 5.91 / 32.37 / 2.63 | 4.76 / 28.55 / 3.32 | **3.94** / 23.70 / 5.40 |
101
 
102
  Longer cues help: going from 2 to 5 characters cuts CER by 42-57 % relative.
103
+ The model is deliberately conservative: it rejects 5-8 % of AISHELL-2
104
+ utterances when the cue is unclear rather than transcribing another speaker.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
  ## Limitations
107