@Scale
Inverting traditional human-in-the-loop workflows allows autonomous agents to monitor live inference signals, prune failing GPU runs early, and enforce strict production latency limits.
AI-assisted summary of Flywheel of Media Models & Product Velocity | Rushaan Mahajan from Meta — original source. Check the original for full context.
Source published:
Key ideas
- Meta is inverting legacy human-in-the-loop workflows into an 'agents-in-the-loop' framework where autonomous agents observe telemetry, prune failing runs, and iterate on media models across training and deployment. (0:05)
- Autonomous sidekick agents double model training velocity by autonomously tuning hyperparameters, generating code diffs, and enforcing production latency envelopes like 100 ms limits. (14:03)
- Production video frame interpolation models across Meta's Family of Apps double frame rates on low-end 15–20 fps captures, treating initial deployment as a starting line for continuous agentic retraining. (16:42)
- Sandboxing agents prevents GPU compute budget overruns and suppresses noisy, microscopic updates in favor of perceptible step-change improvements in visual fidelity. (19:24)
Detailed notes
## Background This talk was published on YouTube by @Scale on October 30, 2026, featuring Rushaan Mahajan from Meta's Media Foundation team. No additional show notes or description were provided by the channel.
## TL;DR Rushaan Mahajan details how Meta accelerates media AI development by inverting traditional human-in-the-loop workflows into an autonomous 'agents-in-the-loop' continuous flywheel. By deploying secondary Vision-Language Models as automated 'visual judges' across training and inference, autonomous sidekick agents catch visual defects, tune hyperparameters, and optimize models under strict compute and latency budgets. The architecture enables massive-scale applications—such as capacity-aware golden hour photo editing and deep learning video frame interpolation—turning production checkpoints into continuous learning launchpads rather than static one-off releases.
## Atmosphere & style The presentation is crisp, highly pragmatic, and delivered with the brisk, authoritative tempo of a scaled systems architect. Mahajan avoids speculative AI hype, grounding his narrative entirely in concrete production realities like GPU cluster economics, millisecond latency gates, and real-time artifact detection. Watching the talk feels like an insider briefing on frontier infrastructure orchestration, blending industrial-scale engineering rigor with an energetic vision for automated model iteration.
## Bulletin - [00:05](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=5s) Meta is inverting legacy human-in-the-loop workflows into an 'agents-in-the-loop' framework where autonomous agents observe telemetry, prune failing runs, and iterate on media models across training and deployment. - [14:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=843s) Autonomous sidekick agents double model training velocity by autonomously tuning hyperparameters, generating code diffs, and enforcing production latency envelopes like 100 ms limits. - [16:42](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1002s) Production video frame interpolation models across Meta's Family of Apps double frame rates on low-end 15–20 fps captures, treating initial deployment as a starting line for continuous agentic retraining. - [19:24](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1164s) Sandboxing agents prevents GPU compute budget overruns and suppresses noisy, microscopic updates in favor of perceptible step-change improvements in visual fidelity.
## Key takeaways - [00:05](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=5s) The traditional human-in-the-loop paradigm is being replaced by an agents-in-the-loop architecture that continuously co-designs training runs and production inference. - [01:42](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=102s) Serving viral features like 'golden hour' image editing requires capacity-aware models that run inference across hybrid CPU and GPU pipelines to control infrastructure costs. - [04:14](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=254s) Visual judges leverage quantitative metrics and qualitative Vision-Language Models (VLMs) to inspect pixels directly for temporal flicker, brand logo clarity, and structural coherence. - [04:14](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=254s) Automated visual evaluation prevents GPU cluster idle time by catching artifacts early and adjusting training parameters while human researchers are away. - [08:29](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=509s) Autonomous sidekick agents sample live production traffic around the clock to detect geographic edge cases and adapt models to regional bandwidth constraints. - [08:29](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=509s) Teams translate high-level product goals into structured intent frameworks that define strict compute budgets, visual eval rubrics, and queries per second (QPS) thresholds. - [11:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=663s) A daily grounded report synchronizes researchers and overnight agent experiments without generative hallucinations, outlining latency drift and visual judge scores. - [14:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=843s) The media harness integrates visual judges directly across both training and serving, enabling autonomous agents to double model training velocity. - [14:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=843s) Agents prevent operational drift by pruning underperforming checkpoints early and enforcing strict latency caps before models reach production. - [16:42](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1002s) Neural video frame interpolation models replace legacy heuristic algorithms across Meta's Family of Apps to smoothly double low capture frame rates (15–20 fps). - [16:42](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1002s) Shipping a media model to production is treated as the starting point rather than the end of a project, feeding edge cases back into continuous agentic retraining. - [19:24](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1164s) Strict operational sandboxes prevent autonomous agents from running wild, exceeding allocated GPU cluster quotas, or deploying noisy, negligible metric updates.
## Detailed walkthrough ### [00:05](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=5s) Inverting Human-in-the-Loop: Agents in the Training and Inference Flywheel
The media AI flywheel is accelerating rapidly, driven by the tight co-design of underlying models and consumer-facing products to maximize feature velocity. For product teams, the primary target is delivering high model quality at ultra-low latency to unlock fluid user experiences. Historically, production workflows relied on human-in-the-loop paradigms where human operators gated and approved model operations. In modern media infrastructure, this architecture is inverted into an "agents-in-the-loop" framework, where autonomous agents continuously observe, act, and iterate across both training and deployment lifecycles.
```mermaid flowchart TD accTitle: Co-designed Agentic Media Model Flywheel accDescr: Feedback loop connecting agent-monitored model training, production inference deployment, and visual evaluation.
subgraph TrainingLoop ["Training Lifecycle"] TR["Model Training (GPU Fleet)"] RA["Researcher + Agent Sidekick"] EV["Offline Eval (Reference Metrics)"] TR --> EV EV --> RA RA -->|"Adjust architecture & parameters"| TR end
subgraph ProdLoop ["Production Deployment"] INF["Inference Engine (GPU/CPU)"] VJ["Visual Judge (VLM & Reference-Free)"] PD["Production Traffic & User Feedback"] INF --> PD PD --> VJ end
TR -->|"Push new checkpoint"| INF VJ -->|"Online feedback loop"| RA ```
In this co-designed architecture, offline model training and online production deployment feed directly into one another. Autonomous agents partner with research teams to tweak training parameters, evaluate checkpoints, and manage production rollouts. When new checkpoints reach production, user engagement data and operational telemetry are routed straight back into the training loop, creating an ongoing engine of continuous improvement. As Rushaan Mahajan emphasizes: “We know about human in the loop where a person gates every action of the model. I like to think about it as where is agents in the loop inverting this.”
- **Core product goals:** Maximize model fidelity while driving down latency to encourage frequent user interactions. - **Continuous refinement:** Agents actively adjust training parameters and architectures alongside researchers rather than relying on manual intervention. - **Production feedback loops:** Real-world traffic serves as direct input to retrain and update models iteratively.
---
[01:42](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=102s) The Golden Hour Example: Capacity-Aware Image Editing at Scale
A concrete manifestation of this model-product co-design is the "golden hour" editing feature. Mobile photographers frequently capture sunrises or sunsets seeking a viral aesthetic, but natural obstacles—such as an unwanted cloud obscuring the light or a stray tree in the frame—often detract from the shot. Standing up a generative media model that can cleanly erase or modify these elements on consumer devices requires balancing high fidelity with strict operational economics.
To serve editing requests at Meta's scale, models must be explicitly "capacity aware." Simply scaling up raw compute is unsustainable; models are engineered to refine user prompts and run inference heterogeneously across both GPU and CPU hardware. This hybrid compute approach drastically lowers per-inference serving costs while delivering near-instant, real-time responses to the end user. Mahajan explains his background and focus: “Last year I gave a talk at Scale when we were a startup building Sema Labs where we were improving the quality of video as we think about image, video, and all the deployments that come at scale. This year I'm going to be expanding my talk here at Metascale where we are actually finding the winning model recipe.”
- **Representative viral use case:** Natural camera capture edits, specifically removing obstructions like clouds or trees during golden hour shots. - **Capacity-aware serving:** Hybrid execution pipelines utilizing both CPUs and GPUs to minimize serving expense while hitting interactive latency thresholds. - **Speaker background:** Rushaan Mahajan leads AI media efforts on the Media Foundation team across Meta’s family of apps, previously co-founding Sema Labs.
---
[04:14](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=254s) Visual Judges: Combining Quantitative Baselines and Qualitative VLMs
To maintain media fidelity across both training and serving, teams deploy "visual judges." A visual judge is a secondary vision model acting as an automated critic, inspecting visual generations to score and refine the primary model's outputs. Visual evaluation spans both quantitative and qualitative signals:
| Evaluation Tier | Metric Type | Operational Stage | Mechanism & Scope | |:--- |:--- |:--- |:--- | | **Quantitative** | Reference-Based | Training (Offline Eval) | Compares generated pixels directly against ground-truth sharp baseline images to verify pixel-level fidelity. | | **Quantitative** | Reference-Free | Production (Online Signals) | Evaluates outputs without an original baseline, scoring quality across standardized scales (e.g., 1–5 or 1–100). | | **Qualitative** | VLM / Visual Judge | Both Training & Production | Inspects semantic details, caption consistency, brand logo clarity, and structural coherence in real time. |
These automated judges solve a major operational challenge: human researchers cannot monitor massive GPU training clusters around the clock. When physical media artifacts occur—such as temporal flicker across sequential video frames or structural smearing during rapid motion—an autonomous agent detects the metric deviation immediately. Instead of allowing expensive GPU clusters to sit idle or churn through failed runs while an engineer sleeps, agents intervene, apply adjustments, and resume training. Furthermore, Vision-Language Models (VLMs) fundamentally change qualitative assessment. As Mahajan succinctly highlights: “An LLM can read the logs and a VLM reads the pixels.” By looking directly at image outputs, VLMs spot issues like garbled text or unreadable brand logos, feeding corrections into the online loop to ensure subsequent checkpoints resolve the defects.
- **Offline evaluation:** Rigorous reference-based comparisons against baseline ground truth during training runs. - **Online visual judges:** Scoring real production traffic via reference-free quantitative signals and VLM-based qualitative critique. - **Artifact detection:** Real-time flagging of temporal flicker, motion blur, and structural smearing across video pipelines. - **Dashboard consolidation:** AI agents ingest raw monitoring dashboards, freeing researchers from having to manually review dozens of tracking interfaces.
---
[08:29](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=509s) Researchers and Sidekick Agents: Personalized Models and Continual Learning
Engineering teams are routinely bottlenecked by finite compute capacity and the manual labor required to tune media models. Treating agents as research sidekicks alleviates these resource constraints across the entire model lifecycle. Sidekick agents continuously sample live production traffic, diagnose geographic edge cases, and propose targeted fine-tuning strategies. For instance, network constraints, connection bandwidth, and visual aesthetic preferences vary widely by country; an agent can identify these regional divergences and orchestrate the creation of personalized models tailored to local conditions.
This dynamic underpins a broader framework of continual learning. In standard development workflows, product teams define high-level ambitions—such as delivering smoother video motion or crafting dedicated golden-hour filters—which previously required researchers to spend weeks scoping training recipes manually. With continual learning, teams translate these requirements into a formal "intent" that encapsulates explicit goals, evaluation criteria, inference queries per second (QPS), and hardware constraints. As Mahajan states: “That's the golden experience, right: an agent that is sampling prod traffic, it's flagging issues on researchers' behalf, and it's finding the winning model recipe.” The agent sidekick actively runs iterations within the designated training GPU budget, ensuring that the resulting architecture fits the exact inference capacity available in production.
- **Agent as sidekick:** 24/7 sampling of live production traffic to uncover edge cases and flag failures without human prompting. - **Geographic personalization:** Autonomous adaptation of media architectures to match regional network bandwidth and localized user preferences. - **Structured intent framework:** Formalizing high-level product goals into precise compute budgets, eval rubrics, QPS limits, and deployment milestones.
[11:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=663s) Researcher-Agent Collaboration and the Media Model Context
In modern machine learning co-design, the traditional operational boundaries between training and inference are dissolving. Autonomous agents continuously monitor inference signals from production systems and feed those real-world learnings directly back into model retraining. Rushaan Mahajan emphasizes that this shift resolves longstanding bottlenecks where researchers were routinely blocked by slow feedback loops and complex product trade-offs. Rather than leaving the human researcher overwhelmed by balancing model quality, virality, and resource constraints, the agent acts as an autonomous collaborator that drives continuous optimization.
A foundational element of this partnership is establishing shared context through a single, structured morning report. Mahajan explains that after an agent runs experiments overnight, the researcher needs immediate clarity on what progress was made, spanning both quantitative metrics and qualitative evaluations:
> “Continual learning is where agents are continuously understanding inference signals and driving that into model training.” — Rushaan Mahajan
> “This report is grounded without hallucinations and it makes sure that the media model context is shared.” — Rushaan Mahajan
To maintain scientific rigor and prevent human frustration, every claim generated by an agent must be fully reproducible and backed by verifiable data rather than generative hallucinations. The morning report explicitly highlights gating criteria: whether latency has drifted higher, how the visual judge scored perceptual improvements, and whether users will noticeably prefer the new outputs. Armed with this grounded context, researchers begin their workdays unblocked, issuing precise intents and launching focused training batches alongside their autonomous agent partners.
```mermaid flowchart LR accTitle: Researcher and Agent Continual Learning Loop accDescr: Diagram illustrating how inference signals, autonomous overnight agents, structured reports, and researcher direction form a closed loop. subgraph Overnight["Overnight Agent Loop"] A["Inference Signals"] --> B["Autonomous Agent Optimization"] B --> C["Visual Judge & Metric Gates"] end subgraph Morning["Morning Researcher Handoff"] C --> D["Grounded Daily Report"] D --> E["Researcher Direction & Intents"] E --> B end ```
[14:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=843s) Finding the Winning Recipe and the Media Harness
The primary objective of this researcher-agent dynamic is discovering the optimal "winning recipe" for media models under tight production constraints. Autonomous agents evaluate available cluster capacity, parse live production signals, and make real-time decisions to prune doomed training checkpoints early while starting promising new hyperparameter sweeps. Mahajan notes that by handling these adjustments autonomously, agents double training velocity and prevent common engineering bottlenecks—such as underutilized, idling GPUs or models drifting to 200 milliseconds when downstream product requirements demand a strict 100-millisecond latency envelope.
This continuous feedback process operates within an end-to-end framework Mahajan calls the "media harness." The harness embeds visual judges directly into both the training loop and deployment inference pipeline, replacing traditional, narrow software loss metrics with rich qualitative assessments:
> “As a model trains and gets ready for production and delivering that final checkpoint, we need to make sure a visual judge is always in that training and deployment inference loop at the same time.” — Rushaan Mahajan
By allowing agents to write code diffs, submit automated bug fixes, and interpret subjective media quality at scale, engineering teams can support the long tail of user feature requests without running out of compute capacity.
- Autonomous agents double media model training velocity (2x faster) by pruning underperforming runs early and tuning hyperparameters. - Latency gating prevents models from exceeding strict production limits (e.g., maintaining a required 100 ms cap when unoptimized runs hit 200 ms). - Automated code diff generation enables agents to patch training pipelines directly without human engineering intervention.
[16:42](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1002s) Video Frame Interpolation at Meta Scale
To ground these systems in production reality, Mahajan highlights Meta's deployment of deep learning models for video frame interpolation. Globally, hundreds of millions of user videos suffer from low capture frame rates on budget hardware, producing stuttering, degraded motion playback. While legacy architectures relied on heuristic software algorithms to interpolate motion, Meta replaced these pipelines with neural networks trained jointly by researchers and agents:
> “Between every frame, we are able to generate and insert a frame that keeps the temporal context.” — Rushaan Mahajan
> “I like to say this is the worst it's ever going to be. It's going to constantly improve.” — Rushaan Mahajan
Deploying across Meta's Family of Apps provides a massive stream of real-world production data that feeds back into model training. The system reliably ingests lower-frame-rate content—such as 15 fps or 20 fps video—and doubles the frame rate while preserving temporal consistency across diverse scenes. Mahajan notes a cultural paradigm shift within Meta’s engineering teams: shipping a model checkpoint to production is no longer treated as the conclusion of a project. Instead, the initial deployment serves as the starting line, while autonomous agents continually ingest production edge cases to train and deploy superior successor checkpoints in an ongoing cycle.
- Replaced legacy algorithmic motion smoothing with deep learning video frame interpolation models that insert synthesized frames while maintaining temporal coherence. - Optimized across diverse mobile inputs, successfully doubling frame rates on constrained 15 fps and 20 fps mobile video captures. - Converted product delivery from static one-and-done releases into continuous, rolling checkpoint deployments driven by production telemetry across Meta's Family of Apps.
[19:24](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=1164s) Guardrailing Agents for Step-Change Product Impacts
While agent autonomy dramatically accelerates development, unconstrained agents introduce serious operational risks if left without rigorous guardrails. Mahajan warns against letting agents deploy continuous, microscopic modifications—such as pushing daily updates that yield negligible 0.0001% metric improvements—which introduce systemic instability without tangible consumer value. Instead, agents are sandboxed to accumulate learnings, retrain models, and deliver noticeable step changes in visual fidelity so users immediately feel the upgrade in product capability.
Strict sandboxing also enforces hard operational constraints across infrastructure budgets:
> “One thing we don't like to do is make sure the agents can run wild and actually create a problem in terms of exceeding the GPU budget.” — Rushaan Mahajan
Agents operate within explicit sandbox boundaries, preventing them from exhausting allocated GPU compute quotas or missing downstream latency targets. By reading every training run, evaluation score, and runtime metric against strict gates, the system maintains a predictable deployment cadence, allowing teams to deliver high-quality, delightful media experiences while keeping computational costs under control.
- Strict infrastructure sandboxes prevent autonomous agents from overrunning dedicated GPU cluster budgets during hyperparameter sweeps. - Agents are tuned to target noticeable, step-change improvements in consumer experience rather than landing negligible, fractional gains. - The media harness monitors all evaluations and performance metrics simultaneously to preserve system safety and efficiency.
## Notable quotes > [04:14](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=254s) An LLM can read the logs and a VLM reads the pixels. — Rushaan Mahajan
> [11:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=663s) Continual learning is where agents are continuously understanding inference signals and driving that into model training. — Rushaan Mahajan
> [14:03](https://www.youtube.com/watch?v=WHwOVk-kXfM&t=843s) As a model trains and gets ready for production and delivering that final checkpoint, we need to make sure a visual judge is always in that training and deployment inference loop at the same time. — Rushaan Mahajan
## Mentioned Rushaan Mahajan, Meta, Scale, Sema Labs, Media Foundation team
[Source](https://www.youtube.com/watch?v=WHwOVk-kXfM)