Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Add voice arena data (hindi and english-indian accent) and new multilingual results.
Browse files- .gitignore +2 -0
- app.py +293 -74
- constants.py +18 -10
- init.py +75 -14
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.csv
|
| 2 |
+
*.pyc
|
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
from pathlib import Path
|
| 4 |
-
from constants import BANNER, INTRODUCTION_TEXT, CITATION_TEXT, METRICS_TAB_TEXT, LEADERBOARD_CSS,
|
| 5 |
from init import load_all_info_for_version, get_version_choices, LATEST_VERSION, CHANGELOG_TEXT
|
| 6 |
from utils_display import make_clickable_model
|
| 7 |
import numpy as np
|
|
@@ -26,12 +26,21 @@ LAST_UPDATED = _changelog_date_match.group(1) if _changelog_date_match else "19
|
|
| 26 |
MULTI = {}
|
| 27 |
OVERVIEW_LABEL = "Language averages"
|
| 28 |
DATASET_DISPLAY = {"covost": "CoVoST", "mls": "MLS", "fleurs": "FLEURS"}
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Synthetic "language" in the multilingual views whose scores come from the
|
| 31 |
# main English leaderboard. Off by default in the language selectors.
|
| 32 |
ENGLISH_CODE = "en"
|
| 33 |
ENGLISH_DISPLAY = "🇬🇧 English"
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# Medals for the top-3 models in each performance column.
|
| 36 |
MEDAL_ICONS = ["🥇", "🥈", "🥉"]
|
| 37 |
# Columns that never get medals (rank, model, coverage, ranking-delta,
|
|
@@ -56,6 +65,7 @@ column_names = {
|
|
| 56 |
"LS Clean WER": "LS Clean",
|
| 57 |
"LS Other WER": "LS Other",
|
| 58 |
"SPGISpeech WER": "SPGISpeech",
|
|
|
|
| 59 |
"Voxpopuli WER": "Voxpopuli",
|
| 60 |
"Voxpopuli-AA-Cleaned WER": "Voxpopuli-AA-Cleaned",
|
| 61 |
}
|
|
@@ -88,6 +98,22 @@ AVG_COLUMNS = {
|
|
| 88 |
"Rank Δ",
|
| 89 |
}
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
EXCLUDED_AVG_COLS = METADATA_COLUMNS | AVG_COLUMNS
|
| 92 |
|
| 93 |
# Private aggregate WER columns (added onto the leaderboard from the private data).
|
|
@@ -105,7 +131,7 @@ KNOWN_LEADERBOARD_COLUMNS = DATASET_COLUMNS | METADATA_COLUMNS | {"RTFx ⬆️
|
|
| 105 |
# the aggregate WER and RTFx.
|
| 106 |
NUMERIC_SORT_COLS = DATASET_COLUMNS | {"Average WER ⬇️", "RTFx ⬆️️"}
|
| 107 |
|
| 108 |
-
csv_results, multilingual_csv_path, longform_csv_path, appen_csv_path, dataocean_csv_path, voxpopuli_fitting_csv_path, rendering_fitting_csv_paths, default_datasets = load_all_info_for_version(LATEST_VERSION)
|
| 109 |
|
| 110 |
if not csv_results.exists():
|
| 111 |
raise Exception(f"CSV file {csv_results} does not exist locally")
|
|
@@ -201,6 +227,12 @@ DATAOCEAN_CONVERSATIONAL = ["Conversational-US", "Conversational-GB"]
|
|
| 201 |
DATAOCEAN_US = ["Scripted-US", "Conversational-US"]
|
| 202 |
DATAOCEAN_NON_US = ["Scripted-GB", "Conversational-GB"]
|
| 203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
def _clean_wer(value):
|
| 205 |
"""Return a positive rounded WER, or None if missing/zero/negative/NaN."""
|
| 206 |
if value is None:
|
|
@@ -214,9 +246,26 @@ def _clean_wer(value):
|
|
| 214 |
return round(f, 2)
|
| 215 |
|
| 216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
def _lang_display(code):
|
| 218 |
"""Human-readable label for a language code, e.g. '🇩🇪 German'."""
|
| 219 |
-
info =
|
| 220 |
if info:
|
| 221 |
return f"{info['flag']} {info['name']}"
|
| 222 |
return code.upper()
|
|
@@ -229,18 +278,19 @@ def _clean_rtfx(value):
|
|
| 229 |
|
| 230 |
|
| 231 |
def _order_codes(present):
|
| 232 |
-
"""Order language codes: known (
|
| 233 |
-
codes = [c for c in
|
| 234 |
codes += [c for c in present if c not in codes]
|
| 235 |
return codes
|
| 236 |
|
| 237 |
|
| 238 |
-
def _finalize_multi(codes, lang_datasets, details, html):
|
| 239 |
"""Assemble the MULTI dict from the parsed pieces (shared by both formats).
|
| 240 |
|
| 241 |
``details[model][code]`` is expected to be ``{"avg", "datasets", "rtfx"}``;
|
| 242 |
any language a model is missing entirely is backfilled as NA so every model
|
| 243 |
-
has an entry for every language.
|
|
|
|
| 244 |
"""
|
| 245 |
for model in details:
|
| 246 |
for code in codes:
|
|
@@ -252,6 +302,7 @@ def _finalize_multi(codes, lang_datasets, details, html):
|
|
| 252 |
"html": html,
|
| 253 |
"display": {c: _lang_display(c) for c in codes},
|
| 254 |
"display_to_code": {_lang_display(c): c for c in codes},
|
|
|
|
| 255 |
}
|
| 256 |
|
| 257 |
|
|
@@ -312,13 +363,18 @@ def _build_multilingual_per_language(path_by_code):
|
|
| 312 |
codes = _order_codes(list(path_by_code.keys()))
|
| 313 |
|
| 314 |
lang_datasets, details, html = {}, {}, {}
|
|
|
|
| 315 |
for code in codes:
|
| 316 |
df = pd.read_csv(path_by_code[code])
|
| 317 |
-
# Every column other than model/RTFx is a dataset; strip the ' WER'
|
| 318 |
-
# suffix for a clean display name (e.g. 'FLEURS WER' -> 'FLEURS').
|
| 319 |
-
|
|
|
|
|
|
|
|
|
|
| 320 |
disp_names = [c.removesuffix(" WER").strip() if c.strip().endswith("WER") else c
|
| 321 |
for c in dataset_cols]
|
|
|
|
| 322 |
lang_datasets[code] = disp_names
|
| 323 |
|
| 324 |
for _, row in df.iterrows():
|
|
@@ -326,6 +382,11 @@ def _build_multilingual_per_language(path_by_code):
|
|
| 326 |
html.setdefault(model, make_clickable_model(model))
|
| 327 |
model_langs = details.setdefault(model, {})
|
| 328 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 329 |
scores = {}
|
| 330 |
for col, disp in zip(dataset_cols, disp_names):
|
| 331 |
s = _clean_wer(row.get(col))
|
|
@@ -338,7 +399,7 @@ def _build_multilingual_per_language(path_by_code):
|
|
| 338 |
"rtfx": _clean_rtfx(row.get("RTFx", row.get("rtfx"))),
|
| 339 |
}
|
| 340 |
|
| 341 |
-
return _finalize_multi(codes, lang_datasets, details, html)
|
| 342 |
|
| 343 |
|
| 344 |
def build_multilingual_data():
|
|
@@ -422,6 +483,50 @@ def _inject_english(multi):
|
|
| 422 |
multi["display_to_code"][ENGLISH_DISPLAY] = ENGLISH_CODE
|
| 423 |
|
| 424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
# Model sizes (total params, in B) hardcoded for models that don't appear in
|
| 426 |
# the English leaderboard data (which is where sizes normally come from).
|
| 427 |
# omniASR counts are from the omnilingual-asr architectures table — note the LLM
|
|
@@ -451,6 +556,18 @@ def _size_by_model():
|
|
| 451 |
return result
|
| 452 |
|
| 453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
def _multilingual_overview_df(codes):
|
| 455 |
"""Overview: one average-WER column per selected language.
|
| 456 |
|
|
@@ -479,7 +596,7 @@ def _multilingual_overview_df(codes):
|
|
| 479 |
base_cols.append("Coverage")
|
| 480 |
base_cols += ["RTFx ⬆️️", "Size (B)"] + lang_cols
|
| 481 |
|
| 482 |
-
size_map =
|
| 483 |
|
| 484 |
ranked, partial = [], []
|
| 485 |
for model, model_langs in MULTI["details"].items():
|
|
@@ -541,7 +658,7 @@ def _multilingual_zoom_df(code):
|
|
| 541 |
dataset_cols = MULTI["lang_datasets"][code] # already display names
|
| 542 |
base_cols = ["Model", f"{disp} Avg", "RTFx ⬆️️", "Size (B)"] + dataset_cols
|
| 543 |
|
| 544 |
-
size_map =
|
| 545 |
|
| 546 |
rows = []
|
| 547 |
for model, model_langs in MULTI["details"].items():
|
|
@@ -662,36 +779,47 @@ def create_private_data_dataframe():
|
|
| 662 |
"""Create private data dataframe by merging Appen and DataoceanAI benchmarks.
|
| 663 |
|
| 664 |
Averages are computed as follows:
|
| 665 |
-
- Avg WER: macro-average of per-provider averages (equal weight per provider)
|
| 666 |
- Avg Scripted: macro-average of all scripted datasets
|
| 667 |
-
- Avg Conversational: macro-average of all conversational datasets
|
| 668 |
- Avg US: macro-average of all US-accent datasets
|
| 669 |
-
- Avg
|
|
|
|
|
|
|
|
|
|
|
|
|
| 670 |
"""
|
| 671 |
appen_df = None
|
| 672 |
dataocean_df = None
|
| 673 |
-
|
|
|
|
| 674 |
# Only keep the model column and the raw per-dataset score columns;
|
| 675 |
# ignore any pre-computed average columns in the CSVs.
|
| 676 |
appen_keep_cols = ["model"] + APPEN_SCRIPTED + APPEN_CONVERSATIONAL
|
| 677 |
dataocean_keep_cols = ["model"] + DATAOCEAN_SCRIPTED + DATAOCEAN_CONVERSATIONAL
|
| 678 |
-
|
|
|
|
| 679 |
if appen_csv_path is not None and Path(appen_csv_path).exists():
|
| 680 |
appen_df = pd.read_csv(appen_csv_path)
|
| 681 |
appen_df = appen_df[[c for c in appen_keep_cols if c in appen_df.columns]]
|
| 682 |
if dataocean_csv_path is not None and Path(dataocean_csv_path).exists():
|
| 683 |
dataocean_df = pd.read_csv(dataocean_csv_path)
|
| 684 |
dataocean_df = dataocean_df[[c for c in dataocean_keep_cols if c in dataocean_df.columns]]
|
| 685 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 686 |
if appen_df is None and dataocean_df is None:
|
| 687 |
raise Exception("No private data CSV files found")
|
| 688 |
-
|
| 689 |
-
# Determine the set of models present in
|
| 690 |
models = set()
|
| 691 |
if appen_df is not None:
|
| 692 |
models |= set(appen_df["model"].tolist())
|
| 693 |
if dataocean_df is not None:
|
| 694 |
models |= set(dataocean_df["model"].tolist())
|
|
|
|
|
|
|
| 695 |
|
| 696 |
# Only keep models that also appear on the public (English short-form)
|
| 697 |
# leaderboard, matched by plain model name. (original_df's model column
|
|
@@ -702,37 +830,35 @@ def create_private_data_dataframe():
|
|
| 702 |
models = {m for m in models if m in main_model_names}
|
| 703 |
|
| 704 |
private_data_rows = []
|
| 705 |
-
private_avg_wer_map = {} # model -> avg WER for the main leaderboard column
|
| 706 |
private_scripted_map = {} # model -> avg scripted WER
|
| 707 |
private_conversational_map = {} # model -> avg conversational WER
|
| 708 |
|
| 709 |
for model_name in sorted(models):
|
| 710 |
appen_row = None
|
| 711 |
dataocean_row = None
|
|
|
|
| 712 |
if appen_df is not None and model_name in appen_df["model"].values:
|
| 713 |
appen_row = appen_df[appen_df["model"] == model_name].iloc[0]
|
| 714 |
if dataocean_df is not None and model_name in dataocean_df["model"].values:
|
| 715 |
dataocean_row = dataocean_df[dataocean_df["model"] == model_name].iloc[0]
|
|
|
|
|
|
|
| 716 |
|
| 717 |
# Collect all scores per category
|
| 718 |
all_scripted = []
|
| 719 |
all_conversational = []
|
| 720 |
all_us = []
|
| 721 |
all_non_us = []
|
| 722 |
-
|
| 723 |
-
dataocean_all = []
|
| 724 |
-
|
| 725 |
if appen_row is not None:
|
| 726 |
for col in APPEN_SCRIPTED:
|
| 727 |
v = appen_row.get(col, None)
|
| 728 |
if v is not None and v > 0:
|
| 729 |
all_scripted.append(v)
|
| 730 |
-
appen_all.append(v)
|
| 731 |
for col in APPEN_CONVERSATIONAL:
|
| 732 |
v = appen_row.get(col, None)
|
| 733 |
if v is not None and v > 0:
|
| 734 |
all_conversational.append(v)
|
| 735 |
-
appen_all.append(v)
|
| 736 |
for col in APPEN_US:
|
| 737 |
v = appen_row.get(col, None)
|
| 738 |
if v is not None and v > 0:
|
|
@@ -747,12 +873,10 @@ def create_private_data_dataframe():
|
|
| 747 |
v = dataocean_row.get(col, None)
|
| 748 |
if v is not None and v > 0:
|
| 749 |
all_scripted.append(v)
|
| 750 |
-
dataocean_all.append(v)
|
| 751 |
for col in DATAOCEAN_CONVERSATIONAL:
|
| 752 |
v = dataocean_row.get(col, None)
|
| 753 |
if v is not None and v > 0:
|
| 754 |
all_conversational.append(v)
|
| 755 |
-
dataocean_all.append(v)
|
| 756 |
for col in DATAOCEAN_US:
|
| 757 |
v = dataocean_row.get(col, None)
|
| 758 |
if v is not None and v > 0:
|
|
@@ -761,15 +885,19 @@ def create_private_data_dataframe():
|
|
| 761 |
v = dataocean_row.get(col, None)
|
| 762 |
if v is not None and v > 0:
|
| 763 |
all_non_us.append(v)
|
| 764 |
-
|
| 765 |
-
#
|
| 766 |
-
|
| 767 |
-
if
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 773 |
avg_scripted = _safe_mean(all_scripted) if all_scripted else "NA"
|
| 774 |
avg_conversational = _safe_mean(all_conversational) if all_conversational else "NA"
|
| 775 |
avg_us = _safe_mean(all_us) if all_us else "NA"
|
|
@@ -777,29 +905,22 @@ def create_private_data_dataframe():
|
|
| 777 |
|
| 778 |
private_data_rows.append({
|
| 779 |
"Model": make_clickable_model(model_name),
|
| 780 |
-
"Average WER ⬇️": avg_wer,
|
| 781 |
"Avg Scripted": avg_scripted,
|
| 782 |
"Avg Conversational": avg_conversational,
|
| 783 |
"Avg US": avg_us,
|
| 784 |
-
"Avg
|
| 785 |
})
|
| 786 |
-
|
| 787 |
-
private_avg_wer_map[model_name] = avg_wer
|
| 788 |
private_scripted_map[model_name] = avg_scripted
|
| 789 |
private_conversational_map[model_name] = avg_conversational
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
private_df
|
| 794 |
-
by="Average WER ⬇️",
|
| 795 |
-
key=lambda col: pd.to_numeric(col, errors="coerce"),
|
| 796 |
-
na_position="last",
|
| 797 |
-
)
|
| 798 |
-
return private_df, private_avg_wer_map, private_scripted_map, private_conversational_map
|
| 799 |
|
| 800 |
|
| 801 |
# Initialize private data dataframe
|
| 802 |
-
private_data_df,
|
| 803 |
|
| 804 |
# Add "Private (scripted)" and "Private (conversational)" columns to main leaderboard
|
| 805 |
# Match by plain model name (strip HTML from original_df's model column)
|
|
@@ -818,6 +939,9 @@ original_df["Private (conversational)"] = original_df[original_df.columns[0]].ap
|
|
| 818 |
# so the English average matches the version's leaderboard Average WER.
|
| 819 |
_inject_english(MULTI)
|
| 820 |
|
|
|
|
|
|
|
|
|
|
| 821 |
|
| 822 |
# Default ranking is computed lazily after default_columns is known
|
| 823 |
_default_rank = {}
|
|
@@ -847,6 +971,28 @@ def _compute_default_rank():
|
|
| 847 |
_default_rank[row[model_col]] = rank
|
| 848 |
|
| 849 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 850 |
def filter_main_table(search_query, show_proprietary, show_llm, selected_columns): # Uncomment show_llm parameter for show_llm feature
|
| 851 |
filtered_df = original_df.copy()
|
| 852 |
model_col = filtered_df.columns[0]
|
|
@@ -866,6 +1012,13 @@ def filter_main_table(search_query, show_proprietary, show_llm, selected_columns
|
|
| 866 |
# lambda x: strip_html(x) in AUDIO_LM_MODELS
|
| 867 |
# )]
|
| 868 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 869 |
# Hide toggleable columns that the user unchecked
|
| 870 |
all_toggleable = [c for c in filtered_df.columns if c not in always_visible]
|
| 871 |
columns_to_hide = set(all_toggleable) - set(selected_columns)
|
|
@@ -1181,8 +1334,39 @@ def filter_generic_table(df, search_query, show_proprietary):
|
|
| 1181 |
def filter_longform_table(search_query, show_proprietary):
|
| 1182 |
return _finalize_table(longform_df, "Average WER ⬇️", search_query, show_proprietary)
|
| 1183 |
|
| 1184 |
-
|
| 1185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1186 |
|
| 1187 |
def _pareto_dataset_choices():
|
| 1188 |
"""WER dataset columns of the main leaderboard that can be averaged over
|
|
@@ -1192,15 +1376,20 @@ def _pareto_dataset_choices():
|
|
| 1192 |
|
| 1193 |
|
| 1194 |
PARETO_XMAX_DEFAULT = 10
|
| 1195 |
-
# The multilingual Pareto
|
| 1196 |
-
#
|
| 1197 |
-
MULTI_PARETO_XMAX_DEFAULT =
|
|
|
|
| 1198 |
# RTFx (y-axis) bounds for the main-leaderboard WER-vs-RTFx Pareto. Log scale, so
|
| 1199 |
# these are raw RTFx values. Raise PARETO_RTFX_YMAX if a faster model is clipped
|
| 1200 |
# off the top (e.g. current max RTFx ≈ 13000).
|
| 1201 |
PARETO_RTFX_YMIN = 10
|
| 1202 |
PARETO_RTFX_YMAX = 20000
|
| 1203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1204 |
|
| 1205 |
|
| 1206 |
def _pareto_scatter(points, y_higher_better, y_title, y_axis, title, y_hover_label, x_max):
|
|
@@ -1244,14 +1433,21 @@ def _pareto_scatter(points, y_higher_better, y_title, y_axis, title, y_hover_lab
|
|
| 1244 |
name="Other models",
|
| 1245 |
))
|
| 1246 |
|
| 1247 |
-
# Pareto front models: text labels always visible
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1248 |
fig.add_trace(go.Scatter(
|
| 1249 |
x=pareto_df["_wer"],
|
| 1250 |
y=pareto_df["_y"],
|
| 1251 |
mode="markers+text+lines",
|
| 1252 |
marker=dict(size=10, color="dodgerblue", symbol="star"),
|
| 1253 |
text=pareto_df["_name"],
|
| 1254 |
-
textposition=
|
| 1255 |
textfont=dict(size=9),
|
| 1256 |
line=dict(dash="dash", color="dodgerblue", width=1),
|
| 1257 |
hovertemplate=hovertemplate,
|
|
@@ -1678,8 +1874,8 @@ def create_multilingual_pareto_plot(search_query="", show_proprietary=True,
|
|
| 1678 |
points,
|
| 1679 |
y_higher_better=True,
|
| 1680 |
y_title="RTFx (higher is better)",
|
| 1681 |
-
#
|
| 1682 |
-
y_axis=dict(type="log", range=[np.log10(
|
| 1683 |
title="Multilingual Pareto: Average WER (selected languages) vs RTFx",
|
| 1684 |
y_hover_label="RTFx",
|
| 1685 |
x_max=x_max,
|
|
@@ -1814,7 +2010,8 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 1814 |
f"**Select columns to display:**\n"
|
| 1815 |
f"- Toggling datasets will change the Average WER. Default datasets: {', '.join(datasets)}.\n"
|
| 1816 |
f"- **Rank Δ** shows how the ranking changes compared to the average over the default datasets.\n"
|
| 1817 |
-
f"- **Private (scripted)** and **Private (conversational)** columns show aggregated WER on private datasets from [Appen Inc.](https://huggingface.co/AppenAIResearch)
|
|
|
|
| 1818 |
)
|
| 1819 |
columns_help_md = gr.Markdown(_columns_help_text(default_datasets))
|
| 1820 |
column_checkboxes = gr.CheckboxGroup(
|
|
@@ -1850,7 +2047,8 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 1850 |
"in the languages they don't cover. The **Coverage** column (e.g. `3/5`) shows "
|
| 1851 |
"how many of the selected languages each model supports.\n\n"
|
| 1852 |
"Use **Language dataset breakdown** to break down the results for a single language's per-dataset "
|
| 1853 |
-
"results; the other languages are hidden when specifying a single language."
|
|
|
|
| 1854 |
)
|
| 1855 |
|
| 1856 |
multilingual_english_help_md = gr.Markdown(_english_help_text(default_datasets))
|
|
@@ -1974,7 +2172,12 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 1974 |
with gr.TabItem("🔒 Private data", elem_id="private-data-benchmark-tab-table", id=3):
|
| 1975 |
_tab_title_with_link(PRIVATE_DATA_TAB_TEXT, "private")
|
| 1976 |
|
| 1977 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1978 |
private_data_table = gr.components.Dataframe(
|
| 1979 |
value=_pd_val,
|
| 1980 |
datatype=_pd_dt,
|
|
@@ -1982,6 +2185,11 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 1982 |
interactive=False,
|
| 1983 |
visible=True,
|
| 1984 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1985 |
|
| 1986 |
with gr.TabItem("📊 Pareto", elem_id="pareto-tab", id=4):
|
| 1987 |
_tab_title_with_link("# Pareto Fronts\nModels on a Pareto frontier achieve the best trade-off between accuracy (WER) and, respectively, **speed** (RTFx, higher is better) and **model size** (B params, smaller is better). Names are shown for frontier models; hover over other points to see their names.\n\nSelect which datasets the Average WER is computed over — a model is plotted only if it has a score for every selected dataset. The size plot only includes open models that report a parameter count.", "pareto")
|
|
@@ -2096,7 +2304,8 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2096 |
|
| 2097 |
def _refresh_all_tables(search_query, show_proprietary, show_llm, selected_columns,
|
| 2098 |
selected_langs, zoom, pareto_datasets, pareto_xmax,
|
| 2099 |
-
multi_pareto_langs, multi_pareto_xmax, rendering_splits
|
|
|
|
| 2100 |
"""Re-apply the current search/proprietary filters to every tab's table.
|
| 2101 |
|
| 2102 |
Gradio does not repaint components inside a hidden Tab until it becomes
|
|
@@ -2107,7 +2316,7 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2107 |
main = _main_table_update(search_query, show_proprietary, show_llm, selected_columns)
|
| 2108 |
multi = render_multilingual(search_query, show_proprietary, selected_langs, zoom)
|
| 2109 |
longform = _styled_update(filter_longform_table(search_query, show_proprietary))
|
| 2110 |
-
private =
|
| 2111 |
# The Pareto plots follow the same model-name search; dataset/language
|
| 2112 |
# selection and x-axis cap are driven by their own controls.
|
| 2113 |
pareto, pareto_size = render_pareto_plots(pareto_datasets, search_query, pareto_xmax)
|
|
@@ -2126,7 +2335,8 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2126 |
pareto_dataset_checkboxes, pareto_xmax_slider,
|
| 2127 |
multilingual_pareto_lang_checkboxes,
|
| 2128 |
multilingual_pareto_xmax_slider,
|
| 2129 |
-
rendering_split_checkboxes
|
|
|
|
| 2130 |
|
| 2131 |
# Wire the shared search box / proprietary checkbox to every data tab.
|
| 2132 |
# Use a single listener per trigger (instead of one per table) so typing
|
|
@@ -2147,13 +2357,13 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2147 |
def _on_version_change(version_id):
|
| 2148 |
"""Reload all data sources for the selected version and refresh every tab."""
|
| 2149 |
global original_df, longform_df, private_data_df, benchmark_fitting_df, rendering_fitting_data
|
| 2150 |
-
global
|
| 2151 |
global csv_results, multilingual_csv_path, longform_csv_path, appen_csv_path, dataocean_csv_path
|
| 2152 |
-
global voxpopuli_fitting_csv_path, rendering_fitting_csv_paths, default_datasets
|
| 2153 |
|
| 2154 |
try:
|
| 2155 |
(
|
| 2156 |
-
new_csv, new_multi, new_longform, new_appen, new_dataocean,
|
| 2157 |
new_voxpopuli_fitting, new_rendering_fitting, new_default_datasets,
|
| 2158 |
) = load_all_info_for_version(version_id)
|
| 2159 |
|
|
@@ -2201,7 +2411,10 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2201 |
appen_csv_path = new_appen
|
| 2202 |
if new_dataocean is not None:
|
| 2203 |
dataocean_csv_path = new_dataocean
|
| 2204 |
-
|
|
|
|
|
|
|
|
|
|
| 2205 |
|
| 2206 |
# Add private-data columns back onto the main leaderboard
|
| 2207 |
original_df["Private (scripted)"] = original_df[original_df.columns[0]].apply(
|
|
@@ -2215,6 +2428,10 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2215 |
# (English average matches this version's leaderboard average).
|
| 2216 |
_inject_english(MULTI)
|
| 2217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2218 |
# Recompute default rank for the new data
|
| 2219 |
global _default_rank
|
| 2220 |
_default_rank = {}
|
|
@@ -2246,7 +2463,7 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2246 |
new_main,
|
| 2247 |
new_multi_view,
|
| 2248 |
_styled_update(filter_longform_table("", True)),
|
| 2249 |
-
|
| 2250 |
new_pareto,
|
| 2251 |
new_pareto_size,
|
| 2252 |
gr.update(choices=new_toggleable, value=new_default),
|
|
@@ -2264,6 +2481,7 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2264 |
_bench_orig, _bench_clean, _styled_update(_bench_table),
|
| 2265 |
gr.update(choices=rendering_split_choices(), value=rendering_default_splits()),
|
| 2266 |
*render_rendering_fitting("", True, rendering_default_splits()),
|
|
|
|
| 2267 |
)
|
| 2268 |
except Exception as e:
|
| 2269 |
print(f"Error switching version: {e}")
|
|
@@ -2293,12 +2511,13 @@ with gr.Blocks(css=LEADERBOARD_CSS + _TAB_LINK_CSS) as demo:
|
|
| 2293 |
gr.update(),
|
| 2294 |
gr.update(),
|
| 2295 |
gr.update(),
|
|
|
|
| 2296 |
)
|
| 2297 |
|
| 2298 |
version_dropdown.change(
|
| 2299 |
fn=_on_version_change,
|
| 2300 |
inputs=[version_dropdown],
|
| 2301 |
-
outputs=[leaderboard_table, multilingual_table, longform_table, private_data_table, pareto_plot, pareto_size_plot, column_checkboxes, columns_help_md, search_box, multilingual_lang_checkboxes, multilingual_zoom, pareto_dataset_checkboxes, pareto_xmax_slider, multilingual_pareto_plot, multilingual_size_pareto_plot, multilingual_pareto_xmax_slider, multilingual_pareto_lang_checkboxes, multilingual_english_help_md, benchmark_fitting_plot, benchmark_fitting_cleaned_plot, ref_error_table, rendering_split_checkboxes, rendering_table, rendering_scatter_plot],
|
| 2302 |
)
|
| 2303 |
|
| 2304 |
# Deep-linking: open a specific tab via ?tab=<slug> in the URL, e.g.
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
from pathlib import Path
|
| 4 |
+
from constants import BANNER, INTRODUCTION_TEXT, CITATION_TEXT, METRICS_TAB_TEXT, LEADERBOARD_CSS, LANGUAGES, MULTILINGUAL_TAB_TEXT, LONGFORM_TAB_TEXT, PRIVATE_DATA_TAB_TEXT
|
| 5 |
from init import load_all_info_for_version, get_version_choices, LATEST_VERSION, CHANGELOG_TEXT
|
| 6 |
from utils_display import make_clickable_model
|
| 7 |
import numpy as np
|
|
|
|
| 26 |
MULTI = {}
|
| 27 |
OVERVIEW_LABEL = "Language averages"
|
| 28 |
DATASET_DISPLAY = {"covost": "CoVoST", "mls": "MLS", "fleurs": "FLEURS"}
|
| 29 |
+
# Display-name overrides for per-language datasets, applied after the ' WER'
|
| 30 |
+
# suffix is stripped (e.g. Hindi's 'Monsoon' set is VoiceArena's).
|
| 31 |
+
PER_LANGUAGE_DATASET_DISPLAY = {"Monsoon": "Voice Arena Monsoon"}
|
| 32 |
|
| 33 |
# Synthetic "language" in the multilingual views whose scores come from the
|
| 34 |
# main English leaderboard. Off by default in the language selectors.
|
| 35 |
ENGLISH_CODE = "en"
|
| 36 |
ENGLISH_DISPLAY = "🇬🇧 English"
|
| 37 |
|
| 38 |
+
# VoiceArena private Hindi set: a column in the voicearena CSV surfaced as an
|
| 39 |
+
# extra dataset in the Hindi breakdown and folded into the Hindi average.
|
| 40 |
+
HINDI_CODE = "hi"
|
| 41 |
+
HINDI_PRIVATE_CSV_COLUMN = "HF_Hindi_Private_Set"
|
| 42 |
+
HINDI_PRIVATE_DISPLAY = "Voice Arena Private"
|
| 43 |
+
|
| 44 |
# Medals for the top-3 models in each performance column.
|
| 45 |
MEDAL_ICONS = ["🥇", "🥈", "🥉"]
|
| 46 |
# Columns that never get medals (rank, model, coverage, ranking-delta,
|
|
|
|
| 65 |
"LS Clean WER": "LS Clean",
|
| 66 |
"LS Other WER": "LS Other",
|
| 67 |
"SPGISpeech WER": "SPGISpeech",
|
| 68 |
+
"Voice Arena Monsoon WER": "Voice Arena Monsoon",
|
| 69 |
"Voxpopuli WER": "Voxpopuli",
|
| 70 |
"Voxpopuli-AA-Cleaned WER": "Voxpopuli-AA-Cleaned",
|
| 71 |
}
|
|
|
|
| 98 |
"Rank Δ",
|
| 99 |
}
|
| 100 |
|
| 101 |
+
# Total audio duration per public split, in seconds. Constants of the datasets,
|
| 102 |
+
# so they are the same for every model. Keyed by the leaderboard display name
|
| 103 |
+
# (matching the "<split> WER"/"<split> RTFx" CSV columns). Used to recompute the
|
| 104 |
+
# pooled RTFx over a subset of splits:
|
| 105 |
+
# pooled = sum(d[i] for i in sel) / sum(d[i] / rtfx[i] for i in sel)
|
| 106 |
+
SPLIT_DURATIONS_S = {
|
| 107 |
+
"AMI-Cleaned": 28727.6,
|
| 108 |
+
"Earnings22-Cleaned-AA-chunked": 6900.9,
|
| 109 |
+
"Gigaspeech-Cleaned": 126515.2,
|
| 110 |
+
"LS Clean": 19452.5,
|
| 111 |
+
"LS Other": 19229.6,
|
| 112 |
+
"SPGISpeech": 360007.5,
|
| 113 |
+
"Voice Arena Monsoon": 20247.6,
|
| 114 |
+
"Voxpopuli-AA-Cleaned": 7122.4,
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
EXCLUDED_AVG_COLS = METADATA_COLUMNS | AVG_COLUMNS
|
| 118 |
|
| 119 |
# Private aggregate WER columns (added onto the leaderboard from the private data).
|
|
|
|
| 131 |
# the aggregate WER and RTFx.
|
| 132 |
NUMERIC_SORT_COLS = DATASET_COLUMNS | {"Average WER ⬇️", "RTFx ⬆️️"}
|
| 133 |
|
| 134 |
+
csv_results, multilingual_csv_path, longform_csv_path, appen_csv_path, dataocean_csv_path, voicearena_csv_path, voxpopuli_fitting_csv_path, rendering_fitting_csv_paths, default_datasets = load_all_info_for_version(LATEST_VERSION)
|
| 135 |
|
| 136 |
if not csv_results.exists():
|
| 137 |
raise Exception(f"CSV file {csv_results} does not exist locally")
|
|
|
|
| 227 |
DATAOCEAN_US = ["Scripted-US", "Conversational-US"]
|
| 228 |
DATAOCEAN_NON_US = ["Scripted-GB", "Conversational-GB"]
|
| 229 |
|
| 230 |
+
# VoiceArena: a single English conversational, non-US set. Only its
|
| 231 |
+
# HF_English_Private_Set column feeds the conversational and non-US
|
| 232 |
+
# group averages (not the scripted or US groups).
|
| 233 |
+
VOICEARENA_CONVERSATIONAL = ["HF_English_Private_Set"]
|
| 234 |
+
VOICEARENA_NON_US = ["HF_English_Private_Set"]
|
| 235 |
+
|
| 236 |
def _clean_wer(value):
|
| 237 |
"""Return a positive rounded WER, or None if missing/zero/negative/NaN."""
|
| 238 |
if value is None:
|
|
|
|
| 246 |
return round(f, 2)
|
| 247 |
|
| 248 |
|
| 249 |
+
# Column name(s) a per-language multilingual CSV may use to declare a model's
|
| 250 |
+
# parameter count (case-insensitive). Kept out of the per-language dataset list.
|
| 251 |
+
SIZE_COL_NAMES = {"size (b)", "size"}
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
def _parse_size(value):
|
| 255 |
+
"""Parse a 'Size (B)' cell to a positive float, or 'NA'. Unlike WER, sizes
|
| 256 |
+
aren't rounded (a 0.6B model shouldn't display as 0.6 rounded to 2dp loss)."""
|
| 257 |
+
try:
|
| 258 |
+
f = float(value)
|
| 259 |
+
except (TypeError, ValueError):
|
| 260 |
+
return "NA"
|
| 261 |
+
if np.isnan(f) or f <= 0:
|
| 262 |
+
return "NA"
|
| 263 |
+
return f
|
| 264 |
+
|
| 265 |
+
|
| 266 |
def _lang_display(code):
|
| 267 |
"""Human-readable label for a language code, e.g. '🇩🇪 German'."""
|
| 268 |
+
info = LANGUAGES.get(code)
|
| 269 |
if info:
|
| 270 |
return f"{info['flag']} {info['name']}"
|
| 271 |
return code.upper()
|
|
|
|
| 278 |
|
| 279 |
|
| 280 |
def _order_codes(present):
|
| 281 |
+
"""Order language codes: known (LANGUAGES) order first, then extras."""
|
| 282 |
+
codes = [c for c in LANGUAGES if c in present]
|
| 283 |
codes += [c for c in present if c not in codes]
|
| 284 |
return codes
|
| 285 |
|
| 286 |
|
| 287 |
+
def _finalize_multi(codes, lang_datasets, details, html, size_by_model=None):
|
| 288 |
"""Assemble the MULTI dict from the parsed pieces (shared by both formats).
|
| 289 |
|
| 290 |
``details[model][code]`` is expected to be ``{"avg", "datasets", "rtfx"}``;
|
| 291 |
any language a model is missing entirely is backfilled as NA so every model
|
| 292 |
+
has an entry for every language. ``size_by_model`` holds any model sizes
|
| 293 |
+
declared in the language CSVs (they take precedence over the main CSV).
|
| 294 |
"""
|
| 295 |
for model in details:
|
| 296 |
for code in codes:
|
|
|
|
| 302 |
"html": html,
|
| 303 |
"display": {c: _lang_display(c) for c in codes},
|
| 304 |
"display_to_code": {_lang_display(c): c for c in codes},
|
| 305 |
+
"size_by_model": size_by_model or {}, # {model: size} from language CSVs
|
| 306 |
}
|
| 307 |
|
| 308 |
|
|
|
|
| 363 |
codes = _order_codes(list(path_by_code.keys()))
|
| 364 |
|
| 365 |
lang_datasets, details, html = {}, {}, {}
|
| 366 |
+
size_by_model = {} # model -> Size (B), when a language CSV declares it
|
| 367 |
for code in codes:
|
| 368 |
df = pd.read_csv(path_by_code[code])
|
| 369 |
+
# Every column other than model/RTFx/size is a dataset; strip the ' WER'
|
| 370 |
+
# suffix for a clean display name (e.g. 'FLEURS WER' -> 'FLEURS'). A
|
| 371 |
+
# 'Size (B)' column (optional) is captured separately, not as a dataset.
|
| 372 |
+
size_col = next((c for c in df.columns if c.strip().lower() in SIZE_COL_NAMES), None)
|
| 373 |
+
dataset_cols = [c for c in df.columns
|
| 374 |
+
if c.lower() not in ("model", "rtfx") and c != size_col]
|
| 375 |
disp_names = [c.removesuffix(" WER").strip() if c.strip().endswith("WER") else c
|
| 376 |
for c in dataset_cols]
|
| 377 |
+
disp_names = [PER_LANGUAGE_DATASET_DISPLAY.get(d, d) for d in disp_names]
|
| 378 |
lang_datasets[code] = disp_names
|
| 379 |
|
| 380 |
for _, row in df.iterrows():
|
|
|
|
| 382 |
html.setdefault(model, make_clickable_model(model))
|
| 383 |
model_langs = details.setdefault(model, {})
|
| 384 |
|
| 385 |
+
if size_col is not None:
|
| 386 |
+
size = _parse_size(row.get(size_col))
|
| 387 |
+
if size != "NA":
|
| 388 |
+
size_by_model[model] = size
|
| 389 |
+
|
| 390 |
scores = {}
|
| 391 |
for col, disp in zip(dataset_cols, disp_names):
|
| 392 |
s = _clean_wer(row.get(col))
|
|
|
|
| 399 |
"rtfx": _clean_rtfx(row.get("RTFx", row.get("rtfx"))),
|
| 400 |
}
|
| 401 |
|
| 402 |
+
return _finalize_multi(codes, lang_datasets, details, html, size_by_model)
|
| 403 |
|
| 404 |
|
| 405 |
def build_multilingual_data():
|
|
|
|
| 483 |
multi["display_to_code"][ENGLISH_DISPLAY] = ENGLISH_CODE
|
| 484 |
|
| 485 |
|
| 486 |
+
def _inject_hindi_private(multi):
|
| 487 |
+
"""Add the VoiceArena private Hindi set (``HF_Hindi_Private_Set`` in the
|
| 488 |
+
voicearena CSV) as an extra dataset column in the Hindi (``hi``) breakdown,
|
| 489 |
+
matched to models by plain name, and refold it into the Hindi average so it
|
| 490 |
+
counts alongside the public datasets.
|
| 491 |
+
|
| 492 |
+
No-op if Hindi isn't present or the CSV / column is unavailable. Idempotent:
|
| 493 |
+
re-running replaces any previous injection."""
|
| 494 |
+
code = HINDI_CODE
|
| 495 |
+
disp = HINDI_PRIVATE_DISPLAY
|
| 496 |
+
if code not in multi["codes"]:
|
| 497 |
+
return
|
| 498 |
+
if voicearena_csv_path is None or not Path(voicearena_csv_path).exists():
|
| 499 |
+
return
|
| 500 |
+
|
| 501 |
+
va_df = pd.read_csv(voicearena_csv_path)
|
| 502 |
+
if HINDI_PRIVATE_CSV_COLUMN not in va_df.columns or "model" not in va_df.columns:
|
| 503 |
+
return
|
| 504 |
+
|
| 505 |
+
private_by_model = {}
|
| 506 |
+
for _, row in va_df.iterrows():
|
| 507 |
+
wer = _clean_wer(row.get(HINDI_PRIVATE_CSV_COLUMN))
|
| 508 |
+
if wer is not None:
|
| 509 |
+
private_by_model[row["model"]] = wer
|
| 510 |
+
|
| 511 |
+
# Expose the private column once in the Hindi dataset list.
|
| 512 |
+
ds_list = multi["lang_datasets"].setdefault(code, [])
|
| 513 |
+
if disp not in ds_list:
|
| 514 |
+
ds_list.append(disp)
|
| 515 |
+
|
| 516 |
+
for model, langs in multi["details"].items():
|
| 517 |
+
info = langs.get(code)
|
| 518 |
+
if info is None:
|
| 519 |
+
continue
|
| 520 |
+
# Drop any prior injection so this can be safely re-run.
|
| 521 |
+
info["datasets"].pop(disp, None)
|
| 522 |
+
wer = private_by_model.get(model)
|
| 523 |
+
if wer is not None:
|
| 524 |
+
info["datasets"][disp] = wer
|
| 525 |
+
# Average over all Hindi datasets present (public + private).
|
| 526 |
+
vals = list(info["datasets"].values())
|
| 527 |
+
info["avg"] = round(np.mean(vals), 2) if vals else "NA"
|
| 528 |
+
|
| 529 |
+
|
| 530 |
# Model sizes (total params, in B) hardcoded for models that don't appear in
|
| 531 |
# the English leaderboard data (which is where sizes normally come from).
|
| 532 |
# omniASR counts are from the omnilingual-asr architectures table — note the LLM
|
|
|
|
| 556 |
return result
|
| 557 |
|
| 558 |
|
| 559 |
+
def _multi_size_map():
|
| 560 |
+
"""Model -> Size (B) for the multilingual views. A size declared in a
|
| 561 |
+
language CSV wins (needed for language-only models absent from the main
|
| 562 |
+
leaderboard); otherwise fall back to the main leaderboard (incl.
|
| 563 |
+
EXTRA_MODEL_SIZES), else "NA"."""
|
| 564 |
+
merged = dict(_size_by_model())
|
| 565 |
+
for model, size in MULTI.get("size_by_model", {}).items():
|
| 566 |
+
if size != "NA":
|
| 567 |
+
merged[model] = size
|
| 568 |
+
return merged
|
| 569 |
+
|
| 570 |
+
|
| 571 |
def _multilingual_overview_df(codes):
|
| 572 |
"""Overview: one average-WER column per selected language.
|
| 573 |
|
|
|
|
| 596 |
base_cols.append("Coverage")
|
| 597 |
base_cols += ["RTFx ⬆️️", "Size (B)"] + lang_cols
|
| 598 |
|
| 599 |
+
size_map = _multi_size_map()
|
| 600 |
|
| 601 |
ranked, partial = [], []
|
| 602 |
for model, model_langs in MULTI["details"].items():
|
|
|
|
| 658 |
dataset_cols = MULTI["lang_datasets"][code] # already display names
|
| 659 |
base_cols = ["Model", f"{disp} Avg", "RTFx ⬆️️", "Size (B)"] + dataset_cols
|
| 660 |
|
| 661 |
+
size_map = _multi_size_map()
|
| 662 |
|
| 663 |
rows = []
|
| 664 |
for model, model_langs in MULTI["details"].items():
|
|
|
|
| 779 |
"""Create private data dataframe by merging Appen and DataoceanAI benchmarks.
|
| 780 |
|
| 781 |
Averages are computed as follows:
|
|
|
|
| 782 |
- Avg Scripted: macro-average of all scripted datasets
|
| 783 |
+
- Avg Conversational: macro-average of all conversational datasets (incl. VoiceArena)
|
| 784 |
- Avg US: macro-average of all US-accent datasets
|
| 785 |
+
- Avg Non-US: macro-average of all non-US-accent datasets (incl. VoiceArena)
|
| 786 |
+
|
| 787 |
+
The Private-data tab's headline "Average WER" is the mean of a *grouping* pair
|
| 788 |
+
(Scripted/Conversational or US/Non-US), computed per view in
|
| 789 |
+
_private_view — not the per-provider macro-average below.
|
| 790 |
"""
|
| 791 |
appen_df = None
|
| 792 |
dataocean_df = None
|
| 793 |
+
voicearena_df = None
|
| 794 |
+
|
| 795 |
# Only keep the model column and the raw per-dataset score columns;
|
| 796 |
# ignore any pre-computed average columns in the CSVs.
|
| 797 |
appen_keep_cols = ["model"] + APPEN_SCRIPTED + APPEN_CONVERSATIONAL
|
| 798 |
dataocean_keep_cols = ["model"] + DATAOCEAN_SCRIPTED + DATAOCEAN_CONVERSATIONAL
|
| 799 |
+
voicearena_keep_cols = ["model"] + VOICEARENA_CONVERSATIONAL + VOICEARENA_NON_US
|
| 800 |
+
|
| 801 |
if appen_csv_path is not None and Path(appen_csv_path).exists():
|
| 802 |
appen_df = pd.read_csv(appen_csv_path)
|
| 803 |
appen_df = appen_df[[c for c in appen_keep_cols if c in appen_df.columns]]
|
| 804 |
if dataocean_csv_path is not None and Path(dataocean_csv_path).exists():
|
| 805 |
dataocean_df = pd.read_csv(dataocean_csv_path)
|
| 806 |
dataocean_df = dataocean_df[[c for c in dataocean_keep_cols if c in dataocean_df.columns]]
|
| 807 |
+
if voicearena_csv_path is not None and Path(voicearena_csv_path).exists():
|
| 808 |
+
voicearena_df = pd.read_csv(voicearena_csv_path)
|
| 809 |
+
# de-dup the keep list (HF_English_Private_Set appears in both splits)
|
| 810 |
+
voicearena_df = voicearena_df[[c for c in dict.fromkeys(voicearena_keep_cols) if c in voicearena_df.columns]]
|
| 811 |
+
|
| 812 |
if appen_df is None and dataocean_df is None:
|
| 813 |
raise Exception("No private data CSV files found")
|
| 814 |
+
|
| 815 |
+
# Determine the set of models present in any provider
|
| 816 |
models = set()
|
| 817 |
if appen_df is not None:
|
| 818 |
models |= set(appen_df["model"].tolist())
|
| 819 |
if dataocean_df is not None:
|
| 820 |
models |= set(dataocean_df["model"].tolist())
|
| 821 |
+
if voicearena_df is not None:
|
| 822 |
+
models |= set(voicearena_df["model"].tolist())
|
| 823 |
|
| 824 |
# Only keep models that also appear on the public (English short-form)
|
| 825 |
# leaderboard, matched by plain model name. (original_df's model column
|
|
|
|
| 830 |
models = {m for m in models if m in main_model_names}
|
| 831 |
|
| 832 |
private_data_rows = []
|
|
|
|
| 833 |
private_scripted_map = {} # model -> avg scripted WER
|
| 834 |
private_conversational_map = {} # model -> avg conversational WER
|
| 835 |
|
| 836 |
for model_name in sorted(models):
|
| 837 |
appen_row = None
|
| 838 |
dataocean_row = None
|
| 839 |
+
voicearena_row = None
|
| 840 |
if appen_df is not None and model_name in appen_df["model"].values:
|
| 841 |
appen_row = appen_df[appen_df["model"] == model_name].iloc[0]
|
| 842 |
if dataocean_df is not None and model_name in dataocean_df["model"].values:
|
| 843 |
dataocean_row = dataocean_df[dataocean_df["model"] == model_name].iloc[0]
|
| 844 |
+
if voicearena_df is not None and model_name in voicearena_df["model"].values:
|
| 845 |
+
voicearena_row = voicearena_df[voicearena_df["model"] == model_name].iloc[0]
|
| 846 |
|
| 847 |
# Collect all scores per category
|
| 848 |
all_scripted = []
|
| 849 |
all_conversational = []
|
| 850 |
all_us = []
|
| 851 |
all_non_us = []
|
| 852 |
+
|
|
|
|
|
|
|
| 853 |
if appen_row is not None:
|
| 854 |
for col in APPEN_SCRIPTED:
|
| 855 |
v = appen_row.get(col, None)
|
| 856 |
if v is not None and v > 0:
|
| 857 |
all_scripted.append(v)
|
|
|
|
| 858 |
for col in APPEN_CONVERSATIONAL:
|
| 859 |
v = appen_row.get(col, None)
|
| 860 |
if v is not None and v > 0:
|
| 861 |
all_conversational.append(v)
|
|
|
|
| 862 |
for col in APPEN_US:
|
| 863 |
v = appen_row.get(col, None)
|
| 864 |
if v is not None and v > 0:
|
|
|
|
| 873 |
v = dataocean_row.get(col, None)
|
| 874 |
if v is not None and v > 0:
|
| 875 |
all_scripted.append(v)
|
|
|
|
| 876 |
for col in DATAOCEAN_CONVERSATIONAL:
|
| 877 |
v = dataocean_row.get(col, None)
|
| 878 |
if v is not None and v > 0:
|
| 879 |
all_conversational.append(v)
|
|
|
|
| 880 |
for col in DATAOCEAN_US:
|
| 881 |
v = dataocean_row.get(col, None)
|
| 882 |
if v is not None and v > 0:
|
|
|
|
| 885 |
v = dataocean_row.get(col, None)
|
| 886 |
if v is not None and v > 0:
|
| 887 |
all_non_us.append(v)
|
| 888 |
+
|
| 889 |
+
# VoiceArena is a single English conversational, non-US set: it feeds the
|
| 890 |
+
# conversational and non-US group averages.
|
| 891 |
+
if voicearena_row is not None:
|
| 892 |
+
for col in VOICEARENA_CONVERSATIONAL:
|
| 893 |
+
v = voicearena_row.get(col, None)
|
| 894 |
+
if v is not None and v > 0:
|
| 895 |
+
all_conversational.append(v)
|
| 896 |
+
for col in VOICEARENA_NON_US:
|
| 897 |
+
v = voicearena_row.get(col, None)
|
| 898 |
+
if v is not None and v > 0:
|
| 899 |
+
all_non_us.append(v)
|
| 900 |
+
|
| 901 |
avg_scripted = _safe_mean(all_scripted) if all_scripted else "NA"
|
| 902 |
avg_conversational = _safe_mean(all_conversational) if all_conversational else "NA"
|
| 903 |
avg_us = _safe_mean(all_us) if all_us else "NA"
|
|
|
|
| 905 |
|
| 906 |
private_data_rows.append({
|
| 907 |
"Model": make_clickable_model(model_name),
|
|
|
|
| 908 |
"Avg Scripted": avg_scripted,
|
| 909 |
"Avg Conversational": avg_conversational,
|
| 910 |
"Avg US": avg_us,
|
| 911 |
+
"Avg Non-US": avg_non_us,
|
| 912 |
})
|
| 913 |
+
|
|
|
|
| 914 |
private_scripted_map[model_name] = avg_scripted
|
| 915 |
private_conversational_map[model_name] = avg_conversational
|
| 916 |
+
|
| 917 |
+
# Order doesn't matter here — _private_view re-sorts per grouping.
|
| 918 |
+
private_df = pd.DataFrame(private_data_rows).sort_values(by="Model")
|
| 919 |
+
return private_df, private_scripted_map, private_conversational_map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 920 |
|
| 921 |
|
| 922 |
# Initialize private data dataframe
|
| 923 |
+
private_data_df, private_scripted_map, private_conversational_map = create_private_data_dataframe()
|
| 924 |
|
| 925 |
# Add "Private (scripted)" and "Private (conversational)" columns to main leaderboard
|
| 926 |
# Match by plain model name (strip HTML from original_df's model column)
|
|
|
|
| 939 |
# so the English average matches the version's leaderboard Average WER.
|
| 940 |
_inject_english(MULTI)
|
| 941 |
|
| 942 |
+
# Fold the VoiceArena private Hindi set into the Hindi breakdown + average.
|
| 943 |
+
_inject_hindi_private(MULTI)
|
| 944 |
+
|
| 945 |
|
| 946 |
# Default ranking is computed lazily after default_columns is known
|
| 947 |
_default_rank = {}
|
|
|
|
| 971 |
_default_rank[row[model_col]] = rank
|
| 972 |
|
| 973 |
|
| 974 |
+
def _pooled_rtfx(row, split_names):
|
| 975 |
+
"""Duration-pooled RTFx over the given (display-named) public splits:
|
| 976 |
+
pooled = Σ d[i] / Σ (d[i] / rtfx[i])
|
| 977 |
+
using the per-split '<split> RTFx' CSV columns and SPLIT_DURATIONS_S. Splits
|
| 978 |
+
without a positive per-split RTFx are skipped; if none remain (e.g. old
|
| 979 |
+
versions with no per-split RTFx, or an API model), falls back to the single
|
| 980 |
+
CSV RTFx ('RTFx ⬆️️'). Returns -1 when nothing is available."""
|
| 981 |
+
total_dur = 0.0
|
| 982 |
+
total_time = 0.0
|
| 983 |
+
for ds in split_names:
|
| 984 |
+
r = pd.to_numeric(row.get(f"{ds} RTFx"), errors="coerce")
|
| 985 |
+
if pd.isna(r) or r <= 0:
|
| 986 |
+
continue
|
| 987 |
+
d = SPLIT_DURATIONS_S[ds]
|
| 988 |
+
total_dur += d
|
| 989 |
+
total_time += d / r
|
| 990 |
+
if total_time > 0:
|
| 991 |
+
return round(total_dur / total_time, 2)
|
| 992 |
+
fb = pd.to_numeric(row.get("RTFx ⬆️️"), errors="coerce")
|
| 993 |
+
return round(float(fb), 2) if not pd.isna(fb) and fb > 0 else -1
|
| 994 |
+
|
| 995 |
+
|
| 996 |
def filter_main_table(search_query, show_proprietary, show_llm, selected_columns): # Uncomment show_llm parameter for show_llm feature
|
| 997 |
filtered_df = original_df.copy()
|
| 998 |
model_col = filtered_df.columns[0]
|
|
|
|
| 1012 |
# lambda x: strip_html(x) in AUDIO_LM_MODELS
|
| 1013 |
# )]
|
| 1014 |
|
| 1015 |
+
# Recompute RTFx as the duration-pooled RTFx over the selected public splits.
|
| 1016 |
+
# Done here, before the unchecked columns are hidden below, while the raw
|
| 1017 |
+
# per-split '<split> RTFx' columns are still present. Falls back to the CSV RTFx.
|
| 1018 |
+
rtfx_splits = [c for c in selected_columns if c in SPLIT_DURATIONS_S]
|
| 1019 |
+
filtered_df["RTFx ⬆️️"] = filtered_df.apply(
|
| 1020 |
+
lambda row: _pooled_rtfx(row, rtfx_splits), axis=1)
|
| 1021 |
+
|
| 1022 |
# Hide toggleable columns that the user unchecked
|
| 1023 |
all_toggleable = [c for c in filtered_df.columns if c not in always_visible]
|
| 1024 |
columns_to_hide = set(all_toggleable) - set(selected_columns)
|
|
|
|
| 1334 |
def filter_longform_table(search_query, show_proprietary):
|
| 1335 |
return _finalize_table(longform_df, "Average WER ⬇️", search_query, show_proprietary)
|
| 1336 |
|
| 1337 |
+
# Private-data groupings: each shows two group averages and ranks by their mean.
|
| 1338 |
+
PRIVATE_GROUPINGS = {
|
| 1339 |
+
"Scripted vs. Conversational": ("Avg Scripted", "Avg Conversational"),
|
| 1340 |
+
"US vs. Non-US": ("Avg US", "Avg Non-US"),
|
| 1341 |
+
}
|
| 1342 |
+
DEFAULT_PRIVATE_GROUPING = "Scripted vs. Conversational"
|
| 1343 |
+
|
| 1344 |
+
|
| 1345 |
+
def _private_view(search_query, show_proprietary, grouping):
|
| 1346 |
+
"""Private-data table for the chosen grouping: shows the two group-average
|
| 1347 |
+
columns and ranks by their mean ('Average WER ⬇️'). Each group average is a
|
| 1348 |
+
macro-average of its datasets (VoiceArena is already folded into the
|
| 1349 |
+
conversational / non-US groups upstream), so the two groups get equal
|
| 1350 |
+
weight regardless of how many datasets each contains."""
|
| 1351 |
+
c1, c2 = PRIVATE_GROUPINGS.get(grouping, PRIVATE_GROUPINGS[DEFAULT_PRIVATE_GROUPING])
|
| 1352 |
+
df = private_data_df[["Model", c1, c2]].copy()
|
| 1353 |
+
|
| 1354 |
+
def _grouped_avg(row):
|
| 1355 |
+
vals = [v for v in (pd.to_numeric(row[c1], errors="coerce"),
|
| 1356 |
+
pd.to_numeric(row[c2], errors="coerce")) if not pd.isna(v)]
|
| 1357 |
+
return round(float(np.mean(vals)), 2) if vals else "NA"
|
| 1358 |
+
|
| 1359 |
+
df["Average WER ⬇️"] = df.apply(_grouped_avg, axis=1)
|
| 1360 |
+
df = df[["Model", "Average WER ⬇️", c1, c2]]
|
| 1361 |
+
df = df.sort_values(by="Average WER ⬇️",
|
| 1362 |
+
key=lambda col: pd.to_numeric(col, errors="coerce"),
|
| 1363 |
+
na_position="last")
|
| 1364 |
+
return _finalize_table(df, "Average WER ⬇️", search_query, show_proprietary)
|
| 1365 |
+
|
| 1366 |
+
|
| 1367 |
+
def _private_update(search_query, show_proprietary, grouping):
|
| 1368 |
+
"""gr.update for the private table (Styler value + numeric datatype)."""
|
| 1369 |
+
return _styled_update(_private_view(search_query, show_proprietary, grouping))
|
| 1370 |
|
| 1371 |
def _pareto_dataset_choices():
|
| 1372 |
"""WER dataset columns of the main leaderboard that can be averaged over
|
|
|
|
| 1376 |
|
| 1377 |
|
| 1378 |
PARETO_XMAX_DEFAULT = 10
|
| 1379 |
+
# The multilingual Pareto x-axis: default view and slider cap. The cap reaches
|
| 1380 |
+
# far enough for the higher-WER (lattice-scored) Hindi models when dragged.
|
| 1381 |
+
MULTI_PARETO_XMAX_DEFAULT = 15
|
| 1382 |
+
MULTI_PARETO_XMAX_MAX = 50
|
| 1383 |
# RTFx (y-axis) bounds for the main-leaderboard WER-vs-RTFx Pareto. Log scale, so
|
| 1384 |
# these are raw RTFx values. Raise PARETO_RTFX_YMAX if a faster model is clipped
|
| 1385 |
# off the top (e.g. current max RTFx ≈ 13000).
|
| 1386 |
PARETO_RTFX_YMIN = 10
|
| 1387 |
PARETO_RTFX_YMAX = 20000
|
| 1388 |
+
# The multilingual RTFx Pareto uses a lower range than the English one:
|
| 1389 |
+
# multilingual models don't reach the very high throughputs some English-only
|
| 1390 |
+
# models do, and the slowest (e.g. lattice-scored Hindi) dip below RTFx 10.
|
| 1391 |
+
MULTI_PARETO_RTFX_YMIN = 5
|
| 1392 |
+
MULTI_PARETO_RTFX_YMAX = 4000
|
| 1393 |
|
| 1394 |
|
| 1395 |
def _pareto_scatter(points, y_higher_better, y_title, y_axis, title, y_hover_label, x_max):
|
|
|
|
| 1433 |
name="Other models",
|
| 1434 |
))
|
| 1435 |
|
| 1436 |
+
# Pareto front models: text labels always visible. Nudge the edge labels
|
| 1437 |
+
# inward (leftmost extends right, rightmost extends left) so they don't get
|
| 1438 |
+
# clipped at the plot edges; the rest stay centered above their marker.
|
| 1439 |
+
textpositions = ["top center"] * len(pareto_df)
|
| 1440 |
+
if textpositions:
|
| 1441 |
+
textpositions[0] = "top right"
|
| 1442 |
+
textpositions[-1] = "top left"
|
| 1443 |
+
|
| 1444 |
fig.add_trace(go.Scatter(
|
| 1445 |
x=pareto_df["_wer"],
|
| 1446 |
y=pareto_df["_y"],
|
| 1447 |
mode="markers+text+lines",
|
| 1448 |
marker=dict(size=10, color="dodgerblue", symbol="star"),
|
| 1449 |
text=pareto_df["_name"],
|
| 1450 |
+
textposition=textpositions,
|
| 1451 |
textfont=dict(size=9),
|
| 1452 |
line=dict(dash="dash", color="dodgerblue", width=1),
|
| 1453 |
hovertemplate=hovertemplate,
|
|
|
|
| 1874 |
points,
|
| 1875 |
y_higher_better=True,
|
| 1876 |
y_title="RTFx (higher is better)",
|
| 1877 |
+
# Fixed RTFx bounds, capped lower than the main-leaderboard Pareto.
|
| 1878 |
+
y_axis=dict(type="log", range=[np.log10(MULTI_PARETO_RTFX_YMIN), np.log10(MULTI_PARETO_RTFX_YMAX)]),
|
| 1879 |
title="Multilingual Pareto: Average WER (selected languages) vs RTFx",
|
| 1880 |
y_hover_label="RTFx",
|
| 1881 |
x_max=x_max,
|
|
|
|
| 2010 |
f"**Select columns to display:**\n"
|
| 2011 |
f"- Toggling datasets will change the Average WER. Default datasets: {', '.join(datasets)}.\n"
|
| 2012 |
f"- **Rank Δ** shows how the ranking changes compared to the average over the default datasets.\n"
|
| 2013 |
+
f"- **Private (scripted)** and **Private (conversational)** columns show aggregated WER on private datasets from [Appen Inc.](https://huggingface.co/AppenAIResearch), [DataoceanAI](https://huggingface.co/DataoceanAI1), and [Voice Arena](https://huggingface.co/VoiceArena) (see the 'Private data' tab for more info).\n"
|
| 2014 |
+
f"- We would like to thank [Voice Arena](https://huggingface.co/VoiceArena) for providing 'Voice Arena Monsoon' (conversational English with Indian accent) specificially for this leaderboard, and [Artificial Analysis](https://huggingface.co/ArtificialAnalysis) for preparing 'Earnings22-Cleaned-AA-chunked' and 'Voxpopuli-AA-Cleaned' 🙏\n"
|
| 2015 |
)
|
| 2016 |
columns_help_md = gr.Markdown(_columns_help_text(default_datasets))
|
| 2017 |
column_checkboxes = gr.CheckboxGroup(
|
|
|
|
| 2047 |
"in the languages they don't cover. The **Coverage** column (e.g. `3/5`) shows "
|
| 2048 |
"how many of the selected languages each model supports.\n\n"
|
| 2049 |
"Use **Language dataset breakdown** to break down the results for a single language's per-dataset "
|
| 2050 |
+
"results; the other languages are hidden when specifying a single language.\n\n " \
|
| 2051 |
+
"🇮🇳 Hindi contains public and private splits of conversational speech provided by [Voice Arena](https://huggingface.co/VoiceArena), which were collected under similar conditions but with different speakers."
|
| 2052 |
)
|
| 2053 |
|
| 2054 |
multilingual_english_help_md = gr.Markdown(_english_help_text(default_datasets))
|
|
|
|
| 2172 |
with gr.TabItem("🔒 Private data", elem_id="private-data-benchmark-tab-table", id=3):
|
| 2173 |
_tab_title_with_link(PRIVATE_DATA_TAB_TEXT, "private")
|
| 2174 |
|
| 2175 |
+
private_grouping = gr.Radio(
|
| 2176 |
+
choices=list(PRIVATE_GROUPINGS.keys()),
|
| 2177 |
+
value=DEFAULT_PRIVATE_GROUPING,
|
| 2178 |
+
label="Grouping — Average WER is the mean of the two columns shown",
|
| 2179 |
+
)
|
| 2180 |
+
_pd_val, _pd_dt = _style_table(_private_view("", True, DEFAULT_PRIVATE_GROUPING))
|
| 2181 |
private_data_table = gr.components.Dataframe(
|
| 2182 |
value=_pd_val,
|
| 2183 |
datatype=_pd_dt,
|
|
|
|
| 2185 |
interactive=False,
|
| 2186 |
visible=True,
|
| 2187 |
)
|
| 2188 |
+
private_grouping.change(
|
| 2189 |
+
_private_update,
|
| 2190 |
+
inputs=[search_box, show_proprietary_checkbox, private_grouping],
|
| 2191 |
+
outputs=private_data_table,
|
| 2192 |
+
)
|
| 2193 |
|
| 2194 |
with gr.TabItem("📊 Pareto", elem_id="pareto-tab", id=4):
|
| 2195 |
_tab_title_with_link("# Pareto Fronts\nModels on a Pareto frontier achieve the best trade-off between accuracy (WER) and, respectively, **speed** (RTFx, higher is better) and **model size** (B params, smaller is better). Names are shown for frontier models; hover over other points to see their names.\n\nSelect which datasets the Average WER is computed over — a model is plotted only if it has a score for every selected dataset. The size plot only includes open models that report a parameter count.", "pareto")
|
|
|
|
| 2304 |
|
| 2305 |
def _refresh_all_tables(search_query, show_proprietary, show_llm, selected_columns,
|
| 2306 |
selected_langs, zoom, pareto_datasets, pareto_xmax,
|
| 2307 |
+
multi_pareto_langs, multi_pareto_xmax, rendering_splits,
|
| 2308 |
+
private_grouping):
|
| 2309 |
"""Re-apply the current search/proprietary filters to every tab's table.
|
| 2310 |
|
| 2311 |
Gradio does not repaint components inside a hidden Tab until it becomes
|
|
|
|
| 2316 |
main = _main_table_update(search_query, show_proprietary, show_llm, selected_columns)
|
| 2317 |
multi = render_multilingual(search_query, show_proprietary, selected_langs, zoom)
|
| 2318 |
longform = _styled_update(filter_longform_table(search_query, show_proprietary))
|
| 2319 |
+
private = _private_update(search_query, show_proprietary, private_grouping)
|
| 2320 |
# The Pareto plots follow the same model-name search; dataset/language
|
| 2321 |
# selection and x-axis cap are driven by their own controls.
|
| 2322 |
pareto, pareto_size = render_pareto_plots(pareto_datasets, search_query, pareto_xmax)
|
|
|
|
| 2335 |
pareto_dataset_checkboxes, pareto_xmax_slider,
|
| 2336 |
multilingual_pareto_lang_checkboxes,
|
| 2337 |
multilingual_pareto_xmax_slider,
|
| 2338 |
+
rendering_split_checkboxes,
|
| 2339 |
+
private_grouping]
|
| 2340 |
|
| 2341 |
# Wire the shared search box / proprietary checkbox to every data tab.
|
| 2342 |
# Use a single listener per trigger (instead of one per table) so typing
|
|
|
|
| 2357 |
def _on_version_change(version_id):
|
| 2358 |
"""Reload all data sources for the selected version and refresh every tab."""
|
| 2359 |
global original_df, longform_df, private_data_df, benchmark_fitting_df, rendering_fitting_data
|
| 2360 |
+
global private_scripted_map, private_conversational_map
|
| 2361 |
global csv_results, multilingual_csv_path, longform_csv_path, appen_csv_path, dataocean_csv_path
|
| 2362 |
+
global voicearena_csv_path, voxpopuli_fitting_csv_path, rendering_fitting_csv_paths, default_datasets
|
| 2363 |
|
| 2364 |
try:
|
| 2365 |
(
|
| 2366 |
+
new_csv, new_multi, new_longform, new_appen, new_dataocean, new_voicearena,
|
| 2367 |
new_voxpopuli_fitting, new_rendering_fitting, new_default_datasets,
|
| 2368 |
) = load_all_info_for_version(version_id)
|
| 2369 |
|
|
|
|
| 2411 |
appen_csv_path = new_appen
|
| 2412 |
if new_dataocean is not None:
|
| 2413 |
dataocean_csv_path = new_dataocean
|
| 2414 |
+
# Set unconditionally: versions predating VoiceArena return None, so
|
| 2415 |
+
# switching to them must clear it rather than keep a stale path.
|
| 2416 |
+
voicearena_csv_path = new_voicearena
|
| 2417 |
+
private_data_df, private_scripted_map, private_conversational_map = create_private_data_dataframe()
|
| 2418 |
|
| 2419 |
# Add private-data columns back onto the main leaderboard
|
| 2420 |
original_df["Private (scripted)"] = original_df[original_df.columns[0]].apply(
|
|
|
|
| 2428 |
# (English average matches this version's leaderboard average).
|
| 2429 |
_inject_english(MULTI)
|
| 2430 |
|
| 2431 |
+
# Re-fold the VoiceArena private Hindi set into the Hindi breakdown
|
| 2432 |
+
# (build_multilingual_data above rebuilt MULTI from scratch).
|
| 2433 |
+
_inject_hindi_private(MULTI)
|
| 2434 |
+
|
| 2435 |
# Recompute default rank for the new data
|
| 2436 |
global _default_rank
|
| 2437 |
_default_rank = {}
|
|
|
|
| 2463 |
new_main,
|
| 2464 |
new_multi_view,
|
| 2465 |
_styled_update(filter_longform_table("", True)),
|
| 2466 |
+
_private_update("", True, DEFAULT_PRIVATE_GROUPING),
|
| 2467 |
new_pareto,
|
| 2468 |
new_pareto_size,
|
| 2469 |
gr.update(choices=new_toggleable, value=new_default),
|
|
|
|
| 2481 |
_bench_orig, _bench_clean, _styled_update(_bench_table),
|
| 2482 |
gr.update(choices=rendering_split_choices(), value=rendering_default_splits()),
|
| 2483 |
*render_rendering_fitting("", True, rendering_default_splits()),
|
| 2484 |
+
gr.update(value=DEFAULT_PRIVATE_GROUPING),
|
| 2485 |
)
|
| 2486 |
except Exception as e:
|
| 2487 |
print(f"Error switching version: {e}")
|
|
|
|
| 2511 |
gr.update(),
|
| 2512 |
gr.update(),
|
| 2513 |
gr.update(),
|
| 2514 |
+
gr.update(),
|
| 2515 |
)
|
| 2516 |
|
| 2517 |
version_dropdown.change(
|
| 2518 |
fn=_on_version_change,
|
| 2519 |
inputs=[version_dropdown],
|
| 2520 |
+
outputs=[leaderboard_table, multilingual_table, longform_table, private_data_table, pareto_plot, pareto_size_plot, column_checkboxes, columns_help_md, search_box, multilingual_lang_checkboxes, multilingual_zoom, pareto_dataset_checkboxes, pareto_xmax_slider, multilingual_pareto_plot, multilingual_size_pareto_plot, multilingual_pareto_xmax_slider, multilingual_pareto_lang_checkboxes, multilingual_english_help_md, benchmark_fitting_plot, benchmark_fitting_cleaned_plot, ref_error_table, rendering_split_checkboxes, rendering_table, rendering_scatter_plot, private_grouping],
|
| 2521 |
)
|
| 2522 |
|
| 2523 |
# Deep-linking: open a specific tab via ?tab=<slug> in the URL, e.g.
|
constants.py
CHANGED
|
@@ -53,17 +53,24 @@ which is then compared with the full transcripts from [ArtificialAnalysis/Earnin
|
|
| 53 |
| [LibriSpeech (clean)](https://huggingface.co/datasets/openslr/librispeech_asr) | 5.4 | CC-BY-4.0 | Audiobooks | Read | Normalized |
|
| 54 |
| [LibriSpeech (other)](https://huggingface.co/datasets/openslr/librispeech_asr) | 5.1 | CC-BY-4.0 | Audiobooks (noisier) | Read | Normalized |
|
| 55 |
| [SPGISpeech](https://huggingface.co/datasets/kensho/spgispeech) | 100 | User Agreement | Financial meetings | Oratory, spontaneous | Punctuated, cased |
|
|
|
|
| 56 |
| [VoxPopuli](https://huggingface.co/datasets/facebook/voxpopuli) | 5 | CC0 | European Parliament | Oratory | Punctuated |
|
| 57 |
| [Voxpopuli-AA-Cleaned](https://huggingface.co/datasets/ArtificialAnalysis/VoxPopuli-Cleaned-AA) | 2 | Apache-2.0 | European Parliament | Oratory | Punctuated, cased, disfluencies |
|
| 58 |
|
|
|
|
|
|
|
| 59 |
The "Multilingual" tab uses the test split of the following datasets.
|
| 60 |
For convenience, they are aggregated into a single dataset [here](https://huggingface.co/datasets/nithinraok/asr-leaderboard-datasets).
|
| 61 |
|
| 62 |
-
| Dataset | Languages | Duration [h] | License | Source | Style | Transcriptions |
|
| 63 |
-
| ---------------------------------------------------------------- | ------------------ | ------------ | ------------ | ----------- | ----- | ----------------- |
|
| 64 |
-
| [CoVoST-2](https://huggingface.co/datasets/facebook/covost2) | de, fr, it, es | 5.3–23 | CC-BY-NC-4.0 | Open domain | Read | Punctuated, cased |
|
| 65 |
-
| [FLEURS](https://huggingface.co/datasets/google/fleurs) | de, fr, it, es, pt | 2.0–3.5 | CC-BY-4.0 | Wikipedia | Read | Punctuated, cased |
|
| 66 |
-
| [MLS](https://www.openslr.org/94) | fr, it, es, pt | 0.8–6.3 | CC-BY-4.0 | Audiobooks | Read | Normalized |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
The "Longform" tab uses the test split of the following datasets, and the entire CORAAL dataset.
|
|
@@ -92,6 +99,7 @@ The "Private data" tab uses the following datasets, which are not publicly avail
|
|
| 92 |
| DataoceanAI Scripted GB | British | 2.43 | 47 / 53 | Read | Punctuated, disfluencies. |
|
| 93 |
| DataoceanAI Conversational US | American | 8.82 | NA | Conversational, spontaneous | Punctuated, disfluencies. |
|
| 94 |
| DataoceanAI Conversational GB | British | 5.96 | NA | Conversational, spontaneous | Punctuated, disfluencies. |
|
|
|
|
| 95 |
|
| 96 |
Below are sample audio showing the variety of content (scripted, conversational, acronyms, disfluencies, proper nouns).
|
| 97 |
|
|
@@ -173,12 +181,13 @@ We'd love to know which other models (or datasets) you'd like us to benchmark ne
|
|
| 173 |
|
| 174 |
# Multilingual language display metadata (name + flag). The set of datasets
|
| 175 |
# per language is discovered from the data itself, not declared here.
|
| 176 |
-
|
| 177 |
"de": {"name": "German", "flag": "🇩🇪"},
|
| 178 |
"fr": {"name": "French", "flag": "🇫🇷"},
|
| 179 |
"it": {"name": "Italian", "flag": "🇮🇹"},
|
| 180 |
"es": {"name": "Spanish", "flag": "🇪🇸"},
|
| 181 |
"pt": {"name": "Portuguese", "flag": "🇵🇹"},
|
|
|
|
| 182 |
}
|
| 183 |
|
| 184 |
MULTILINGUAL_TAB_TEXT = """
|
|
@@ -199,17 +208,16 @@ The purpose of this benchmark is to address risks of overfitting to public datas
|
|
| 199 |
|
| 200 |
Scores are aggregated so that no individual data provider or split is exposed.
|
| 201 |
|
| 202 |
-
- **Average WER**: Macro-average of per-provider averages (providers weighted equally).
|
| 203 |
- **Avg Scripted**: Macro-average across all scripted-speech datasets.
|
| 204 |
- **Avg Conversational**: Macro-average across all conversational-speech datasets.
|
| 205 |
-
- **Avg US**: Macro-average across all US
|
| 206 |
-
- **Avg
|
| 207 |
|
| 208 |
For details on the benchmark datasets used in this tab, see the **🤗 About** tab.
|
| 209 |
|
| 210 |
### Acknowledgements
|
| 211 |
|
| 212 |
-
We would like to thank [Appen Inc.](https://huggingface.co/AppenAIResearch)
|
| 213 |
|
| 214 |
"""
|
| 215 |
|
|
|
|
| 53 |
| [LibriSpeech (clean)](https://huggingface.co/datasets/openslr/librispeech_asr) | 5.4 | CC-BY-4.0 | Audiobooks | Read | Normalized |
|
| 54 |
| [LibriSpeech (other)](https://huggingface.co/datasets/openslr/librispeech_asr) | 5.1 | CC-BY-4.0 | Audiobooks (noisier) | Read | Normalized |
|
| 55 |
| [SPGISpeech](https://huggingface.co/datasets/kensho/spgispeech) | 100 | User Agreement | Financial meetings | Oratory, spontaneous | Punctuated, cased |
|
| 56 |
+
| [Voice Arena Monsoon (en-IN)](https://huggingface.co/datasets/VoiceArena/Monsoon_en_IN_test) | 5.62 | CC BY 4.0 | Voice Arena | Conversational, spontaneous, Indian accent | Normalized, disfluencies |
|
| 57 |
| [VoxPopuli](https://huggingface.co/datasets/facebook/voxpopuli) | 5 | CC0 | European Parliament | Oratory | Punctuated |
|
| 58 |
| [Voxpopuli-AA-Cleaned](https://huggingface.co/datasets/ArtificialAnalysis/VoxPopuli-Cleaned-AA) | 2 | Apache-2.0 | European Parliament | Oratory | Punctuated, cased, disfluencies |
|
| 59 |
|
| 60 |
+
ℹ️ The Voice Arena sets (the public `Voice Arena Monsoon` split and the private en-IN set) are sourced from dual-channel recordings of two-person conversations, segmented per channel to yield single-speaker chunks. The content is conversational/spontaneous throughout; the only read-style speech occurs when a speaker reads the assigned discussion topic, and all such read audio has been removed — the released sets contain conversation audio only.
|
| 61 |
+
|
| 62 |
The "Multilingual" tab uses the test split of the following datasets.
|
| 63 |
For convenience, they are aggregated into a single dataset [here](https://huggingface.co/datasets/nithinraok/asr-leaderboard-datasets).
|
| 64 |
|
| 65 |
+
| Dataset | Languages | Duration [h] | Male (%) / Female (%) | License | Source | Style | Transcriptions |
|
| 66 |
+
| ---------------------------------------------------------------- | ------------------ | ------------ | --------------------- | ------------ | ----------- | ----- | ----------------- |
|
| 67 |
+
| [CoVoST-2](https://huggingface.co/datasets/facebook/covost2) | de, fr, it, es | 5.3–23 | NA | CC-BY-NC-4.0 | Open domain | Read | Punctuated, cased |
|
| 68 |
+
| [FLEURS](https://huggingface.co/datasets/google/fleurs) | de, fr, it, es, pt | 2.0–3.5 | NA | CC-BY-4.0 | Wikipedia | Read | Punctuated, cased |
|
| 69 |
+
| [MLS](https://www.openslr.org/94) | fr, it, es, pt | 0.8–6.3 | NA | CC-BY-4.0 | Audiobooks | Read | Normalized |
|
| 70 |
+
| [Voice Arena Monsoon (hi-IN)](https://huggingface.co/datasets/VoiceArena/Monsoon_hi_test) | hi | 1.32 | 60 / 40 | CC BY 4.0 | Voice Arena | Conversational, spontaneous | Lattice (accepted orthographic variants) |
|
| 71 |
+
| Voice Arena Private (hi-IN) | hi | 4.47 | 60 / 40 | CC BY 4.0 | Voice Arena | Conversational, spontaneous | Lattice (accepted orthographic variants) |
|
| 72 |
+
|
| 73 |
+
ℹ️ Hindi is scored differently from the other multilingual languages. Its references are **lattices** — a list of accepted orthographic variants per reference slot rather than a single flattened string — and are scored with the [voi-oiwer](https://pypi.org/project/voi-oiwer/) package. Both the public `Voice Arena Monsoon` split and the private Voice Arena Hindi set are sourced from dual-channel two-person conversations, segmented per channel to yield single-speaker chunks (conversational/spontaneous throughout; see the note in the Leaderboard datasets above). The Hindi language average is taken over both sets.
|
| 74 |
|
| 75 |
|
| 76 |
The "Longform" tab uses the test split of the following datasets, and the entire CORAAL dataset.
|
|
|
|
| 99 |
| DataoceanAI Scripted GB | British | 2.43 | 47 / 53 | Read | Punctuated, disfluencies. |
|
| 100 |
| DataoceanAI Conversational US | American | 8.82 | NA | Conversational, spontaneous | Punctuated, disfluencies. |
|
| 101 |
| DataoceanAI Conversational GB | British | 5.96 | NA | Conversational, spontaneous | Punctuated, disfluencies. |
|
| 102 |
+
| Voice Arena en-IN | Indian | 5.57 | 48 / 52 | Conversational, spontaneous | Normalized, disfluencies. |
|
| 103 |
|
| 104 |
Below are sample audio showing the variety of content (scripted, conversational, acronyms, disfluencies, proper nouns).
|
| 105 |
|
|
|
|
| 181 |
|
| 182 |
# Multilingual language display metadata (name + flag). The set of datasets
|
| 183 |
# per language is discovered from the data itself, not declared here.
|
| 184 |
+
LANGUAGES = {
|
| 185 |
"de": {"name": "German", "flag": "🇩🇪"},
|
| 186 |
"fr": {"name": "French", "flag": "🇫🇷"},
|
| 187 |
"it": {"name": "Italian", "flag": "🇮🇹"},
|
| 188 |
"es": {"name": "Spanish", "flag": "🇪🇸"},
|
| 189 |
"pt": {"name": "Portuguese", "flag": "🇵🇹"},
|
| 190 |
+
"hi": {"name": "Hindi", "flag": "🇮🇳"},
|
| 191 |
}
|
| 192 |
|
| 193 |
MULTILINGUAL_TAB_TEXT = """
|
|
|
|
| 208 |
|
| 209 |
Scores are aggregated so that no individual data provider or split is exposed.
|
| 210 |
|
|
|
|
| 211 |
- **Avg Scripted**: Macro-average across all scripted-speech datasets.
|
| 212 |
- **Avg Conversational**: Macro-average across all conversational-speech datasets.
|
| 213 |
+
- **Avg US**: Macro-average across all US accent datasets.
|
| 214 |
+
- **Avg Non-US**: Macro-average across all non-US accent datasets.
|
| 215 |
|
| 216 |
For details on the benchmark datasets used in this tab, see the **🤗 About** tab.
|
| 217 |
|
| 218 |
### Acknowledgements
|
| 219 |
|
| 220 |
+
We would like to thank [Appen Inc.](https://huggingface.co/AppenAIResearch), [DataoceanAI](https://huggingface.co/DataoceanAI1), and [Voice Arena](https://huggingface.co/VoiceArena) for generously providing private evaluation data for this benchmark 🙏
|
| 221 |
|
| 222 |
"""
|
| 223 |
|
init.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
| 2 |
from pathlib import Path
|
| 3 |
from huggingface_hub import HfApi, snapshot_download
|
| 4 |
|
|
@@ -13,18 +15,36 @@ TOKEN_HUB = os.environ.get("TOKEN_HUB", None)
|
|
| 13 |
VERSIONS = {
|
| 14 |
"latest": {
|
| 15 |
"label": "Latest results",
|
| 16 |
-
"default_datasets": ["AMI-Cleaned", "Earnings22-Cleaned-AA-chunked", "Gigaspeech-Cleaned", "LS Clean", "LS Other", "SPGISpeech", "Voxpopuli-AA-Cleaned", "Private (scripted)", "Private (conversational)"],
|
| 17 |
"english_short": {"repo": "hf-audio/open-asr-leaderboard-results", "file": "english_short_latest.csv", "revision": None},
|
| 18 |
"french": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_fr.csv", "revision": None},
|
| 19 |
"german": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_de.csv", "revision": None},
|
| 20 |
"spanish": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_es.csv", "revision": None},
|
| 21 |
"italian": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_it.csv", "revision": None},
|
| 22 |
"portuguese": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_pt.csv", "revision": None},
|
|
|
|
| 23 |
"longform": {"repo": "hf-audio/leaderboard_longform", "file": "longform_latest.csv", "revision": None},
|
| 24 |
"appen": {"repo": "hf-audio/appen_shortform_results", "file": "appen_short_latest.csv", "revision": None},
|
| 25 |
"dataocean": {"repo": "hf-audio/dataocean_shortform_results", "file": "dataocean_short_latest.csv", "revision": None},
|
|
|
|
| 26 |
"benchmark_fitting": {"repo": "hf-audio/benchmark_fitting", "revision": None},
|
| 27 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"25-08-2026": {
|
| 29 |
"label": "Add IBM Granite Speech 5.0 Turbo CTC models.",
|
| 30 |
"default_datasets": ["AMI-Cleaned", "Earnings22-Cleaned-AA-chunked", "Gigaspeech-Cleaned", "LS Clean", "LS Other", "SPGISpeech", "Voxpopuli-AA-Cleaned", "Private (scripted)", "Private (conversational)"],
|
|
@@ -168,26 +188,64 @@ MULTILINGUAL_LANGUAGE_KEYS = {
|
|
| 168 |
"spanish": "es",
|
| 169 |
"italian": "it",
|
| 170 |
"portuguese": "pt",
|
|
|
|
| 171 |
}
|
| 172 |
|
| 173 |
-
#
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
-
|
|
|
|
|
|
|
| 178 |
- **31 July 2026** — Add Pareto plots for multilingual and (WER vs model size). Add MOSS-Transcribe-Diarize and QwenASR Transformers checkpoints. Remove older models (efficient-speech/lite-whisper-large-v3, efficient-speech/lite-whisper-large-v3-turbo-acc, efficient-speech/lite-whisper-large-v3-fast, nvidia/stt_en_conformer_ctc_large, nvidia/stt_en_fastconformer_transducer_large, nvidia/stt_en_fastconformer_ctc_large, usefulsensors/moonshine-base, nvidia/stt_en_conformer_transducer_small, nvidia/stt_en_conformer_ctc_small, speechbrain/asr-wav2vec2-librispeech, facebook/hubert-xlarge-ls960-ft, facebook/data2vec-audio-large-960, facebook/wav2vec2-large-robust-ft-libri-960h, facebook/wav2vec2-conformer-rope-large-960h-ft, facebook/wav2vec2-conformer-rel-pos-large-960h-ft, facebook/wav2vec2-large-960h, facebook/data2vec-audio-base-960h, facebook/wav2vec2-base-960h).
|
| 179 |
- **24 July 2026** — New Multilingual interface: toggle desired languages and average WER is computed as macro-average across selected language (rather than micro-average across all datasets). Add medals to indicate top models in each category. Private data used in default average. Add HojoAI/Hojo-ASR-V1. Add soniox/stt-async-v5 and ibm-granite/granite-speech-4.1-2b-nar to multilingual. Remove v1 Omnilingual from multilingual.
|
| 180 |
-
- **16 July 2026** — Add AutoArk-AI/Audio8-ASR-0.1B, soundsgoodai/Zipformer-cr-ctc-transducer-XL-290M, modulate/multilingual.
|
| 181 |
- **10 July 2026** — Add search and proprietary model filter to all tabs. Add modulate/vfast, gladia/solaria-3, assembly/universal-3-5-pro.
|
| 182 |
- **7 July 2026** — Add Voxpopuli-Cleaned-AA (cleaned version of Voxpopuli by Artificial Analysis). Add cleaned splits for AMI and Gigaspeech that remove audio less than 1 second. Add ElevenLabs Scribe v2 and Nemotron streaming.
|
| 183 |
-
- **29 June 2026** — Add MOSS-Transcribe-preview-2B.
|
| 184 |
- **24 June 2026** — Add versioning for seeing past results. Switch to H200 GPUs for eval and updated English normalizer (better mappings and merge compounds with kaldialign). Add AutoArk AI models (0.6B, 3B) and Boson AI model (bosonai/higgs-audio-v3-stt).
|
| 185 |
-
- **
|
| 186 |
-
- **20 May 2026**
|
| 187 |
- **5 May 2026** — Added 🔒 Private Data tab with benchmarks from Appen Inc. and DataoceanAI (11 datasets covering scripted and conversational speech across US, British, Australian, Canadian, and Indian accents). Private data average WER is now available as a toggleable column in the main leaderboard. Added rank column to show how ordering changes.
|
| 188 |
"""
|
| 189 |
|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
def get_version_choices():
|
| 192 |
"""Return (label, value) pairs for the version dropdown."""
|
| 193 |
return [
|
|
@@ -203,12 +261,13 @@ hf_api = HfApi(
|
|
| 203 |
|
| 204 |
def load_all_info_for_version(version_id):
|
| 205 |
"""Load all dataset CSVs for a specific version — the main leaderboard,
|
| 206 |
-
multilingual, longform, private (appen/dataocean) and
|
| 207 |
-
(voxpopuli reference-error + per-split rendering-agreement) data.
|
| 208 |
|
| 209 |
Returns:
|
| 210 |
(csv_results, multilingual_csv, longform_csv, appen_csv, dataocean_csv,
|
| 211 |
-
voxpopuli_fitting_csv, rendering_fitting_csvs, default_datasets)
|
|
|
|
| 212 |
``rendering_fitting_csvs`` is a {dataset label: csv_path} dict (possibly empty).
|
| 213 |
"""
|
| 214 |
version = VERSIONS.get(version_id)
|
|
@@ -219,6 +278,7 @@ def load_all_info_for_version(version_id):
|
|
| 219 |
lf = version["longform"]
|
| 220 |
ap = version["appen"]
|
| 221 |
do = version["dataocean"]
|
|
|
|
| 222 |
|
| 223 |
# --- English short-form ---
|
| 224 |
csv_results = _load_version_csv(eng)
|
|
@@ -243,6 +303,7 @@ def load_all_info_for_version(version_id):
|
|
| 243 |
# --- Private data ---
|
| 244 |
appen_csv = _load_version_csv(ap, fallback=Path("assets") / "appen_latest.csv")
|
| 245 |
dataocean_csv = _load_version_csv(do, fallback=Path("assets") / "dataocean_latest.csv")
|
|
|
|
| 246 |
|
| 247 |
# --- Benchmark fitting (optional; a single benchmark_fitting repo holds
|
| 248 |
# both the reference-error and per-split rendering-agreement files) ---
|
|
@@ -257,7 +318,7 @@ def load_all_info_for_version(version_id):
|
|
| 257 |
rendering_fitting_csvs = {}
|
| 258 |
|
| 259 |
version_default_datasets = version.get("default_datasets")
|
| 260 |
-
return csv_results, multilingual_csv, longform_csv, appen_csv, dataocean_csv, voxpopuli_fitting_csv, rendering_fitting_csvs, version_default_datasets
|
| 261 |
|
| 262 |
|
| 263 |
# Files inside the benchmark_fitting dataset.
|
|
|
|
| 1 |
import os
|
| 2 |
+
import re
|
| 3 |
+
from datetime import datetime
|
| 4 |
from pathlib import Path
|
| 5 |
from huggingface_hub import HfApi, snapshot_download
|
| 6 |
|
|
|
|
| 15 |
VERSIONS = {
|
| 16 |
"latest": {
|
| 17 |
"label": "Latest results",
|
| 18 |
+
"default_datasets": ["AMI-Cleaned", "Earnings22-Cleaned-AA-chunked", "Gigaspeech-Cleaned", "LS Clean", "LS Other", "SPGISpeech", "Voice Arena Monsoon", "Voxpopuli-AA-Cleaned", "Private (scripted)", "Private (conversational)"],
|
| 19 |
"english_short": {"repo": "hf-audio/open-asr-leaderboard-results", "file": "english_short_latest.csv", "revision": None},
|
| 20 |
"french": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_fr.csv", "revision": None},
|
| 21 |
"german": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_de.csv", "revision": None},
|
| 22 |
"spanish": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_es.csv", "revision": None},
|
| 23 |
"italian": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_it.csv", "revision": None},
|
| 24 |
"portuguese": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_pt.csv", "revision": None},
|
| 25 |
+
"hindi": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_hi.csv", "revision": None},
|
| 26 |
"longform": {"repo": "hf-audio/leaderboard_longform", "file": "longform_latest.csv", "revision": None},
|
| 27 |
"appen": {"repo": "hf-audio/appen_shortform_results", "file": "appen_short_latest.csv", "revision": None},
|
| 28 |
"dataocean": {"repo": "hf-audio/dataocean_shortform_results", "file": "dataocean_short_latest.csv", "revision": None},
|
| 29 |
+
"voicearena": {"repo": "hf-audio/voicearena_shortform_results", "file": "voicearena_short_latest.csv", "revision": None},
|
| 30 |
"benchmark_fitting": {"repo": "hf-audio/benchmark_fitting", "revision": None},
|
| 31 |
},
|
| 32 |
+
"28-08-2026": {
|
| 33 |
+
"label": "Add Voice Arena data: English with Indian accent and Hindi. Add assemblyai/universal-3-5-pro, HojoAI/Hojo-ASR-Multi-V1, and OpenMOSS-Team/MOSS-Transcribe-Diarize to multilingual.",
|
| 34 |
+
"default_datasets": ["AMI-Cleaned", "Earnings22-Cleaned-AA-chunked", "Gigaspeech-Cleaned", "LS Clean", "LS Other", "SPGISpeech", "Voice Arena Monsoon", "Voxpopuli-AA-Cleaned", "Private (scripted)", "Private (conversational)"],
|
| 35 |
+
"english_short": {"repo": "hf-audio/open-asr-leaderboard-results", "file": "english_short_latest.csv", "revision": "ddd7fd73c4a33c5d6f616f5bd7ea230a657f15ad"},
|
| 36 |
+
"french": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_fr.csv", "revision": "41432b8973f02d61ac7b9647e03ed06a2a4d213b"},
|
| 37 |
+
"german": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_de.csv", "revision": "f815da2788dce4bfa80c616faa4992405da0d70b"},
|
| 38 |
+
"spanish": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_es.csv", "revision": "ac1671be60849911c7e7e1d072ae0b7a3a9bbaf0"},
|
| 39 |
+
"italian": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_it.csv", "revision": "2614e6b9f02d5bbc0928674e8ad9a6b6bbd45733"},
|
| 40 |
+
"portuguese": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_pt.csv", "revision": "6449d2d773429ec53442eec31300455a9f705631"},
|
| 41 |
+
"hindi": {"repo": "hf-audio/multilingual_evals", "file": "multilingual_hi.csv", "revision": "9a13eac44dc92a2c8ecc22506c262b2d4466b976"},
|
| 42 |
+
"longform": {"repo": "hf-audio/leaderboard_longform", "file": "longform_latest.csv", "revision": "13d1000f7ba7cd3ca0d3f3864b69e672980254a6"},
|
| 43 |
+
"appen": {"repo": "hf-audio/appen_shortform_results", "file": "appen_short_latest.csv", "revision": "1f5512dd8081faa38359064f4fbd47a5e97bc976"},
|
| 44 |
+
"dataocean": {"repo": "hf-audio/dataocean_shortform_results", "file": "dataocean_short_latest.csv", "revision": "4627bb807a292eed5c41471a787dbb4bb17832f3"},
|
| 45 |
+
"voicearena": {"repo": "hf-audio/voicearena_shortform_results", "file": "voicearena_short_latest.csv", "revision": "fc38f2f9becf99856acfd2484ed8c1a4fb4a0786"},
|
| 46 |
+
"benchmark_fitting": {"repo": "hf-audio/benchmark_fitting", "revision": "5ccac7c307063723db20298e36bb244a57054b36"},
|
| 47 |
+
},
|
| 48 |
"25-08-2026": {
|
| 49 |
"label": "Add IBM Granite Speech 5.0 Turbo CTC models.",
|
| 50 |
"default_datasets": ["AMI-Cleaned", "Earnings22-Cleaned-AA-chunked", "Gigaspeech-Cleaned", "LS Clean", "LS Other", "SPGISpeech", "Voxpopuli-AA-Cleaned", "Private (scripted)", "Private (conversational)"],
|
|
|
|
| 188 |
"spanish": "es",
|
| 189 |
"italian": "it",
|
| 190 |
"portuguese": "pt",
|
| 191 |
+
"hindi": "hi",
|
| 192 |
}
|
| 193 |
|
| 194 |
+
# Human-friendly changelog. Dates and their default text come from VERSIONS (see
|
| 195 |
+
# _build_changelog), so a new version only needs to be defined once — in
|
| 196 |
+
# VERSIONS. Add an entry here only to (a) give a version a richer description
|
| 197 |
+
# than its label, or (b) record an update that never had a version bump (e.g. a
|
| 198 |
+
# blog-only change). Newest first; each line: "- **<D Month YYYY>** — <text>".
|
| 199 |
+
# The date must match the version's date (DD-MM-YYYY) to override its label.
|
| 200 |
+
CHANGELOG_MANUAL = """
|
| 201 |
- **31 July 2026** — Add Pareto plots for multilingual and (WER vs model size). Add MOSS-Transcribe-Diarize and QwenASR Transformers checkpoints. Remove older models (efficient-speech/lite-whisper-large-v3, efficient-speech/lite-whisper-large-v3-turbo-acc, efficient-speech/lite-whisper-large-v3-fast, nvidia/stt_en_conformer_ctc_large, nvidia/stt_en_fastconformer_transducer_large, nvidia/stt_en_fastconformer_ctc_large, usefulsensors/moonshine-base, nvidia/stt_en_conformer_transducer_small, nvidia/stt_en_conformer_ctc_small, speechbrain/asr-wav2vec2-librispeech, facebook/hubert-xlarge-ls960-ft, facebook/data2vec-audio-large-960, facebook/wav2vec2-large-robust-ft-libri-960h, facebook/wav2vec2-conformer-rope-large-960h-ft, facebook/wav2vec2-conformer-rel-pos-large-960h-ft, facebook/wav2vec2-large-960h, facebook/data2vec-audio-base-960h, facebook/wav2vec2-base-960h).
|
| 202 |
- **24 July 2026** — New Multilingual interface: toggle desired languages and average WER is computed as macro-average across selected language (rather than micro-average across all datasets). Add medals to indicate top models in each category. Private data used in default average. Add HojoAI/Hojo-ASR-V1. Add soniox/stt-async-v5 and ibm-granite/granite-speech-4.1-2b-nar to multilingual. Remove v1 Omnilingual from multilingual.
|
|
|
|
| 203 |
- **10 July 2026** — Add search and proprietary model filter to all tabs. Add modulate/vfast, gladia/solaria-3, assembly/universal-3-5-pro.
|
| 204 |
- **7 July 2026** — Add Voxpopuli-Cleaned-AA (cleaned version of Voxpopuli by Artificial Analysis). Add cleaned splits for AMI and Gigaspeech that remove audio less than 1 second. Add ElevenLabs Scribe v2 and Nemotron streaming.
|
|
|
|
| 205 |
- **24 June 2026** — Add versioning for seeing past results. Switch to H200 GPUs for eval and updated English normalizer (better mappings and merge compounds with kaldialign). Add AutoArk AI models (0.6B, 3B) and Boson AI model (bosonai/higgs-audio-v3-stt).
|
| 206 |
+
- **13 June 2026** — Added new model submissions: Microsoft Azure Speech API (`microsoft/azure-speech-05-2026`, also evaluated on the Multilingual and Private Data tabs), Reson8 (`reson8/resonant-1`, `reson8/resonant-1-flash`), Applied Brain Research Niagara (`abr-ai/niagara-19m-batch.en`, `abr-ai/niagara-38m-batch.en`), SoundsgoodAI Zipformer XL (`soundsgoodai/Zipformer-transducer-XL-290M`), Boson AI Higgs Audio v3 (`bosonai/higgs-audio-v3-8b-stt-v2`), and Smallest AI Pulse (`smallestai/pulse`).
|
| 207 |
+
- **20 May 2026** — Removed Tedlium v3 from main and longform tabs due to license change in original data. Related commit for updated leaderboard results: https://huggingface.co/datasets/hf-audio/open-asr-leaderboard-results/commit/f3ff7c9d583f4beaf908f2b2c18f3055040e515b
|
| 208 |
- **5 May 2026** — Added 🔒 Private Data tab with benchmarks from Appen Inc. and DataoceanAI (11 datasets covering scripted and conversational speech across US, British, Australian, Canadian, and Indian accents). Private data average WER is now available as a toggleable column in the main leaderboard. Added rank column to show how ordering changes.
|
| 209 |
"""
|
| 210 |
|
| 211 |
|
| 212 |
+
def _version_date(vid):
|
| 213 |
+
"""Parse a 'DD-MM-YYYY' version id into a datetime, or None (e.g. 'latest')."""
|
| 214 |
+
try:
|
| 215 |
+
return datetime.strptime(vid, "%d-%m-%Y")
|
| 216 |
+
except ValueError:
|
| 217 |
+
return None
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
def _fmt_changelog_date(dt):
|
| 221 |
+
"""'D Month YYYY' with no leading zero on the day (e.g. '5 May 2026')."""
|
| 222 |
+
return f"{dt.day} {dt.strftime('%B %Y')}"
|
| 223 |
+
|
| 224 |
+
|
| 225 |
+
def _build_changelog():
|
| 226 |
+
"""Merge the manually written entries with one auto-generated entry per dated
|
| 227 |
+
VERSION (using its label) for any date not already covered manually, newest
|
| 228 |
+
first. This lets a new version be documented from VERSIONS alone."""
|
| 229 |
+
entry_re = re.compile(r"^- \*\*(.+?)\*\*\s*[—–-]\s*(.*)$")
|
| 230 |
+
by_date = {}
|
| 231 |
+
for line in CHANGELOG_MANUAL.strip().splitlines():
|
| 232 |
+
m = entry_re.match(line.strip())
|
| 233 |
+
if m:
|
| 234 |
+
by_date[datetime.strptime(m.group(1).strip(), "%d %B %Y")] = m.group(2)
|
| 235 |
+
|
| 236 |
+
for vid, v in VERSIONS.items():
|
| 237 |
+
dt = _version_date(vid)
|
| 238 |
+
if dt is not None and dt not in by_date:
|
| 239 |
+
by_date[dt] = v["label"]
|
| 240 |
+
|
| 241 |
+
lines = [f"- **{_fmt_changelog_date(dt)}** — {by_date[dt]}"
|
| 242 |
+
for dt in sorted(by_date, reverse=True)]
|
| 243 |
+
return "\n" + "\n".join(lines) + "\n"
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
CHANGELOG_TEXT = _build_changelog()
|
| 247 |
+
|
| 248 |
+
|
| 249 |
def get_version_choices():
|
| 250 |
"""Return (label, value) pairs for the version dropdown."""
|
| 251 |
return [
|
|
|
|
| 261 |
|
| 262 |
def load_all_info_for_version(version_id):
|
| 263 |
"""Load all dataset CSVs for a specific version — the main leaderboard,
|
| 264 |
+
multilingual, longform, private (appen/dataocean/voicearena) and
|
| 265 |
+
benchmark-fitting (voxpopuli reference-error + per-split rendering-agreement) data.
|
| 266 |
|
| 267 |
Returns:
|
| 268 |
(csv_results, multilingual_csv, longform_csv, appen_csv, dataocean_csv,
|
| 269 |
+
voicearena_csv, voxpopuli_fitting_csv, rendering_fitting_csvs, default_datasets)
|
| 270 |
+
``voicearena_csv`` is None for versions predating that private set.
|
| 271 |
``rendering_fitting_csvs`` is a {dataset label: csv_path} dict (possibly empty).
|
| 272 |
"""
|
| 273 |
version = VERSIONS.get(version_id)
|
|
|
|
| 278 |
lf = version["longform"]
|
| 279 |
ap = version["appen"]
|
| 280 |
do = version["dataocean"]
|
| 281 |
+
va = version.get("voicearena") # optional (added in later versions)
|
| 282 |
|
| 283 |
# --- English short-form ---
|
| 284 |
csv_results = _load_version_csv(eng)
|
|
|
|
| 303 |
# --- Private data ---
|
| 304 |
appen_csv = _load_version_csv(ap, fallback=Path("assets") / "appen_latest.csv")
|
| 305 |
dataocean_csv = _load_version_csv(do, fallback=Path("assets") / "dataocean_latest.csv")
|
| 306 |
+
voicearena_csv = _load_version_csv(va) if va else None
|
| 307 |
|
| 308 |
# --- Benchmark fitting (optional; a single benchmark_fitting repo holds
|
| 309 |
# both the reference-error and per-split rendering-agreement files) ---
|
|
|
|
| 318 |
rendering_fitting_csvs = {}
|
| 319 |
|
| 320 |
version_default_datasets = version.get("default_datasets")
|
| 321 |
+
return csv_results, multilingual_csv, longform_csv, appen_csv, dataocean_csv, voicearena_csv, voxpopuli_fitting_csv, rendering_fitting_csvs, version_default_datasets
|
| 322 |
|
| 323 |
|
| 324 |
# Files inside the benchmark_fitting dataset.
|