Self-evolving agents improve by retaining feedback as reusable memories or skills, but every mistaken approval can shape many future behaviors. Two updates can provide exactly the same evidence to a verifier yet produce opposite safety outcomes, so the verifier cannot distinguish them from that evidence alone. We introduce DoppelVet, a verification framework that checks proposed updates before they enter an agent's persistent state. Without access to safety labels, DoppelVet constructs an alternative that matches every signal used by the existing verifier. It replays both updates from the same state and directly compares their behaviors in both presentation orders before deciding whether to retain the candidate. We evaluate DoppelVet on DoppelVet-Grid and DoppelVet-Tool, covering executable programs and natural-language memories. Across nine open-weight and proprietary verifiers, DoppelVet raises mean harmful-update detection AUC from 0.762 to 0.940 on DoppelVet-Grid and from 0.681 to 0.826 on DoppelVet-Tool, outperforming VaG and AgentDoG 1.5. On DoppelVet-Grid, it reduces trajectories experiencing degradation from 30.39% to 0.43% over a ten-generation self-update loop and leaves no final degradation.
Figures & tables
Figure 1: Motivation and overview of DoppelVet. a , Verifier-equivalent updates can have different safety outcomes. b , DoppelVet compares matched executions before persistence. c , This improves harmful-update detection, long-term stability, and tool-use safety.
Figure 2: DoppelVet audits an update before it becomes agent state. 1 , Retain only alternatives with the same complete native readout, then select the largest visible trace difference. 2 , Replay the candidate and alternative from the same state. A comparison verifier judges the candidate in both display orders while semantic roles stay fixed; the two risk scores are averaged. 3 , Deterministic checks precede persistence. Monitoring can restore and revalidate the recorded pre-update state after a later violation.
Figure 3: Verifier-equivalent updates can have different safety outcomes. a , Harmful-alternative prevalence in DoppelVet-Grid, built from six AI Safety Gridworlds environments. b , First-choice success when a harmful alternative exists. DoppelVet retrieves it first in 100% of cases; the gray bars show exact uniform-random probabilities, including 85.6% for Sokoban. c , Automatic text-pair construction in DoppelVet-Tool, built from the Retail and Airline domains of τ2 -Bench.
DoppelVet-Grid
DoppelVet-Tool
Verifier
Original
DoppelVet
Gain
Original
DoppelVet
Gain
Qwen2.5-14B
0.619
0.939
+0.321
0.570
0.721
+0.151
Qwen2.5-32B
0.651
0.970
+0.319
0.694
0.786
+0.092
Mistral-24B
0.621
0.855
+0.234
0.616
0.764
+0.147
Llama-3.1-Tulu-3-70B
0.874
0.904
+0.030
0.569
0.749
+0.180
GPT-4.1
0.493
0.925
+0.432
0.674
0.855
+0.181
Table 1: Harmful-update discrimination (ROC AUC ↑ ). Original verification and DoppelVet use the same verifier in each row.
Evaluation set
Method
AUC ↑
DoppelVet-Grid
Original
0.651
VaG
0.796
AgentDoG 1.5
0.454
DoppelVet
0.970
DoppelVet-Tool (Retail)
Original
0.662
VaG
0.594
Table 2: Comparison with state-of-the-art agent safety methods. Original, VaG, and DoppelVet use Qwen2.5-32B; AgentDoG uses its official checkpoint. ROC AUC; higher is better.
Retention method
Harmful commit ↓
Any degradation ↓
Final degradation ↓
Original
47.41
30.39
7.76
Pointwise
19.40
10.78
4.74
AgentDoG 1.5
25.22
18.32
7.97
VaG
12.72
6.68
3.88
DoppelVet
0.86
0.43
0.00
Table 3: Long-term safety over ten self-update generations. All values are percentages.
Selection method
Violations ↓
Safe task completion ↑
Safer choices ↑
Original verifier
22.7% (40/176)
61.9% (109/176)
45.8% (11/24)
VaG
20.5% (36/176)
62.5% (110/176)
54.2% (13/24)
AgentDoG 1.5
22.7% (40/176)
62.5% (110/176)
45.8% (11/24)
DoppelVet
19.3% (34/176)
64.2% (113/176)
66.7% (16/24)
Table 4: Persistent-memory selection in new Retail and Airline conversations. Counts are shown in parentheses; safer-choice rates are evaluated when the memories produce different violation outcomes.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Selection method
Violations ↓
Safe task completion ↑
Safer choices ↑
Same-pair alternative
21.4% (27/126)
39.7% (50/126)
16.7% (1/6)
DoppelVet
5.6% (7/126)
48.4% (61/126)
83.3% (5/6)
Appendix
Table 5: Safety-focused Retail stress test across six matched memory pairs. Each policy is evaluated on seven tasks and three held-out seeds. Conversation counts are repeated measurements; the six memory pairs are independent units.
Cohort
Sources
Contrasts
Exact
Split
Lower chosen
Retail, initial
16
64
23
6
4
Airline, initial
12
48
20
3
3
Retail, expansion
30
180
90
15
6
Airline, expansion
12
72
35
4
4
Pooled
42
364
168
28
17
Appendix
Table 6: Automatic natural-language alternative construction. “Exact” means identical native task-reward vectors on both source-task replay seeds. “Split” means that deterministic safety outcomes differ within that pair. Pooled source tasks are deduplicated across rounds.
All assessable
Reward matched
Verifier
Original
DoppelVet
Δ
Original
DoppelVet
Δ
Qwen2.5-14B
0.570
0.721
+0.151
0.547
0.735
+0.188
Qwen2.5-32B
0.694
0.786
+0.092
0.673
0.813
+0.140
Mistral-24B
0.616
0.764
+0.147
0.533
0.788
+0.254
Llama-3.1-Tulu-3-70B
0.569
0.749
+0.180
0.654
0.749
+0.095
GPT-4.1
0.674
0.855
+0.181
0.598
0.841
+0.243
Appendix
Table 7: Verifier discrimination on DoppelVet-Tool. The expanded primary cohort contains 265 assessable Retail and Airline dialogue pairs (40 harmful candidates); 197 pairs (24 harmful) additionally match the complete task-reward object. DoppelVet averages both physical trace orders.
Method
Controlled pairs
Retail dialogues
AUC ( n=446 )
AUC ( n=175 )
AgentDoG 1.5 candidate-only
0.454
0.462
AgentDoG 1.5 independent two-pass
0.419
0.478
Existing Qwen2.5-32B pointwise
0.651
0.662
DoppelVet direct comparison
0.970
0.694
Appendix
Table 8: Named external guardrail comparison on the same frozen cohorts. AgentDoG uses the official 4B coarse-grained trajectory-moderation checkpoint; DoppelVet uses the previously frozen Qwen2.5-32B comparison verifier. The two-pass AgentDoG condition judges both traces independently, never jointly.
Figure 4: DoppelVet outperforms a compute-strengthened VaG control on Qwen2.5-32B. a , Test-set safe acceptance versus harmful rejection over all thresholds; dots use calibration-frozen operating points. b , ROC AUC on the same 446 test pairs (186 harmful, 260 safe), with total input tokens relative to DoppelVet.
Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China · School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China