/ Модель

Характеристики

Лицензия
MIT
Архитектура
audio_embeddings · dense
Библиотека
transformers
Опубликована
18 сен 2026

BEST-RQ-2.2-base

ЭмбеддингиТекст → embedding

Самоконтролируемый аудиоэнкодер BEST-RQ-2.2-base извлекает 768-мерные признаки клипов и кадров для классификации, поиска и дообучения.

116скачиваний за 30 дней0лайковвеса обновлены18 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

BEST-RQ-2.2-base — самоконтролируемый аудиоэнкодер, опубликованный пользователем ltuncay и обученный на AudioSet в течение 200 000 шагов. Он преобразует монофонические аудиосигналы с частотой 16 кГц в векторы признаков размерностью 768 для целого клипа и отдельных кадров. Модель построена на 12-слойном Transformer с размерностью 768 и 12 головами внимания; входной тракт использует мел-спектрограмму с 128 полосами и иерархический MLP-стем.

Эти признаки можно использовать для аудиоисследований, классификации, поиска похожих аудиозаписей и дообучения под последующие задачи. Эмбеддинги кадров сопровождаются маской внимания и временными метками; агрегированный выход использует сохранённую конфигурацию извлечения признаков HEAR. Модель сама по себе не распознаёт речь в текст, не генерирует аудио и не выдаёт метки классов.

Для работы требуется привести аудио к моно и частоте 16 кГц: экстрактор дополняет сигналы до нужной длины, но не выполняет ресемплинг или сведение каналов. Модель опубликована в формате safetensors по лицензии MIT; для загрузки включён пользовательский код Transformers и требуется параметр trust_remote_code=True. Результаты на X-ARES приведены в README как исследовательские результаты, но отдельная оценка экспортированной версии на прикладных задачах не заявлена.

Сценарии применения

  • Извлечение признаков из аудиозаписей для классификатора
  • Поиск похожих аудиоклипов по эмбеддингам
  • Получение покадровых аудиопризнаков с временными метками
  • Подготовка представлений аудио для последующего дообучения
  • Исследование самоконтролируемых аудиомоделей

Ограничения

Энкодер не выполняет распознавание речи, генерацию аудио или классификацию без дополнительной модели. Обучение на AudioSet не гарантирует качество на всех языках, акустических областях и целевых задачах; вход нужно заранее преобразовать в монофонический формат 16 кГц.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

BEST-RQ-2.2-base

BEST-RQ-2.2-base is a self-supervised audio encoder trained on AudioSet for 200,000 optimizer steps. It produces 768-dimensional clip and frame embeddings from mono 16 kHz waveforms, and supports downstream fine-tuning.

This repository contains the trained encoder, its preprocessing configuration, and the custom Transformers implementation. No installation of the research repository is needed.

X-ARES results

Scores on X-ARES (0–100, higher is better). Audio-JEPA, BEST-RQ (Conformer), BEST-RQ (ViT), and all BEST-RQ-2 variants reported below are trained on the same AudioSet split for 200,000 steps. The pretrained baselines are shown for comparison.

ModelSpeechMusicEnvironmentGlobal MeanMean of MeansHugging Face model
data2vec50.6223.2415.4137.8329.76facebook/data2vec-audio-base
wav2vec 2.041.7934.9429.5237.8435.42facebook/wav2vec2-large-100k-voxpopuli
Whisper49.1938.6728.6142.7538.82openai/whisper-base
Audio-JEPA29.6444.2725.6131.1833.17Audio-JEPA-base
BEST-RQ (Conformer)40.4335.5830.8137.4335.60Separate codebase
BEST-RQ (ViT)32.8741.6234.5034.8836.33BEST-RQ-ViT
BEST-RQ-2 (Interspeech 2026)38.4954.4046.3943.2146.43BEST-RQ-2
BEST-RQ-2.152.6062.2353.3854.5956.07BEST-RQ-2.1-base
BEST-RQ-2.253.7863.9055.7156.1157.80BEST-RQ-2.2-base

Global Mean averages all benchmark task scores. Mean of Means gives equal weight to the Speech, Music, and Environment category means.

Audio-JEPA scores were supplied by the author for run jp6l70l6. The remaining scores are reported in the project README. These are reported research results, not a new benchmark run of the Transformers exports.

The Audio-JEPA row refers to the newer 16 kHz, 200,000-step run, not the original ICME model (32 kHz, 100,000 steps). The author reports better results for this newer checkpoint.

Model and training

PropertyValue
Architecture12-layer Transformer, 768 dimensions, 12 attention heads
Input frontend128-bin mel spectrogram with a hierarchical MLP (hMLP) stem
Patch shape128 mel bins by 4 time frames
TransformerTemporal RoPE, RMSNorm, SwiGLU, QK normalization
Training dataAudioSet
Training objectiveMasked prediction of frozen codebook targets
Masking ratio80%
Saved training step200,000, verified from checkpoint metadata
Training precisionbfloat16 mixed precision
Exported weight dtypefloat32
Extraction policyoverlap50_two_phase

Load the model

Install the runtime dependencies in your Python environment:

pip install "torch>=2.9.1" "torchaudio>=2.9.1" "timm>=0.9" "einops>=0.7" "transformers>=4.57,<6"

Use matching PyTorch and torchaudio versions. GPU installations may require the appropriate PyTorch build for your CUDA version.

import torch
from transformers import AutoFeatureExtractor, AutoModel

model_name = "ltuncay/BEST-RQ-2.2-base"
processor = AutoFeatureExtractor.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(model_name, trust_remote_code=True).eval()
audio = torch.zeros(processor.sampling_rate)  # Replace with real mono audio.
inputs = processor(audio, sampling_rate=processor.sampling_rate, return_tensors="pt")
with torch.inference_mode():
    outputs = model(**inputs)
clip_embeddings = outputs.pooler_output
frame_embeddings = outputs.last_hidden_state
output_dim = model.config.encoder_kwargs["embed_dim"]

Resample to processor.sampling_rate and downmix stereo before preprocessing. The extractor performs padding only; spectrogram/convolution features are computed inside the model. Pass the returned sample attention mask for variable durations. Outputs include a frame attention mask and timestamps in milliseconds (-1 for padding). pooler_output uses the saved HEAR extraction preset, including phase-balanced pooling. Frame features average frequency patches; they are not the raw frequency-time ViT grid.

Fine-tuning

For fine-tuning call model.train(), attach a task head and optimize its parameters alongside the model. Save with model.save_pretrained(path) and processor.save_pretrained(path). This encoder export excludes pretraining predictors, quantizers, teachers and optimizer state. Continue self-supervised research training with the original Lightning code and checkpoints.

Reproducibility and provenance

revision is optional; pin both loaders to the same full commit hash for reproducibility. Custom Python code is included in this repository and requires trust_remote_code=True. The weights use safetensors. See export_manifest.json for source and validation details. Source run: sdmhgemo (access may require permission). The export used checkpoints/last.safetensors and the matching saved Hydra configuration. The manifest records their SHA-256 hashes.

The exported model matched the pre-export encoder exactly on the exporter's test batch. Loading with AutoFeatureExtractor and AutoModel was also checked in a fresh Python process on unequal-duration inputs. These are integration checks, not a downstream benchmark evaluation of this release.

Intended uses and limitations

Use these embeddings as features for audio research, classification, retrieval, or downstream fine-tuning. This is an encoder: it does not generate transcripts, audio, or class labels without a downstream model.

AudioSet training does not establish performance on every language, acoustic domain, demographic group, or downstream task. Evaluate the model on your target data. No new downstream benchmark scores are claimed for this export.

The feature extractor pads waveforms and checks the sample rate; it does not resample or downmix. Unequal-length clips are processed individually after padding is removed. The output embeddings follow the saved windowing policy rather than exposing the raw spectrogram token grid.

Source and citation

Research code: audio-embeddings. BEST-RQ-2.2 is a variant in the BEST-RQ-2 family. Cite the family paper when using it:

@inproceedings{tuncay2026best,
  title={BEST-RQ-2: Contextualize-Then-Predict, a Two-Step Approach for Self-Supervised Audio Representations},
  author={Tuncay, Ludovic K and Labb{\'e}, Etienne and Pellegrini, Thomas},
  booktitle={Interspeech 2026},
  year={2026}
}

License

The model weights and bundled implementation are released under the MIT license. See LICENSE and CODE_LICENSE.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
AudioEmbeddingModel
Ревизия весов
09641da

0 моделей