Ai4
Pruning redundant spatial and temporal frames enables compact vision models to outperform GPT-4V on long-form video while avoiding the token explosion that cripples multimodal reasoning.
AI-assisted summary of Towards Scalable and Structured Understanding in Video LLMs With KAUST & CreativAI — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by the Ai4 channel on August 26, 2025, this presentation features Mohamed Elhoseiny, Associate Professor at KAUST and CEO of CreativAI. The video abstract outlines recent breakthroughs in scalable and structured Vision-Language Models (Video LLMs), spanning instruction-tuned models like MiniGPT-4, long-video frameworks like Goldfish and LongVU, and structured evaluation benchmarks.
## TL;DR Mohamed Elhoseiny traces the trajectory of vision-language systems from his 2013 foundational zero-shot learning formulation to modern instruction-tuned models like MiniGPT-4 and MiniGPT-Video. To solve the token explosion problem in long-form visual narratives, he details the Goldfish retrieval-augmented framework and the LongVU spatiotemporal compression architecture, which retains spatial and semantic fidelity within a compact token budget. The talk concludes with CreativAI, an enterprise video search platform that leverages X-Rows for temporal event localization and X-Columns for multi-dimensional attribute extraction, enabling programmatic querying across vast video archives.
## Atmosphere & style The presentation carries the polished, authoritative cadence of a high-level academic keynote blending foundational AI history with cutting-edge engineering. Elhoseiny speaks with clear, methodical enthusiasm, systematically connecting past theoretical contributions to practical open-source milestones and commercial deployments. The talk feels intellectually rigorous yet accessible, emphasizing pragmatic architectural efficiency, benchmark victories, and real-world developer applications.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=lP-Cpq16W28&t=4s) Foundational 2013 research on zero-shot species classification mapped text descriptions to visual classifiers via joint embeddings, serving as an early linear precursor to CLIP. - [03:44](https://www.youtube.com/watch?v=lP-Cpq16W28&t=224s) Cross-modal retrieval alone cannot perform fine-grained visual reasoning across thousands of species because it measures surface embedding distances rather than analyzing subtle morphological attributes. - [04:50](https://www.youtube.com/watch?v=lP-Cpq16W28&t=290s) MiniGPT-4 demonstrated that connecting a pre-trained visual encoder to an LLM via a single linear projection enables zero-shot conversational reasoning and creative instruction-following. - [06:46](https://www.youtube.com/watch?v=lP-Cpq16W28&t=406s) A small, curated Stage-2 alignment dataset of just 5,000 high-quality conversational pairs effectively eliminates hallucinations and linguistic repetition stemming from noisy pre-training. - [08:00](https://www.youtube.com/watch?v=lP-Cpq16W28&t=480s) The MiniGPT paradigm scaled across modalities to support object grounding (MiniGPT-v2), 3D spatial understanding, radiology, and temporal video analysis with LoRA fine-tuning. - [09:53](https://www.youtube.com/watch?v=lP-Cpq16W28&t=593s) Goldfish enables hour-long video comprehension by chunking long video streams, generating segment descriptions, and retrieving top-matching segments for LLM context without accuracy degradation. - [11:38](https://www.youtube.com/watch?v=lP-Cpq16W28&t=698s) Naive frame-by-frame video processing creates an unsustainable token explosion (over 170k tokens for 20 minutes), requiring spatiotemporal compression to scale effectively. - [12:40](https://www.youtube.com/watch?v=lP-Cpq16W28&t=760s) LongVU combines SigLIP semantics, DINO spatial features, query-aware resolution uplifting, and static token suppression to achieve state-of-the-art long-form reasoning within a 7,000-token budget. - [15:02](https://www.youtube.com/watch?v=lP-Cpq16W28&t=902s) CreativAI applies long-video research to enterprise video intelligence, indexing 24-hour video backlogs in under 4 hours via automated knowledge graph construction. - [16:20](https://www.youtube.com/watch?v=lP-Cpq16W28&t=980s) Structuring unstructured video is achieved using X-Rows for temporal scene localization and X-Columns for multi-dimensional attribute extraction into queryable tabular data. - [17:49](https://www.youtube.com/watch?v=lP-Cpq16W28&t=1069s) Developer APIs allow complex semantic queries over video archives to extract entity presence, multi-character relationships, and high-level narrative outcomes automatically.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=lP-Cpq16W28&t=4s) Zero-Shot Learning and the Origins of Vision-Language Modeling
Reflecting on a 15-year career at the intersection of computer vision and natural language processing, Mohamed Elhoseiny traces his trajectory from academic research across Silicon Valley—collaborating with Yann LeCun at Facebook AI Research (FAIR), Stanford University, and Adobe Research—to his current faculty role at KAUST and his entrepreneurial venture, CreativAI. The long arc of this research has centered on building systems capable of scalable, structured comprehension of visual media.
His passion for vision-language integration began with a 2013 paper focused on zero-shot species discovery. To illustrate the core intuition, he notes that if someone is asked to spot an unfamiliar bird like a parakeet or brambling, they might struggle without prior visual exposure. However, if given a concise natural language description—explaining that it is a small bird with a short orange beak, dark plumage on top, and white plumage underneath—the human brain immediately constructs a mental prototype, making visual identification straightforward among distractors.
``` +-----------------------------------+ | Text Description of Unseen Class | +-----------------+-----------------+ | v [ Text Feature Vector: T ] | v [ Linear Transform / NN: W ] | v +--------------------------------+ | Predicted Classifier: W * T | +----------------+---------------+ | +----------------------------+----------------------------+ | | v v [ Matching Image Feature ] [ Non-Matching Image Feature ] (Pulled closer in space) (Pushed farther apart) ```
To enable machines to mimic this capability, Elhoseiny collected detailed linguistic descriptions for over 200 bird species and formulated an algorithm to project text and visual data into a shared joint embedding space. The model pulled matching image-text pairs belonging to the same class closer together while pushing non-matching pairs apart. By multiplying the text representation of an unseen class $T$ by a learned transformation matrix $W$, the system could directly generate a visual classifier for novel classes without training images. OpenAI’s CLIP paper later cited this 2013 study as the foundational precursor to modern zero-shot cross-modal learning, effectively scaling up this exact formulation with massive web datasets and deep neural encoders.
- Developed an early zero-shot learning formulation in 2013 enabling classification of novel visual categories purely from text descriptions. - Built a joint embedding space using text-image pairing across 200+ bird species, cited by OpenAI as the conceptual predecessor to CLIP. - Characterizes early work as a "linear version of CLIP" created when multimodal modeling received little mainstream attention.
---
[03:44](https://www.youtube.com/watch?v=lP-Cpq16W28&t=224s) From Cross-Modal Retrieval to Instructable Vision Models: VisualGPT and MiniGPT-4
While CLIP revolutionized cross-modal retrieval by matching text prompts to relevant images, Elhoseiny points out its fundamental limitation: retrieval is not reasoning. In fine-grained benchmark evaluations spanning more than 10,000 species, retrieval-based models frequently stumble. Differentiating closely related species often hinges on subtle morphological features, such as a slightly curved crest feather or a specific beak tint, which demand an explicit visual reasoning engine rather than surface-level embedding similarity.
``` Cross-Modal Retrieval (CLIP) Instructable Vision-LLMs (MiniGPT-4) +-----------------------------+ +-----------------------------------+ | Text Query <-> Visual Match | | Visual Token Input -> Reasoning | | (Embedding Distance Only) | | Engine -> Multi-turn Instruction | | Fails on subtle attributes | | Following, Contextual Responses | +-----------------------------+ +-----------------------------------+ ```
This motivated the transition toward instructable Large Vision-Language Models (Video/Image LLMs). In 2021, Elhoseiny’s group introduced VisualGPT, an early framework that interfaced a language model with visual inputs for image captioning, though it was largely constrained to static prompts like "provide a short description." By April 2023, his lab open-sourced MiniGPT-4, emerging alongside LLaVA ("Visual Instruction Tuning") and anticipating commercial multimodal releases from OpenAI.
MiniGPT-4 quickly went viral, accumulating over 25,000 GitHub stars and becoming one of the most widely referenced open-source multimodal repositories. The model demonstrated conversational reasoning over visual inputs: explaining the anomaly of a cactus growing in the middle of a frozen lake, generating marketing ad copy when shown an image of a coffee mug, or analyzing a photo of a restaurant seafood dish to produce a step-by-step recipe listing exact ingredients ("four lobsters, two tablespoons of olive oil").
- Fine-grained recognition across 10,000+ species requires structured visual reasoning beyond standard cross-modal metric retrieval. - VisualGPT (2021) paired language decoders with visual features for captioning prior to general instruction-tuning paradigms. - MiniGPT-4 (April 2023) gained more than 25,000 GitHub stars by demonstrating zero-shot visual reasoning, creative composition, and instruction following.
---
[06:46](https://www.youtube.com/watch?v=lP-Cpq16W28&t=406s) MiniGPT Architecture, Alignment, and the Expansion to Video
The technical architecture of MiniGPT-4 was engineered for parameter efficiency. The framework couples a pre-trained visual encoder aligned with language representations to an LLM backbone using a single trainable linear projection layer. This design rested on the hypothesis that aligning high-quality visual features with linguistic token spaces requires minimal "learning energy."
``` +------------------+ +--------------------+ +------------------+ | Input Image | ---> | Visual Encoder | ---> | Linear Project | +------------------+ +--------------------+ +--------+---------+ | v +------------------+ +--------------------+ +------------------+ | User Instruction | ---> | Large Language | <--- | Visual Tokens | | (e.g., Recipe?) | | Model (LLM) | | (Low-Energy Map) | +------------------+ +---------+----------+ +------------------+ | v [ Coherent Response ] ```
Initial pre-training on large, noisy web-scraped datasets produced an alignment where roughly 30% of model generations suffered from linguistic glitches, hallucinations, or repetitive loops. To resolve this, the team curated a clean instruction-tuning alignment set comprising just 5,000 high-quality image-text conversational pairs. This Stage-2 post-training resolved the output glitches, elevating conversational fluency and grounding.
Following MiniGPT-4, the lab expanded the architecture into an entire model ecosystem: - **MiniGPT-v2**: Integrated fine-grained visual grounding, allowing the model to generate descriptive text while predicting bounding box coordinates for identified objects (e.g., localizing a man in a suit and the plastic cups he is holding). - **MiniGPT-3D & MiniGPT for Radiology**: Tailored the architecture for volumetric, spatial, and clinical imaging data. - **MiniGPT-Video**: Extended the framework from static frames to temporal sequences. The system splits video into distinct frames, integrates subtitle transcriptions, and replaces frozen LLM weights with LoRA (Low-Rank Adaptation) fine-tuning to perform complex tasks such as composing a poem about a blooming flower sequence or summarizing thematic messaging in video essays.
---
[09:53](https://www.youtube.com/watch?v=lP-Cpq16W28&t=593s) Scaling Video Understanding to Hour-Long Content with Goldfish
While initial video-language models operated effectively on short clips of a few minutes, real-world visual narratives require parsing long-form media, such as full-length television episodes. Elhoseiny highlights a scenario: analyzing an episode of the sitcom *Friends* to answer fine-grained situational questions, such as "What does Phoebe show Monica while they are talking?"
``` +------------------------------------------------------------------------+ | Full-Length Video | +---+--------------------+--------------------+--------------------+-----+ | Chunk 1 | Chunk 2 | Chunk 3 | v v v v +------------------------------------------------------------------------+ | Short Video Descriptor Module | +-----------------------------------+------------------------------------+ | [ Segment Text Summaries ] | v +------------------+ +-------------------+ +-------------------+ | User Question | ---> | Retrieval Module | ---> | Top Matching | | | | (Relevance Match) | | Video Segments | +------------------+ +-------------------+ +---------+---------+ | v +-------------------+ | LLM Context & | | Final Answer | +-------------------+ ```
To resolve this challenge without exceeding context limits, the team introduced **Goldfish**, a retrieval-augmented 7-billion parameter video LLM capable of processing up to an hour of video content. The architecture utilizes a segment-chunking pipeline: 1. Long video streams are partitioned into uniform temporal chunks. 2. Each chunk is processed through a short-video descriptor to generate localized semantic descriptions. 3. When a user submits a query, a dedicated cross-modal retrieval module calculates relevance scores between the prompt and the video segments. 4. The top-ranked segments are aggregated and injected directly into the LLM context window to generate the final response.
Goldfish achieved state-of-the-art benchmark results across both short and long video evaluation suites. Unlike standard architectures whose accuracy degrades as video duration lengthens, Goldfish demonstrated robust, consistent reasoning accuracy across variable narrative lengths.
---
[11:38](https://www.youtube.com/watch?v=lP-Cpq16W28&t=698s) LongVU: Overcoming Token Explosion via Spatiotemporal Compression
In a paper presented at ICML, Elhoseiny’s lab introduced **LongVU**, addressing a core challenge of video processing: temporal and spatial redundancy. Treating a video as a naive stack of individual image frames causes an unsustainable "token explosion": - **1 individual frame**: ~144 visual tokens. - **20-minute video**: ~172,000 visual tokens. - **1 day of video**: ~12.3 million tokens (comparable to scaling across streaming platforms like Netflix, which host over 100,000 hours of content).
``` +-------------------------------------------------------------------+ | Raw Input Video | +---------------------------------+---------------------------------+ | v +-------------------------------------------------------------------+ | 1. Diversity-Aware Keyframe Selection (Reduces Frame Redundancy) | +---------------------------------+---------------------------------+ | v +-------------------------------------------------------------------+ | 2. Dual Feature Encoding: SigLIP (Semantics) + DINO (Spatial) | +---------------------------------+---------------------------------+ | v +-------------------------------------------------------------------+ | 3. Query-Aware Uplifting: High-Res (H_W, W_W) vs Low-Res (H_L, W_L)| +---------------------------------+---------------------------------+ | v +-------------------------------------------------------------------+ | 4. Spatiotemporal Token Compression (Zero-out static (x,y) tokens)| +---------------------------------+---------------------------------+ | v +-------------------------------------------------------------------+ | Compact ~7,000 Token Representation -> 7B LLM (Beats GPT-4V) | +-------------------------------------------------------------------+ ```
To compress visual tokens without discarding critical narrative details, LongVU implements four technical stages: 1. **Diversity-Aware Keyframe Selection**: Selects high-information keyframes while minimizing visual similarity between neighboring samples. 2. **Dual Semantic and Spatial Feature Extraction**: Combines SigLIP features (for broad semantic representations) with DINO representations (to preserve fine spatial structures). 3. **Query-Aware Resolution Uplifting**: Allocates visual fidelity based on user queries, applying a high-resolution representation ($H_W \times W_W$) to query-relevant segments and a low-resolution representation ($H_L \times W_L$) to background segments. 4. **Spatiotemporal Token Compression**: Monitors spatial coordinate tokens $(x, y)$ over time; if a coordinate region remains static across frames, redundant background tokens are zeroed out, retaining only dynamic, moving visual elements.
Operating on just ~7,000 tokens, the 7B-parameter LongVU model outperformed GPT-4V and larger proprietary vision models across standard multimodal video benchmarks.
- Naive frame sampling scales unsustainably, reaching 172k tokens for 20 minutes and 12.3M tokens for 24 hours of video. - Combines SigLIP and DINO encoders to capture both semantic context and fine-grained spatial structure. - Spatiotemporal token reduction discards static background coordinates while preserving moving objects. - Achieved state-of-the-art long-form video performance with a 7B parameter model operating within a compact 7,000-token budget.
---
[15:02](https://www.youtube.com/watch?v=lP-Cpq16W28&t=902s) CreativAI: Enterprise Video Query Engine, X-Rows, and X-Columns
In the final portion of the presentation, Elhoseiny details how these long-video research breakthroughs formed the foundation of **CreativAI**, an enterprise query engine designed as a "Perplexity-like experience for video data." The platform enables users to query thousands of hours of unstructured video using natural language, ingesting and indexing massive video backlogs in real time (processing a 24-hour video block in under 4 hours) through automated knowledge graph construction, no-code workflows, and multimodal agents.
``` +-------------------------------------------------------------------+ | CreativAI Query Engine | +-------------------------------------------------------------------+ | Natural Language Query: "Analyze food consumption in Friends" | +-------------------------------------------------------------------+ | +------------------------+------------------------+ | | v v +---------------------------------+ +-----------------------------+ | X-ROWS (Temporal Localization) | | X-COLUMNS (Feature Analytics)| +---------------------------------+ +-----------------------------+ | Locate exact video scenes: | | Extract structured fields: | | - Season 1, Ep 4 eating scene | | - Cuisine Type (Italian) | | - Season 3, Ep 12 dinner scene | | - Healthy vs. Unhealthy | | - Timestamped segment clips | | - Present Characters | +---------------------------------+ +-----------------------------+ | | +------------------------+------------------------+ | v +-------------------------------------------------------------------+ | Structured Analytical Dashboard / Cross-Character Cuisine Plots | +-------------------------------------------------------------------+ ```
The system organizes unstructured visual data into a structured schema using two core concepts: - **X-Rows (Temporal Localization)**: Identifies and isolates discrete video segments matching a semantic query (e.g., retrieving all scenes of characters eating across Seasons 1 and 3 of *Friends*, or all pitch segments featuring Mark Cuban on *Shark Tank*). - **X-Columns (Structured Attribute Extraction)**: Extracts analytical dimensions across those retrieved segments (e.g., classifying cuisine types, assessing whether a meal is healthy, identifying co-occurring characters, determining founder gender, or logging investor deal outcomes).
These dimensions allow the platform to automatically compile structured tables and generate comparative analytics—such as plotting dietary habits across different characters or tracking investment rates across business categories—all accessible via a conversational interface and programmatic APIs.
- Processes thousands of hours of enterprise video, completing a 24-hour video backlog in under 4 hours. - Uses X-Rows for temporal event localization and X-Columns for multi-dimensional attribute extraction and tabular data generation. - Supports knowledge graph indexing, no-code analytical agents, and API integrations for automated video intelligence.
[17:49](https://www.youtube.com/watch?v=lP-Cpq16W28&t=1069s) Practical Applications: Structured Video Querying via API and Conclusion
Mohamed Elhoseiny concludes the presentation by demonstrating the practical accessibility and real-world utility of their video understanding frameworks. The system offers API support designed specifically for developers seeking to parse and extract structured metadata and semantic segments from large-scale video libraries. To illustrate its capability, he presents a concrete use case centered on analyzing a collection of *Shark Tank* episodes.
Using this system, a developer can automatically query and extract precise video segments based on complex, multi-attribute conditions. For example, a user can instruct the model to locate every pitch where Mark Cuban is present, identify the gender of the presenting founder or CEO, determine whether the startup successfully secured an investment deal, and list any other "Sharks" who partnered in the agreement. By turning raw, unstructured visual footage into queryable, structured knowledge, the platform enables downstream analytics and intelligent video search before Elhoseiny wraps up his talk and thanks the audience.
- **Developer API Support**: Provides programmatic access for extracting fine-grained visual events, entity interactions, and semantic segments across video datasets. - **Example Query Capabilities (*Shark Tank* use case)**: - Identify presence of specific individuals (e.g., Mark Cuban). - Extract entity attributes (e.g., gender of the pitching CEO). - Classify high-level narrative outcomes (e.g., whether a deal was closed). - Detect multi-entity relationships (e.g., identifying co-investing Sharks on the panel).
## Notable quotes > [00:04](https://www.youtube.com/watch?v=lP-Cpq16W28&t=4s) linear version of CLIP — Mohamed Elhoseiny
> [03:44](https://www.youtube.com/watch?v=lP-Cpq16W28&t=224s) provide a short description — Mohamed Elhoseiny
> [03:44](https://www.youtube.com/watch?v=lP-Cpq16W28&t=224s) Visual Instruction Tuning — Mohamed Elhoseiny
> [03:44](https://www.youtube.com/watch?v=lP-Cpq16W28&t=224s) four lobsters, two tablespoons of olive oil — Mohamed Elhoseiny
> [06:46](https://www.youtube.com/watch?v=lP-Cpq16W28&t=406s) learning energy — Mohamed Elhoseiny
> [09:53](https://www.youtube.com/watch?v=lP-Cpq16W28&t=593s) What does Phoebe show Monica while they are talking? — Mohamed Elhoseiny
> [15:02](https://www.youtube.com/watch?v=lP-Cpq16W28&t=902s) Perplexity-like experience for video data — Mohamed Elhoseiny
> [15:02](https://www.youtube.com/watch?v=lP-Cpq16W28&t=902s) Analyze food consumption in Friends — Mohamed Elhoseiny
## Mentioned Mohamed Elhoseiny, Yann LeCun, Mark Cuban, Facebook AI Research (FAIR), Stanford University, Adobe Research, KAUST, CreativAI, OpenAI, CLIP, VisualGPT, MiniGPT-4, LLaVA, MiniGPT-v2, MiniGPT-3D, MiniGPT-Video, Goldfish, LongVU, SigLIP, DINO, GPT-4V, Netflix, StoryGPT-V, Vgent, InfiniBench, SpookyBench, Friends, Shark Tank, ICML, Ai4
## Video description Mohamed Elhoseiny, Associate Professor & CEO, KAUST & CreativAI
Abstracts
The rise of Vision-Language Models (VLMs) has opened new frontiers in video understanding, yet scaling these systems to handle long, complex, and structured visual narratives remains a fundamental challenge. In this talk, we explore a suite of recent advances aimed at achieving scalable and structured video comprehension through Large Vision-Language Models (Video LLMs). We begin by examining instructable models like MiniGPT-4 (image-based), MiniGPT-4-v2(image-based), MiniGPT-3D, and its video extension, which leverage multimodal instruction tuning for diverse video tasks. We then introduce Long Video LLMs—including the Goldfish and LongVU models—that tackle the token explosion problem with retrieval-augmented generation and spatiotemporal compression. Further, we address structured understanding via StoryGPT-V and Vgent, which model character consistency and entity-based graph reasoning. To rigorously evaluate progress, we present InfiniBench and SpookyBench, two novel benchmarks designed to probe long-form comprehension and temporal perception in state-of-the-art models. Finally, we extend the discussion to include multimodal capabilities in multilingual, emotional, and action-driven contexts, as well as exploratory work on bridging vision and brain signals.
[Source](https://www.youtube.com/watch?v=lP-Cpq16W28)