How we taught YandexGPT to summarize videos

Nikita Avdosev4 Mar 2024

Problem

Yandex Browser needed a "Summarize" button for videos. The existing article summarizer, a fine-tuned YandexGPT, failed on video. It ignores the timeline, always returns about 5-8 key points (useless for a two-hour video), and automatic subtitles contain far more errors than articles. About 90% of videos have no author-made chapters, so users cannot navigate them. The team needed a summary that scales with video length, has timestamped chapters, and appears almost instantly.

Example from the article: in a video about GPT-4 the subtitles read "G five four", which hurts the summary.

Solution in brief

One LLM is fine-tuned to produce chapters (title, timestamp) and key points in one pass. LoRA serves cheap experiments, full fine-tuning the final model. Subtitles are split into parts of about 12,000 characters at topic changes (found by a small CatBoost model) and the part summaries are concatenated. Heuristic "crits" filter models before manual labeling, and a cache with background ASR keeps latency low.

Questions this case answers
  • How to produce a structured, navigable summary of long sequential content when the input is noisy machine transcription and exceeds the model's reliable context length
  • How to choose a parameter-efficient or full fine-tuning strategy for a generative task and filter out bad model candidates before expensive human evaluation
  • How to summarize videos of any length into titled, timestamped chapters with key points using an LLM
  • How to summarize a text that is longer than the model's reliable context window

Tools and methods

  • YandexGPT (small, base model) — fine-tuned for chaptering and summarization together
  • LoRA, then full fine-tuning — fast experiments first, final quality second
  • CatBoost topic-change classifier — splits subtitles into chunks without a BERT network
  • Heuristic "crits" and reward models (SEAHORSE, task-specific) — screen models before manual labeling
  • ASR, auto-subtitles and a cache — a draft summary first, replaced by one built on better subtitles
Continue reading — it's free

Google or a one-time email code. No password.