GautamKishore commited on
Commit
9585155
Β·
verified Β·
1 Parent(s): 693f2f1

docs: corrected augmentation wording, figures, adapter links, citation

Browse files
Files changed (1) hide show
  1. README.md +22 -14
README.md CHANGED
@@ -109,7 +109,9 @@ model-index:
109
  > by [Eulogik](https://eulogik.com) β€” Frontier Edge AI Β· Vernacular Intelligence Β· [eulogik.com](https://eulogik.com)
110
 
111
 
112
- > **TL;DR:** PolyWhisper v9 is a production-ready automatic speech recognition (ASR) system for **Hindi, Tamil, Telugu, Bengali, and Marathi**. It pairs a **frozen OpenAI Whisper-Small backbone (244M params)** with tiny **per-language LoRA adapters (~14MB each)**. Bengali WER drops **βˆ’28.2%** and Marathi **βˆ’79.6%** versus the no-augmentation baseline β€” at roughly **1% of the storage cost** of full fine-tuning.
 
 
113
 
114
  ## ✨ Why PolyWhisper?
115
 
@@ -136,14 +138,18 @@ model-index:
136
  | Bengali | `bn` | Bengali | 181.3 | **130.2** | βœ… **βˆ’28.2%** |
137
  | Marathi | `mr` | Devanagari | 474.9 | **96.7** | βœ… **βˆ’79.6%** |
138
 
 
 
139
  ### πŸ§ͺ The v9 finding: augment per language, not globally
140
 
141
- Training with SpecAugment + speed perturbation on **all** languages damaged Hindi/Tamil (token-loop degeneration) while massively helping Bengali/Marathi. The v9 recipe augments **only `bn`/`mr`** and trains `hi`/`ta` clean:
142
 
143
  | Language | Augmentation | Result |
144
  |---|---|---|
145
- | Hindi, Tamil | none (clean) | matches no-augment baseline |
146
- | Telugu, Bengali, Marathi | SpecAugment + 0.9Γ—/1.1Γ— speed perturb | large gains on hard languages |
 
 
147
 
148
  ### 🎯 Decoding: per-language beam widths (measured, full FLEURS test)
149
 
@@ -161,13 +167,13 @@ Beam-5 + repetition penalty 1.3 helps every language **except Telugu**, where be
161
 
162
  | Language | Adapter file | Backbone | WER |
163
  |---|---|---|---|
164
- | Hindi (`hi`) | `polywhisper_output_hi/adapters_v3/hi_best_clean.pt` | `openai/whisper-small` | 46.3 |
165
- | Tamil (`ta`) | `polywhisper_output_ta/adapters_v3/ta_best_clean.pt` | `openai/whisper-small` | 70.1 |
166
- | Telugu (`te`) | `polywhisper_output_gpu0/adapters_v3/te_best_prod.pt` | `openai/whisper-small` | 100.1 |
167
- | Bengali (`bn`) | `polywhisper_output_gpu0/adapters_v3/bn_best_prod.pt` | `openai/whisper-small` | 130.2 |
168
- | Marathi (`mr`) | `polywhisper_output_gpu1/adapters_v3/mr_best_prod.pt` | `openai/whisper-small` | 96.7 |
169
 
170
- All adapters are rank-16 LoRA (decoder + encoder attention), ~14MB each. Backbone weights are **not** included β€” they load from `openai/whisper-small` at runtime.
171
 
172
  ## πŸš€ Quickstart
173
 
@@ -217,6 +223,8 @@ Pre-exported v9 graphs live under `export/onnx/` on the [Hub](https://huggingfac
217
 
218
  Files are named `{lang}_{lang}_best_prod_{encoder,decoder}{,_int8}.onnx`. INT8 is ~4Γ— smaller.
219
 
 
 
220
  **Verification:** fp32 ONNX vs PyTorch max diff < 1e-3 on all five languages (encoder + decoder). End-to-end greedy spot-checks (FLEURS audio, beam=1):
221
 
222
  | Lang | torch WER | ONNX INT8 WER |
@@ -246,8 +254,8 @@ PolyWhisper is an open-source Indic ASR toolkit: one frozen Whisper-Small backbo
246
  **How is it different from fine-tuning Whisper?**
247
  Full fine-tuning rewrites ~244M–1.5B weights per language. PolyWhisper freezes the backbone and trains ~3.5M LoRA parameters per language (~14MB), so five languages ship for the storage cost of a rounding error.
248
 
249
- **Which languages are production-ready?**
250
- All five ship working adapters. Hindi (46.3 WER) and Tamil (70.1) are strongest; Bengali and Marathi improved dramatically in v9 (βˆ’28.2% / βˆ’79.6% vs baseline) but remain the hardest languages.
251
 
252
  **Can I run it on CPU?**
253
  Yes β€” export to ONNX INT8 and run with ONNX Runtime, no GPU required.
@@ -270,8 +278,8 @@ MIT. Whisper weights Β© OpenAI. Training data: IndicVoices-ST (CC-BY) Β· Eval: F
270
 
271
  ```bibtex
272
  @misc{polywhisper2026,
273
- title = {PolyWhisper: Efficient Multilingual Indic ASR via Frozen Backbone + Per-Language LoRA},
274
- author = {Eulogik},
275
  year = {2026},
276
  publisher = {HuggingFace},
277
  url = {https://huggingface.co/eulogik/polywhisper}
 
109
  > by [Eulogik](https://eulogik.com) β€” Frontier Edge AI Β· Vernacular Intelligence Β· [eulogik.com](https://eulogik.com)
110
 
111
 
112
+ > **TL;DR:** PolyWhisper v9 is a research-ready automatic speech recognition (ASR) system for **Hindi, Tamil, Telugu, Bengali, and Marathi**. It pairs a **frozen OpenAI Whisper-Small backbone (244M params)** with tiny **per-language LoRA adapters (~14MB each)**. Bengali WER drops **βˆ’28.2%** and Marathi **βˆ’79.6%** versus the no-augmentation baseline β€” at roughly **1% of the storage cost** of full fine-tuning.
113
+
114
+ ![PolyWhisper architecture: frozen Whisper-Small backbone with swappable per-language LoRA adapters](https://raw.githubusercontent.com/eulogik/PolyWhisper/main/paper/figures/fig1_architecture.png)
115
 
116
  ## ✨ Why PolyWhisper?
117
 
 
138
  | Bengali | `bn` | Bengali | 181.3 | **130.2** | βœ… **βˆ’28.2%** |
139
  | Marathi | `mr` | Devanagari | 474.9 | **96.7** | βœ… **βˆ’79.6%** |
140
 
141
+ ![FLEURS WER by language for v7, v8, and v9 variants](https://raw.githubusercontent.com/eulogik/PolyWhisper/main/paper/figures/fig2_wer_variants.png)
142
+
143
  ### πŸ§ͺ The v9 finding: augment per language, not globally
144
 
145
+ Training with SpecAugment + speed perturbation on **all** languages damaged Hindi/Tamil (token-loop degeneration) while massively helping Bengali/Marathi. The v9 recipe augments **only `bn`/`mr`** and trains `hi`/`ta`/`te` clean:
146
 
147
  | Language | Augmentation | Result |
148
  |---|---|---|
149
+ | Hindi, Tamil, Telugu | none (clean) | avoids global-augment damage; stays near the no-augment baseline |
150
+ | Bengali, Marathi | SpecAugment + 0.9Γ—/1.1Γ— speed perturb | large gains on hard languages |
151
+
152
+ ![Relative WER change from selective v9 versus global v8 augmentation](https://raw.githubusercontent.com/eulogik/PolyWhisper/main/paper/figures/fig3_augment_delta.png)
153
 
154
  ### 🎯 Decoding: per-language beam widths (measured, full FLEURS test)
155
 
 
167
 
168
  | Language | Adapter file | Backbone | WER |
169
  |---|---|---|---|
170
+ | Hindi (`hi`) | [`polywhisper_output_hi/adapters_v3/hi_best_clean.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_hi/adapters_v3/hi_best_clean.pt) | `openai/whisper-small` | 46.3 |
171
+ | Tamil (`ta`) | [`polywhisper_output_ta/adapters_v3/ta_best_clean.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_ta/adapters_v3/ta_best_clean.pt) | `openai/whisper-small` | 70.1 |
172
+ | Telugu (`te`) | [`polywhisper_output_gpu0/adapters_v3/te_best_prod.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_gpu0/adapters_v3/te_best_prod.pt) | `openai/whisper-small` | 100.1 |
173
+ | Bengali (`bn`) | [`polywhisper_output_gpu0/adapters_v3/bn_best_prod.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_gpu0/adapters_v3/bn_best_prod.pt) | `openai/whisper-small` | 130.2 |
174
+ | Marathi (`mr`) | [`polywhisper_output_gpu1/adapters_v3/mr_best_prod.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_gpu1/adapters_v3/mr_best_prod.pt) | `openai/whisper-small` | 96.7 |
175
 
176
+ All adapters are rank-16 LoRA (decoder + encoder attention), ~14MB each. Backbone weights are **not** included β€” they load from `openai/whisper-small` at runtime. The `_prod` suffix is the v9 production-run tag, not an augmentation marker: Telugu was trained clean in the selective v9 recipe.
177
 
178
  ## πŸš€ Quickstart
179
 
 
223
 
224
  Files are named `{lang}_{lang}_best_prod_{encoder,decoder}{,_int8}.onnx`. INT8 is ~4Γ— smaller.
225
 
226
+ ![ONNX encoder/decoder sizes for fp32 versus INT8](https://raw.githubusercontent.com/eulogik/PolyWhisper/main/paper/figures/fig4_onnx_sizes.png)
227
+
228
  **Verification:** fp32 ONNX vs PyTorch max diff < 1e-3 on all five languages (encoder + decoder). End-to-end greedy spot-checks (FLEURS audio, beam=1):
229
 
230
  | Lang | torch WER | ONNX INT8 WER |
 
254
  **How is it different from fine-tuning Whisper?**
255
  Full fine-tuning rewrites ~244M–1.5B weights per language. PolyWhisper freezes the backbone and trains ~3.5M LoRA parameters per language (~14MB), so five languages ship for the storage cost of a rounding error.
256
 
257
+ **Which languages are usable?**
258
+ All five ship working adapters. Hindi (46.3 WER) and Tamil (70.1) are strongest; Telugu, Bengali, and Marathi remain high-WER research adapters, useful for assistive/search/subtitle-draft workflows rather than verbatim transcription.
259
 
260
  **Can I run it on CPU?**
261
  Yes β€” export to ONNX INT8 and run with ONNX Runtime, no GPU required.
 
278
 
279
  ```bibtex
280
  @misc{polywhisper2026,
281
+ title = {PolyWhisper: Efficient Multilingual Indic ASR via Frozen Backbone and Per-Language LoRA Adapters},
282
+ author = {Kishore, Gautam},
283
  year = {2026},
284
  publisher = {HuggingFace},
285
  url = {https://huggingface.co/eulogik/polywhisper}