从信用证审单要求到可执行规范:验证准确性与完整性评估

arXiv cs.AI 论文

摘要

本文采用 LLM 解析器逐项评估信用证审单要求,该解析器将规则转换为可执行条件并进行确定性验证。结果表明,最终 PASS/FAIL 判定的准确性具有误导性;在 345 个真实信用证案例中,基于本地部署的 9B 微调解析器在验证准确性上优于使用工具的智能体(82% 对 54%)。

arXiv:2611.26988v1 Announce Type: new Abstract: In letter-of-credit (LC) document examination, a correct final decision does not show that every requirement was examined. We therefore evaluate examination requirement by requirement and make each requirement executable. A language model converts the bill of lading (BL) and commercial invoice (IV) requirements of a credit into atomic conditions and logical structures, and a deterministic verifier retrieves the named evidence and computes each outcome, so every check can be compared with a gold encoding and traced to logged evidence. Because LC records are confidential, our on-premises 9B parser is fine-tuned only on synthetic pairs built from templates and human-reviewed public document values. On 345 real LC cases, final-decision accuracy proves misleading: a constant PASS rule has the highest raw accuracy while examining nothing. Although it never sees a real record during training, the fine-tuned parser detects 93% of the atomic requirements its ontology covers and reconstructs 86% of the covered requirements exactly. It verifies 82% of the evaluable requirements correctly, against 54% for a tool-using agent, and leads the agent on both satisfied requirements and discrepancies. It also completely examines 1.8 times as many cases as few-shot prompting of the same model, while direct prediction and the agent complete none. Executing the gold encodings with the same verifier shows that some of the remaining errors, missed discrepancies included, come from the operators and normalization, which a better parser alone cannot fix. Every rejection comes with a trace of the units and evidence behind it, which suits examiner-in-the-loop review.
查看原文
查看缓存全文

缓存时间: 2026/11/23 09:16

# From Letter-of-Credit Requirements to Executable Specifications: Evaluating Verification Accuracy and Completeness
Source: [https://arxiv.org/html/2611.26988](https://arxiv.org/html/2611.26988)
Conference:The 3rd Workshop on LLMs and Generative AI for Finance \(AI4F\), co\-located with the 7th ACM International Conference on AI in Finance; November 14–17, 2026; Milan, ItalyJi Sub ChoiNote:These authors contributed equally to this research\.Affiliation:Hana Institute of Technology, Hana TI,Seoul,South Koreaemail:[jisubchoi@hanafn\.com](mailto:[email protected])Whan ChoiAffiliation:Hana Institute of Technology, Hana TI,Seoul,South Koreaemail:[wchoi2152@hanafn\.com](mailto:[email protected]),Seo Yeon GuAffiliation:Hana Institute of Technology, Hana TI,Seoul,South Koreaemail:[sygu@hanafn\.com](mailto:[email protected]),Suhyun KimAffiliation:Hana Institute of Technology, Hana TI,Seoul,South Koreaemail:[suhyun\_kim@hanafn\.com](mailto:[email protected])andInyong YunAffiliation:Hana Institute of Technology, Hana TI,Seoul,South Koreaemail:[iyyun@hanafn\.com](mailto:[email protected])

© none

###### Abstract\.

In letter\-of\-credit \(LC\) document examination, a correct final decision does not show that every requirement was examined\. We therefore evaluate examination requirement by requirement and make each requirement executable\. A language model converts the bill of lading \(BL\) and commercial invoice \(IV\) requirements of a credit into atomic conditions and logical structures, and a deterministic verifier retrieves the named evidence and computes each outcome, so every check can be compared with a gold encoding and traced to logged evidence\. Because LC records are confidential, our on\-premises 9B parser is fine\-tuned only on synthetic pairs built from templates and human\-reviewed public document values\. On 345 real LC cases, final\-decision accuracy proves misleading: a constant PASS rule has the highest raw accuracy while examining nothing\. Although it never sees a real record during training, the fine\-tuned parser detects 93% of the atomic requirements its ontology covers and reconstructs 86% of the covered requirements exactly\. It verifies 82% of the evaluable requirements correctly, against 54% for a tool\-using agent, and leads the agent on both satisfied requirements and discrepancies\. It also completely examines 1\.8 times as many cases as few\-shot prompting of the same model, while direct prediction and the agent complete none\. Executing the gold encodings with the same verifier shows that some of the remaining errors, missed discrepancies included, come from the operators and normalization, which a better parser alone cannot fix\. Every rejection comes with a trace of the units and evidence behind it, which suits examiner\-in\-the\-loop review\.

###### Keywords:

documentary credit, UCP 600, trade finance, document examination, process\-level evaluation, executable specifications, tool\-using agents, auditability

††footnotetext:Accepted at the 3rd Workshop on LLMs and Generative AI for Finance \(AI4F\) at ACM ICAIF ’26, Milan, Italy \(non\-archival\)\.## 1\.Introduction

Under a documentary credit, or letter of credit \(LC\), the issuing bank must honour a presentation of documents that complies with the credit’s terms\. Banks decide compliance on the documents alone \(UCP 600 Art\. 14\(a\)\([7](https://arxiv.org/html/2611.26988#bib.bib7)\)\) and within five banking days \(Art\. 14\(b\)\)\. The requirements are free text and span several documents\. Language models are a natural candidate for this work, and the usual evaluation compares their final PASS/FAIL decision with a human examiner’s\. We argue that this is not enough: the examination itself must be evaluated, requirement by requirement\.

A single clause can set several conditions on the BL and the IV, such as parties, required wording, dates, and references to the credit\. The final PASS/FAIL label compresses all of them into one decision, so a system can skip a satisfied requirement and still return the correct label \(Figure[1](https://arxiv.org/html/2611.26988#acmlabel1)\)\. This gap matters for both kinds of presentation\. For a compliant presentation, the bank must establish compliance by examining the documents \(Art\. 14\(a\)\); a correct PASS with an unexamined requirement has not established it\. For a discrepant presentation, a bank that refuses must send a single notice that states each discrepancy on which it refuses \(Art\. 16\(c\)\), and a bank that does not act in this way cannot then claim that the documents do not comply \(Art\. 16\(f\)\)\. A discrepancy left out of the notice therefore cannot be relied on later, so in practice the examiner must find and list every discrepancy that exists\. A correct FAIL label is not enough either, because it does not show which discrepancies were found\.

Figure 1\.Illustrative example with five atomic, evaluable units\. All five gold unit decisions are PASS, but the system correctly verifies only two and returns PASS for the case\. Its final decision is correct, while Atomic Recall and Unit Success are both2/52/5and the examination is incomplete\.Six clause spans are paired with their gold atomic schemas, gold decisions and system judgments\. All gold decisions are PASS\. The first three system judgments are PASS; the remaining three units are not examined\. Two summary boxes contrast a correct final PASS decision with incomplete examination: only three of six requirements are correctly verified\.We therefore evaluate examination at four levels, each answering one question\. \(i\) Did the system identify the requirements? \(ii\) Did it reconstruct their conditions and logical structure? \(iii\) Do its evidence\-based outcomes agree with human judgments? \(iv\) Did it examine every evaluable requirement and reach the correct decision? The levels differ because an outcome can be right without a faithful reconstruction\. For A OR B, a passing A decides the unit even if B is never reconstructed, and a condition with the wrong operator can still give the right label on a given presentation\.

To evaluate levels \(ii\) and \(iii\), generated requirements must be comparable with gold annotations, and every outcome must be traceable to evidence\. We therefore make the requirements executable \(Figure[2](https://arxiv.org/html/2611.26988#acmlabel2)\)\. A parser converts the clause into a*specification*: atomic conditions \(atomic schemas\) grouped into top\-level verification units\. A deterministic verifier retrieves the facts that the specification names and computes the outcomes\. The model decides what to check, and the verifier decides whether each check passes\. Executability serves evaluation and practice alike\. An evaluator can compare each check with a gold encoding, and can execute the gold encodings themselves to see which errors the representation introduces\. An examiner can see which unit and which evidence led to each decision\. Specifications must still be generated without exposing confidential data: LC records cannot be sent to external model services and are rarely available for training\. We therefore fine\-tune a 9B parser that runs on premises, using only synthetic pairs built from clause templates and human\-reviewed public document values, and we use the real cases only for evaluation\.

Figure 2\.Study design\. Synthetic pairs train the parser \(left\); every method is evaluated on the same real cases, facts and ontology against human\-annotated gold outcomes \(right\)\.A two\-part diagram\. On the left, clause templates and document values extracted from public bills of lading and commercial invoices are combined by rule\-based binding into paired clauses and executable specifications, which train a specification parser by supervised fine\-tuning\. On the right, a box describing the real benchmark of 345 cases with a shared field ontology and a human\-validated fact store feeds three method boxes: a direct model given the whole fact table in one prompt, a generic agent with a field\-level lookup tool, and the schema\-based methods — zero\-shot, few\-shot and the proposed fine\-tuned parser — which go from clause to specification to fact lookup to deterministic execution, the model writing the specification and the verifier computing the compliance decisions\. A dashed arrow runs from the fine\-tuned parser into the schema\-based methods\. All methods feed one evaluation box that states the gold outcomes are human\-annotated and lists the detection, reconstruction, verification and case\-level metrics\.We study three research questions\.RQ1:How often do correct final decisions come with incomplete examination, and are correct refusals based on the annotated discrepancies?RQ2:How do specification\-guided and model\-based systems compare in coverage, unit outcomes, and completeness?RQ3:How does a parser fine\-tuned on synthetic specifications compare with few\-shot prompting of the same base model? Our contributions are:

- •A requirement\-level evaluation of LC examination on 345 real cases\.It measures detection, exact reconstruction, unit outcomes, and complete examination separately\. Any system that reports its checks by document and field can be scored, so other institutions can apply the protocol once they have annotated their requirements and built a fact store\. To our knowledge, it is the first such evaluation\. It shows that final\-decision accuracy hides incomplete examination, even for correct refusals\.
- •An executable representation that makes examination inspectable\.Six reviewable operators, logical connectives, and credit\-field references let a deterministic verifier compute every outcome from logged evidence, so each check is reproducible and auditable\. Because generated specifications share the format of the gold encodings, omissions and operator errors can be measured, and executing the gold encodings with the same verifier separates generation errors from errors that the representation itself introduces, which an independent expert review traces to operator expressiveness and normalization\.
- •Synthetic supervision that makes specification generation feasible without confidential LC records\.A 9B parser that runs on premises and is trained only on template\-generated pairs transfers to real credits\. It reaches the highest Exact Unit Recall among the schema\-based methods and the highest Complete Examination Rate among all evaluated systems, while direct prediction and a tool\-using agent examine no case completely with the same 9B model\. We release the generation code and the public\-source templates\.

## 2\.Background and Problem Formulation

A credit is usually issued as a SWIFT MT700 message\. Its field 46A, Documents Required, lists the documents and their conditions in free text, for example BLs to the order of the issuing bank marked freight prepaid, and a signed IV showing specified details\. Requirements are not grouped by document\. Annotators selected the field\-46A passages on the BL and IV and joined them into one input clause without regrouping, so assigning requirements to documents is part of the task\. Requirements may also refer to other credit fields: “to the order of the issuing bank” requires resolving the issuing bank before comparing it with the consignee\.

A caseccconsists of this clause and a fact store of human\-validated values from the presented documents and the credit, over a fixed field ontology\. An*atomic schema*is a tuple \(document, key, operator, expected value\), which encodes one atomic requirement and forms a leaf of a unit\. The gold verification unitsU⁡\(c\)U\(c\)are the top\-level requirements being judged\. Each unit is a single schema or a tree of schemas joined by AND, OR, or AND/OR, a form common in LC drafting that is executed as OR \(Section[4\.1](https://arxiv.org/html/2611.26988#S4.SS1)\)\. Annotators label each atomic schema PASS or FAIL, and a unit’s outcome follows from these labels and its logical structure\. For example, “NOTIFY A OR B” is one unit with two atomic schemas\. The gold schema collectionS⁡\(c\)S\(c\)is the multiset of atomic schemas inU⁡\(c\)U\(c\), and a specification is the set of units that a parser generates for a clause\. Detection and reconstruction are scored on all units whose keys belong to the ontology \(key\-covered units; Section[6](https://arxiv.org/html/2611.26988#S6)\)\. Verification and case\-level results use the evaluable scope of Section[6\.3](https://arxiv.org/html/2611.26988#S6.SS3), where the gold case decision is the conjunction of the evaluable unit outcomes\.

## 3\.Related Work

Process\-level evaluation\.A correct output can come from a flawed process\. Models can be right for the wrong reasons\([14](https://arxiv.org/html/2611.26988#bib.bib14)\), stated reasoning need not reflect what drove a prediction\([17](https://arxiv.org/html/2611.26988#bib.bib17)\), and language models can claim conclusions from formal reasoning they never executed\([18](https://arxiv.org/html/2611.26988#bib.bib18)\)\. Agent benchmarks such asτ\\tau\-bench\([22](https://arxiv.org/html/2611.26988#bib.bib22)\)score the final state an agent produces in addition to its reply, and AuditAgent\([1](https://arxiv.org/html/2611.26988#bib.bib1)\)scores the issues and evidence an agent recovers in fraud audits\. None of these evaluates whether each requirement of a rule set was examined, which LC practice requires\.

Executable checks\.When the model itself judges, as in our Direct and Agent baselines, identical inputs can yield different decisions\([12](https://arxiv.org/html/2611.26988#bib.bib12)\)\. A tool\-using agent\([21](https://arxiv.org/html/2611.26988#bib.bib21)\)chooses what to retrieve and may never consult the relevant evidence\. Program\-aided reasoning hands the computation to an interpreter\([4](https://arxiv.org/html/2611.26988#bib.bib4)\)\. In financial compliance, Compliance\-to\-Code\([13](https://arxiv.org/html/2611.26988#bib.bib13)\)and a neuro\-symbolic system\([5](https://arxiv.org/html/2611.26988#bib.bib5)\)generate free\-form checking code or SMT constraints, whose faithfulness must be checked program by program, and LAVA\([16](https://arxiv.org/html/2611.26988#bib.bib16)\)executes arithmetic rules but leaves symbolic rules to the model\. Our verifier works with a closed set of six operators that examiners can review, and because generated specifications can be compared with gold encodings, omissions and operator errors become measurable\. Following the distinction between exact match and execution accuracy in text\-to\-SQL\([23](https://arxiv.org/html/2611.26988#bib.bib23),[24](https://arxiv.org/html/2611.26988#bib.bib24)\), we report Exact Unit Recall and Unit Success separately\.

LC examination and training data\.Early LC automation parsed free\-text applications with case frames\([3](https://arxiv.org/html/2611.26988#bib.bib3)\)\. Later work compared AI\-based checking with human checkers\([9](https://arxiv.org/html/2611.26988#bib.bib9)\)and optimized how human verification is allocated\([10](https://arxiv.org/html/2611.26988#bib.bib10)\), reporting error counts and processing times\. A recent roadmap reviews bank deployments of commercial checking products and notes the lack of quantitative validation\([11](https://arxiv.org/html/2611.26988#bib.bib11)\)\. To our knowledge, no academic study evaluates LC examination at the requirement level on real cases\. Semantic parsers have been trained on grammar\- or template\-generated pairs, usually paraphrased by crowd workers\([19](https://arxiv.org/html/2611.26988#bib.bib19)\); our pairs are generated by templates alone, each clause together with its specification\.

## 4\.Specification\-Guided Verification

### 4\.1\.Schemas and units

An atomic schema has a document, an ontology key, one of six operators \(Table[1](https://arxiv.org/html/2611.26988#S4.T1)\), and, where needed, an expected value\. The expected value is a literal or a credit\-field reference such as$LC\_APPLICANT, which is resolved at execution\. EXISTS is encoded with the valuetrue\(IV\.country\_of\_origin EXISTS truepasses if the field has any value\)\. NEGATION passes only when the field has no value, as when a BL must bear no adverse remarks\. Composite units join atomic schemas or nested nodes with AND, OR, or AND/OR\. AND/OR executes as OR but is kept separate so that the trace follows the clause wording\. Each top\-level requirement counts as one verification unit; nested logical groups remain part of that unit\.

Table 1\.The six supported operators\. Requirements that need other operations cannot be expressed\. NEGATION denotes field\-value absence\.
### 4\.2\.Execution

The verifier fetches the fields that the schemas name; for example,BL\.consignee EQUALS $LC\_ISSUING\_BANKreadsBL\.consigneeandLC\.issuing\_bank\. It then resolves references, normalizes the values, applies the operators, and evaluates the unit logic recursively \(Listing[1](https://arxiv.org/html/2611.26988#LST1)\)\. The prompt lists the 38 ontology keys\. Requirements whose keys lie outside them, which we call out\-of\-ontology requirements, are reported in a separate out\-of\-ontology field that is neither executed nor evaluated here\. Schemas that the parser places in this field although their key belongs to the ontology are moved into the specification before execution, for all three schema\-based methods\. Units on verification\-ineligible keys \(Section[6\.3](https://arxiv.org/html/2611.26988#S6.SS3)\) are skipped, and such branches are removed from composite units\. The case decision is the conjunction of all executed units, including units without a gold counterpart\. An absent value is returned as an empty string\. Such a lookup still counts as retrieved evidence, which EXISTS and NEGATION test and which grounding requires \(Section[7\.2](https://arxiv.org/html/2611.26988#S7.SS2)\); a field that was never queried provides no evidence\.

Post\-processing \(normalization\)\.Only EQUALS, CONTAINS, LTE, and GTE normalize values\. They apply the same rules to both compared values, for every schema\-based method and for the gold encodings\. EXISTS and NEGATION test the raw value\. The rules were fixed before evaluation and are not used to produce the human labels\. Text is converted to upper case and special characters are removed; synonyms are unified \(CO to COMPANY, LTD to LIMITED\); country names are standardized \(REPUBLIC OF KOREA to KOREA\); filler tokens such as THE are removed; and month names in dates are converted\. For example, “ABC CO\., LTD\.” becomes “ABC COMPANY LIMITED”, and “TO THE ORDER OF X” becomes “TO ORDER OF X”\. Because the order wording is kept, a consignment to the order of a bank and a straight consignment to that bank remain different values\. Normalized comparison still departs from the “not conflict” standard of Art\. 14\(d\), in both directions \(Section[9](https://arxiv.org/html/2611.26988#S9)\)\.

For CLEAN, training targets and gold annotations use an OR ofBL\.clean\_wordingandBL\.adverse\_remarks, and reconstruction is scored against this encoding\. For verification, the verifier follows Art\. 27, under which a transport document is clean if it bears no notation of defective goods or packaging: it fails a CLEAN unit whenever an adverse remark is present and passes it otherwise\. This rule replaces the executed result of any unit that containsBL\.clean\_wordingorBL\.adverse\_remarks\. For a unit generated as the OR encoding, it gives the same outcome as execution; it changes the outcome only when a CLEAN unit is generated in another form, and such a unit still counts as inexact in reconstruction\.111No evaluation case contains an adverse remark\. The gold OR encoding therefore gives the same outcomes, every unit containing either key passes for the schema\-based methods, and the rule is untested on real failures\.

Listing 1:Generic deterministic execution after fact lookup; eq, contains, and compare normalize both values\. The CLEAN rule is described in the text\.defverify\_schema\(s,facts,lc\):

observed=facts\[s\.doc\]\[s\.key\]

expected=resolve\(s\.expected\_value,lc\)

ifs\.op=="EQUALS":returneq\(observed,expected\)

ifs\.op=="CONTAINS":returncontains\(observed,expected\)

ifs\.op=="EXISTS":returnobserved\!=""

ifs\.op=="LTE":returncompare\(observed,expected\)<=0

ifs\.op=="GTE":returncompare\(observed,expected\)\>=0

ifs\.op=="NEGATION":returnobserved==""

raiseValueError\("Unsupportedoperator"\)

defverify\_unit\(u,facts,lc\):

ifu\.is\_atomic\(\):returnverify\_schema\(u\.schema,facts,lc\)

out=\[verify\_unit\(x,facts,lc\)forxinu\.children\]

ifu\.combinator=="AND":returnall\(out\)

ifu\.combinatorin\{"OR","AND/OR"\}:returnany\(out\)

raiseValueError\("Unsupportedcombinator"\)

#### What execution guarantees\.

Every outcome at this layer is computed by the verifier from logged values and stays fixed for a given specification and fact store\. This does not make the interpretation faithful: the parser can omit atomic schemas, choose a wrong operator or value, or group them wrongly\. During evaluation, gold annotations expose these errors\. In deployment, the trace shows what was checked but not what was missed\.

## 5\.Synthetic Specification Supervision

The parser is trained only on 2,000 generated files\. Each file pairs a synthetic clause with its target specification; together they contain 38,226 units and 41,864 atomic schemas\. Templates for each key follow examination patterns in UCP 600, ISBP 821\([8](https://arxiv.org/html/2611.26988#bib.bib8)\), SWIFT MT700, and confidential bank drafting guidance\. Their slots are filled with values that Qwen3\.5\-397B\-A17B\([15](https://arxiv.org/html/2611.26988#bib.bib15)\)extracts from public BLs and IVs in AI\-Hub’s OCR Data \(Finance and Logistics\)\.222[https://aihub\.or\.kr/aihubdata/data/view\.do?dataSetSn=71301](https://aihub.or.kr/aihubdata/data/view.do?dataSetSn=71301)The three annotators \(Section[6](https://arxiv.org/html/2611.26988#S6)\) reviewed all extracted field values used for generation, in rotation\. Rule\-based binding inserts the same value into the clause and the target, so each pair is consistent by construction; OR, AND, AND/OR, and nesting also carry over from template to target\. The pairs teach the parser to interpret requirements; judging compliance is left to the verifier\. The parser never sees a real clause during training, so the evaluation tests transfer from synthetic to real requirement text\. The two also differ in density: a synthetic file has 19\.1 key\-covered units on average, and a real case 11\.2\.

The template authors overlap with the annotators of the evaluation cases\. The templates were finished before annotation and built from the sources above, not from evaluation cases, and the generator, prompts, demonstrations, and hyperparameters were fixed without using the evaluation cases\. Training targets and gold annotations nonetheless share encoding conventions; Section[8\.3](https://arxiv.org/html/2611.26988#S8.SS3)discusses their effect\. We release the generation code and the public\-source templates\.333https://github\.com/Ji\-S/LC\-Spec\-Synth

We fine\-tune Qwen3\.5\-9B\([15](https://arxiv.org/html/2611.26988#bib.bib15)\)with LoRA\([6](https://arxiv.org/html/2611.26988#bib.bib6)\)\(rank 64, alpha 128, learning rate2×10−42\\times 10^\{\-4\}, batch size 4\), first for one epoch on 1,500 files whose party freight and port requirements contain no logical connectives \(CLEAN and ON BOARD always use OR\), and then for one epoch on 500 files with such connectives, so that the parser learns atomic schemas before their composition\. No validation set was used, and we take the final checkpoint\. Training and inference use the same three\-example prompt as the Few\-shot baseline\.

## 6\.Real\-Case Evaluation Set

### 6\.1\.Cases and key coverage

The evaluation set has 345 real cases from one institution\. Each case contains the field\-46A requirements for the BL and IV, the presented BL and IV, and the relevant credit fields\. Annotation yields 4,871 atomic requirements\. The ontology of 38 keys \(24 BL, 14 IV\) was fixed before annotation, based on UCP 600 and practitioner checklists\. Of the requirements, 4,493 \(92\.24%\) map to these keys, are encoded as atomic schemas, and form 3,848 gold units \(Figure[3](https://arxiv.org/html/2611.26988#acmlabel3)\)\. The other 378 are out\-of\-ontology requirements, and we exclude them\. Being key\-covered does not make a requirement expressible: a requirement that an HS code have six digits maps to a key but needs an operator we lack, and it stays in the evaluation\. Most composite units are ORs; nested AND and AND/OR units also occur\.

Figure 3\.Gold atomic key frequencies in 345 cases\. The 20 most frequent BL keys and 12 most frequent IV keys account for 4,460 of the 4,493 key\-covered occurrences; the 378 key\-level out\-of\-ontology requirements are not shown\.Two side\-by\-side panels of horizontal bars: 20 of 24 BL keys and 12 of 14 IV keys\. The BL panel ranges from notify party at 386 occurrences to hs code and shipper at 10 each\. The IV panel ranges from signed/stamped at 305 to invoice number at 9\.
### 6\.2\.Annotation and facts

Three in\-house annotators experienced in trade\-finance examination defined the conventions together\. They decomposed each requirement into atomic schemas with its logical structure, judged each atomic schema PASS or FAIL against the documents, cross\-reviewed one another’s work in rotation, and settled disagreements by reference to UCP 600\. The outcomes are the annotators’ own judgments and were never produced by the verifier\. Cross\-review checks a label that already exists, so it gives no independent second label from which inter\-annotator agreement could be computed\. As a separate check, two finance\-domain experts outside the annotation team reviewed all 182 units on which the executed gold encodings disagree with the labels and found no label error \(Section[9](https://arxiv.org/html/2611.26988#S9)\)\. Every method reads the same human\-validated facts instead of document images, which keeps perception errors out of the comparison\. The fact store lists all 38 keys for every case, empty where absent, so the full table given to Direct does not reveal which requirements a clause contains\.

### 6\.3\.Verification eligibility

Three keys need evidence that the records do not contain\. Endorsements are normally on the back of the BL, but only document faces were collected\. Whether a full set of originals or the required copies was presented \(number\_of\_originals,number\_of\_copies\) cannot be read from one document face\. These atomic schemas remain in detection and reconstruction, but a unit made only of them is not evaluable\. In a composite unit, such branches are removed, and the unit’s gold outcome is recomputed from the labels of the remaining atomic schemas\. For example, “to order of the issuing bank or to order of the shipper and blank endorsed” is verified on its consignee schemas only, and such a reduced unit can be weaker than the original\. Eligibility is decided by key alone and is the same for every method and outcome\.

This leaves 2,817 of the 3,848 units \(73\.21%\) for verification: 2,731 PASS \(96\.95%\) and 86 FAIL\. The gold case decision is the conjunction of these unit outcomes, giving 281 PASS and 64 FAIL cases\. These shares describe a scope that omits field 47A, the other documents, and endorsement and set\-composition conditions; they are not discrepancy rates of whole presentations\. For the same reason, we derive the gold decision from the annotations: the bank’s recorded decision covers the whole presentation and cannot be compared with a decision on this scope\.

## 7\.Experimental Setup

### 7\.1\.Methods

All methods run Qwen3\.5\-9B\([15](https://arxiv.org/html/2611.26988#bib.bib15)\)on premises with the same cases, facts, and ontology \(Table[2](https://arxiv.org/html/2611.26988#S7.T2)\), and none sees gold mappings from clauses to schemas or fields\.

Table 2\.Compared methods\. Schema\-based methods share a deterministic verifier\. Mode: thinking or non\-thinking generation\.Schema\-based methods\.Zero\-shot receives only the schema instructions, which list the 38 keys and ask for requirements outside them in a separate field\. Few\-shot adds three synthetic demonstrations that cover a broad range of keys\. Ours SFT uses the Few\-shot prompt after fine\-tuning\.

Generic Agent\.The agent uses Qwen\-Agent444[https://github\.com/QwenLM/Qwen\-Agent](https://github.com/QwenLM/Qwen-Agent), in thinking mode \(the model’s default\), with default execution settings and no budget overrides\. It receives the clause, the field list, and one tool,get\_document\_information\(document\_type, field\_name\), but no schema or verifier\. It identifies requirements, fetches fields, reports checks \(the prompt asks for one check per requirement\), and gives a case decision\. A logged lookup counts as retrieved evidence only if it returns the stored value of the requested field; an empty string counts only when the field is actually empty, not when a lookup fails\.

Direct\.Direct receives the clause and the full fact table in one non\-thinking prompt\. It returns PASS/FAIL for each key it examines and a case label\. We call Direct and the Agent the model\-based baselines\.

Gold\-spec execution\.As a diagnostic reference, we also execute the gold encodings with the same verifier\. It shows which errors remain when the specification matches the annotation, and thus separates generation errors from errors that the representation itself introduces\. It is not an upper bound on the outcome\-level metrics \(Section[8\.1](https://arxiv.org/html/2611.26988#S8.SS1)\); Section[9](https://arxiv.org/html/2611.26988#S9)analyzes its disagreements with the human labels\.

Decoding\.Direct, Zero\-shot, and Few\-shot use the model card’s non\-thinking setting \(temperature 0\.7, top\-p 0\.8\), and the Agent uses its thinking setting \(temperature 1\.0, top\-p 0\.95\); all methods use top\-k 20 and presence penalty 1\.5\.555[https://huggingface\.co/Qwen/Qwen3\.5\-9B](https://huggingface.co/Qwen/Qwen3.5-9B)These values are recommended for the released weights\. SFT changes the weights and was trained to emit one target specification per clause, so we decode it greedily to keep that format stable\. All other sampling parameters are those of Few\-shot, so the two differ in decoding only in temperature\. AceSearcher\([20](https://arxiv.org/html/2611.26988#bib.bib20)\)uses the same split: it follows the official guidance for its Qwen3 baselines \(temperature 0\.7 in non\-thinking and 0\.6 in thinking mode\) and decodes its own fine\-tuned models at temperature 0\. No decoding parameter was tuned on the evaluation cases\.

Comparability\.For the schema\-based methods and the gold encodings, the verifier applies normalization and the CLEAN rule \(Section[4\.2](https://arxiv.org/html/2611.26988#S4.SS2)\)\. Direct and the Agent receive the CLEAN rule in their prompts and compare values themselves\. Since the systems also differ in evidence access, output format, and reasoning mode, we treat comparisons with the model\-based baselines as system\-level\.

### 7\.2\.Metrics

Figure[4](https://arxiv.org/html/2611.26988#acmlabel4)shows which observable layers each metric compares\. For the schema\-based methods, all metrics are computed after schemas on ontology keys that were placed in the out\-of\-ontology field are moved back \(Section[4\.2](https://arxiv.org/html/2611.26988#S4.SS2)\)\.

Figure 4\.The observable layers each metric compares\. For schema\-based methods the trace is the verifier’s retrieval; Direct has none, so its grounding is not applicable\. Arrows indicate the primary comparison; retrieval traces determine grounding eligibility for Judgment Accuracy and Unit Success\.Three boxes across the top: the gold annotation, which gives the atomic schemas, their grouping into units, the evidence each unit needs and each unit's outcome; the retrieval trace, which gives the fields actually accessed; and the system output, which gives the checks or specification a method emits and its decisions\. Below them, five rows name a metric, the pair of layers it compares and how it is computed: Atomic Recall and Unit Detection Recall, and Exact Unit Recall, compare the gold annotation with the system output; Grounding Rate compares the gold annotation with the retrieval trace; Judgment Accuracy and Unit Success compare the gold annotation with the system output\.Detectioncounts \(document, key\) occurrences with multiplicity\. Letgc​\(d,k\)g\_\{c\}\(d,k\)be the number of schemas inS⁡\(c\)S\(c\)with documentddand keykk, andpc​\(d,k\)p\_\{c\}\(d,k\)the predicted count\. Then

m=∑c∑d,kmin⁡\{gc​\(d,k\),pc​\(d,k\)\},\\displaystyle m=\\sum\_\{c\}\\sum\_\{d,k\}\\min\\\{g\_\{c\}\(d,k\),p\_\{c\}\(d,k\)\\\},AtomicRecall=m∑c∑d,kgc​\(d,k\),\\displaystyle\\mathrm\{AtomicRecall\}=\\frac\{m\}\{\\sum\_\{c\}\\sum\_\{d,k\}g\_\{c\}\(d,k\)\},AtomicPrecision=m∑c∑d,kpc​\(d,k\)\.\\displaystyle\\mathrm\{AtomicPrecision\}=\\frac\{m\}\{\\sum\_\{c\}\\sum\_\{d,k\}p\_\{c\}\(d,k\)\}\.For the Agent, predicted keys are the evidence fields of its checks; for Direct, they are its reported keys\. Detection measures key coverage only; operators and values are checked in reconstruction\. Unit Detection Recall is the share of gold units with at least one matched atomic schema\. A predicted occurrence marks every gold unit that contains its \(document, key\), so this metric is lenient when units share a key; Atomic Recall counts occurrences one\-to\-one\. Detection covers all 3,848 units\.

Reconstruction\.An exact unit match requires the correct document, key, operator, and expected value for every atomic schema, and the full logical structure\. Expected values are compared as written, without normalization\. Emitting only one alternative ofOR\(BL\.notify\_party EQUALS A, BL\.notify\_party EQUALS B\), or replacing OR with AND, is not exact, even if the outcome does not change\. Exact Unit Recall is the share of gold units matched exactly\. Perfect Cases is the share of cases whose predicted units match the gold units one\-to\-one, with none missing or extra\. Both apply only to schema\-based methods\.

Verification\.For schema\-based methods, each predicted unit is executed as generated\. It is then matched greedily and one\-to\-one to a gold unit of the same case that shares a \(document, key\) pair with it, preferring units that also agree in operator and expected value\. Matching ignores outcomes and does not require exactness\. If one gold unit was generated as several units, the extra units are still executed and enter the case decision\. Checks of the model\-based baselines are aligned by \(document, key\) counts, as in detection\. Several Agent checks on one gold unit are combined by AND, the case\-decision rule, and are not read as alternatives of an OR unit, because the prompt asks for one check per requirement\.

Each evaluable gold unit then receives one terminal status: MISS if no check is aligned; UNGROUNDED if the Agent has not retrieved the required evidence \(a field counts only if it is listed for the check and was successfully looked up\); otherwise CORRECT or WRONG\_DECISION, by agreement with the human outcome\. All outputs could be parsed\. WithUe​v​a​lU\_\{eval\}the 2,817 evaluable units andUAU\_\{A\},UGU\_\{G\},UCU\_\{C\}the addressed, grounded, and correct units among them,

Addressed=\|UA\|\|Ue​v​a​l\|,Grounding=\|UG\|\|UA\|,\\displaystyle\\mathrm\{Addressed\}=\\frac\{\|U\_\{A\}\|\}\{\|U\_\{eval\}\|\},\\quad\\mathrm\{Grounding\}=\\frac\{\|U\_\{G\}\|\}\{\|U\_\{A\}\|\},Judgment=\|UC\|\|UG\|,UnitSuccess=\|UC\|\|Ue​v​a​l\|\.\\displaystyle\\mathrm\{Judgment\}=\\frac\{\|U\_\{C\}\|\}\{\|U\_\{G\}\|\},\\quad\\mathrm\{UnitSuccess\}=\\frac\{\|U\_\{C\}\|\}\{\|U\_\{eval\}\|\}\.Judgment Accuracy is conditional on grounded units, which differ across methods; Unit Success keeps omissions and missing evidence in the denominator\. Direct leaves no retrieval trace, so its grounding cannot be measured\. We count its addressed units as grounded; its Grounding and Judgment Accuracy are then not comparable, so we report only its Unit Success \(47\.60%, in the caption of Table[3](https://arxiv.org/html/2611.26988#S8.T3)\)\.

Case level\.Case Decision Accuracy compares a method’s final label with the gold decision within the evaluated scope\. Schema\-based methods take the conjunction of the executed units\. For the model\-based baselines, we drop checks that concern only excluded requirements and take the conjunction of the rest; before this filtering, Direct’s own label always equals the conjunction of its checks\. A model\-based check gives one outcome for all the fields it lists, so a check that mixes an excluded and an evaluable field cannot be reduced the way a composite gold unit is \(Section[6\.3](https://arxiv.org/html/2611.26988#S6.SS3)\)\. We keep such a check, and its outcome stands for the evaluable unit: a failed Agent check onendorsementandconsigneecounts as FAIL for the consignee unit\. False rejections are gold PASS cases judged FAIL; false acceptances are the reverse\.

TheComplete Examination Rate\(CER\) is the share of cases in which every evaluable gold unit is CORRECT and the final decision is correct\. On FAIL cases, it therefore requires every evaluable discrepancy to be found, since a discrepancy missing from the single notice of Art\. 16\(c\) cannot be relied on later\. Like Unit Success, CER is outcome\-level: an aligned check is CORRECT when it gives the human outcome, whether or not it is exact\. A complete examination in this sense means that every evaluable requirement received the right outcome\. Whether each check is also the intended one is measured by Exact Unit Recall and Perfect Cases\. CER also ignores extra checks unless they change the decision; Perfect Cases and Atomic Precision cover them\. Incompl\. is the share of final\-correct cases with at least one unsuccessful evaluable unit\.

## 8\.Results

Table 3\.Unit verification on the 2,817 evaluable gold units \(%\)\. Grounding is conditional on addressed units, and Judgment on grounded units\. FAIL: gold FAIL units correctly identified, of 86\. Direct, which has no retrieval step, reaches 47\.60% Unit Success\. Gold spec\.: executed gold encodings, a diagnostic reference \(Section[7\.1](https://arxiv.org/html/2611.26988#S7.SS1)\)\.Table 4\.Case\-level results within the evaluated scope \(281 gold PASS, 64 gold FAIL\)\. FR/FA: false rejections/acceptances; Acc\.: Case Decision Accuracy; Bal\.: balanced accuracy; Incompl\.: share of final\-correct cases with an unsuccessful evaluable unit\.Table 5\.Detection and reconstruction \(%\) over 4,493 atomic schemas and 3,848 gold units\. Exact: Exact Unit Recall; Perfect: Perfect Cases\. Few\-shot and SFT share the same three\-example prompt\.MethodAtom\. RAtom\. PUnit Det\.ExactPerfectDirect44\.2544\.2587\.4251\.0451\.04n/an/aGeneric Agent65\.3565\.3562\.8862\.8870\.8470\.84n/an/aSchema Zero\-shot78\.1978\.1981\.8981\.8987\.7187\.7157\.6457\.640\.000\.00Schema Few\-shot88\.8088\.8086\.9786\.9791\.7191\.7176\.5376\.5310\.1410\.14Ours SFT93\.1986\.9486\.9493\.3285\.7627\.83Table 6\.Terminal statuses on 2,817 evaluable gold units\.### 8\.1\.RQ1: Final decisions and complete examination

Correct final decisions often hide incomplete examination \(Table[4](https://arxiv.org/html/2611.26988#S8.T4)\)\. Every final\-correct case of Direct \(244\) and of the Agent \(91\) contains an unsuccessful evaluable unit, as do 54 of 80 for Zero\-shot, 51 of 139 for Few\-shot, and 35 of 197 for SFT\. Direct leaves out at least one evaluable unit in every case, partly by design: it reports one judgment per key and cannot address several units on the same key\.

CER is 46\.96% \(162 cases\) for SFT, 25\.51% \(88\) for Few\-shot, 7\.54% \(26\) for Zero\-shot, and zero for both model\-based baselines\. Since all systems see the same cases, the differences can be tested in pairs: an exact McNemar test givesp<10−5p<10^\{\-5\}for SFT against Few\-shot andp<10−8p<10^\{\-8\}for Few\-shot against Zero\-shot\. The test accounts for case sampling but not for run\-to\-run variation\. At least 13 of SFT’s 162 completely examined cases are FAIL cases, because it decides only 149 PASS cases correctly; for Few\-shot and Zero\-shot, the corresponding numbers are at least 8 and 6\.

Raw accuracy hides this\. Always PASS scores highest \(81\.45%\) simply because 281 of the 345 cases are PASS, and Direct, the most accurate evaluated system \(70\.72%\), accepts 58 of the 64 discrepant cases; SFT comes next at 57\.10%\. With balanced accuracy\([2](https://arxiv.org/html/2611.26988#bib.bib2)\), which removes the majority\-class advantage, SFT ranks first among the evaluated systems \(64\.01%\) and Few\-shot second \(60\.33%\), while both model\-based baselines fall below the 50% of the constant rules\. SFT is also the only evaluated system that decides more than half of each class correctly \(149/281 PASS, 48/64 FAIL\)\. Even so, no decision\-level metric can tell whether a correct decision came from a complete examination\. Of SFT’s 16 false acceptances, 6 occur because a failing unit was never generated and 10 because a unit was misjudged\.

A correct refusal can also be based on the wrong grounds\. Of the 86 gold FAIL units, SFT correctly identifies 39, Zero\-shot 38, Few\-shot 37, and the Agent 28 \(Table[3](https://arxiv.org/html/2611.26988#S8.T3)\), and each of them forces a FAIL decision in its case\. SFT correctly refuses 48 cases, so at least 9 of these refusals come only from other failing checks, such as false FAIL judgments or extra units\. For the Agent, Zero\-shot, and Few\-shot, more than a third of the correct refusals are of this kind\.

Completing the examination of a discrepant case is hard even without generation errors\. Executing the gold encodings gives 47 correct refusals, but only 8 of them examine every evaluable unit correctly\. A correct refusal needs one failing unit, while a complete examination needs every unit right\. In a case with one discrepancy and several satisfied requirements, finding the discrepancy is enough to refuse correctly, but a satisfied requirement that is wrongly failed, or a second discrepancy that is missed, leaves the examination incomplete\. Gold execution produces 145 false FAILs across all cases \(Section[9](https://arxiv.org/html/2611.26988#S9)\)\. SFT completes more FAIL cases than gold execution \(at least 13 against 8\) while finding fewer discrepancies \(39 against 49\), because CER is outcome\-level: an inexact generated unit can pass a satisfied requirement on which the gold encoding wrongly fails\. This is also why gold execution is a diagnostic reference here and cannot serve as an upper bound\.

### 8\.2\.RQ2: Specification\-guided and model\-based examination

SFT reaches 82\.36% Unit Success, against 54\.17% for the Agent \(Table[3](https://arxiv.org/html/2611.26988#S8.T3)\), and Few\-shot already reaches 76\.61% without training\. These figures need care\. Since 96\.95% of the evaluable units are PASS, a system that addressed every unit and passed all of them would reach 96\.95% without finding a single discrepancy, and for this reason Table[7](https://arxiv.org/html/2611.26988#S8.T7)splits Unit Success by gold class\. SFT’s lead of 794 units over the Agent comes almost entirely from PASS units \(783\); overall, SFT has 505 fewer misses, 179 fewer ungrounded units, and 110 fewer wrong decisions \(Table[6](https://arxiv.org/html/2611.26988#S8.T6)\)\. Most of the gain thus comes from examining satisfied requirements and passing them correctly\. On the 86 FAIL units, Unit Success rises from 32\.56% to 45\.35%, and the balanced mean keeps the ordering of Table[3](https://arxiv.org/html/2611.26988#S8.T3)\(43\.70% for the Agent, 64\.44% for SFT\)\. The PASS\-unit gains matter for completeness: in a compliant case every evaluable unit is a PASS unit, and only a system that gets all of them right examines the case completely\.

Direct has the lowest Unit Detection Recall \(51\.04%\) yet the highest Atomic Precision \(87\.42%; Table[5](https://arxiv.org/html/2611.26988#S8.T5)\)\. The keys it reports are usually required ones; it simply reports too few of them\. Zero\-shot beats the Agent in Unit Success \(65\.10%\) despite having the lowest Judgment Accuracy \(74\.49%\): it covers more units, although its units more often execute to the wrong outcome\. Many of its units are inexact \(Exact Unit Recall 57\.64%\), but matching does not require exactness, and when most units are PASS, an inexact unit often still gives the right outcome\. The Agent and Zero\-shot reject most compliant cases \(243 and 261 of 281\)\. Under conjunction a single wrong FAIL is enough, and the Agent’s mixed checks also carry failures over from excluded fields\.

Table 7\.Unit Success \(%\) on the 2,731 PASS and 86 FAIL evaluable units; Balanced is their unweighted mean\. Derived from Tables[3](https://arxiv.org/html/2611.26988#S8.T3)and[6](https://arxiv.org/html/2611.26988#S8.T6)\.
### 8\.3\.RQ3: Fine\-tuning on synthetic specifications

With the same three\-example prompt, SFT raises Atomic Recall from 88\.80% to 93\.19% while Atomic Precision stays the same \(86\.94% versus 86\.97%\)\. The larger changes are in Exact Unit Recall, from 76\.53% to 85\.76%, and in Perfect Cases, from 10\.14% \(35/345\) to 27\.83% \(96/345\); Unit Detection Recall rises by only 1\.61 points\. What the fine\-tuned parser gains, then, is mainly the ability to recover complete atomic schemas and their structure\. Some of this may come from the encoding conventions that training targets share with the annotations \(Section[5](https://arxiv.org/html/2611.26988#S5)\), such as the OR encoding of CLEAN; they can favor SFT on Exact Unit Recall and Perfect Cases, which compare with the encodings\. Unit Success and CER compare outcomes with the human labels, and they rise as well\.

Verification follows the same order\. Compared with Few\-shot, SFT makes 126 fewer wrong decisions and 36 fewer misses \(162 more CORRECT units\); Few\-shot in turn makes 243 fewer wrong decisions and 81 fewer misses than Zero\-shot\. No schema\-based run has an UNGROUNDED unit, because the verifier fetches every field that a schema names and the fact store holds every key\. As in the comparison with the Agent, the advantage is on satisfied requirements: 160 of SFT’s 162 additional CORRECT units are PASS units \(Table[7](https://arxiv.org/html/2611.26988#S8.T7)\)\. SFT cuts false rejections from 201 to 132 but raises false acceptances from 5 to 16\. On discrepancies, the three schema\-based configurations identify 37 to 39 FAIL units, a difference that 86 units and one run per configuration cannot resolve\. Few\-shot and SFT also differ in decoding \(Section[7\.1](https://arxiv.org/html/2611.26988#S7.SS1)\), so the comparison is between two configurations and does not isolate the effect of training\.

## 9\.Discussion

What the representation allows\.To see what the representation itself allows, we executed the gold encodings with the same verifier\. They match the human outcomes on 2,635 of 2,817 units \(93\.54%\), 315 more than SFT, and identify 49 of the 86 FAIL units\. At the case level they make 56 false rejections and 17 false acceptances, which puts their accuracy \(78\.84%\) below that of Always PASS; their CER is 67\.54% \(Table[4](https://arxiv.org/html/2611.26988#S8.T4)\)\. Since gold execution misses no unit, its 182 disagreements with the human outcomes split into 145 false FAILs on satisfied requirements and 37 false PASSes on annotated discrepancies\. Four in five of these errors flag a requirement for review, and only one in five lets a discrepancy through\. Two finance\-domain experts who had not taken part in the annotation reviewed the 182 disagreements and found no label or encoding error\. Here, “no encoding error” means that each gold encoding follows the annotation conventions for its key; it does not mean that the six operators can verify every requirement on that key faithfully\. The disagreements run in both directions\. The 145 false FAILs come from comparisons stricter than examination practice: documents add data that do not conflict, write the same data differently, or vary within UCP tolerances \(Art\. 30\(b\)\), and some requirements, such as a six\-digit HS code, need format operators\. The 37 false PASSes come from substring tests: CONTAINS passes a value that includes the required text even when the rest of it changes the meaning\. Tightening or loosening the operators would trade one error for the other; what is needed is a comparison that judges whether data conflict, as Art\. 14\(d\) does\. Because these errors already occur with the gold encodings, a better parser alone cannot remove them\.

Error types and the examiner’s role\.With only 86 FAIL units, most wrong decisions are false FAILs; for SFT, over 80% of its 259 wrong decisions reject a satisfied requirement\. Under conjunction a single wrong FAIL, possibly from an extra unit, is enough to reject a compliant case, and SFT rejects 132 of the 281 compliant cases \(46\.98%\) while accepting 16 of the 64 discrepant ones \(25\.00%\)\. The two errors have different costs: a false rejection costs examiner time, while a false acceptance can make a bank honour a discrepant presentation\. At these rates the system cannot run on its own\. A better fit is the hybrid AI–human examination recommended for LC practice\([11](https://arxiv.org/html/2611.26988#bib.bib11)\), where every rejection reaches the examiner together with the units that caused it and the evidence they read\. The trace cannot show the 238 units that SFT missed, though, and whether checking its flags saves examiners time compared with examining unaided is a question for a study with examiners\.

## 10\.Limitations

Our study has several limits\. It models only BL and IV requirements in field 46A; 378 requirements \(7\.76%\) fall outside the fixed ontology, and the parser’s separate list of such requirements is not evaluated; verification covers 2,817 of 3,848 units\. Comparisons with the model\-based baselines are system\-level\. Each configuration was run once, which leaves run\-to\-run variation unmeasured, and Few\-shot and SFT also differ in decoding\. With 86 FAIL units in 64 cases, conclusions about discrepancy detection draw on few events\. All cases come from one institution\. The labels come from three in\-house annotators who cross\-reviewed one another’s work; without independent double annotation, inter\-annotator agreement is not available\. Encoding conventions shared by templates and annotations may favor the fine\-tuned parser on exact\-match metrics\. Finally, the real cases and the templates derived from confidential guidance cannot be released: others can generate training pairs with the released code and public\-source templates, but cannot reproduce the reported scores\.

## 11\.Conclusion

On 345 real LC cases, final\-decision accuracy says little about whether the examination was complete\. A constant PASS rule has the highest raw accuracy while examining nothing, and correct refusals can be based on checks other than the annotated discrepancies\. Evaluating requirement by requirement exposes this gap, and executable specifications make it measurable\. They also show where errors come from\. Finding discrepancies is still the weak point, and generation is only part of the reason: SFT finds 39 of the 86 annotated discrepancies, and even the gold encodings, executed with the same verifier, find only 49\. Such specifications can be generated without confidential records: a parser trained only on synthetic pairs completely examines 46\.96% of the cases within the evaluated scope, 1\.8 times as many as few\-shot prompting under its recommended sampling setting, and reaches a class\-balanced Unit Success of 64\.44%, against 43\.70% for a generic agent that examines no case completely\. We see three next steps\. Format operators and a comparison closer to Art\. 14\(d\) would remove errors that gold execution exposes\. A check of the clause against its specification could flag omissions that the trace cannot show\. Extending the study to other documents, field 47A, and document images would test the approach end to end\.

###### Acknowledgements\.

This research was supported by Hana Financial Group\. It also used datasets from ‘The Open AI Dataset Project \(AI\-Hub, S\. Korea\)’\. All data information can be accessed through ‘AI\-Hub \([www\.aihub\.or\.kr](https://www.aihub.or.kr/)\)’\.

## References

- \(1\)Songran Bai, Bingzhe Wu, Yiwei Zhang, Chengke Wu, Xiaolong Zheng, Yaze Yuan, Ke Wu, and Jianqiang Li\. 2025\. AuditAgent: Expert\-Guided Multi\-Agent Reasoning for Cross\-Document Fraudulent Evidence Discovery\. In*Proceedings of the 6th ACM International Conference on AI in Finance \(ICAIF ’25\)*\. ACM\.[https://doi\.org/10\.1145/3768292\.3770383](https://doi.org/10.1145/3768292.3770383)
- \(2\)Kay Henning Brodersen, Cheng Soon Ong, Klaas Enno Stephan, and Joachim M\. Buhmann\. 2010\. The Balanced Accuracy and Its Posterior Distribution\. In*Proceedings of the 20th International Conference on Pattern Recognition \(ICPR\)*\. 3121–3124\.[https://doi\.org/10\.1109/ICPR\.2010\.764](https://doi.org/10.1109/ICPR.2010.764)
- \(3\)Vasant Dhar and Padmanabhan Ranganathan\. 1986\. Automating Review of Forms for International Trade Transactions: A Natural Language Processing Approach\. In*Proceedings of the Third ACM\-SIGOIS Conference on Office Information Systems \(COCS ’86\)*\. ACM, 61–69\.[https://archive\.nyu\.edu/handle/2451/14526](https://archive.nyu.edu/handle/2451/14526)
- \(4\)Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig\. 2023\. PAL: Program\-aided Language Models\. In*Proceedings of the 40th International Conference on Machine Learning \(ICML\)*\(PMLR, Vol\. 202\)\. 10764–10799\.[https://proceedings\.mlr\.press/v202/gao23f\.html](https://proceedings.mlr.press/v202/gao23f.html)
- \(5\)Yung\-Shen Hsia, Fang Yu, and Jie\-Hong Roland Jiang\. 2025\. Neuro\-Symbolic Compliance: Integrating LLMs and SMT Solvers for Automated Financial Legal Analysis\. In*2025 2nd IEEE/ACM International Conference on AI\-powered Software \(AIware\)*\.[https://arxiv\.org/abs/2601\.06181](https://arxiv.org/abs/2601.06181)
- \(6\)Edward J\. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen\-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen\. 2022\. LoRA: Low\-Rank Adaptation of Large Language Models\. In*The Tenth International Conference on Learning Representations \(ICLR 2022\)*\.[https://openreview\.net/forum?id=nZeVKeeFYf9](https://openreview.net/forum?id=nZeVKeeFYf9)
- \(7\)International Chamber of Commerce\. 2007\.*UCP 600: Uniform Customs and Practice for Documentary Credits*\. ICC Publication No\. 600, Paris\.[https://academy\.iccwbo\.org/trade\-finance/e\-books/UCP\-600/](https://academy.iccwbo.org/trade-finance/e-books/UCP-600/)
- \(8\)International Chamber of Commerce\. 2023\.*International Standard Banking Practice for the Examination of Documents under UCP 600 \(ISBP\)*\. ICC Publication No\. 821, Paris\.[https://2go\.iccwbo\.org/international\-standard\-banking\-practice\-isbp\-config\-1\.html](https://2go.iccwbo.org/international-standard-banking-practice-isbp-config-1.html)
- \(9\)Munaf Khalil and Laoucine Kerbache\. 2022\. Artificial Intelligence Role in Automation of Trade Document Examination Under Letter of Credit Process\. In*Proceedings of the 5th European International Conference on Industrial Engineering and Operations Management*\. IEOM Society International, Rome, Italy\.[https://doi\.org/10\.46254/EU05\.20220264](https://doi.org/10.46254/EU05.20220264)
- \(10\)Mounaf Asaad Khalil, Majed Hadid, Regina Padmanabhan, Adel Elomri, and Laoucine Kerbache\. 2025\. An Integrated Artificial Intelligence and Optimization Model for Operational Efficiency and Risk Reduction in Letter of Credit Examination Process\.*Decision Analytics Journal*14 \(2025\), 100552\.[https://doi\.org/10\.1016/j\.dajour\.2025\.100552](https://doi.org/10.1016/j.dajour.2025.100552)
- \(11\)Mounaf Asaad Khalil, Regina Padmanabhan, Majed Hadid, Adel Elomri, and Laoucine Kerbache\. 2025\. AI Driven Transformation in Trade Finance: A Roadmap for Automating Letter of Credit Document Examination\.*Digital Business*5, 2 \(2025\), 100130\.[https://doi\.org/10\.1016/j\.digbus\.2025\.100130](https://doi.org/10.1016/j.digbus.2025.100130)
- \(12\)Raffi Khatchadourian and Rolando Franco\. 2025\. LLM Output Drift: Cross\-Provider Validation & Mitigation for Financial Workflows\. In*The 2nd Workshop on LLMs and Generative AI for Finance \(AI4F\), co\-located with ACM ICAIF ’25*\(non\-archival\)\.[https://arxiv\.org/abs/2511\.07585](https://arxiv.org/abs/2511.07585)
- \(13\)Siyuan Li, Jian Chen, Rui Yao, Xuming Hu, Peilin Zhou, Weihua Qiu, Simin Zhang, Chucheng Dong, Zhiyao Li, Qipeng Xie, and Zixuan Yuan\. 2025\. Compliance\-to\-Code: Enhancing Financial Compliance Checking via Code Generation\. arXiv preprint arXiv:2505\.19804\.[https://arxiv\.org/abs/2505\.19804](https://arxiv.org/abs/2505.19804)
- \(14\)R\. Thomas McCoy, Ellie Pavlick, and Tal Linzen\. 2019\. Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inference\. In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics \(ACL\)*\. 3428–3448\.[https://doi\.org/10\.18653/v1/P19\-1334](https://doi.org/10.18653/v1/P19-1334)
- \(15\)Qwen Team\. 2026\. Qwen3\.5: Towards Native Multimodal Agents\.[https://qwen\.ai/blog?id=qwen3\.5](https://qwen.ai/blog?id=qwen3.5)
- \(16\)Ruoqi Shu, Xuhui Wang, Isaac Wang, Yanming Mai, and Bo Wan\. 2025\. LAVA: Logic\-Aware Validation and Augmentation Framework for Large\-Scale Financial Document Auditing\. In*Proceedings of the 10th Workshop on Financial Technology and Natural Language Processing \(FinNLP\)*\. Association for Computational Linguistics, 75–92\.[https://doi\.org/10\.18653/v1/2025\.finnlp\-2\.7](https://doi.org/10.18653/v1/2025.finnlp-2.7)
- \(17\)Miles Turpin, Julian Michael, Ethan Perez, and Samuel R\. Bowman\. 2023\. Language Models Don’t Always Say What They Think: Unfaithful Explanations in Chain\-of\-Thought Prompting\. In*Advances in Neural Information Processing Systems 36 \(NeurIPS 2023\)*\.[https://proceedings\.neurips\.cc/paper\_files/paper/2023/hash/ed3fea9033a80fea1376299fa7863f4a\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2023/hash/ed3fea9033a80fea1376299fa7863f4a-Abstract-Conference.html)
- \(18\)Olivia Peiyu Wang, Sanna Wong\-Toropainen, Daneshvar Amrollahi, Ryan Bai, Tashvi Bansal, Arush Garg, and Leilani H\. Gilpin\. 2026\. Know Your Limits: On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning\. arXiv preprint arXiv:2606\.16118\.[https://arxiv\.org/abs/2606\.16118](https://arxiv.org/abs/2606.16118)
- \(19\)Yushi Wang, Jonathan Berant, and Percy Liang\. 2015\. Building a Semantic Parser Overnight\. In*Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing \(ACL\-IJCNLP\)*\. 1332–1342\.[https://doi\.org/10\.3115/v1/P15\-1129](https://doi.org/10.3115/v1/P15-1129)
- \(20\)Ran Xu, Yuchen Zhuang, Zihan Dong, Ruiyu Wang, Yue Yu, Joyce Ho, Linjun Zhang, Haoyu Wang, Wenqi Shi, and Carl Yang\. 2025\. AceSearcher: Bootstrapping Reasoning and Search for LLMs via Reinforced Self\-Play\. In*Advances in Neural Information Processing Systems 38 \(NeurIPS 2025\)*\. 33841–33882\.[https://proceedings\.neurips\.cc/paper\_files/paper/2025/hash/30b00503cffe6acf25876fb1690a7357\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2025/hash/30b00503cffe6acf25876fb1690a7357-Abstract-Conference.html)
- \(21\)Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao\. 2023\. ReAct: Synergizing Reasoning and Acting in Language Models\. In*The Eleventh International Conference on Learning Representations \(ICLR 2023\)*\.[https://openreview\.net/forum?id=WE\_vluYUL\-X](https://openreview.net/forum?id=WE_vluYUL-X)
- \(22\)Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan\. 2025\.τ\\tau\-bench: A Benchmark for Tool\-Agent\-User Interaction in Real\-World Domains\. In*The Thirteenth International Conference on Learning Representations \(ICLR 2025\)*\. 74824–74876\.[https://proceedings\.iclr\.cc/paper\_files/paper/2025/file/1b126cc38b8638e07bef37e7b2bb72bf\-Paper\-Conference\.pdf](https://proceedings.iclr.cc/paper_files/paper/2025/file/1b126cc38b8638e07bef37e7b2bb72bf-Paper-Conference.pdf)
- \(23\)Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir Radev\. 2018\. Spider: A Large\-Scale Human\-Labeled Dataset for Complex and Cross\-Domain Semantic Parsing and Text\-to\-SQL Task\. In*Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing \(EMNLP\)*\. 3911–3921\.[https://doi\.org/10\.18653/v1/D18\-1425](https://doi.org/10.18653/v1/D18-1425)
- \(24\)Ruiqi Zhong, Tao Yu, and Dan Klein\. 2020\. Semantic Evaluation for Text\-to\-SQL with Distilled Test Suites\. In*Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\)*\. 396–411\.[https://doi\.org/10\.18653/v1/2020\.emnlp\-main\.29](https://doi.org/10.18653/v1/2020.emnlp-main.29)

相似文章

三思而后行:LLM智能体的预行动验证

arXiv cs.LG

本文介绍了一种用于LLM智能体的确定性验证框架,以防止shell命令和代码编辑中的静默故障,展示了高捕获率,并发布了基准测试和验证器。

关于论辩图生成中大语言模型的验证

arXiv cs.CL

本文主张对大语言模型生成的论辩图进行分层验证,将确定性检查、求解器与大语言模型审查相结合。研究表明,大语言模型审查器能较好地检测结构缺陷,但结果不稳定,容易误拒正确的论辩图,且速度慢于精确检查方法。