/ Модель

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

Контекст
262 144 токена
Размер весов
9,7 ГБ
Архитектура
qwen3_vl · dense
Базовая модель
TimeLens2-4B
Библиотека
transformers
Опубликована
10 окт 2026

CTVG-4B

Компьютерное зрениеВидео, текст → текст

CTVG-4B находит в видео интервалы, соответствующие текстовому запросу, и оценивает уверенность в сгенерированных кандидатах.

25скачиваний за 30 дней3лайкавеса обновлены10 окт 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

CTVG-4B — модель Alibaba-VELLDEPTH для поиска временных интервалов в видео по текстовому запросу. Это дообученная плотная мультимодальная модель семейства Qwen3-VL с 4 млрд параметров, основанная на MCG-NJU/TimeLens2-4B. Она генерирует кандидаты интервалов и оценивает их отдельной компактной головой уверенности, чтобы выбирать или отклонять кандидаты за один проход генерации.

Модель предназначена для поиска видеомоментов, в том числе повторяющихся событий, и исследований управляемого отбора временных интервалов. Для применения требуется сопутствующий код Grounding-with-Confidence: загрузка генератора отдельно не задействует голову уверенности. В README приведены результаты оценки на OMTG-Bench, однако порог уверенности подобран на тестовой выборке, а дополнительный выигрыш от самой головы уверенности после NMS статистически не установлен.

Обучение проводилось на данных TimeLens2-93K и OMTG-56K; исходные видео в репозиторий весов не входят. Модель работает с видео и текстом и выдаёт текстовые временные интервалы с оценками уверенности. Лицензия в предоставленных данных не указана.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

CTVG-4B

Confidence-based Temporal Video Grounding

Generate once. Rank, select, or reject.

CTVG-4B is the final 4B-family model from Grounding with Confidence: Controllable Generative Video Temporal Grounding. Given a video and a text query, it generates candidate time intervals and scores each interval with a lightweight confidence head using decoder states from the same generation pass.

Paper on arXiv · Code on GitHub · Base model

This repository contains a complete merged generator and its matched confidence head. Loading only the generator with Transformers does not apply the head or reproduce confidence-based selection. Use the accompanying Grounding-with-Confidence inference code.

Model details

PropertyValue
Model nameCTVG-4B
Model repositoryAlibaba-VELLDEPTH/CTVG-4B
TaskText-conditioned video temporal grounding with interval-level confidence
Base modelMCG-NJU/TimeLens2-4B (Qwen3-VL architecture)
Base revisionddbb6cb944f13ce21e59e85da23c5f356107260e
TrainingSupervised fine-tuning followed by set-level reinforcement learning
Released checkpointFinal low-learning-rate RL generator, step 200
Confidence headMatching online head after 150 updates
Generator formatMerged BF16 SafeTensors; not a LoRA-only adapter
Confidence architectureLayerNorm(2560) → Linear(2560, 256) → GELU → Dropout(0.1) → Linear(256, 1), followed by sigmoid
Confidence featuresMean of semantic interval-token decoder states, with stop-gradient during head training

The model separates candidate generation from acceptance. Generation-order NMS at temporal IoU 0.3 runs before confidence thresholding; confidence does not reorder NMS. Threshold changes can reuse the saved candidate scores without another decoding pass. No external verifier or additional confidence tokens are needed at inference.

Getting started

Get the inference code

Clone the code repository, then run the following download and inference commands from its root:

git clone https://github.com/Alibaba-VELLDEPTH/Grounding-with-Confidence.git
cd Grounding-with-Confidence

Download the complete model

Use the Hugging Face CLI in a separate download environment if needed:

hf download Alibaba-VELLDEPTH/CTVG-4B \
  --local-dir models/CTVG-4B

For reproducible experiments, add --revision COMMIT_SHA using the commit shown in this repository's Files and versions tab. Access to a private repository requires login with an authorized account.

Download the whole repository, not just the generator shards. release.json, span-confidence-head.safetensors, and span-head-config.json are required for model/head pairing validation. No separate base-model download is needed for this merged release.

Run confidence-aware inference

From the root of the accompanying Grounding-with-Confidence codebase, use Python 3.10+ and a CUDA GPU:

python -m pip install -e .
python -m pip install -r requirements.txt

python scripts/infer.py \
  --model models/CTVG-4B \
  --input requests.jsonl \
  --output-dir outputs/ctvg-example \
  --threshold 0.5

Create requests.jsonl with one request per line, replacing the example path, query, and duration with your own data:

{"request_id":"example-1","video_path":"videos/example.mp4","query":"A person opens a door.","source_duration_s":30.0}

A relative video_path is resolved against the request JSONL's directory. Add gt_intervals to every request and pass --evaluate to also produce an evaluation report. Add --check-only to validate inputs and artifact hashes without loading the GPU model.

The output predictions.jsonl includes candidate intervals, their span_scores, and selected_intervals. The example cutoff of 0.5 is illustrative, not a calibrated default; select a threshold on separate validation data for your application. Failed requests remain explicit in the output and evaluation denominator.

The released inference configuration uses 2 fps, min_pixels=2048, total_pixels=8388608, a 16,384-token context, and at most 512 output tokens. SDPA is the default attention backend. The full model/head inference path requires the companion scripts rather than a generic text-generation pipeline.

Training data and procedure

Public video-grounding data sources are TimeLens2-93K and OMTG-56K. Obtain the data from the upstream repositories under their respective terms; source videos are not redistributed here.

  • SFT: GT-anchored interval targets train the generator with LoRA. A separate fixed candidate replay and verifier-v2 continuous soft labels train the detached confidence head with soft BCE and ranking supervision. The historical run used 60,405 units and 1,888 optimizer steps.
  • RL: Set-level rewards train the generator, while online overlap supervision updates the detached head after actor updates. The released checkpoint is actor step 200 with 150 online head updates, not the bootstrap SFT head.

The upstream downloads alone do not reconstruct the paper-specific splits, offline replay, or verifier scores. This weight release does not include original training videos, those additional supervision files, optimizer state, or distributed training checkpoints.

Evaluation

Reported results on all 320 OMTG-Bench queries:

MetricReported value (%)
tF1@0.567.39
Temporal IoU63.24
EtF142.64

These are the manuscript's retrospective benchmark results. The operating threshold, 0.18404516577720642, was selected on the test set and must not be treated as an independently calibrated deployment threshold. The default companion evaluator follows the official OMTG metric protocol, including its merge-before-matching behavior; it is distinct from generic interval-set metrics.

Confidence also improves selection from the same fixed post-NMS candidate pool under equal global return budgets. Official query-macro Recall@0.5 (%), with 1,314 candidates across 320 queries:

Global return budgetGeneration orderToken likelihoodExternal verifierConfidence
10%9.959.4111.0014.42
25%26.4822.3726.3131.12
50%51.3443.0547.7252.82
75%64.7661.0062.4565.30

The budget is shared across queries, not assigned independently to each query. These tables report prior experiments, not a new inference run performed during upload. GPU end-to-end acceptance of the companion release wrapper remains a separate validation step; CPU artifact and metric checks do not establish GPU execution correctness.

Intended use and limitations

CTVG-4B is intended for research on video moment retrieval, repeated-event localization, and controllable selection or rejection of generated temporal intervals, subject to applicable permissions.

  • Confidence can only select among generated candidates. It cannot recover missing events, repair boundaries, or reverse NMS suppression.
  • Scores do not establish calibrated correctness probabilities. Precision targets and thresholds may not transfer to new datasets or applications.
  • Most of the full-system tF1 improvement comes from NMS. The additional confidence gain after NMS is +0.32 percentage points with a 95% source-video bootstrap interval of [−0.14, 0.76], so that incremental improvement is not statistically established.
  • Reported rejection experiments use synthetic cross-video query mismatches, not general open-world rejection.
  • Do not rely on the model as the sole basis for safety-critical decisions or consequential decisions about people. Review outputs and comply with privacy and video-use permissions.

License and upstream attribution

This repository preserves the pinned TimeLens2 source notice in LICENSE-TIMELENS2.txt, including its academic-use and geographic restrictions. The upstream HF model card labels TimeLens2-4B as Apache-2.0; that model metadata and the pinned source notice are distinct. This release does not resolve their applicability or grant an additional unrestricted MIT/Apache license to CTVG-4B. Review the applicable upstream terms and obtain any required permissions before use or redistribution; public availability alone does not imply permission for commercial use.

We thank the authors of TimeLens2 and OMTG for releasing their code and training datasets. The work also builds on Qwen3-VL, Transformers, PEFT, PyTorch, and OMTG's vendored verl integration. Their resources retain their respective terms.

Citation

@article{chen2026grounding,
  title={Grounding with Confidence: Controllable Generative Video Temporal Grounding},
  author={Chen, Jinhao and Cui, Benlei and Jia, Ruijian and Wang, Ziheng and Wo, Tianyu and Sun, Pengfei and Huang, Longtao and Xue, Hui and Yang, Yitong and Hong, Haiwen},
  journal={arXiv preprint arXiv:2609.39883},
  year={2026}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3VLForConditionalGeneration
Ревизия весов
a6e2a5a

0 моделей