Repository navigation
aligners: BFA 2.1.0, on CUPE-3-en - #37
Conversation
|
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.
On closure merging. FA-Bench already has it as a TIMIT dataset option, 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.
|
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.
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. |
…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.
|
|
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.
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.
So the TIMIT dev set is Kaldi's
Please use the TIMIT list, not TIMIT's own What happens next
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, |
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.
bfaon CUPE-3-en, BFA's English model (ph66 phone set, espeak-ng G2P). Thebfa_mbfa_latinrecipe stays in the repo, off the board.bournemouth-forced-aligner[ph66]==2.1.0. The cu128 torch 2.8.0 re-pin is unchanged, andrequirements.lockis regenerated.PhonemeTimestampAligneris nowBFA), with newmodelandnonspeechsettings.bfa_on_qwen3asr/config.yamlis unchanged. It names no model, so with this worker it would run theen-uspreset'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-ensince 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: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):How the settings were chosen:
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 lists2.1.0 fills gaps the transcript doesn't cover with
SIL/noiseentries markedinserted: true.dropremoves them;silkeeps them, labelledSIL. On the clean dev lists:dropsildropsilThe 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 onmainat4301efd. All 20 cells returned every utterance, with none absent or empty.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/envbuilt by the updateddownload_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.shwithFABENCH_CELLSper split.Noisy cells:
fabench prepare --corpus timit,buckeye --subset dev,core_test,test, thengen_noisy_configs.py. The cells ran in parallel with the samefabench run --configcommandrun_noisy_evals.shuses.wav-reverberate: built fromtools/kaldiwithtools/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 resultdatasets/prep/README.mddocuments 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 --worktreepasses (lint, test, selftest).test_bfa_real_audioandtests/reproskip here, because their inputs aren't on this machine.