MSD0142 Video Captioning under a Compute Budget

Design the captioning system for a video platform with a billion-video catalog, where generating high-quality captions costs GPU time you do not have. This is the problem behind YouTube- and TikTok-scale auto-captioning. Captioning everything at max quality costs an order of magnitude more than the budget allows. Running the cheapest model on everything wastes budget on videos nobody watches and still fails on the content that matters. You must allocate a fixed daily compute budget across the catalog to maximize captioned value.

How would you design this system? Cover the prioritization policy (which videos get captioned, and in what order, based on predicted views, accessibility needs, and content risk), the model cascade (cheap draft vs expensive quality pass, and when to upgrade), incremental coverage as budget arrives and backfill for the long tail, quality measurement without human transcripts at scale, and how allocation adapts when a video unexpectedly goes viral.

Line-art scene: a grid of video thumbnails with wildly different view counts flows into a single GPU chip labeled with a daily budget, then to a question mark asking which videos get GPU time first, and on to a screen with an empty caption strip watched by a viewer who relies on captions

The Problem: a billion videos with wildly skewed views, a daily GPU budget an order of magnitude too small for max-quality captions on everything, and viewers who need captions on whichever video they open.

Answer

Treat GPU time as a budget and every caption as a purchase. Each purchase is priced in GPU-seconds and valued as predicted watch-hours times the usable accuracy it adds, weighted for accessibility demand and content risk. An allocator buys actions in order of value per GPU-second until the daily budget clears, and the value ratio at that cut-off becomes a shadow price \lambda for every later decision. The models form a two-tier cascade: a draft model at 3 GPU-seconds per audio-hour covers the likely-watched majority at upload, and a 60 GPU-second quality model is bought only for the head and for drafts the estimator expects to fail. The long tail is drafted lazily on first caption request and backfilled off-peak, while a streaming view-velocity re-scorer pulls a sudden viral hit into a reserved hot lane within 30 minutes.

(1) Value Model: score each video by predicted 7-day watch-hours times expected accuracy gain, multiplied by an accessibility weight (caption-on viewer share) and a risk weight (kids, news, medical).
(2) Shadow-Price Allocator: greedily buy actions by value per GPU-second until the budget clears, then re-solve \lambda hourly and pace spend through the day.
(3) Draft-Then-Upgrade Cascade: the cheap draft runs first and yields a confidence signal; a video upgrades to the quality pass only when its expected gain per GPU-second beats \lambda.
(4) Tiered Coverage: draft at upload for the top 60% of new audio-hours, draft lazily on first caption request for the rest, and backfill the catalog off-peak in predicted watch-time order.
(5) Reference-Free Quality: estimate WER from decoder confidence and draft-versus-quality disagreement on a short probe, calibrated on a small stratified human audit.
(6) Velocity Re-Scoring: a streaming job re-scores accelerating videos every 15 minutes and routes them through a reserved 5% hot lane.

Captioning pipeline: uploads and backlog feed a value scorer, then a budget allocator with a shadow price and hot lane, then a draft ASR model and a caption store; the draft upgrades to a quality ASR model when value per cost clears the shadow price, a quality estimator feeds estimated WER back to the allocator, and a view-velocity stream re-scores hot videos

Figure 1: One value score drives every lane: drafts go wide, the quality pass is bought only above the shadow price, and estimated WER plus view velocity feed back into the next decision.

Clarify Before Designing:
(1) Budget Shape: is the 1,500 GPU-hour daily budget a hard cap or a rolling average, and can backfill borrow off-peak or spot capacity?
(2) Popularity Skew: early YouTube measurements found the top 10% of videos drew about 80% of views; does a skew like that hold for our watch-hours?
(3) Accessibility Contract: are there legal caption mandates (for example, content that aired on TV), and is a caption that appears within a second of a viewer’s request acceptable?
(4) Quality Bar: what WER makes a caption usable, and is a wrong caption worse than none for some categories such as kids content?
(5) Language Mix: what share of audio is in low-resource languages or music-heavy, where a cheap draft model collapses?
(6) Downstream Consumers: do search, translation, and moderation also read the transcripts, which would raise the value of captioning unwatched but risky videos?


Login to view more content
Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *