Skip to content

aligners: BFA 2.1.0, on CUPE-3-en - #37

Merged
weiwchu merged 1 commit into
olewave:mainfrom
tabahi:bfa-2.1.0
Nov 30, 2026
Merged

weiwchu merged 1 commit into
olewave:mainfrom
tabahi:bfa-2.1.0

Conversation

@tabahi

@tabahi tabahi commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR moves BFA from 1.1.5 to 2.1.0. It no longer changes the scorer, which goes through #36. Output files and BFA's source are not included.

  • The board row is bfa on CUPE-3-en, BFA's English model (ph66 phone set, espeak-ng G2P). The bfa_mbfa_latin recipe stays in the repo, off the board.
  • Install: pins bournemouth-forced-aligner[ph66]==2.1.0. The cu128 torch 2.8.0 re-pin is unchanged, and requirements.lock is regenerated.
  • Worker and adapter: use the 2.x API (PhonemeTimestampAligner is now BFA), with new model and nonspeech settings.
  • bfa_on_qwen3asr/config.yaml is unchanged. It names no model, so with this worker it would run the en-us preset's model, mbfa-latin, not CUPE-3-en. I did not re-run that row.

Your three questions

1. Which data trained CUPE-3-en? As the model card says LibriSpeech libri_500h (~497 h), one epoch, warm-started from pa07e. It gives the chain as pa07a (MLS, 7 languages, 100 h) → pa07b (libri_360h) → pa07c, pa07d, pa07e (libri_500h) → pa07f, the released model. The 400 TIMIT probe clips were never trained on. If you want to control for the training data, CUPE3-en-base is the root model trained only on LibroSpeech (it's a benchmark against LibriSpeech-only MFA model). These answers follow the published READMEs, and confirmed on my private wandb logs.

2. Which TIMIT clips picked its checkpoint? This doesn't apply to CUPE-3-en since this model was finetuned for only 1 epoch (last round). The checkpoint picker works effectively only for mbfa-latin models, which we aren't evaluating here. Nonetheless, The tune half of the 400-clip probe, which is its 200 even-indexed clips. The other 200 are the holdout half. The tune half also picked the decoder published with the model. All 400 clips come from TIMIT's TEST portion. compared with the FA-Bench lists:

Probe half Clips In core test In dev
Tune 200 18 41
Holdout 200 25 59

3. Which files did the decoder sweeps use? Both the 2.0.1 sweep and its 2.1.0 rerun use the same seeded subsets (random.Random(42).sample):

  • TIMIT: 1,000 of the 6,300 utterances. 22 are in core test, 67 in dev and 600 in train.
  • Buckeye: 10 whole interviews: s0201b, s0306a, s0401b, s0501b, s0803a, s0902a, s1003a, s2501a, s2901b and s2902a. Four are from test speakers (s04, s05, s10, s25), one is from a dev speaker (s08), and five are from train speakers.

How the settings were chosen:

  • Contrast window 33: As BFA's docs says, it was chosen by a decode-time sweep on TIMIT and Buckeye.
  • Onset bonus 15: As in the docs, it was chosen for conversational speech. On full Buckeye, 15 beats 30 for every model scored, while on read TIMIT the two are within about one point. Full Buckeye includes all eight FA-Bench test speakers.
  • 2.1.0's pause and non-speech settings: the surviving tuning scripts score 95 hand-reviewed Common Voice English clips WildPhonemes. The changelog also reports before and after scores for the new defaults on 1,000 TIMIT files and 10 Buckeye files. I can't rule out that those scores influenced the settings.

So for "Used test set for training or tuning?", the answer is Yes, for tuning, on both corpora. The decoder settings were not picked on FA-Bench's dev lists alone.

nonspeech: compared on the dev lists

2.1.0 fills gaps the transcript doesn't cover with SIL/noise entries marked inserted: true. drop removes them; sil keeps them, labelled SIL. On the clean dev lists:

Dev list Setting phone MAE ms PER % phone F1 word TS F1
TIMIT drop 19.2 34.3 0.352 0.665
TIMIT sil 20.1 28.8 0.422 0.665
Buckeye drop 24.8 30.6 0.435 0.624
Buckeye sil 24.7 36.6 0.405 0.624

The lists disagree, so the dev scores don't pick a clear winner. I kept drop, and BFA's own evaluation doesn't score inserted entries either. My first comparison also looked at TIMIT core test, so this was not a blind choice. The numbers are in the config comment.

Results

bfa (CUPE-3-en, nonspeech: drop), scored with the scorer on main at 4301efd. All 20 cells returned every utterance, with none absent or empty.

Split Condition word TS F1 word TS MAE ms word MAE ms word F1 phone MAE ms phone F1 PER %
TIMIT dev clean 0.665 21.8 25.1 0.630 19.2 0.352 34.3
reverb 0.564 29.3 33.4 0.541 21.4 0.344 34.3
noise 0.587 33.4 38.4 0.553 26.8 0.336 34.3
music 0.610 29.7 34.6 0.573 23.2 0.346 34.3
babble 0.575 33.9 40.2 0.534 25.2 0.339 34.3
TIMIT core test clean 0.684 20.7 24.3 0.653 19.3 0.328 36.2
reverb 0.565 29.3 33.8 0.543 21.7 0.322 36.2
noise 0.586 35.3 41.4 0.560 29.7 0.317 36.2
music 0.624 30.0 35.8 0.588 24.3 0.325 36.2
babble 0.568 34.4 42.0 0.533 24.5 0.319 36.2
Buckeye dev clean 0.624 26.8 28.9 0.621 24.8 0.435 30.6
reverb 0.519 33.9 35.8 0.529 29.5 0.399 30.6
noise 0.512 43.3 45.5 0.524 38.8 0.398 30.6
music 0.512 45.0 47.4 0.523 40.5 0.399 30.6
babble 0.469 51.4 53.9 0.485 47.4 0.382 30.6
Buckeye test clean 0.614 26.2 29.5 0.610 23.4 0.421 32.1
reverb 0.506 33.6 36.7 0.516 28.1 0.384 32.1
noise 0.515 44.3 47.4 0.526 39.7 0.386 32.1
music 0.526 41.5 45.2 0.531 36.6 0.393 32.1
babble 0.476 49.6 53.7 0.488 44.6 0.373 32.1

Unrelated tidbits: There are different robustness tests in the updated paper. We picked the robustness tests based on the problems we commonly see the Common Voice data. In our preliminary test, the noise and babble tests didn't have much impact on the aligner until the SNR was amped up to 3db to 0db, where 0db means the noise is just as loud as the signal.

How it was run

  • Hardware and drivers: 2× RTX A6000, driver 535.183.01.

  • BFA env: evals/aligners/bfa/repo/env built by the updated download_and_install.sh, on Python 3.13.9 with torch 2.8.0+cu128, phonemizer 3.6.0 and espeak-ng 1.51.

  • Models: HF revision Tabahi/CUPE-3-en@d6c2f6b5.

  • Clean cells: run_evals.sh with FABENCH_CELLS per split.

  • Noisy cells: fabench prepare --corpus timit,buckeye --subset dev,core_test,test, then gen_noisy_configs.py. The cells ran in parallel with the same fabench run --config command run_noisy_evals.sh uses.

  • wav-reverberate: built from tools/kaldi with tools/build_wav_reverberate.sh, linking Kaldi's own OpenBLAS.

  • Noisy audio vs. reference_audio_202610.sha256: TIMIT matches 1–13 files per condition byte for byte, and Buckeye 0 of 396. That's the result datasets/prep/README.md documents for an OpenBLAS build: the draws are exact, and the samples differ by a few LSB, 75–90 dB below the signal. A rerun on your pinned binary may move the noisy numbers in the last digit.

  • Dev reruns: the two clean dev cells are from a second run with the same settings. It matched the first run's PER exactly, and the other scores to within 0.0003.

  • Checks: tools/ci.sh --worktree passes (lint, test, selftest). test_bfa_real_audio and tests/repro skip here, because their inputs aren't on this machine.

@weiwchu

weiwchu commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

TL;DR Please split this PR. The BFA 2.1.0 commit can merge after five small fixes and a reproduction here. The scorer changes go through #36 instead.

Thank you for the PR and for #36. You moved fast, and both are useful.

Could you split this PR in two? The BFA 2.1.0 commit can go in by itself once I have reproduced its cells here. The scoring commit moves the phone numbers of every row on the board, so I would rather take the scorer through #36. I will open a PR for it there and ask for your review, since you found the case.

For the BFA commit, five small things.

  1. Please answer the three questions from my comment on records: how each Track 1 system used TIMIT and Buckeye #35 in the PR text. They ask which data trained CUPE-3-en, which TIMIT clips picked its checkpoint, and which files the decoder sweeps used.
  2. The commit says nonspeech: drop was picked by its scores on TIMIT, and your TIMIT cell is the core test. Could you pick it on the dev lists, and say so in the config comment?
  3. The board keeps one row per system. I will list CUPE-3-en. The bfa_mbfa_latin recipe can stay in the repo, off the board.
  4. Please leave evals/timestamp_asrs/bfa_on_qwen3asr/config.yaml as it is. I will decide on that row separately.
  5. Please drop the Co-Authored-By and Claude-Session lines from both commit messages. This repo's history carries no tool attribution.

On closure merging. FA-Bench already has it as a TIMIT dataset option, merge_closures in the dataset config, off by default. It folds each closure into its burst, as your function does, and writes its own gold cache. The paper reports numbers with it off. A second switch in the scorer would do the same job in two places.

On #36. I replied there with what I found and what I plan to change.

BFA 2.0.0 replaced the 1.x CUPE-2 + CTC aligner with new acoustic models
at 5 ms frames and a segmental Viterbi decoder, and renamed
PhonemeTimestampAligner to BFA, so the 1.1.5 worker no longer imports.

- Pin bournemouth-forced-aligner[ph66]==2.1.0. The ph66 extra brings
  phonemizer, which CUPE-3-en's espeak-ng G2P needs. The cu128 torch
  re-pin stays, so the env still runs on a CUDA 12.9 driver.
- worker.py uses the 2.x API and takes the model by name. The board row
  runs CUPE-3-en, BFA's English model. exps/mbfa_latin, off the board,
  runs the model the en-us preset picks on its own.
- 2.1.0 fills gaps the transcript does not cover with SIL/noise entries
  marked inserted. `nonspeech: drop` (default) removes them, which leaves
  the transcript's phones plus punctuation SIL. `sil` keeps them as SIL.
  The two were compared on the dev lists, which disagree: sil has better
  PER and phone F1 on TIMIT dev, drop on Buckeye dev. Word scores are
  equal. drop is the author's choice, and BFA's own evaluation does not
  score inserted entries either. The config comment has the numbers.
- requirements.lock regenerated from the env the install script builds.
- CHANGELOG entry under Unreleased.
@tabahi tabahi changed the title BFA 2.1.0 bump and F1 fix aligners: BFA 2.1.0, on CUPE-3-en Nov 30, 2026
@tabahi

tabahi commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. #37 now has only the BFA 2.1.0 commit, with your five points addressed and your three questions answered in the description. The dev lists disagree on nonspeech, so I kept drop and put both results in the config comment. I'm happy to leave the scorer to #36.

@weiwchu

weiwchu commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

TL;DR I reproduced all ten test cells here, and every number in your table matches apart from one phone MAE in the last digit. That is the noisy audio difference you predicted. Once CI passes, the PR can merge and the board row moves to BFA 2.1.0.

Thank you for the split and for the careful answers.

Reproduction. I ran your commit on the board's pinned audio, TIMIT core test and Buckeye test, clean and in the four degraded conditions. Every word and phone score in your table matches to the digit shown. The one difference is phone MAE on Buckeye noise, 39.6 ms here against your 39.7 ms.

How the row will read. From your answers, BFA's row answers the four questions this way. Please tell me if any of it is wrong.

Question Answer
Training recipe released? No, unless the code that trained CUPE-3-en is public
Used training set for training? No
Used dev set for training? No
Used test set for training or tuning? Yes, for tuning, on both corpora

Is the code that trained CUPE-3-en public? Your answer names the data and the warm-start chain, and the first column asks for the code and configuration. Without them, the board marks the two No answers as self-claimed.

CI. Each push from a fork waits for my approval before CI runs, so I will approve this run.

weiwchu added a commit that referenced this pull request Nov 30, 2026
…ccount

BFA's board row moves to 2.1.0 on CUPE-3-en (PR #37). Its author reports
that the decoder settings were tuned on TIMIT and Buckeye sets that include
core test files and test speakers, so the test question reads Yes. The
model trained on LibriSpeech from an MLS start, so the training and dev
answers stay No, starred while the training code is not public. The
README findings count one system tuned on the test sets, and 8 of 18
that cannot be checked. 1.1.5's answers stay for the recognized-words
boards, which still show it.
@weiwchu
weiwchu merged commit 7d55ac4 into olewave:main Nov 30, 2026
5 checks passed
@tabahi

tabahi commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author
Question Answer
Training recipe released? Yes, it's public. Github repo for the trainer+model+loss+recipie. The exact yaml configuration (cupe_hp.yaml) is embedded in each checkpoint published on Huggingface and also in the config file
Used training set for training? No
Used dev set for training? No
Used test set for training or tuning? Yes, for tuning, on both corpora

@weiwchu

weiwchu commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Hi Abdul (@tabahi),

Thank you again for answering our three questions in full on this PR. Your answers make BFA's row answer Yes to "Was the test set used for training or tuning?", and the board shows that from December 5.

We hope BFA can rank on settings chosen without FA-Bench's test sets. FA-Bench allows tuning on its dev sets, so could you pick the decoder settings again on the dev sets only?

The model can stay as it is. CUPE-3-en never trained on TIMIT or Buckeye, so only the decoder settings are in question.

  • The contrast window of 33 came from sweeps on 1,000 TIMIT utterances and 10 Buckeye interviews. They include 22 TIMIT core test files and 4 recordings from Buckeye test speakers.
  • The onset bonus of 15 was chosen on all of Buckeye, so all 8 test speakers were in it.
  • The probe's tune half picked the published decoder, and it holds 18 TIMIT core test files.
  • The changelog scored the pause and non-speech defaults on 1,000 TIMIT files and 10 Buckeye files. You wrote that you can't rule out that those scores influenced the settings.

Our dev splits of TIMIT and Buckeye are on GitHub. The FA-Bench paper (https://arxiv.org/abs/2609.32396) describes how we drew them.

All evaluation speakers are held out. TIMIT uses the corpus core test set and Kaldi's development split. Buckeye has no official split, so we define one while preserving its sex×age structure. Each of the four younger/older × female/male cells contributes six speakers to training and two each to development and test.

So the TIMIT dev set is Kaldi's egs/timit/s5/conf/dev_spk.list, the 50 speakers most TIMIT work uses, and the Buckeye dev set has the same mix of sex and age as the Buckeye test set.

Please use the TIMIT list, not TIMIT's own TEST/ folder. Our TIMIT dev set is carved from TEST/, and the same folder holds the core test files.

What happens next

  • If the dev sets pick the same settings, tell us in a comment with the sweep numbers. Nothing needs rerunning, and the answer becomes No.
  • If they pick different settings, send them in a new PR, as you did here. We will run the test sets once on them and replace the row.

We ask this of every row that joins or updates from now on. NeuFA and MAPS made their choices in 2022 and 2023, before FA-Bench drew its split, so their rows keep the Yes mark.

Until we hear from you, BFA 2.1.0 stays on the board as it is, with its Yes.

Could you let us know by Friday, December 11 whether this works for you?

Thank you,
Wei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants