# F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale

DevFeed: [F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale](<https://devfeed.tech/articles/f3-lightning-how-meta-accelerates-ads-ml-features-to-production-at-scale-114916.md>)

Original publisher: [Read original article](<https://engineering.fb.com/2026/11/03/ml-applications/f3-lightning-how-meta-accelerates-ads-ml-features-to-production/>)

Author: Xiaohe Dong; Jonathan He; Jesus Francisco Anaya Gonzalez; Purbesh Sahoo

Published: 2026-11-03T17:00:35Z

Content type: article

Language: en

Sources: [Engineering at Meta](<https://devfeed.tech/sources/engineering-at-meta.md>), [Meta ML Applications](<https://devfeed.tech/sources/meta-ml-applications.md>)

Topics: [Feature Engineering](<https://devfeed.tech/topics/feature-engineering.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [Continuous Delivery (CD)](<https://devfeed.tech/topics/continuous-delivery.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [ads](<https://devfeed.tech/tags/ads.md>), [ai](<https://devfeed.tech/tags/ai.md>), [authoring](<https://devfeed.tech/tags/authoring.md>), [costs](<https://devfeed.tech/tags/costs.md>), [execution](<https://devfeed.tech/tags/execution.md>), [feature](<https://devfeed.tech/tags/feature.md>), [features](<https://devfeed.tech/tags/features.md>), [framework](<https://devfeed.tech/tags/framework.md>), [graph](<https://devfeed.tech/tags/graph.md>), [learning](<https://devfeed.tech/tags/learning.md>), [lightning](<https://devfeed.tech/tags/lightning.md>), [machine](<https://devfeed.tech/tags/machine.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [meta](<https://devfeed.tech/tags/meta.md>), [ml](<https://devfeed.tech/tags/ml.md>), [ml-applications](<https://devfeed.tech/tags/ml-applications.md>), [models](<https://devfeed.tech/tags/models.md>), [production](<https://devfeed.tech/tags/production.md>), [production-engineering](<https://devfeed.tech/tags/production-engineering.md>), [request](<https://devfeed.tech/tags/request.md>), [scale](<https://devfeed.tech/tags/scale.md>), [serving](<https://devfeed.tech/tags/serving.md>)

## AI overview

F3 Lightning lets Meta release, validate, and roll back each ads ML feature independently, avoiding the all-or-nothing releases caused by F3's shared graph. Independent configurations initially increased CPU use because they repeated work. At service startup, Lightning restores shared execution: stable computation identifiers expose duplicate work; a shared, flattened execution plan runs it once; one request buffer improves memory locality and avoids duplicate result storage; and dense indices make runtime access direct. A failing computation marks dependent work as not ready while independent branches continue. The article reports that comparable extraction features reach production about 3.6 times faster than with traditional F3, with no increase in infrastructure compute cost. Features used by live models receive extra testing before release, while unused new features can follow standard validation.

## Source excerpt

Facebook Feature Framework (F3) is Meta's framework for authoring, compiling, and serving the machine learning features underlying ads ranking models, where a single request can require more than 20,000 features. We first presented F3 at AI @ Scale 2020. F3 reduced execution computational costs by compiling all features into a single merged graph, but that [...] Read More... The post F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale appeared first on Engineering at Meta.