/ Модель

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

Контекст
8 191 токен
Лицензия
MIT
Архитектура
wavlate · dense
Базовая модель
mLateOn
Библиотека
transformers
Опубликована
20 ноя 2026

WavLate

ЭмбеддингиТекст → embedding7 профессий

WavLate сопоставляет аудиозаписи с текстовыми подписями и поддерживает поиск звука по описанию и описаний по аудио.

129скачиваний за 30 дней3лайкавеса обновлены20 ноя 2026

Бенчмарки

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

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

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

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

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

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

WavLate — модель для поиска соответствий между аудиозаписями и текстовыми описаниями, разработанная автором репозитория chungimungi. Она независимо кодирует звук и подписи в наборы векторов и оценивает их сходство методом MaxSim: каждому токену подписи сопоставляется наиболее подходящий аудиофрагмент. Это позволяет заранее индексировать записи и затем искать их по разным текстовым запросам, а также подбирать подписи к аудио.

Аудиобашня основана на HTS-AT и формирует 32 вектора на каждые 10 секунд записи; текстовая башня использует ModernBERT и многовекторные проекционные слои ColBERT. Модель принимает монофоническое аудио с частотой 32 кГц и текст, а для записей длиннее 10 секунд сохраняет векторы последовательных окон максимум до 30 секунд. В тестах на AudioCaps и Clotho автор сообщает средний R@1 37,9% по четырём направлениям поиска. Модель дообучена на основе lightonai/mLateOn; в метаданных указан английский язык и лицензия MIT. Для работы с аудио требуются соответствующие аудиобиблиотеки, а указанные в карточке результаты относятся к конкретным тестовым наборам.

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

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

Ограничения

Для кодирования аудио требуются монофонический сигнал с частотой 32 кГц; записи обрабатываются окнами и ограничены 30 секундами. Заявленные метрики получены на AudioCaps и Clotho и не гарантируют аналогичных результатов на других данных.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

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

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

Открыть на Hugging Face

WavLate

image

WavLate is a late-interaction (multi-vector) model for retrieval between audio clips and text captions. It keeps one vector for every 0.31 seconds of audio and one vector for every caption token, and scores a pair with MaxSim: each caption token finds its best-matching moment in the clip, and the score is the average of those best matches. Clips and captions are encoded independently, so every clip can be indexed once and searched with any caption. To our knowledge it is the first open late-interaction model trained for audio and caption retrieval.

One general model, with no per-dataset fine-tuning, it reaches a mean R@1 of 37.9 over the four AudioCaps and Clotho retrieval tasks, ahead of the eight other open audio and text models we evaluated on the same test pools.

Quick start

Using Sentence Transformers

pip install -U "sentence_transformers[audio]>=6.0.0" soundfile torchaudio
from sentence_transformers import MultiVectorEncoder

model = MultiVectorEncoder("chungimungi/WavLate", trust_remote_code=True)

captions = ["A dog barks while birds chirp", "Rain falls on a tin roof"]
clips = [
    "https://raw.githubusercontent.com/karolpiczak/ESC-50/master/audio/1-100032-A-0.wav",
    "https://raw.githubusercontent.com/karolpiczak/ESC-50/master/audio/1-17367-A-10.wav",
]

text = model.encode_query(captions)
audio = model.encode_document(clips, batch_size=1)
print([tuple(embedding.shape) for embedding in text])
# [(7, 128), (6, 128)]
print([tuple(embedding.shape) for embedding in audio])
# [(16, 128), (16, 128)]

scores = model.similarity(text, audio)
print(scores.cpu())
# tensor([[0.3718, 0.1570],
#         [0.1569, 0.4258]])

To use your own recordings, replace the ESC-50 URLs with local audio paths or URLs. Files are automatically converted to mono and resampled to 32 kHz. When passing raw waveforms instead, include their sample rate: {"audio": {"array": wave, "sampling_rate": rate}}.

Captions receive the [Q] prefix automatically and can then be compared with audio using model.similarity(text, audio). Always pass text embeddings first, even when retrieving captions for audio.

Using Transformers

import soundfile as sf
import torch
from transformers import AutoModel

model = AutoModel.from_pretrained("chungimungi/WavLate", trust_remote_code=True).eval()

captions = ["A dog barks while birds chirp", "Rain falls on a tin roof"]
wave, rate = sf.read("clip.wav", dtype="float32")    # any length; mono or stereo
if wave.ndim > 1:
    wave = wave.mean(axis=1)

with torch.inference_mode():
    text, text_mask = model.encode_text(captions)                     # [2, tokens, 128]
    audio, audio_mask = model.encode_audio([wave], sampling_rate=rate) # [1, frames, 128]
    scores = model.score(text, text_mask, audio, audio_mask)          # [2 captions, 1 clip]
print(scores)
  • encode_text returns one 128-dimensional unit vector per caption token and a mask of the tokens that count (padding and special tokens are excluded).
  • encode_audio expects mono audio at 32 kHz. Pass sampling_rate to resample other rates (this needs torchaudio). Every 10 second window gives 32 frame vectors. Clips longer than 10 seconds are split into consecutive windows and all their frames are kept, up to 30 seconds.
  • score returns mean MaxSim scores of shape [number of captions, number of clips]. Higher means a better match. The same score ranks clips for a caption (text to audio) and captions for a clip (audio to text).
  • Tested with transformers 5.23 and torch 2.11. The text tower needs transformers 4.48 or newer (ModernBERT).

Model

PartDetails
Audio towerHTS-AT (Swin transformer on log-mel spectrograms, 31M parameters) with MGA-CLAP's locality-aware output, initialised from MGA-CLAP
Audio vectors32 per 10 s window, MGA-CLAP frame projection (768 to 1024), then a linear projection to 128 dimensions, L2-normalised
Text towermLateOn: ModernBERT backbone with ColBERT projection layers (768 to 1536 to 768 to 128)
Text vectorsone 128-dimensional L2-normalised vector per token; captions are prefixed with the [Q] marker
Scoremean MaxSim from caption tokens to audio frames
Parameters344M in total, of which 197M are the text tower's token embedding table

Results

R@1 / R@10 (%) on AudioCaps test (964 clips, 4,820 captions) and Clotho evaluation (1,045 clips, 5,225 captions). A2T means audio to text (a clip finds its captions), T2A means text to audio (a caption finds its clip). All baselines except the last row were run by us on the same test pools with their released checkpoints and their own preprocessing. Bold marks the best value in each column among the models we ran.

ModelAudioCaps A2TAudioCaps T2AClotho A2TClotho T2AMean
WavLate53.6 / 93.543.6 / 87.930.0 / 71.024.3 / 65.037.9 / 79.4
M2D-CLAP 202558.6 / 92.641.8 / 88.425.1 / 64.620.1 / 59.536.4 / 76.3
MGA-CLAP54.7 / 91.541.6 / 87.126.1 / 65.021.2 / 60.935.9 / 76.1
GLAP (librosa resampling)53.8 / 91.738.9 / 82.021.4 / 62.119.3 / 57.933.4 / 73.4
WavCaps HTSAT-BERT-PT51.9 / 89.638.5 / 85.423.1 / 62.319.1 / 57.533.2 / 73.7
Cacophony42.7 / 86.133.5 / 82.426.2 / 64.418.5 / 55.130.2 / 72.0
LAION-CLAP larger_clap_general43.6 / 89.534.3 / 83.822.0 / 58.514.2 / 50.128.5 / 70.5
LAION-CLAP clap-htsat-fused42.1 / 89.433.8 / 80.720.1 / 62.015.0 / 49.827.8 / 70.5
MS-CLAP 202327.8 / 75.016.9 / 64.824.0 / 60.915.8 / 51.421.1 / 63.0
MultiScale Matching, as reported52.2 / 91.340.6 / 86.023.0 / 61.219.1 / 56.333.7 / 73.7

The last row copies the numbers from the paper (weights not released; AudioCaps test set of 957 clips). The WavLate row is computed from this exact release (AutoModel), one clip at a time.

Training

  • Data: 441,198 clips with 456,546 captions from WavCaps (FreeSound, BBC Sound Effects, SoundBible, AudioSet strongly labelled), AudioCaps train and Clotho development, with test-set overlaps removed. See chungimungi/WavLate-training-data.
  • Objective: multi-positive InfoNCE on the MaxSim scores of the batch, plus a KL distillation term toward the similarity ranking of a frozen pooled MGA-CLAP teacher.
  • Hard negatives: 10 per clip, mined with pooled MGA-CLAP and kept only when a cross-encoder (cross-encoder/ettin-reranker-32m-v1) judges them different from the clip's own captions. Batches are built so each clip meets its mined negatives. One-word swap captions (for example "dog" to "cat") add text negatives.
  • Schedule: 5 epochs, 4,310 steps, global batch 512 clips with GradCache, AdamW, 2x A100 40 GB, 7.4 hours.

Licences

Audio tower code and initial weights: MGA-CLAP (MIT) built on HTS-AT (MIT) and Swin Transformer (MIT). Text tower: lightonai/mLateOn (Apache 2.0). Training captions: WavCaps, AudioCaps, Clotho.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
WavLateModel
Ревизия весов
40d0f0a

0 моделей