{"eip":7716,"title":"Anti-Correlation Attestation Penalties","description":"Scales penalties for fully-offline validators by the excess of concurrently offline stake over its trailing average","authors":["dapplion (@dapplion)","Toni Wahrstätter (@nerolation)","Vitalik Buterin (@vbuterin)","Oisín Kyne (@OisinKyne)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2024-05-25","discussionsTo":"https://ethereum-magicians.org/t/eip-7716-anti-correlation-attestation-penalties/20137","repo":"EIPs","label":"EIP-7716","officialUrl":"https://eips.ethereum.org/EIPS/eip-7716","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7716.md","url":"https://eips.huatuo.xyz/eip-7716/","tldr":{"en":"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.","ja":"多数のバリデーターが同時にオフラインになったときに、attestation 欠落のペナルティを増幅するコンセンサス変更のドラフト。相関のある構成（同じクラウド、クライアント、オペレーター）が、独立したソロステイカーより多く支払うことになる。","ko":"많은 밸리데이터가 동시에 오프라인이 되면 attestation 누락 페널티를 배수로 키우는 합의 변경 초안. 같은 클라우드, 클라이언트, 운영자처럼 상관관계가 있는 구성이 독립적인 솔로 스테이커보다 더 많이 내게 된다.","zh":"共识层变更草案：当大量验证者同时离线时，成倍放大漏证明（attestation）的惩罚，使相关性高的部署（同一云、客户端或运营者）比独立的个人质押者付出更多。"},"tags":["consensus","staking","penalties","decentralization","validators"],"explainers":{"en":{"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"],"related":[7251,8333],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7716/","markdown":"## What problem does it solve?\n\nToday 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.\n\nCorrelation 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.\n\n## How it works\n\n- 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.\n- 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**.\n- 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.\n- Each slot gets a **penalty factor**:\n\n```python\nexcess = max(offline_balance - smoothed_offline_balance, 0)\npenalty_factor = min(1 + PENALTY_SLOPE * excess // per_slot_active_balance,\n                     MAX_PENALTY_FACTOR)      # 765 and 256 in the draft\n```\n\n- 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.\n\nBecause 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.\n\n## Sample code\n\nIllustrative TypeScript of the per-slot factor, following the draft's constants:\n\n```ts\nconst MAX_PENALTY_FACTOR = 256n;\nconst PENALTY_SLOPE = 765n;           // 3 * (MAX_PENALTY_FACTOR - 1)\nconst SMOOTHING = 65536n;             // 2**16\n\nexport function slotPenaltyFactor(\n  offline: bigint,        // gwei offline in this slot's committees\n  smoothed: bigint,       // current moving average (gwei)\n  totalActive: bigint,    // total active balance (gwei)\n  slotsPerEpoch = 32n,\n): { factor: bigint; nextSmoothed: bigint } {\n  const excess = offline \u003e smoothed ? offline - smoothed : 0n;\n  const ref = totalActive / slotsPerEpoch;\n  let factor = 1n + (PENALTY_SLOPE * excess) / ref;\n  if (factor \u003e MAX_PENALTY_FACTOR) factor = MAX_PENALTY_FACTOR;\n  const nextSmoothed = offline \u003e smoothed\n    ? smoothed + (offline - smoothed) / SMOOTHING\n    : smoothed - (smoothed - offline) / SMOOTHING;\n  return { factor, nextSmoothed };\n}\n```\n\nWith 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.\n\n## Things to know\n\n- 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.\n- A validator that misses attestations on its own, uncorrelated with others, pays the same as today.\n- The spec includes calibration tables and replays of past incidents to estimate costs; treat those figures as the authors' modelling, not settled economics.\n- It is meant to compose with, but not depend on, [EIP-8333](/eip-8333/), which changes how epoch checkpoints are anchored.\n"},"ja":{"lang":"ja","tldr":"多数のバリデーターが同時にオフラインになったときに、attestation 欠落のペナルティを増幅するコンセンサス変更のドラフト。相関のある構成（同じクラウド、クライアント、オペレーター）が、独立したソロステイカーより多く支払うことになる。","tags":["consensus","staking","penalties","decentralization","validators"],"related":[7251,8333],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7716/","markdown":"## 何を解決するのか\n\n現状では、attestation を逃したバリデーターは、単独で失敗した場合でもネットワークの 3 分の 1 と一緒に失敗した場合でも、同じペナルティを支払います。そのため、クライアント、クラウド、リージョン、マシンを分散させる経済的な理由がほとんどありません。同一のインフラで数千のバリデーターを動かす大規模なオペレーターは、その集中に対して追加のコストを負いません。\n\n相関はすでに価格が付けられていますが、それはステークの 3 分の 1 を超えてオフラインになり、inactivity leak が働く場合に限られます。それ未満ではプロトコルは相関に気づきません。EIP-7716 は、おおよそ 1 %〜33 % の範囲における相関障害に、滑らかな価格を付けます。\n\n## 仕組み\n\n- バリデーターは、タイムリーな source フラグも target フラグも**どちらも**持たない場合に、そのエポックで**オフライン**とみなされます。target を誤ったがタイムリーな source で投票したバリデーターは生きていたので、オフラインとは扱われません。\n- 前のエポックの各スロットについて、ビーコンチェーンはそのスロットの委員会に属するオフラインのバリデーターの effective balance を合計します。これが**オフライン残高**です。\n- ステートには新しいフィールド `smoothed_offline_balance` が 1 つ加わります。これはその数値の指数移動平均で、半減期は約 6.3 日です。\n- 各スロットには**ペナルティ係数**が付きます。\n\n```python\nexcess = max(offline_balance - smoothed_offline_balance, 0)\npenalty_factor = min(1 + PENALTY_SLOPE * excess // per_slot_active_balance,\n                     MAX_PENALTY_FACTOR)      # 765 and 256 in the draft\n```\n\n- この係数が掛けられるのは、オフラインのバリデーターの**タイムリー target ペナルティ**だけです。source のペナルティ、報酬、proposer や sync committee への支払い、inactivity leak は変わりません。\n\n平均は時間とともに追いついてくるため、係数は相関した障害の始まりで最も高く、障害が続くにつれて下がっていきます。この設計が罰するのは「復旧が遅いこと」ではなく「相関していること」です。前者を罰すると小規模なオペレーターのほうが重く打撃を受けます。通常の状況では、係数はちょうど 1 です。\n\n## サンプルコード\n\nドラフトの定数に従った、スロットごとの係数を計算する TypeScript の例（説明用）:\n\n```ts\nconst MAX_PENALTY_FACTOR = 256n;\nconst PENALTY_SLOPE = 765n;           // 3 * (MAX_PENALTY_FACTOR - 1)\nconst SMOOTHING = 65536n;             // 2**16\n\nexport function slotPenaltyFactor(\n  offline: bigint,        // gwei offline in this slot's committees\n  smoothed: bigint,       // current moving average (gwei)\n  totalActive: bigint,    // total active balance (gwei)\n  slotsPerEpoch = 32n,\n): { factor: bigint; nextSmoothed: bigint } {\n  const excess = offline \u003e smoothed ? offline - smoothed : 0n;\n  const ref = totalActive / slotsPerEpoch;\n  let factor = 1n + (PENALTY_SLOPE * excess) / ref;\n  if (factor \u003e MAX_PENALTY_FACTOR) factor = MAX_PENALTY_FACTOR;\n  const nextSmoothed = offline \u003e smoothed\n    ? smoothed + (offline - smoothed) / SMOOTHING\n    : smoothed - (smoothed - offline) / SMOOTHING;\n  return { factor, nextSmoothed };\n}\n```\n\nこれらの定数では、超過分がスロットあたりのステークの 3 分の 1 に等しくなった時点でちょうど上限の 256 に達し、そこから先は inactivity leak が引き継ぎます。\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。定数と仕組みはすでにリビジョン間で変わっており（初期のドラフトは `NET_EXCESS_PENALTIES` カウンターを使っていました）、この EIP はどのフォークにも予定されていません。\n- 他のバリデーターと相関せず、単独で attestation を逃したバリデーターが支払う額は、現在と同じです。\n- 仕様には、コストを見積もるための較正表と過去のインシデントの再現が含まれています。これらの数字は著者によるモデリングであり、確定した経済学ではないものとして扱ってください。\n- [EIP-8333](/eip-8333/)（エポックのチェックポイントをどう固定するかを変更するもの）と組み合わせて使えるよう意図されていますが、それに依存はしません。\n"},"ko":{"lang":"ko","tldr":"많은 밸리데이터가 동시에 오프라인이 되면 attestation 누락 페널티를 배수로 키우는 합의 변경 초안. 같은 클라우드, 클라이언트, 운영자처럼 상관관계가 있는 구성이 독립적인 솔로 스테이커보다 더 많이 내게 된다.","tags":["consensus","staking","penalties","decentralization","validators"],"related":[7251,8333],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7716/","markdown":"## 어떤 문제를 해결하나요?\n\n현재는 attestation을 놓친 밸리데이터가 혼자 실패했든 네트워크의 3분의 1과 함께 실패했든 똑같은 페널티를 냅니다. 그래서 클라이언트, 클라우드, 리전, 머신을 분산할 경제적 이유가 거의 없습니다. 동일한 인프라에서 수천 개의 밸리데이터를 돌리는 대형 운영자는 그런 집중에 추가 비용을 치르지 않습니다.\n\n상관관계에는 이미 가격이 붙어 있지만, 스테이크의 3분의 1 넘게 오프라인이 되어 inactivity leak이 작동하는 경우에 한합니다. 그 아래에서는 프로토콜이 상관관계를 보지 못합니다. EIP-7716은 대략 1 %–33 % 구간의 상관된 장애에 매끄러운 가격을 추가합니다.\n\n## 어떻게 동작하나요?\n\n- 밸리데이터가 한 에포크에서 시의적절한 source 플래그와 target 플래그를 **둘 다** 갖지 못하면 **오프라인**으로 칩니다. 잘못된 target으로 투표했지만 source는 시의적절했던 밸리데이터는 살아 있었으므로 오프라인으로 취급하지 않습니다.\n- 이전 에포크의 각 슬롯마다, 비콘 체인은 그 슬롯의 위원회에 속한 오프라인 밸리데이터의 유효 잔액을 합산합니다. 이것이 **오프라인 잔액**입니다.\n- 상태에는 새 필드 `smoothed_offline_balance`가 하나 생깁니다. 이 수치의 지수 이동 평균이며, 반감기는 약 6.3일입니다.\n- 각 슬롯에는 **페널티 계수**가 붙습니다.\n\n```python\nexcess = max(offline_balance - smoothed_offline_balance, 0)\npenalty_factor = min(1 + PENALTY_SLOPE * excess // per_slot_active_balance,\n                     MAX_PENALTY_FACTOR)      # 765 and 256 in the draft\n```\n\n- 이 계수는 오프라인 밸리데이터의 **timely-target 페널티**에만 곱해집니다. source 페널티, 보상, 제안자와 sync committee 지급, inactivity leak은 그대로입니다.\n\n평균이 시간이 지나며 따라잡기 때문에, 계수는 상관된 장애가 시작될 때 가장 높고 장애가 이어질수록 줄어듭니다. 이 설계가 벌하는 것은 \"복구가 느린 것\"이 아니라 \"상관되어 있는 것\"입니다. 앞의 것을 벌하면 소규모 운영자가 더 크게 타격을 받습니다. 정상 상황에서 계수는 정확히 1입니다.\n\n## 샘플 코드\n\n초안의 상수를 따라 슬롯별 계수를 계산하는 TypeScript 예시(설명용)입니다.\n\n```ts\nconst MAX_PENALTY_FACTOR = 256n;\nconst PENALTY_SLOPE = 765n;           // 3 * (MAX_PENALTY_FACTOR - 1)\nconst SMOOTHING = 65536n;             // 2**16\n\nexport function slotPenaltyFactor(\n  offline: bigint,        // gwei offline in this slot's committees\n  smoothed: bigint,       // current moving average (gwei)\n  totalActive: bigint,    // total active balance (gwei)\n  slotsPerEpoch = 32n,\n): { factor: bigint; nextSmoothed: bigint } {\n  const excess = offline \u003e smoothed ? offline - smoothed : 0n;\n  const ref = totalActive / slotsPerEpoch;\n  let factor = 1n + (PENALTY_SLOPE * excess) / ref;\n  if (factor \u003e MAX_PENALTY_FACTOR) factor = MAX_PENALTY_FACTOR;\n  const nextSmoothed = offline \u003e smoothed\n    ? smoothed + (offline - smoothed) / SMOOTHING\n    : smoothed - (smoothed - offline) / SMOOTHING;\n  return { factor, nextSmoothed };\n}\n```\n\n이 상수들에서는 초과분이 슬롯당 스테이크의 3분의 1과 같아지는 지점에서 정확히 상한 256에 도달하며, 그 지점부터는 inactivity leak이 이어받습니다.\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. 상수와 메커니즘은 이미 리비전 사이에 바뀌었고(초기 초안은 `NET_EXCESS_PENALTIES` 카운터를 썼습니다), 이 EIP는 어떤 포크에도 예정되어 있지 않습니다.\n- 다른 밸리데이터와 상관없이 혼자 attestation을 놓친 밸리데이터는 지금과 같은 금액을 냅니다.\n- 스펙에는 비용을 추정하기 위한 보정표와 과거 사고의 재현이 들어 있습니다. 이 수치들은 저자들의 모델링이며 확정된 경제학이 아닌 것으로 받아들이세요.\n- 에포크 체크포인트를 고정하는 방식을 바꾸는 [EIP-8333](/eip-8333/)과 함께 쓰이도록 설계되었지만, 그것에 의존하지는 않습니다.\n"},"zh":{"lang":"zh","tldr":"共识层变更草案：当大量验证者同时离线时，成倍放大漏证明（attestation）的惩罚，使相关性高的部署（同一云、客户端或运营者）比独立的个人质押者付出更多。","tags":["consensus","staking","penalties","decentralization","validators"],"related":[7251,8333],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7716/","markdown":"## 它解决什么问题？\n\n如今，漏掉一次证明的验证者，无论是单独失败，还是与三分之一的网络一起失败，付出的惩罚都一样。因此几乎没有经济动机去在客户端、云、地区或机器之间分散部署。在同一套基础设施上运行数千个验证者的大型运营者，不会为这种集中承担任何额外成本。\n\n相关性其实已经有定价，但仅限于超过三分之一质押量离线、inactivity leak 开始生效的情形。低于这个阈值，协议对相关性视而不见。EIP-7716 为大约 1 %–33 % 区间内的相关性故障增加了一个平滑的价格。\n\n## 它如何运作\n\n- 某个验证者在一个 epoch 中，如果**既没有**及时的 source 标志，**也没有**及时的 target 标志，就被视为**离线**。投了错误 target 但 source 及时的验证者是在线的，因此不算离线。\n- 对上一个 epoch 的每个 slot，信标链把该 slot 委员会中离线验证者的有效余额加总，得到**离线余额**。\n- 状态新增一个字段 `smoothed_offline_balance`，它是该数值的指数移动平均，半衰期约为 6.3 天。\n- 每个 slot 有一个**惩罚系数**：\n\n```python\nexcess = max(offline_balance - smoothed_offline_balance, 0)\npenalty_factor = min(1 + PENALTY_SLOPE * excess // per_slot_active_balance,\n                     MAX_PENALTY_FACTOR)      # 765 and 256 in the draft\n```\n\n- 只有离线验证者的**及时 target 惩罚**会乘以这个系数。source 惩罚、奖励、提议者和同步委员会的支付以及 inactivity leak 都不变。\n\n由于平均值会随时间追上来，相关性故障刚开始时系数最高，持续下去则逐渐衰减。这个设计惩罚的是\"相关\"，而不是\"恢复得慢\"，后者对小型运营者打击更大。正常情况下，该系数恰好为 1。\n\n## 示例代码\n\n按草案常量编写的、计算每个 slot 系数的 TypeScript 示意代码：\n\n```ts\nconst MAX_PENALTY_FACTOR = 256n;\nconst PENALTY_SLOPE = 765n;           // 3 * (MAX_PENALTY_FACTOR - 1)\nconst SMOOTHING = 65536n;             // 2**16\n\nexport function slotPenaltyFactor(\n  offline: bigint,        // gwei offline in this slot's committees\n  smoothed: bigint,       // current moving average (gwei)\n  totalActive: bigint,    // total active balance (gwei)\n  slotsPerEpoch = 32n,\n): { factor: bigint; nextSmoothed: bigint } {\n  const excess = offline \u003e smoothed ? offline - smoothed : 0n;\n  const ref = totalActive / slotsPerEpoch;\n  let factor = 1n + (PENALTY_SLOPE * excess) / ref;\n  if (factor \u003e MAX_PENALTY_FACTOR) factor = MAX_PENALTY_FACTOR;\n  const nextSmoothed = offline \u003e smoothed\n    ? smoothed + (offline - smoothed) / SMOOTHING\n    : smoothed - (smoothed - offline) / SMOOTHING;\n  return { factor, nextSmoothed };\n}\n```\n\n在这些常量下，当超出量恰好等于每个 slot 质押量的三分之一时，系数正好达到上限 256，此后由 inactivity leak 接管。\n\n## 需要注意\n\n- 状态为 **Draft**。常量和机制在不同修订之间已经发生过变化（早期草案使用 `NET_EXCESS_PENALTIES` 计数器），该 EIP 也未被排入任何分叉。\n- 验证者如果独自漏掉证明、与其他验证者没有相关性，付出的代价与现在相同。\n- 规范包含用于估算成本的校准表和对过往事件的回放；请把这些数字当作作者的建模，而不是定论的经济学结论。\n- 它设计为可以与 [EIP-8333](/eip-8333/)（修改 epoch 检查点的锚定方式）配合，但并不依赖它。\n"}}}
