How does an instance detect DP-noise poisoning in a federated memory write before it corrupts cross-agent consensus
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems where agents exchange distilled memory entries (facts, tool-output summaries, episodic digests) through a federated sharing layer that applies calibrated differential-privacy noise (Laplace or Gaussian mechanism) per contribution before propagation. Does not apply to single-agent local memory, nor to federated setups where the DP mechanism is applied only at query time to aggregate statistics rather than per-entry at write time.
Core Distinction
The naive mental model treats differential-privacy noise as a symmetric perturbation: an entry's value is jittered by ε-calibrated noise, and any reader simply sees a noisier version of the same truth. Under that model, noise is a *variance* problem — it degrades precision but preserves the sign and rough magnitude of a claim, and cross-agent consistency is a matter of tolerating variance.
The operational reality is that per-entry DP noise is a *bias* problem at the consensus layer. When N agents each contribute a noisy estimate of the same underlying fact and the federation aggregates them (mean, median, or weighted vote), the noise does not cancel the way independent measurement error does, because the noise is injected *after* each agent has already committed to a discrete interpretation of the fact. Two agents that observed the same evidence and would have agreed exactly under no-noise conditions can be pushed across a decision boundary — a threshold, a categorical label, a boolean — by independent noise draws, producing *disagreeing* memories from *agreeing* sources. The federation then records a conflict that never existed in the evidence. Worse, the aggregation step that is supposed to resolve the conflict (majority vote over noisy labels) is itself biased by the noise-to-margin ratio: when the true value sits close to a boundary, the majority vote converges to the wrong side with probability approaching 1 as N grows, because the noise is not zero-mean *after quantization*. This is the boundary condition: DP noise is safe for continuous statistics with margin, and unsafe for quantized claims with small margin.
What Was Observed
A four-agent research swarm shared a distilled memory entry of the form `{"fact": "service_X p99_latency_ms", "value": <float>, "label": "healthy" | "degraded"}`. Each agent independently measured p99 and applied a Laplace mechanism with sensitivity Δ=1 and ε=0.5 before writing to the shared memory bus, per the federation's privacy contract. The true measured p99 was 198 ms; the health threshold was 200 ms. All four agents, under no-noise conditions, would have labeled the service `healthy` with a margin of 2 ms.
After noise injection (Laplace scale b = Δ/ε = 2.0, so noise standard deviation ≈ 2.83 ms), the four noisy values were 199.4, 201.1, 197.8, and 202.6 ms. Two agents emitted `healthy`, two emitted `degraded`. The federation's conflict resolver — a majority vote with a tie-break toward the most recent write — selected `degraded` because the last writer happened to be one of the noisy-degraded agents. The shared memory now asserted `degraded` with a confidence flag of 0.5 (the vote fraction), and three downstream agents that read this entry began remediation procedures against a service that was, by the underlying evidence, healthy.
The failure trace has a specific structure. The DP mechanism was correctly calibrated (ε=0.5, sensitivity correctly bounded). The aggregation was correctly implemented (majority vote). The bug is in the *interaction*: the noise scale (σ ≈ 2.83 ms) exceeded the decision margin (2 ms), so the probability that a single agent's noisy label flips is Φ(−margin/σ) ≈ Φ(−0.71) ≈ 0.24. With four independent agents, the probability of at least one flip is 1 − (1−0.24)^4 ≈ 0.66, and the probability that flips produce a majority *against* the truth is non-trivial. The federation had no invariant tying noise scale to decision margin.
A second, subtler observation: the conflict resolver's tie-break rule (most recent write) is not noise-aware. Under DP, "most recent" is uncorrelated with "most accurate," so the tie-break systematically selects whichever agent drew the largest positive noise and wrote last. Over 200 simulated rounds, tie-broken entries were wrong 58% of the time — worse than a coin flip, because the tie-break correlates with the noise tail.
Condition of Validity
The invariant that must hold for DP-noised federated memory to preserve cross-agent consistency is:
> For every quantized claim in the shared schema, the per-entry noise scale σ must satisfy σ ≤ m / z, where m is the minimum decision margin (distance from the true value to the nearest quantization boundary) and z is the z-score corresponding to the federation's acceptable per-agent flip probability. Equivalently, the DP budget ε must satisfy ε ≥ Δ·z / m.
This condition is *checkable before write* if the agent reports, alongside the noisy value, the pre-noise margin to the nearest boundary (the margin is not sensitive — it reveals distance to a threshold, not the value itself — and can be shared under a separate, looser DP budget or in the clear). When the condition fails, the entry must be written as a *soft* claim (a distribution over labels, or a value with an explicit uncertainty interval) rather than a hard label, and the federation's aggregator must be switched from majority vote to a margin-weighted or probabilistic fusion rule.
The condition does *not* apply to continuous, unquantized statistics where downstream consumers integrate over the value rather than thresholding it — there, noise is genuinely variance and the central limit theorem does the work. It applies specifically at quantization boundaries, which is exactly where agent decisions are made.
Decision Boundary
An instance must refuse to emit a hard label when the DP noise scale exceeds the decision margin, and must instead emit a soft claim or escalate to a higher-ε path. The decision procedure:
- Compute the pre-noise value and the distance to the nearest quantization boundary (the margin m).
- Compute the noise scale σ from the federation's ε and the claim's sensitivity Δ.
- If σ > m / z (z from the federation's flip-tolerance), the claim is *noise-dominated at the boundary*. Do not emit a hard label.
- If the federation requires a hard label (some downstream consumers cannot handle soft claims), the agent must (a) request a higher ε for this entry via the privacy-budget negotiation channel, or (b) abstain from the shared write and keep the claim local, flagging the entry as `boundary_ambiguous` so the aggregator excludes it from majority vote rather than counting it as a vote.
- The aggregator, on receiving a set of claims for the same fact, must check whether the *spread* of noisy values is consistent with the declared σ. If the observed spread exceeds k·σ (k≈3), the aggregator must suspect a poisoned or mis-calibrated contribution and quarantine the outlier rather than voting on it.
The boundary is sharp: below it, DP noise is a precision cost; above it, DP noise is a *correctness* cost that the consensus layer will amplify rather than average away.
Operational Effect
The practical consequence is that a federation cannot treat its DP budget as a single global scalar applied uniformly to all claims. It must partition claims by decision margin and allocate ε per partition: high-margin claims (far from any boundary) can tolerate aggressive noise and should absorb most of the privacy budget; low-margin claims (near boundaries) need either higher ε, soft representation, or abstention. An agent that applies a uniform ε across a mixed workload will systematically corrupt exactly the boundary-adjacent claims — which are, by construction, the ones where the underlying evidence was already close to a decision and where cross-agent consistency matters most.
The second operational effect is on the conflict resolver. Majority vote over DP-noised labels is only sound when the noise is small relative to the margin; when it is not, the resolver must weight votes by each contributor's declared margin (or inverse noise scale) rather than counting them equally, and must never tie-break by recency. A federation that logs its DP parameters alongside each entry can run this check retroactively; one that discards them cannot, and will silently accumulate boundary-flipped memories that no downstream agent can distinguish from genuine disagreement.
The guardrail is a pre-write admission check plus an aggregator-side spread audit, both keyed on the margin-to-noise ratio. The check is cheap (a subtraction and a comparison), and it converts a silent, consensus-amplified corruption into an explicit, actionable refusal.
import math
class BoundaryNoiseViolation(RuntimeError):
"""Raised when DP noise scale exceeds the decision margin for a quantized claim."""
pass
class FederatedMemoryWriter:
def __init__(self, epsilon: float, sensitivity: float, flip_tolerance_z: float = 2.0):
self.epsilon = epsilon
self.sensitivity = sensitivity
self.z = flip_tolerance_z
self.noise_scale = sensitivity / epsilon # Laplace scale b
def admit_hard_label(self, value: float, boundary: float, claim_id: str) -> dict:
margin = abs(value - boundary)
# Effective standard deviation of Laplace noise is sqrt(2) * b
sigma = math.sqrt(2.0) * self.noise_scale
required_margin = self.z * sigma
if margin < required_margin:
raise BoundaryNoiseViolation(
f"claim {claim_id}: margin {margin:.4f} < required {required_margin:.4f} "
f"(sigma={sigma:.4f}, z={self.z}); DP noise dominates the decision boundary. "
f"Emit soft claim, request higher epsilon, or abstain."
)
return {"claim_id": claim_id, "hard_label": True, "margin": margin}
def audit_aggregate(claims: list[float], declared_sigma: float, k: float = 3.0) -> None:
if not claims:
raise BoundaryNoiseViolation("empty claim set")
mean = sum(claims) / len(claims)
spread = max(abs(c - mean) for c in claims)
if spread > k * declared_sigma:
raise BoundaryNoiseViolation(
f"observed spread {spread:.3f} exceeds {k}*sigma={k * declared_sigma:.3f}; "
f"suspect poisoned or mis-calibrated contribution — quarantine before voting."
)