Choose your region

    Lists show the case studies of your region first. Browse and search still hold every case study.

    Europe
    North America

    Meta gets ads ML features to production 3.6x faster

    Meta built F3 Lightning on its Facebook Feature Framework so that each machine learning feature behind its ads ranking models compiles, ships and rolls back on its own, without losing shared computation.

    MetaUnited StatesInternet platforms and advertisingIn production
    Scale
    More than 20,000 features per ads ranking request
    Scenario
    ML feature platform for ads ranking models
    Business function
    Software engineering
    Kind of solution
    Enterprise AI platform
    Who built it
    Built in-house
    Organization
    Enterprise, 10,000 to 99,999 employees
    AI types
    Conversational AI, Machine learning

    Sources and their publishers

    This case study draws on reporting by the following publishers. Enterprise AI Case Studies combined these accounts and added its own explanation. The reporting, and every passage quoted from it, belongs to whoever published or supplied it.

    1. Meta

    2. At Scale Conferences

    tl;drComparable ads ML features now reach production about 3.6x faster, with no added compute cost.See the results

    View the solutionBuild this solution yourself

    Meta runs F3 Lightning, a release layer on its Facebook Feature Framework (F3), so that each machine learning feature behind its ads ranking models ships on its own1.

    F3 authors, compiles and serves the features that the ads ranking models read, and a single request can require more than 20,000 features1. F3 Lightning compiles, validates, deploys and rolls back each feature independently, then rebuilds the shared computation when a serving process starts1.

    In November 2026, comparable extraction features reached production about 3.6x faster than on the prior F3, with no increase in infrastructure compute cost1. The shorter release cycle allows more model iterations in the same period1.

    Before the deployment

    Meta first presented F3 at AI @ Scale 20201. It compiled feature definitions, written in one expressive language, for both batch and streaming processing, and applied privacy enforcement at scale2.

    The F3 compiler turned each feature into a small graph and merged the graphs of every feature a service used into one merged graph1. Shared steps, such as a seven-day filter, then ran once per request instead of once per feature1. The merged graph was also the release unit:

    • One error blocked everything: One malformed definition could hold back every other feature in the merged graph1.
    • Scale raised the failure rate: F3 first served a few hundred features, and releases were largely smooth. It now serves more than 20,0001.
    • Slow tests held up fast changes: A feature that a live model consumes needs model-related tests that run only in a later release stage, and every other feature waited for them1.
    • Fixes wore off: Several rounds of improvements to the merged graph brought back release speed for a while, until more features landed1.

    What was built

    F3 Lightning makes every feature an independently releasable configuration and keeps the execution shared1. The work divides between the models, the release software and the serving runtime:

    • Ads ranking models: Predict from the feature values computed for each request1.
    • Engineers: Author each feature independently in a high-level language1.
    • F3 compiler: Compiles each feature on its own into a single configuration that carries every node it needs, with nothing borrowed from a neighbor1.
    • Release queue: Replaces the all-or-nothing batch with an ordered queue, prioritized by what each change unblocks1.
    • Serving runtime: Consolidates the work that active configurations share into a single execution order at startup1.

    A new feature that no model consumes yet goes out on standard validation, while a change to a feature that a live model reads gets extra testing first1.

    Figure 1Which checks a feature change passes before release
    Which checks a feature change passes before releaseAn engineer authors a feature. The F3 compiler compiles it into its own configuration. A decision asks whether a live model already reads the feature. If not, the feature goes through standard validation and is released. If so, it goes through model-related tests in a later release stage and is then released. A failed feature holds back only its own release.definition (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1]no, new feature (trigger or control) · Documented in source [1]yes, modified feature (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1]FEATURE ENGINEERSF3 LIGHTNING RELEASE PATHAuthor a feature · Step · Documented in source [1]Author afeatureCompile its own configuration · Step · Documented in source [1]Compile itsownconfigurationRead by a live model? · Decision · Documented in source [1]DECISIONRead by alive model?Standard validation · Step · Documented in source [1]StandardvalidationModel-related tests · Step · Documented in source [1]Model-relatedtestsRelease this feature only · Step · Documented in source [1]Release thisfeature onlydefinitionno, new featureyes, modifiedfeatureWhich checks a feature change passes before releaseAn engineer authors a feature. The F3 compiler compiles it into its own configuration. A decision asks whether a live model already reads the feature. If not, the feature goes through standard validation and is released. If so, it goes through model-related tests in a later release stage and is then released. A failed feature holds back only its own release.definition (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1]no, new feature (trigger or control) · Documented in source [1]yes, modified feature (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1]FEATURE ENGINEERSF3 LIGHTNING RELEASE PATHAuthor a feature · Step · Documented in source [1]Author a featureCompile its own configuration · Step · Documented in source [1]Compile its ownconfigurationRead by a live model? · Decision · Documented in source [1]DECISIONRead by a live model?Standard validation · Step · Documented in source [1]Standard validationModel-related tests · Step · Documented in source [1]Model-related testsRelease this feature only · Step · Documented in source [1]Release thisfeature onlydefinitionno, new featureyes, modified featureWhich checks a feature change passes before releaseAn engineer authors a feature. The F3 compiler compiles it into its own configuration. A decision asks whether a live model already reads the feature. If not, the feature goes through standard validation and is released. If so, it goes through model-related tests in a later release stage and is then released. A failed feature holds back only its own release.definition (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1]no, new feature (trigger or control) · Documented in source [1]yes, modified feature (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1] (trigger or control) · Documented in source [1]FEATURE ENGINEERSF3 LIGHTNING RELEASE PATHAuthor a feature · Step · Documented in source [1]Author a featureCompile its own configuration · Step · Documented in source [1]Compile its ownconfigurationRead by a live model? · Decision · Documented in source [1]DECISIONRead by a live model?Standard validation · Step · Documented in source [1]Standard validationModel-related tests · Step · Documented in source [1]Model-related testsRelease this feature only · Step · Documented in source [1]Release thisfeature onlydefinitionno, new featureyes, modifiedfeature
    • Trigger or control
    Source [1]
    Only changes to features that a live model reads wait for the model-related tests.

    Alternatives considered

    • Per-feature execution: Meta’s first prototypes separated deployment only. Each released configuration ran as its own graph, repeating every read, filter, and aggregation that the merged graph had removed1.
    • Shared execution without a merge: The team chose to rebuild shared execution at startup through four optimizations: stable computation identifiers, a single shared execution plan, one shared memory buffer and dense index mapping1.

    Technology and architecture

    Figure 2How F3 Lightning feeds features to Meta's ads ranking models
    How F3 Lightning feeds features to Meta's ads ranking modelsEngineers write feature definitions. The F3 compiler turns each definition into its own configuration with content-derived identifiers. The release queue validates and ships each configuration, with model-related tests for features a live model reads. In the serving process, the shared execution plan runs each shared computation once per request over stored signals and events, keeps the results in a shared memory buffer, and passes feature values to the ads ranking models. All parts are documented.one feature (data) · Documented in source [1]feature configuration (data) · Documented in source [1]live-model changes (trigger or control) · Documented in source [1]active configurations (data) · Documented in source [1]inputs per request (data) · Documented in source [1]intermediate results (data) · Documented in source [1]feature values (data) · Documented in source [1]BUILD AND RELEASESERVING PROCESSFeature definitions · Data · Documented in source [1]DATAFeaturedefinitionsF3 compiler · System · Documented in source [1]SYSTEMF3 compilerRelease queue · System · Documented in source [1]SYSTEMRelease queueModel-related tests · Step · Documented in source [1]Model-relatedtestsStored signals and events · Data · Documented in source [1]DATAStored signalsand eventsShared execution plan · System · Documented in source [1]SYSTEMSharedexecution planShared memory buffer · Data · Documented in source [1]DATASharedmemory bufferAds ranking models · AI model · Documented in source [1]AI MODELAds rankingmodelsone featurefeatureconfigurationlive-modelchangesactiveconfigurationsinputs perrequestintermediateresultsfeature valuesHow F3 Lightning feeds features to Meta's ads ranking modelsEngineers write feature definitions. The F3 compiler turns each definition into its own configuration with content-derived identifiers. The release queue validates and ships each configuration, with model-related tests for features a live model reads. In the serving process, the shared execution plan runs each shared computation once per request over stored signals and events, keeps the results in a shared memory buffer, and passes feature values to the ads ranking models. All parts are documented.one feature (data) · Documented in source [1]feature configuration (data) · Documented in source [1]live-model changes (trigger or control) · Documented in source [1]active configurations (data) · Documented in source [1]inputs per request (data) · Documented in source [1]intermediate results (data) · Documented in source [1]feature values (data) · Documented in source [1]BUILD AND RELEASESERVING PROCESSFeature definitions · Data · Documented in source [1]DATAFeature definitionsF3 compiler · System · Documented in source [1]SYSTEMF3 compilerRelease queue · System · Documented in source [1]SYSTEMRelease queueModel-related tests · Step · Documented in source [1]Model-related testsStored signals and events · Data · Documented in source [1]DATAStored signalsand eventsShared execution plan · System · Documented in source [1]SYSTEMShared execution planShared memory buffer · Data · Documented in source [1]DATAShared memory bufferAds ranking models · AI model · Documented in source [1]AI MODELAds ranking modelsone featurefeature configurationlive-model changesactive configurationsinputs per requestintermediate resultsfeature values
    • AI component
    • Data
    • Trigger or control
    Source [1]
    Features compile and release one by one, and the serving process merges their shared work at startup.

    F3 Lightning sits on top of F3 and changes two things: how features are released and how the serving process runs them1. The compiler gives each computation an identifier derived from its operation, its parameters and the identifiers of its inputs1. Two features that define the same operation over the same inputs get the same identifier, even when they were compiled weeks apart1.

    Layer What they used Role Source
    Embedding and ranking model Ads ranking models Predict from the feature values that the feature layer computes for each request 1
    Solution platform F3 Lightning Compiles, validates, deploys and rolls back each feature independently on top of F3 1
    Feature store Facebook Feature Framework (F3) Authors, compiles and serves the features that the ads ranking models read 1, 2
    Framework or library F3 compiler Compiles each feature definition into its own configuration with content-derived identifiers 1
    Model deployment Release queue Releases feature changes one at a time, prioritized by what they unblock 1
    Offline evaluation Model-related tests Test changes to features that a live model already reads before release 1
    Feature store Shared execution plan Runs every shared computation once per request in a single ordered pass 1
    Feature store Shared memory buffer Holds all intermediate results of one request in consecutive slots read by array index 1

    Data inputs

    • Stored signals and events: Each request reads stored signals, filters events to a time window, counts or sums values, normalizes them and combines the results1.
    • Feature definitions: Engineers write each one independently, and the compiler turns it into its own configuration1.
    • Batch and streaming data: F3 compiles one definition for both batch and streaming processing and optimizes the underlying data pipelines2.

    Serving-time optimizations

    The serving process does at startup the work that is the same for every request1:

    • One execution plan: A topological sort places every node after its inputs, and nodes with the same identifier collapse into one. The plan is then flattened into an ordered list1.
    • Failure isolation: If a computation fails or its input is unavailable, everything downstream is marked not ready and skipped. Independent branches keep running1.
    • One buffer per request: Per-feature data containers scattered intermediate results across memory, and each jump cost a cache miss. A single buffer keeps consecutive steps in adjacent memory1.
    • Shared references: A computation used by 20 features is computed once and stored once. Scalars are still copied, because copying a small value is cheaper than following a pointer1.
    • Dense index mapping: Every identifier gets a consecutive integer slot, so reading a result is a direct array index with no hashing on the request path1.

    How one request flows through the system

    1. The serving process starts and loads the active feature configurations1.
    2. The runtime builds one execution plan across all of them and maps each identifier to a slot in the buffer1.
    3. A request arrives, and the executor runs a single forward pass down the ordered list1.
    4. Each step reads its inputs from the shared buffer by array index and writes its result to its slot1.
    5. The ads ranking models read the finished feature values and make their prediction1.

    Results

    In November 2026, Meta published two results for F3 Lightning against the prior F31.

    Metric Before After Scope and timeframe Reported by
    Time for features to reach production Prior F3 about 3.6x faster Comparable extraction features, November 2026 Meta, measured1
    Infrastructure compute cost Prior F3 No increase Ads feature serving, November 2026 Meta, measured1
    • Time to production: Measures how fast comparable extraction features reach production, against releases through the prior F3 merged graph1.
    • Infrastructure compute cost: Shows that the per-feature releases add no computational cost to individual requests1.

    Lessons learned

    The per-feature design answered the problem that earlier fixes didn’t. Improvements to the merged graph wore off as features landed, while F3 Lightning removed the shared release unit itself1.

    Keeping efficiency took more work than splitting the releases. The per-feature prototypes used substantially more CPU than traditional F3, and closing that gap took four optimizations1.

    Removing repeated computation wasn’t enough on its own. CPU use stayed above traditional F3 until each shared result was kept as one copy in one buffer, which Meta calls the least obvious result of the project1.

    Meta draws a general lesson about release design. If one artifact decides both how components run and when they ship, a failure in any one of them blocks all the others1.

    The figures are Meta’s own, from its engineering blog post, and the speed-up covers comparable extraction features against the prior F31.

    Case study scorecard

    Sources by publication date

    • Organization 2

    Build this solution yourself

    Analysis

    What you need

    • A feature compiler you control: F3 Lightning depends on the compiler deriving identifiers from what each computation does, so that separately compiled features can share work1.
    • A serving process that can prepare at startup: The plan, the buffer layout and the index mapping are built once when the service starts, which keeps per-feature releases from adding cost to each request1.
    • Release checks sized to the risk: You need a way to tell new features from features a live model reads, because only the second kind waits for the expensive model-related tests1.

    Reference architecture

    Enterprise AI platform

    An enterprise AI platform gives an organization's staff one governed way to use language models for everyday reading and writing work. A staff member signs in and asks in a chat window or in the app they work in, and the platform screens the request and sends it, with the records it concerns, to a language model that doesn't train on the content. The person who asked checks the screened draft and decides what to do with it, and the program owners review the usage figures.

    A check mark shows a building block that this case study's sources document.

    Open the reference architecture

    Others who built it

    Cite this case study

    Enterprise AI Case Studies. "Meta gets ads ML features to production 3.6x faster." Updated Nov 26, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-066-ads-ml-feature-releases-meta/

    @misc{csai-er-066,
      author = {{Enterprise AI Case Studies}},
      title = {{Meta gets ads ML features to production 3.6x faster}},
      year = {2026},
      note = {Updated 2026-11-26},
      url = {https://case-studies.ai/case-studies/engineering-and-research/ER-066-ads-ml-feature-releases-meta/}
    }

    Sources

    The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership

    1. Source 1:

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

      OrganizationMeta, Nov 3, 20263 Nov 2026By Xiaohe Dong, Jonathan He, Jesus Francisco Anaya Gonzalez, Purbesh Sahoo, and Daniel WangAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (48)
      • 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.
      • a single failure or invalid definition blocked the entire release pipeline
      • an infrastructure layer built on top of F3 to resolve this challenge by decoupling feature releases from shared execution, so each feature is compiled, validated, deployed, and rolled back independently
      • Early per-feature release prototypes increased CPU usage because independent features no longer shared computation.
      • four optimizations: stable computation identifiers, a single shared execution plan, one shared memory buffer across all features, and dense index mapping for direct array access
      • With F3 Lightning, comparable extraction features now reach production ~3.6x faster than the prior F3, with no increase in infrastructure compute cost.
      • This shorter release cycle also enables more model iterations in the same period.
      • Before a model can make a prediction, its feature-serving system may need to read stored signals, filter events to a time window, count or sum values, normalize them, and combine intermediate results.
      • Engineers author each feature independently in a high-level language.
      • The F3 compiler turns each definition into a small graph, then merges the graphs for every feature a service uses into one merged graph
      • That shared work then runs once per request, not once for every feature that needs it.
      • one malformed definition could hold back every other feature in the merged graph
      • F3 originally served a few hundred features, and at that size merges succeeded and releases were largely smooth. Today that number is more than 20,000
      • new features and modified features are held to different testing bars. A feature that a model already consumes needs model-related tests before it can be released.
      • Those tests are computationally expensive enough that they run only in a later release stage, and, because the merged graph ships as one unit, every other feature in it waits for them too.
      • Each one brought back release speed for a while, but the gains eroded as more features landed, because all features still shipped together in the merged graph.
      • Isolation starts in the compiler, where each feature is compiled on its own into a single configuration.
      • every node it needs, in order, with nothing borrowed from a neighbor
      • If feature C has a problem, feature A still ships, because the two configurations have no relationship to each other.
      • It is validated, shipped, and rolled back without affecting any other feature.
      • The release path becomes an ordered queue instead of a batch that ships all at once or not at all. Changes are prioritized by what they unblock.
      • A new feature that no model consumes yet can go out quickly on standard validation, while a change to a feature a live model already reads gets extra testing first.
      • the prototypes used substantially more CPU than traditional F3
      • repeating every read, filter, and aggregation that
      • It takes the active feature configurations, consolidates the work they share, and arranges it into a single execution order.
      • the compiler derive each identifier from what the work does, not where it sits: the operation, its parameters, and the identifiers of its inputs
      • two features that define the same operation over the same inputs receive the same identifier, even if they were compiled and released weeks apart
      • At service startup, F3 Lightning builds a single execution plan across all active features, using a topological sort to place every node after the nodes it depends on.
      • flattens it into an ordered list, so each request runs a single forward pass down the list instead of traversing a graph
      • if a computation fails or its input is unavailable, F3 Lightning marks everything downstream of it as not ready, and the executor skips that work
      • A failure affects only the nodes that depend on it, and independent branches keep running.
      • Each configuration carried its own request-time data container, so intermediate results were scattered across separate memory allocations.
      • Walking the plan in order meant jumping between them, and each jump cost a cache miss.
      • F3 Lightning replaced those per-feature containers with one buffer per request.
      • a computation used by 20 features is computed once and stored once. Single values (scalars) are still copied, because copying a small value is cheaper than following a pointer.
      • Every access had to resolve an identifier, which meant hashing a key, probing buckets, and following a pointer.
      • computationally efficient at Meta
      • F3 Lightning assigns every unique identifier a consecutive integer slot and rewrites every reference in every configuration to point at those slots
      • Reading a result becomes a direct array index into the shared buffer, with no hashing and no lookup table on the request path.
      • If one artifact determines both how components run and when they ship, a failure in any one of them blocks all the others.
      • Three tasks were identical for every request: spotting shared work, deciding the order to run it in, and finding where each result is stored.
      • F3 Lightning now does them once, when the service starts, so independent releases add no computational cost to individual requests.
      • In F3 Lightning, we removed every repeated computation, yet CPU use stayed above traditional F3.
      • Consolidating them into one copy per result closed the gap.
      • This is the least obvious result in the project and the one that generalizes furthest.
      • On modern CPUs, where results live and how many copies exist can matter as much as how many computations run.
      • That shorter release cycle means models can be improved and retrained more often in the same period.
    2. Source 2:

      AI @Scale 2020: F3: Next-generation Feature Framework at Facebook

      OrganizationAt Scale Conferences, Aug 12, 202212 Aug 2022By David Chung and Qiao YangVideoAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (3)
      • leverages compiler technology to unify batch and streaming processing of these features in an expressive language
      • It also automatically optimizes underlying data pipelines and applies privacy enforcement at scale.
      • This new framework enables efficient experimentation in building machine learning features to semantically model behaviors and intent of users

    More in Engineering & Research

    View all