---
eip: 7716
label: EIP-7716
title: Anti-Correlation Attestation Penalties
status: Draft
type: Standards Track
category: Core
created: 2024-05-25
official: https://eips.ethereum.org/EIPS/eip-7716
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7716.md
canonical: https://eips.huatuo.xyz/eip-7716/
lang: en
tldr: Draft consensus change that multiplies the missed-attestation penalty when many validators go offline at the same moment, so correlated setups (same cloud, client or operator) pay more than independent solo stakers.
tags: [consensus, staking, penalties, decentralization, validators]
---

# EIP-7716: Anti-Correlation Attestation Penalties

> Scales penalties for fully-offline validators by the excess of concurrently offline stake over its trailing average

**TL;DR:** Draft consensus change that multiplies the missed-attestation penalty when many validators go offline at the same moment, so correlated setups (same cloud, client or operator) pay more than independent solo stakers.

## What problem does it solve?

Today a validator that misses an attestation pays the same penalty whether it failed alone or together with a third of the network. So there is little economic reason to diversify across clients, clouds, regions or machines. Large operators that run thousands of validators on identical infrastructure carry no extra cost for that concentration.

Correlation is already priced, but only above one third of stake offline, where the inactivity leak kicks in. Below that the protocol is blind to it. EIP-7716 adds a smooth price for correlated failure in the roughly 1 %–33 % range.

## How it works

- A validator counts as **offline** for an epoch if it has **neither** the timely-source **nor** the timely-target flag. A validator that voted with a wrong target but a timely source was alive, so it is not treated as offline.
- For each slot of the previous epoch, the beacon chain sums the effective balance of offline validators in that slot's committees: the **offline balance**.
- The state keeps one new field, `smoothed_offline_balance`, an exponential moving average of that number with a half-life of about 6.3 days.
- Each slot gets a **penalty factor**:

```python
excess = max(offline_balance - smoothed_offline_balance, 0)
penalty_factor = min(1 + PENALTY_SLOPE * excess // per_slot_active_balance,
                     MAX_PENALTY_FACTOR)      # 765 and 256 in the draft
```

- Only the **timely-target penalty** of offline validators is multiplied by this factor. Source penalties, rewards, proposer and sync-committee payouts and the inactivity leak are unchanged.

Because the average catches up over time, the factor is highest when a correlated outage begins and fades as it continues. The design punishes *being correlated*, not *being slow to recover*, which would hit small operators harder. Under normal conditions the factor is exactly 1.

## Sample code

Illustrative TypeScript of the per-slot factor, following the draft's constants:

```ts
const MAX_PENALTY_FACTOR = 256n;
const PENALTY_SLOPE = 765n;           // 3 * (MAX_PENALTY_FACTOR - 1)
const SMOOTHING = 65536n;             // 2**16

export function slotPenaltyFactor(
  offline: bigint,        // gwei offline in this slot's committees
  smoothed: bigint,       // current moving average (gwei)
  totalActive: bigint,    // total active balance (gwei)
  slotsPerEpoch = 32n,
): { factor: bigint; nextSmoothed: bigint } {
  const excess = offline > smoothed ? offline - smoothed : 0n;
  const ref = totalActive / slotsPerEpoch;
  let factor = 1n + (PENALTY_SLOPE * excess) / ref;
  if (factor > MAX_PENALTY_FACTOR) factor = MAX_PENALTY_FACTOR;
  const nextSmoothed = offline > smoothed
    ? smoothed + (offline - smoothed) / SMOOTHING
    : smoothed - (smoothed - offline) / SMOOTHING;
  return { factor, nextSmoothed };
}
```

With these constants the cap of 256 is reached exactly when the excess equals one third of per-slot stake, where the inactivity leak takes over.

## Things to know

- Status is **Draft**. Constants and the mechanism have already changed between revisions (earlier drafts used a `NET_EXCESS_PENALTIES` counter), and the EIP is not scheduled for any fork.
- A validator that misses attestations on its own, uncorrelated with others, pays the same as today.
- The spec includes calibration tables and replays of past incidents to estimate costs; treat those figures as the authors' modelling, not settled economics.
- It is meant to compose with, but not depend on, [EIP-8333](/eip-8333/), which changes how epoch checkpoints are anchored.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7716
