facebook/wav2vec2-base (95 M parameters) fine-tuned with a character-level CTC head for English speech
recognition, from a study of noise-robust ASR with word-level error flagging (Group 9, DS & AI Lab project,
Nov 2026). Identical recipe to B960_rev with a different random seed (7); used as the second member of the ROVER system combination.
import torch, soundfile as sf
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
repo = "kumargulshan/wav2vec2-base-ls960-noise-robust-seed7"
processor = Wav2Vec2Processor.from_pretrained(repo)
model = Wav2Vec2ForCTC.from_pretrained(repo).eval()
audio, sr = sf.read("speech.wav") # mono, 16 kHz (resample first if needed)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
ids = model(inputs.input_values).logits.argmax(-1)
print(processor.batch_decode(ids)[0]) # upper-case letters, apostrophe, spaces
Output vocabulary: the same 32 symbols as facebook/wav2vec2-base-960h (A–Z, apostrophe, | word delimiter).
For the best accuracy, decode the logits with a 4-gram LibriSpeech KenLM via pyctcdecode
(we used alpha 0.8, beta 2.0, beam 50).
| Stage 1 | B460: from facebook/wav2vec2-base, LibriSpeech train-clean-100 + 360 (464 h), 80k steps, lr 1e-4 |
| Stage 2 (this model) | continued from stage 1 on all 960 h of LibriSpeech, 40k steps (≈ 6.8 epochs), peak lr 5e-5, 5 % warm-up, linear decay, seed 7 |
| Augmentation | 80 % of utterances mixed with noise at SNR 0–20 dB (white, pink, MUSAN noise, MUSAN music), 20 % kept clean; simulated-room reverberation (p 0.3); speed perturbation 0.9/1.1 (p 0.3); telephone band-limit (p 0.1) |
| Regularisation | SpecAugment-style masking (time p 0.4 / span 10, feature p 0.1 / span 64), LayerDrop 0.1, frozen CNN feature encoder |
| Optimiser | AdamW (β 0.9/0.98, weight decay 0.005), gradient clipping 1.0, bf16, duration-bucketed batches of ≤ 640 s of audio |
| Selection | checkpoint with the lowest mean dev WER (dev-clean + dev-other, clean and noisy): step 40000, dev WER 9.95 % |
| Hardware | 1 × NVIDIA L40S |
LibriSpeech test-clean + test-other (5,559 utterances) under 17 conditions: clean, and white / pink / brown noise and ESC-50 environmental sounds at 0, 5, 10, 15, 20 dB SNR (94,503 utterance-conditions, 182.7 h). Brown noise and ESC-50 were never used in training. Noise was mixed with fixed seeds per utterance, so all models see identical audio.
| WER (%) | greedy | + 4-gram LM |
|---|---|---|
| test-clean | 4.64 | 2.97 |
| test-other | 10.07 | 7.06 |
| all noisy conditions, pooled | – | 9.22 |
| white noise, 0–5 dB | 23.50 | 18.62 |
| pink noise, 0–5 dB | 18.27 | 14.07 |
| brown noise, 0–5 dB (unseen type) | 7.57 | 5.13 |
| ESC-50 sounds, 0–5 dB (unseen type) | 15.52 | 11.81 |
| Model | Description |
|---|---|
| B960_rev | best single model: 960 h, noise + reverb + speed + telephone augmentation |
| B460 | 464 h + noise augmentation |
| B_noisy | Model B: 100 h + noise augmentation |
| B2_lr1e-4 | 100 h + noise augmentation, lr 1e-4 |
| A_clean | Model A: 100 h, clean training baseline |
Apache-2.0, as the base model facebook/wav2vec2-base. Training data: LibriSpeech (CC BY 4.0) and MUSAN.
facebook/wav2vec2-base