DéjàVu: Plurality Consensus by First Repetition

Niccolò D'Archivio, George Giakkoupis, Frédéric Giroire, Emanuele NatalearXiv 2026

TL;DR

How can millions of simple agents agree on the most popular option among many without keeping tallies, counting, or even knowing how many agents or options exist? Enter DéjàVu: each agent just samples random peers one by one and adopts the very first opinion it hears twice, wiping its memory right after. Despite its radical simplicity, this "first repetition" rule reaches consensus just as fast—and sometimes strictly faster—than traditional fixed-sample voting protocols, even if those protocols are hand-tuned by an oracle.

What Problem Does This Paper Address?

Imagine a decentralized network—a swarm of nanobots, distributed servers, or biological cells—where $n$ agents hold $k$ different initial opinions. Their goal is plurality consensus: getting everyone to agree on whichever opinion initially had the biggest crowd ($M_0$), even if that crowd is only a tiny fraction of the total population rather than an outright majority.

A classic way to solve this is the $h$-Majority protocol: every agent queries $h$ random peers (one per round), tallies the responses, and switches to the most frequent opinion in their sample. There’s a catch, though. First, agents need frequency counters to tally votes. Second, choosing the sample size $h$ is a delicate balancing act. If $h$ is too small, nobody sees a repeat opinion and the decision is pure noise; if $h$ is too large, agents waste precious time over-sampling when the winner is already obvious. Worse yet, picking the "right" $h$ requires knowing global system parameters like $n$ and $M_0$ upfront—information individual agents rarely have.

Can a population achieve fast consensus with no counters and zero global knowledge?

Methods

The authors analyze DéjàVu in the standard synchronous uniform PULL model (in each round, every agent peaks at one uniformly random peer's current opinion).

The DéjàVu rule is dead simple:

  1. Remember the distinct opinions you see each round.
  2. The moment you observe an opinion you've already seen since your last reset, adopt that opinion and wipe your memory clean.

This relies solely on repetition detection—a primitive ability documented even in single biological neurons.

While the protocol is simple to state, analyzing it is a mathematical minefield. In standard memoryless protocols, knowing the current headcount of each opinion tells you everything about the next round. In DéjàVu, agents carry hidden memories accumulated over many past rounds while the population's opinions were actively shifting. Furthermore, an agent's memory age dictates its lifespan: older, fuller memories are much more likely to hit a collision and reset! If the leading opinion's advantage is held mostly inside "old" memories, a wave of resets could wipe that advantage out.

To tame this non-Markovian beast, the authors introduce a clever analytical technique:

  • Conditioning on History: Instead of exposing what is inside every agent's memory, they reveal only the global opinion counts and which agents reset in each round. Given that history, the hidden memories of agents become independentagain, governed by an exact, tractable probability law.
  • Age-Weighted Scoring: They group agents into cohorts by when they last reset, tracking how the leading opinion's advantage is distributed across memory ages and giving more weight to recently reset ("younger") agents because their memories will survive longer to drive future rounds.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving mathematical bounds on distributed algorithms.)

Key Insights and Ideas

  • The Birthday Paradox as an Adaptive Timer: Why does waiting for a single repeat work so well? Think of the Birthday Paradox: if an opinion currently holds a fraction $p$ of the population, you'll see it repeat in roughly $1/p$ steps, while random background noise collisions take roughly $\sqrt{n/M_0}$ steps. As the winning opinion grows more popular, collisions happen automatically faster. DéjàVu naturally adapts its effective sample size on the fly as consensus approaches!
  • Beating the Oracle: Even if an omniscient designer picks the single best fixed sample size $h$ for $h$-Majority based on the starting configuration, $h$ is still stuck at that fixed number for the whole run. Because the optimal sample size shrinks as the plurality opinion grows, DéjàVu's self-adjusting cycle beats every fixed $h$ on certain initial setups.
Comparison of convergence rounds between DéjàVu and streaming h-Majority across sample sizes h.

Key Results

Let $M_0$ be the initial count of the plurality opinion, and $\Delta_0$ be its bias (the margin between $M_0$ and the runner-up opinion). Whenever the initial bias clears normal random fluctuations—specifically, $\Delta_0 = \Omega(\sqrt{M_0 \log n})$—the authors prove that with high probability:

  • Convergence Time: DéjàVu reaches full consensus on the initial plurality opinion in $O\left(\sqrt{\frac{n}{M_0}} \log\frac{e M_0}{\Delta_0} + \log\log n\right)$ rounds.
  • Head-to-Head with $h$-Majority: In this bias regime, DéjàVu is asymptotically never slower than streaming $h$-Majority (collecting 1 sample per round) for any fixed choice of $h$.
  • Strict Speedup: There exist initial configurations (such as when all $k$ opinions start roughly balanced around $n/k$ with a tight margin) where any fixed-$h$ protocol suffers a logarithmic-scale penalty, making DéjàVu strictly faster by a factor of $\Omega(\sqrt{\log\log(n/M_0)})$, as illustrated in the figure above.

Limitations and Future Work

The authors highlight that the provided analysis establishes upper bounds for DéjàVu and compares it against fixed-$h$ streaming protocols under uniform synchronous interactions; however, specific limitations and future work directions are not discussed in the provided excerpt of the paper.

Summary updated

Abstract

We analyze DéjàVu, a simple protocol for plurality consensus: in each synchronous round, each agent samples one uniformly random agent and adopts the first opinion it observes twice, resetting its memory after every adoption. The rule requires neither frequency counters nor knowledge of the population size or the number of opinions. It relies only on repetition detection, an ability documented in single neurons and reflected in the mere-exposure effect. For a population of $n$ agents with $k$ initial opinions, let $M_0$ be the initial count of the plurality opinion (so $n/M_0 \le k$) and $Δ_0$ its bias, the difference between $M_0$ and the count of the second most popular opinion. We prove that, whenever $Δ_0 = Ω(\sqrt{M_0 \log n})$, DéjàVu reaches consensus on the initial plurality opinion within $O(\sqrt{n/M_0} \log(e M_0 / Δ_0) + \log\log n)$ rounds with high probability. Moreover, we show that, for the same bias regime, DéjàVu is asymptotically never slower than the $h$-majority protocol, collecting its $h$ samples one per round, for every fixed choice of $h$, even one chosen optimally for the initial configuration. There are also initial configurations for which DéjàVu is asymptotically faster for every $h$. The opinion counts alone do not determine the dynamics: each adoption depends on a hidden memory filled over many rounds while the population changed, and agents with older (hence fuller) memories tend to reset sooner, so an advantage held mostly by them can be lost. The few rigorous convergence results we are aware of for such dynamics concern only two opinions. We derive the exact law of the memories given the history of opinions and resets, and track how the plurality opinion's advantage is distributed across memory ages, giving more weight to recently reset agents as they are less likely to reset again soon.
BibTeX
@misc{darchivio2026dejavu,
  author = {Niccolò D'Archivio and George Giakkoupis and Frédéric Giroire and Emanuele Natale},
  title = {{DéjàVu: Plurality Consensus by First Repetition}},
  year = {2026},
  eprint = {2611.34534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34534},
}
Figure