← Latest papers
💻 computer science

Mayfly: Private Aggregate Insights from Ephemeral Streams of On-Device User Data

Mayfly is a federated analytics system that enables the computation of aggregate insights from ephemeral on-device user data streams by combining on-device windowing, SQL-programmable contribution bounding, and streaming differential privacy to ensure privacy-preserving aggregation without central data persistence.

Original authors: Christopher Bian, Albert Cheu, Stanislav Chiknavaryan, Zoe Gong, Marco Gruteser, Oliver Guinan, Yannis Guzman, Peter Kairouz, Artem Lagzdin, Ryan McKenna, Grace Ni, Edo Roth, Maya Spivak, Timon Van Ov
Published 2026-02-16
📖 5 min read🧠 Deep dive

Original authors: Christopher Bian, Albert Cheu, Stanislav Chiknavaryan, Zoe Gong, Marco Gruteser, Oliver Guinan, Yannis Guzman, Peter Kairouz, Artem Lagzdin, Ryan McKenna, Grace Ni, Edo Roth, Maya Spivak, Timon Van Overveldt, Ren Yi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you want to know how much carbon dioxide your entire city produces from driving, walking, and flying. To do this, you need to ask millions of people: "How far did you travel today?"

The problem? If you ask everyone to send you their exact location history, you create a massive privacy nightmare. If that data gets hacked, or if a curious employee looks at it, you could track exactly where every single person lives, works, and vacations.

Mayfly is a new system designed by Google researchers to solve this. It's like a "ghost ship" that collects answers without ever keeping a log of who said what. Here is how it works, explained through simple analogies.

1. The "Mayfly" Metaphor

The system is named after the Mayfly, an insect that lives for only a few hours to a few days.

  • The Idea: Just like a mayfly lives briefly and then vanishes, this system ensures that individual user data exists in the computer's memory for only a split second before it is mixed up and destroyed.
  • The Goal: The server (the central computer) never saves a list of "User A went to the park." It only saves the final answer: "10,000 people went to the park."

2. The Three Magic Pillars

To make this happen, Mayfly uses three main tricks:

A. The "Smart Filter" (On-Device Minimization)

Imagine you are a chef trying to make a soup for a million people. Instead of asking everyone to send you their entire fridge contents (which includes their secret recipes and personal notes), you ask them to just send you one specific ingredient they used today.

  • How it works: The app on your phone acts as a smart filter. It looks at your data, does the math locally (e.g., "I drove 5 miles"), and throws away everything else. Only the tiny, necessary number is sent to the server. The server never sees your raw data.

B. The "Instant Mixer" (Ephemeral Aggregation)

Imagine a giant party where everyone throws a note into a single, transparent box.

  • The Old Way: The host collects all the notes, puts them in a filing cabinet, and reads them later. If the cabinet is stolen, everyone's secrets are out.
  • The Mayfly Way: As soon as a note lands in the box, a machine instantly mixes it with thousands of other notes, turns it into a single statistic (e.g., "Total miles driven"), and then immediately burns the original notes. The server never holds the individual notes in its memory for more than a second. Once the mix is done, the individual contributions are gone forever.

C. The "Static Noise" (Differential Privacy)

Even if you mix the data, a clever hacker might try to guess what your specific number was by looking at the final total. To stop this, Mayfly adds a little bit of "static noise" to the final answer.

  • The Analogy: Imagine you are trying to guess the weight of a single grain of sand in a bucket of sand. If you add a little bit of sawdust to the bucket, the total weight changes slightly. You can still calculate the average weight of the sand perfectly well, but you can no longer figure out the exact weight of your specific grain of sand.
  • The Result: The final numbers are slightly "fuzzy," but they are accurate enough for city planners to make decisions, while being mathematically impossible to reverse-engineer to find an individual.

3. The Real-World Test: The Carbon Project

The researchers tested this on a real project called Environmental Insights Explorer (EIE).

  • The Challenge: They needed to calculate carbon emissions for 500 million devices.
  • The Problem: Some people walk 1 mile; others fly 5,000 miles. If you just add noise to the total, the "walkers" get drowned out by the "flyers," or the "flyers" get too much noise.
  • The Solution: They invented a new math trick called "Group Scaling."
    • Analogy: Imagine weighing a feather and an elephant on the same scale. The scale breaks. Mayfly puts the feather in a "feather box" and the elephant in an "elephant box," weighs them separately with the right amount of noise, and then adds the results together. This ensures the tiny walkers aren't lost in the noise of the big flyers.

4. Why It Matters

  • Privacy: No one (not even the company running the system) can see your personal travel history.
  • Scale: It works on hundreds of millions of phones without slowing them down or draining their batteries.
  • Utility: Despite the privacy protections, the data is still accurate enough to help cities reduce pollution and improve traffic.

Summary

Mayfly is like a highly efficient, privacy-obsessed accountant. Instead of keeping a ledger of every single transaction (which is risky), it asks everyone to do their own math, sends only the final result, mixes it instantly with everyone else's result, adds a little bit of "static" to hide individual details, and then deletes the original request. The result is a clear picture of the whole crowd, without ever revealing who is in it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →