논문 해설
When Verification Is Not Agreement: Cross-Agent LLM-to-Dafny Formalization
검증이 합의를 뜻하지 않을 때: 에이전트 간 LLM-Dafny 형식화
- 연구 문제 검증된 Dafny 사후조건은 독립적 일치를 보장하지 않으므로, 두 에이전트의 형식화 일치를 독립 추출로 측정하는 방법이 필요합니다.
- 연구 방법 Specifier(literal)와 Implementer(interpretive)가 원문에서 각각 독립적으로 원자를 추출하고, Implementer가 Dafny 검증으로 Specifier의 술어와 맞추는 교차 에이전트 프로토콜입니다.
- 주요 결과 GPT-4.1-mini 동일 모델 대조군은 59.3%, 역할을 바꾼 구성은 53.0%와 14.3%였고, 최강 구성은 34.4%로 직접 모순이 우세했습니다.
검증 성공과 독립적 일치의 차이
검증된 Dafny 사후조건은 식이 성립함을 보일 뿐, 두 아티팩트가 독립적인 추론으로 만들어졌는지는 보장하지 않습니다. 이 논문은 Specifier 모델이 임상시험 기준을 Dafny 술어로 옮기고 Implementer 모델이 그 술어에 맞는 연산 메서드를 작성하는 두 에이전트 구조에서 이 문제를 다룹니다. 원문 초기 설계에서는 두 에이전트가 같은 사전 해석된 사실 목록을 받았고, 그 경우 50/52 문서에서 첫 시도에 검증이 성공했습니다. 저자들은 이것이 파이프라인이 작동한다는 증거가 아니라 두 에이전트가 애초에 의견이 갈릴 수 없었다는 증거라고 밝힙니다. 이에 따라 각 에이전트가 원문을 직접 독립적으로 읽도록 프로토콜을 재설계합니다.
독립 이중 경로 추출과 Dafny 형식화
각 문서는 사전 파싱된 목록이 아니라 원문에서 두 번 독립적으로 추출됩니다. Specifier는 문자 그대로 읽는 literal 추출(Route A)을, Implementer는 임상 의도를 추론하는 interpretive 추출(Route B)을 수행하며 두 경로는 별도의 클라이언트로 실행됩니다. 추출 결과는 SimpleAtom(var, op, value) 형태의 원자로 정규화되고, 두 방향 범위는 같은 변수를 공유하는 두 원자로 나뉩니다. Specifier의 원자들은 MatchSpec 술어로 결합되며, Implementer는 자신의 Route B 원자만을 근거로 CheckEligibility 메서드를 작성하고 사후조건 ensures eligible == MatchSpec(...)을 Dafny 검증기로 확인합니다.
Implementer에게는 Specifier의 실제 임계값, 연산자, 술어 본문이 전달되지 않습니다. 본 실험에서 Symbolic Repair Agent는 실행되지 않았습니다.
일치 범주와 구조 감사
첫 시도에서 Implementer의 메서드가 MatchSpec을 만족하면 문서는 우선 GENUINE_AGREEMENT로 표시되며, 이는 감사 이전의 잠정적 일치입니다. 검증 실패가 식별자나 타입 오류로 인한 것이면 GENERATION_FAILURE로 분류되어 일치율에서 제외됩니다. 나머지 문서는 두 원자 집합에서 공통 변수만 비교하여 상호 포함되지 않으면 직접 모순으로, 한쪽만 제약을 가지면 coverage gap으로 분류합니다. 이후 구조 감사는 Implementer 메서드 본문에 MatchSpec의 직접 호출이 있는지 확인하고, 통과한 문서에 대해서만 합성 변이체로 명세의 차별성을 검사합니다. 보정 일치율은 검증 우회로 판정된 사례를 일치 수에서 뺀 값입니다.
동일 모델 대조군과 역할 교차 결과
GPT-4.1-mini를 Specifier와 Implementer 모두에 쓴 대조군에서 의미 평가 분모 91개 중 59.3%가 일치했습니다. 이는 능력 차이가 없는 상태에서도 독립 재추출 일치가 완전하지 않음을 보여 줍니다. GPT-4.1-nano를 Specifier, GPT-4.1-mini를 Implementer로 둔 구성은 53.0%였고, 역할을 바꾼 구성은 14.3%였습니다. 보정 후 역할 교차 구성의 일치율은 13.2%입니다. 이 차이는 모델 능력 배정과 함께 literal 및 interpretive 추출 정책도 바뀌므로, 원문은 두 요인을 분리할 수 없다고 명시합니다.

Table 1 : Cross-agent agreement across four Specifier/Implementer configurations on the 96-document Chia subsample. Rates are computed over the semantically evaluated denominator, excluding GENERATION_FAILURE, SPECIFIER_EMPTY, and detected degenerate-repetition cases. Corrected agreement subtracts structurally audited verification-gaming cases.
원문 · CC BY 4.0 · Priyanath Maji · When Verification Is Not Agreement: Cross-Agent LLM-to-Dafny Formalization · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.최강 구성의 결과와 실패 양상
GPT-5.6-luna를 Specifier로, GPT-5.4-mini를 Implementer로 사용한 구성은 의미 평가 일치율 34.4%를 보였습니다. 이 구성에서는 제외된 문서가 없었고, 직접 모순이 42.7%로 coverage gap 22.9%보다 많았습니다. 이 수치는 GPT-4.1-nano/GPT-4.1-mini의 53.0%와 동일 모델 대조군의 59.3%보다 낮으며, 더 최신 모델이라도 이 대조군보다 일치율이 낮다는 점이 원문의 주요 결과입니다. 다만 저자들은 이 실패 양상이 강한 모델 일반의 특성인지 이 모델 쌍에만 특이한지는 확인하지 못했다고 밝힙니다.
해석 범위와 남은 한계
Specifier와 Implementer에는 항상 고정된 추출 정책이 배정되어 역할 효과와 정책 효과가 섞여 있습니다. 또한 사람이 주석한 금표준 라벨이 없으므로 두 형식화 중 어느 쪽이 옳은지는 판단할 수 없습니다. 원문은 구조 감사가 literal한 MatchSpec 호출만 확인하므로, 간접적으로 같은 식을 재구성하는 우회는 탐지되지 않을 수 있다고 밝힙니다. 또한 결과는 하나의 96문서 부분집합과 Dafny 대상에 한정되며, 복구 루프가 실행되지 않은 단일 시도의 결과입니다.

Table 3 : Replicate robustness across three independent stochastic runs on the same 96-document evaluation set. Values are mean±standard deviation across runs.
원문 · CC BY 4.0 · Priyanath Maji · When Verification Is Not Agreement: Cross-Agent LLM-to-Dafny Formalization · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Priyanath Maji
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 4일
- 등록일
- 2026년 11월 6일
- 수정일
- 2026년 11월 4일
- 버전
- v1
- arXiv
- 2611.07073
- 분류
- cs.AI
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
A verified Dafny postcondition certifies that a formula holds, but it does not guarantee that the result was reached through genuine independent reasoning. We introduce a cross-agent formalization protocol where a Specifier model translates clinical trial criteria into a Dafny predicate, and an Implementer model writes an operational method checked against it. A same-model control establishes that even with no capability gap, independent re-extraction from identical text agrees only 59.3% of the time. Evaluating four model configurations on 96 clinical trial documents, we find that agreement is highly sensitive to how model capability is allocated across the two roles: the GPT-4.1-nano/GPT-4.1-mini configuration achieves 53.0% agreement when the stronger model is the Implementer, but only 14.3% when the roles are reversed. The strongest tested configuration, GPT-5.6-luna/GPT-5.4-mini, improves agreement to 34.4% but remains below the same-model baseline and is dominated by direct contradiction (42.7%). We also detect a critical verification artifact in which a weaker Implementer satisfies the postcondition by invoking the Specifier's predicate directly; after structural auditing, corrected agreement falls from 14.3% to 13.2%. Our results show that verification success alone is insufficient evidence of independent cross-agent agreement, and that model capability does not guarantee agreement when formalizing the same source independently.
원문 인용
Priyanath Maji (2026). When Verification Is Not Agreement: Cross-Agent LLM-to-Dafny Formalization. arXiv:2611.07073v1. https://arxiv.org/abs/2611.07073v1
BibTeX
@misc{maji2026when,
title = {{When Verification Is Not Agreement: Cross-Agent LLM-to-Dafny Formalization}},
author = {Priyanath Maji},
year = {2026},
eprint = {2611.07073},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.07073v1}
}