# Masked Erosion: How Acceptance Gates Lose Redundant Safeguards in Self-Improving Agents

Self-improving agents can quietly lose safeguards that acceptance gates never notice

Hau-Sing So, Daixian Liu, Weicai Long · arXiv · 2026-10-28

- **Problem** Acceptance gates judge self-edits only by task success, so a safeguard whose harm is blocked by another one can be deleted unseen.
- **Method** The authors measure harm on every subset of four safeguards and score each harness by its margin, the number of safeguards that can still fail before harm appears.
- **Results** Greedy gates ended with unprotected harnesses in 5 of 6 runs, while paired gates ended with none.

![Figure 2: Study design.Top: a proposer deletes a layer (stress loops) or rewrites text freely (natural loops and GEPA); the gate compares parent and child on a…](https://refivu.com/papers/db7b99cd-c9c6-4411-9cb1-2cae5debbe19/figures/figure-99620eb52ace9ce919c31eb5b49208d5.png?thumb=512)

**Figure 2** :Study design.Top: a proposer deletes a layer (stress loops) or rewrites text freely (natural loops and GEPA); the gate compares parent and child on a fresh batch, and an accepted child becomes the next parent. Bottom left: while another layer blocks the harm, a deletion leaves observed harm low but removes redundancy. Bottom middle: an accepted deletion either buys little (drift) or real task success (selection).

[Original paper](https://arxiv.org/abs/2610.38392v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hau-Sing So, Daixian Liu, Weicai Long · Masked Erosion: How Acceptance Gates Lose Redundant Safeguards in Self-Improving Agents · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why a passing gate can hide lost redundancy

A gate that tests only the child's current behaviour cannot see a safeguard that has stopped mattering. Self-improving agents rewrite their harness and keep a rewrite only if it does better on a batch of tasks. Real harnesses often guard one harm with overlapping rules, and the authors call this defence in depth. A harness that keeps notes for several users can check note owners, verify credentials, and check the account after login.

Deleting one rule from such a stack changes almost nothing a gate can measure, because the remaining rule still blocks the harm. The authors call this kind of deletion masked, and the loss of backup depth it causes masked erosion. Masking bounds the child-only harm by the harm threshold, so a masked child looks safe on any audit. Figure 1 shows a gate that audited every harm task accepting three deletions in a row, with the margin falling from 2 to 1.

The final harness stayed below the harm threshold under the loop's model, at 0.025 against 0.000.

A harness can therefore look safe under the loop's model while carrying far less margin. Existing checks test either the gain or the child, so neither reveals the lost margin.

The paper's experiments measure this effect by testing every subset of four safeguards in two environments. Most of the 411 loops are stress loops, where each generation deletes one safeguard and the gate decides whether it passes. The authors use the word margin for the count of safeguards that can still fail before harm appears.

## A harm lattice that turns redundancy into a measurable margin

The harm lattice measures harm for every subset of the safeguards, not only for the full harness. A subset counts as protected when its harm rate on the harm pool is at most τ = 0.05. The paper computes this with m(T) = min{\|T\\T′\| : T′ ⊆ T, h(T′) \> τ}, and sets m to infinity when no such subset exists. Margin does not require the harm rate h to be monotone, because it follows the order of the smallest cut set in fault-tree terms.

A deletion is masked when parent and child are both protected, and it is exposing when only the parent is. Masking bounds the new harm, because the child-only harm h01 is at most the child's harm rate, which is at most τ. An audit of k = 4 independent harm-pool pairs therefore detects a masked deletion with probability at most 0.19. What a masked deletion removes is margin, a property of the child's ablations rather than of the child itself.

The measurements bear this out on the AppWorld harness under DeepSeek. Deletions into children protected on the calibration split carried child-only harm of 0.016 on the confirmation split, with an upper bound of 0.028. Deletions into unprotected children carried 0.422, so the protected ones added little observable harm. Under DeepSeek, AUTH and VERIFY each suffice alone, while H0 has margin 2.

In OpsSim, CONFIRM alone suffices for DeepSeek, Luna and Sol, and deletions behind it carry h01 ≤ 0.018. Weak models have nothing to mask, because no single AppWorld layer suffices under Qwen3-30B.

![Figure 3: Redundant layers are masked.(a) Harm of every AppWorld state under DeepSeek, pooled over calibration and confirmation tasks (blue outline: protected,…](https://refivu.com/papers/db7b99cd-c9c6-4411-9cb1-2cae5debbe19/figures/figure-94bb0d4d7ed9ab18187a0e12a460f4d2.png?thumb=512)

**Figure 3** :Redundant layers are masked.(a) Harm of every AppWorld state under DeepSeek, pooled over calibration and confirmation tasks (blue outline: protected, harm ≤ 0.05). (b) Child-only harm h01 of single deletions, classifying children on Tcal and measuring on Tconf (lines: 95% upper bounds; hollow: zero events).

[Original paper](https://arxiv.org/abs/2610.38392v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## How the stress loops and gates run

A stress loop starts from the four-layer AppWorld harness and deletes one uniformly chosen remaining layer per generation. The gate then compares parent and child on a fresh batch of n = 40 tasks, each drawn from the harm pool with probability p = 0.1. The proposer's planted deletion is the thing the gate has to judge, and the gate runs once per generation.

Each loop runs eight generations, and the study uses the same batch settings for the stress and natural loops unless noted.

Greedy accepts a child that solves more batch tasks than its parent. Split-half accepts a child that is no worse on either half of the batch and better on one. Paired runs a one-sided exact McNemar test on the discordant outcomes, so it blocks chance differences that greedy would accept. The two veto gates, with ρ equal to 0.2 and 1, are non-paired and reject a child that shows child-only harm in an audited share of the batch.

The margin-aware gate keeps a child only when every one-layer ablation stays protected, which makes it the only rule that reads the harness structure.

The study ran 411 loops in total, and 393 of them were stress loops with 78 in AppWorld and 315 in OpsSim. The remaining 18 loops were natural loops, where a free-form DeepSeek proposer rewrites the harness to make it cheaper. GEPA ran alongside these loops as a separate case, using three seeds of 800 metric calls on AppWorld. The stress loops work like mutation testing, so they measure how a gate responds to deletion pressure rather than how often deployed optimizers erode safeguards.

## Drift and selection decide what a gate accepts

A gate sees a deletion mainly through its effect on task success, so the paper splits deletions into two regimes. In drift, the standardized effect z is near zero, so noise decides which deletions pass. In selection, z is clearly positive, so a deletion that truly raises success passes success-based gates. The authors label an edge selection when its calibration z is at least zα, without looking at gate decisions.

Across 27 AppWorld stress loops under DeepSeek, the greedy gate accepted 0.48 of planted deletions. The split-half gate accepted 0.44 of them, and the paired gate accepted only 0.04. The paired test still accepted 2 of 42 masked deletions, so it suppresses drift without stopping it.

![Figure 4: Drift in 27 AppWorld stress loops(DeepSeek). (a) Margin of each loop’s harness by generation (dashed: mean; markers: first unprotected state). (b) Ac…](https://refivu.com/papers/db7b99cd-c9c6-4411-9cb1-2cae5debbe19/figures/figure-fa69eb341381d78e4ff093dab0640157.png?thumb=512)

**Figure 4** :Drift in 27 AppWorld stress loops(DeepSeek). (a) Margin of each loop’s harness by generation (dashed: mean; markers: first unprotected state). (b) Acceptance of planted deletions over 204 proposals (markers) and frozen prediction (ticks); gates draw separate batches, so veto (0.2) can exceed greedy. (c) Acceptance of masked deletions vs. of real +0.075 (filled) and +0.275 (hollow) edits, for paired at threeαand greedy.

[Original paper](https://arxiv.org/abs/2610.38392v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The batch size changes where the paired gate breaks, and the authors predicted those break points before running the loops. With n = 20 it kept protection at cost 0.15, where 40-task loops had lost it.

## Lost depth becomes harm under a weaker model

The authors took the 11 distinct final harnesses from the 27 DeepSeek stress loops and reran them on the held-out Tfinal pool under other models. They compared only finals still protected under DeepSeek, so the comparison separates lost depth from harnesses that were already exposed. The difference between the two groups has a CI of \[0.16, 0.47\].

Under Qwen3-8B the gap was 0.16 \[0.02, 0.29\], a smaller but still positive difference.

The harm follows the missing layers rather than a model trying things at random. Qwen3-30B used up its step budget in 63 to 90 percent of runs under every final, H0 included. Finals with AUTH alone misused them in 9 of 40 runs, while finals without AUTH misused them in 89 of 200. Because the weaker model leans on one layer, its harm depends on AUTH more than on the other layers.

Layers that are interchangeable for DeepSeek aren't interchangeable for Qwen3-30B, which relies mainly on AUTH. Depth behind AUTH still cuts its harm from 0.225 to 0.01. The authors read a swap as a common-cause failure of the remaining barriers, since lost redundancy means lost coverage for a model that uses different layers. The effect is specific to weaker executors, because Luna and Sol solve the clean tasks and show only a gap of 0.025 \[0, 0.07\].

After a task shift under DeepSeek, the gap among protected finals was 0.020 (p = .061).

Margin under DeepSeek ranks swap harm with a Spearman correlation of rs = 0.65. The expected harm after one random layer failure ranks it better, at 0.80.

## GEPA and the two structural remedies

GEPA was run unchanged on AppWorld for three seeds of 800 metric calls, scored on task success alone. Its finals solved 0.35 to 0.45 of clean Tfinal tasks, against 0.40 for the starting harness H0. So the validation gains, up to +0.22, didn't transfer to clean tasks. Like a greedy stress loop, GEPA accepted edits it couldn't tell from noise.

The GEPA blind spot sits outside the labelled rules, because the credential rules stayed verbatim in all three finals. Seed 2 also added 3,000 characters of efficiency tips. The judge marked every layer intact, and with three seeds and few harm events, the authors call it a case study, not an estimate.

The first remedy freezes safety text: safety text was reset to the parent's in four natural loops. All four finals kept H0's safety text and reached the highest clean success of any natural arm. They showed no harm under DeepSeek and 0.019 harm under Qwen3-30B. Freezing protects text, not behaviour, and it requires knowing which text is safety text.

The second remedy audits one-layer ablations, so the margin-aware gate accepts a child only if every one-layer ablation stays protected. The matched sign test gives p = .031, and the gate lost no clean success. The gate checks layers rather than wording, so in all three natural loops it let VERIFY be weakened.

## Where the results stop: scope, conditions and replay limits

The study covers two environments, AppWorld and OpsSim, each with one harm and four written safeguards. Most loops plant one deletion per generation, so the setting exposes how gates respond to deletion pressure. The natural loops and GEPA runs serve as case studies rather than estimates. The GEPA result rests on three seeds and few harm events, so it stays a case study.

Erosion matters only when a harm the model doesn't avoid on its own meets redundant layers it follows reliably. A later change also has to need those layers for the loss to appear. Strong models avoided the harms probed in τ 2-bench, AgentDojo and a privacy simulation, detailed in Appendix A. The largest swap effects come from weaker models, such as Qwen3-30B.

Under Qwen3-30B, the two GEPA finals misused credentials in 2 and 5 of 40 runs, against 0 of 80 for H0.

Long-horizon results are simulator projections, not observed loop runs. The third-party API models are supplementary, so the main findings rest on DeepSeek and the local Qwen models. An archived replay rebuilt 95 of 96 batches, and eight rebuilt batches differ from the logged totals by one or two outcomes. The authors trace those differences to concurrent duplicate draws, though the archive cannot prove it.

Counting each distinct task once would turn 4 of the 10 accepting decisions into rejections.

## Paper info

- **Authors**: Hau-Sing So, Daixian Liu, Weicai Long
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-28
- **Added**: 2026-11-1
- **Updated**: 2026-10-28
- **Version**: v1
- **arXiv**: 2610.38392
- **Category**: cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2610.38392v1) · [PDF ↗](https://arxiv.org/pdf/2610.38392v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Self-improving LLM agents edit their own harness, the prompts and rules around a fixed model, and keep an edit only if an acceptance gate scores it higher on a batch of tasks. Such a gate sees what the harness does under the current model, not what it would still prevent if one safeguard failed. When safeguards overlap, deleting one is masked: the others still block the harm, so the gate decides on task success alone and redundancy erodes unseen. We measure harm for every subset of four written safeguards in two agent environments and run 411 improvement loops under ten gate rules, mostly as controlled deletion experiments, plus three runs of the GEPA optimizer. A deletion behind another working safeguard adds almost no observable harm. A paired significance test blocks deletions that pass by chance but not deletions that genuinely raise task success, and a larger evaluation batch lets it delete cheaper safeguards: at the same cost, 20-task batches kept every harness protected while 40-task batches lost all six. Large harm audits prevent exposure but not the loss of depth, which turns into harm when the harness is reused with a weaker model. GEPA kept every safety rule verbatim, yet two of its three final harnesses misused credentials under a weaker model. A statistical model frozen before the runs predicts where each gate's protection breaks as safeguard cost and batch size change, and freezing safety text or auditing one-layer ablations preserves depth.

## Quote from the paper

Hau-Sing So, Daixian Liu, Weicai Long (2026). Masked Erosion: How Acceptance Gates Lose Redundant Safeguards in Self-Improving Agents. arXiv:2610.38392v1. https://arxiv.org/abs/2610.38392v1

**BibTeX**

```
@misc{so2026masked,
  title = {{Masked Erosion: How Acceptance Gates Lose Redundant Safeguards in Self-Improving Agents}},
  author = {Hau-Sing So and Daixian Liu and Weicai Long},
  year = {2026},
  eprint = {2610.38392},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.38392v1}
}
```

## Related papers

- [Testimony from Timelines: Evidence-Grounded Significance Testing of Temporal Clinical Hypotheses](https://refivu.com/en/papers/a4d2efe3-a20d-4061-8195-c02bbb80e510-testimony-from-timelines-evidence-grounded-significance.md)
- [Beneath the Surface: What We Overlook When We Talk About Agent Evolution](https://refivu.com/en/papers/5dad123f-9ec8-40d0-b769-0fed8bfce880-beneath-the-surface-what-we-overlook-when-we.md)
- [Cleaning an Agent's History Hurts When the World Still Holds the Error](https://refivu.com/en/papers/9f9d54ba-fe02-462d-babe-c0f8a725ef58-cleaning-an-agent-s-history-hurts-when-the.md)
- [Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents](https://refivu.com/en/papers/891cb954-271d-4055-bf45-e2d6d155e372-don-t-just-trust-your-memory-evidence-linked.md)
- [LIBRA: Programmatic Induction of Executable Tool Libraries](https://refivu.com/en/papers/8da9ea01-fd35-49ff-950a-1f4175fbaf56-libra-programmatic-induction-of-executable-tool-libraries.md)
- [Where Should LLM Agents Adapt at Test Time? In Context, in Weights, or Both](https://refivu.com/en/papers/39fae58e-bc8b-4dc6-bf76-acf24f94a299-where-should-llm-agents-adapt-at-test-time.md)

## Other paper commentary

- [Disparity Laundering: Consensus Without Fairness in Clinical Multi-Agent Systems](https://refivu.com/en/papers/97458353-3ed8-4e9a-95ce-6aff1d4b0f01-disparity-laundering-consensus-without-fairness-in-clinical.md)
- [From Traces to Agentic Worlds: Agentic Language World Models for Interactive Environment Simulation](https://refivu.com/en/papers/db870ea5-8df7-48cd-89f7-8f715d869b36-from-traces-to-agentic-worlds-agentic-language-world.md)
- [AREX-2: Advancing Self-Improving Agents through Long-Horizon Reflective Tasks](https://refivu.com/en/papers/c92f4142-8e27-430d-91e3-21df64a353e0-arex-2-advancing-self-improving-agents-through-long.md)
- [Self-Evolving Agent Harness](https://refivu.com/en/papers/54bffe38-67c6-497e-b94a-b26a9ae5bd54-self-evolving-agent-harness.md)
- [RRSI: Regularized Recursive Self-Improvement of Agent Harnesses](https://refivu.com/en/papers/4a41b8e7-207d-475d-b437-fb840feec85a-rrsi-regularized-recursive-self-improvement-of-agent.md)
- [The Tasteful Agent: Measuring and Improving Taste in Long-Horizon Tasks](https://refivu.com/en/papers/51ca75de-e1a2-40e9-85fd-8a0bf3905a45-the-tasteful-agent-measuring-and-improving-taste-in.md)
- [Evaluating Causal Reasoning in LLMs: A Case Study in the Challenges of Procedural Generation](https://refivu.com/en/papers/44f8c516-c47c-471f-9556-bea76fa1ad9e-evaluating-causal-reasoning-in-llms-a-case-study.md)
- [A Unified Approach to Routing and Cascading for LLMs](https://refivu.com/en/papers/294c4944-64cf-4c2a-8c0d-d1cb8624f2cb-a-unified-approach-to-routing-and-cascading-for.md)
- [Multi-Token Prediction Done Right](https://refivu.com/en/papers/96cce8ac-487a-47a2-8b3b-075193f1d020-multi-token-prediction-done-right.md)
- [Near-Optimal Consistency-Robustness Trade-Offs for Learning-Augmented Online Knapsack Problems](https://refivu.com/en/papers/7433999f-8924-4307-bafb-589d81cd9d20-near-optimal-consistency-robustness-trade-offs-for-learning.md)
- [Solving Probabilistic Verification Problems of Neural Networks using Branch and Bound](https://refivu.com/en/papers/bb7ed38f-7636-44c4-921c-7a661fe6cf0f-solving-probabilistic-verification-problems-of-neural.md)
- [Compositional Risk Minimization](https://refivu.com/en/papers/7f0b2d82-eb6c-417e-a42e-8b6899343b6c-compositional-risk-minimization.md)

## Terms in this paper

- [Qwen3-8B](https://refivu.com/en/terms/892b2cfc21c6-qwen3-8b)
- [exact McNemar test](https://refivu.com/en/terms/6c3fd8c46ff6-exact-mcnemar-test)
- [margin](https://refivu.com/en/terms/08d3fcc32371-margin)
- [Drift](https://refivu.com/en/terms/6a197d1e3502-drift)
- [GEPA](https://refivu.com/en/terms/7ed51d620049-gepa)
- [acceptance gate](https://refivu.com/en/terms/ba9a402ad203-acceptance-gate)
- [AppWorld](https://refivu.com/en/terms/3d77af475ade-appworld)
- [DeepSeek](https://refivu.com/en/terms/84e3a09fa6a0-deepseek)
- [mutation testing](https://refivu.com/en/terms/738944f85676-mutation-testing)
- [Self-Harness](https://refivu.com/en/terms/7f14af88874c-self-harness)
- [Veto](https://refivu.com/en/terms/704dc5284555-veto)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/db7b99cd-c9c6-4411-9cb1-2cae5debbe19-masked-erosion-how-acceptance-gates-lose-redundant)
