Skip to main content
Lightweight MMM: Marketing Mix Modeling (MMM) package by Google
Lauri Potka avatar
Written by Lauri Potka
Updated over 8 months ago

What is Lightweight MMM?

Lightweight MMM is an open-source Marketing Mix Modeling (MMM) package developed by Google. Lightweight MMM enables users to conduct Bayesian Marketing Mix Modeling using python, and is built using Numpyro and JAX.

With Lightweight MMM, skilled analysts and data scientists can create Marketing Mix Models with ready-made modeling tools:

  1. Building models

  2. Reviewing model outputs, such as Marketing ROI, Diminishing return curves

  3. Optimizing media budget allocations

Lightweight MMM makes it faster for data scientists to build Bayesian Marketing Mix Models, so that they don't need to spend time themselves implementing features such as adstock or diminishing returns.

Lightweight MMM is typically compared with Meta's Robyn, which is another open-source library for Marketing Mix Modeling. For a detailed comparison and review of Lightweight MMM vs. Robyn, you can check this blog post.

In 2024 March, Google announced a new MMM library, Meridian, which replaces Lightweight MMM, once it reaches general availability. Meridian is the next iteration of Google's Bayesian Marketing Mix Modeling package.

Who is Lightweight MMM for?

Google Lightweight MMM is built for

  • Data scientists and skilled analysts, who wish to do the whole Marketing Mix Modeling workflow themselves, from data cleaning to model outputs.

  • Hobbyist modelers and statisticians who wish to learn more about how Marketing Mix Modeling works

Background of Lightweight MMM

Lightweight MMM builds on the long-standing research work done by Google on Marketing Mix Models. We at Sellforte are big fans of Google's work on the topic, and have incorporated many of the ideas from Google's papers in our work. Examples of Google's research on Marketing Mix Modeling below:

Lightweight MMM vs. Sellforte: A Comparison guide

In summary, Sellforte is an end-to-end MMM platform, while Lightweight MMM can be considered a modeling package or library.

1. Data integrations

Sellforte uses automated data connectors when connecting data. This minimizes the time spent on data update in the future, and enables using Sellforte's standard data processing pipelines that are cornerstone in delivering high quality MMM results. Below is the data connector view in the Sellforte product, that is available from the public Sellforte demo. Using this view, users can connect data to Sellforte. Sellforte also has other tools available for connecting data.

Data connectors in Sellforte Marketing Mix Modeling platform

Lightweight MMM: Users collect the data from different ad platforms themselves.

2. Data processing

Context: Raw data, coming for example from ad platforms or ecom platforms, is rarely usable for Marketing Mix Model without any processing. Typical data processing activities include for example data validation, campaign mapping, and building media hierarchies.

Sellforte offers standard data processing as part of the solution. Users can also export processed data to other platforms, tools or dashboards they might have.

Lightweight MMM does not offer data processing tools, beyond basic data transformations available in python.

3. Modeling

Sellforte conducts modeling on behalf of the user, leveraging the modeling expertise it has built over the years. Sellforte takes responsibility of result quality. Quality in Sellforte's modeling is built on 3 pillars:

  • Intelligent data processing: As an output from the data processing, Sellforte's modeling pipelines start from a clean and MMM-tailored dataset. (Note: this is an overlooked topic in MMM)

  • Proprietary configuration of Bayesian modeling approach: Sellforte's modeling approach is based on Bayesian inference, the golden standard for MMM. Sellforte has a proprietary configuration of Bayesian modeling, and standardized model validation flow for maximum quality.

  • Standardized calibration methodology: Sellforte's models are calibrated with the best available information for each media (lift tests, attribution data, Sellforte benchmarks..)

Lightweight MMM enables users to build Bayesian models themselves, and has an extensive documentation available (illustration below).

Picture of Google Lightweight MMM documentation

5. Regular model updates

Sellforte's models are updated regularly automatically as new data comes in.

Lightweight MMM's models can be updated by manually updating the data in the model.

6. Reviewing historical marketing performance

Sellforte provides a user-friendly online user-interface, that can be accessed online anytime. Historical results can be reviewed with various charts, and can be filtered in many ways. Below is a screenshot from the public Sellforte demo:

Screeshot of Sellforte Marketing Mix Modeling's user interface

Lightweight MMM does not have a dedicated user-interface for results analysis. However, users can plot data and model outputs. While this might be sufficient for a data scientist, it is difficult for the marketing team to access MMM results with this approach. One option for the data scientist is to create reports based on the analysis. However, this often leads to a lot of extra work for the data scientist. Below is an example of a result output plot (source: Lightweight MMM's documentation):

Picture of Google Lightweight MMM modeling output

7. Optimizing and testing scenarios

Sellforte provides a user-friendly online tool for optimisation and scenario planning. Below is a screenshot of the tool from the public Sellforte demo. With the tool, users can for example find optimal budget allocations with different budget levels. In scenario building, users can define various constraints and parameters for optimization, such as channels to optimize, and budget constraints per channel.

Picture of Sellforte Media Optimizer

Lightweight MMM does not have an optimization user-interface, but the user can define optimization scenarios in python, and review optimization outputs as plotted graphs and tables. Running scenario analysis can be slow and laboursome with this approach, as the data scientist has to translate marketing team's questions into code for the Lightweight MMM library, and then communicate the outputs back to team. Below are examples of optimization plots (source: Lightweight MMM's documentation):

Picture of Google Lightweight MMM optimizer output

Picture of Google Lightweight MMM optimizer output

8. Making conclusions based on MMM

Sellforte provides Customer Success service to its customer for interpreting the results and drawing conclusions based on them (support level depends on the contract agreed between Sellforte and customer).

Further reading

Did this answer your question?