ZICQ
中 Log in / Sign up
Newsroom Research & Papers #Agentic AI Auditing #Crypto Transaction Monitoring #Causal Attribution #Shapley Credit Assignment #LLM Judge

Who Flags the Transaction? Auditing an Agentic LLM Pipeline for Crypto AML

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:The study audits an agentic cryptocurrency-monitoring pipeline combining graph detectors, deterministic rules, retrieval-augmented generation, and an LLM judge on the Elliptic++ Bitcoin dataset. Its three-layer protocol separates per-case actual causation, interventional Shapley credit, and mediation of upstream risk scores. Approximately 94% of the attribution credit for flags goes to a deterministic wallet-score override rather than the LLM judge. The judge also follows injected risk scores,


Core Finding

The component that actually determines most alerts in this cryptocurrency-monitoring pipeline is not the LLM judge that writes the explanation. On the Elliptic++ Bitcoin dataset, a deterministic wallet-score override receives approximately 94% of the Shapley credit for flags. A verification gate also cancels most flags generated independently by the LLM judge, and those canceled model-originated flags mostly concern licit transactions.

The contribution is not a new state-of-the-art detection score. It is a component-level audit of an agentic decision pipeline. The audit identifies three engineering failures that aggregate metrics can conceal: LLM anchoring on upstream risk scores, abstention when the context budget cannot preserve the system prompt, and false regulatory citations that pass a substring-based validator.

A Three-Layer Attribution Protocol

1. Per-Case Actual Causation

The first layer asks whether a particular component actually changed the decision for a specific transaction. This is a counterfactual question, not a frequency count of how often a component appears in a trace.

For a pipeline containing graph detectors, deterministic rules, RAG, and an LLM judge, each component can be masked or replaced and the final decision compared with the original outcome. This separates mere participation in the workflow from actual influence on the alert. It is also expensive: each intervention may require another graph computation, retrieval pass, and model call.

2. Interventional Shapley Credit

The second layer assigns systematic credit by evaluating different coalitions of components. If v(S) is the decision value obtained when only component set S is active, the standard Shapley decomposition is:

φ_i = Σ_{S⊆N−{i}} [|S|!(m−|S|−1)!/m!] × [v(S∪{i})−v(S)]

Here, m is the number of candidate components. Compared with evaluating only the full pipeline and a version with one component removed, Shapley credit captures interactions among rules, graph features, retrieval, and the judge.

The result nevertheless depends on the value function, the intervention semantics, and whether components are allowed to operate together. Exact enumeration requires roughly O(m·2^m) value evaluations, so larger systems generally need sampling. Approximation reduces audit cost but may miss high-order interactions, particularly among correlated wallet scores, graph features, and retrieved evidence. The supplied abstract does not disclose the full value function, sampling budget, or uncertainty estimates.

Consequently, the reported 94% should be read as attribution credit under the proposed protocol. It is not an accuracy rate, a false-positive rate, or a universal causal proportion.

3. Mediation of Upstream Risk Scores

The third layer traces how a wallet risk score affects the final outcome. The score may directly trigger a deterministic override, or it may influence retrieval, evidence summarization, context construction, and ultimately the LLM judge. Mediation analysis separates direct and indirect paths.

This explains why hiding the score only in the final prompt fails. If evidence is assembled while the score is visible, retrieval results, risk descriptions, and field ordering may already encode it. Removing the visible number eliminates only direct leakage, not the information already propagated through the evidence bundle.

Why the LLM Judge Fails

The researchers separately test the judge on 76 evidence bundles, four backbones, and two prompts, revealing four distinct failure modes.

| Audit observation | Reported behavior | Engineering implication | |---|---|---| | Risk-score anchoring | When a risk score is injected beside anonymous transaction features, the judge tends to follow it; stronger models decide correctly when facts are explicit | Model capability cannot replace provenance controls, and derived scores must not masquerade as independent evidence | | Insufficient context budget | When the input is too short to fit the system prompt, the judge returns no verdict | Context management must reserve control-instruction tokens and provide a structured abstention path | | Misapplied legal citations | The judge cites clauses that do not apply, yet a substring-based check accepts them | Citation validation must cover semantics, applicability, jurisdiction, and version | | Hiding the score does not help | Even after the explicit score is removed from the prompt, the judge follows risk information encoded in the evidence | Data-flow taint tracking is more reliable than output-layer masking |

The findings also show that a fluent LLM explanation is not proof that the model understood the transaction. The model may merely reorganize an upstream judgment into natural language, creating an illusion of independent reasoning for a human reviewer.

Limits of the Evaluation

The paper's main contribution is attribution methodology rather than a new detection benchmark, and several boundaries matter.

First, approximately 94% is the wallet-score override's attribution credit for flags. It does not mean that 94% of transactions are classified correctly, nor that the LLM causes the remaining 6%. Per-case actual causation, coalition-level Shapley credit, and score mediation answer different questions.

Second, the judge evaluation covers 76 evidence bundles, four backbones, and two prompts. This provides useful ablation evidence, but it is not enough to establish consistent behavior across model families, crypto networks, or jurisdictions. The supplied record does not include model names, absolute accuracy, false-positive rates, confidence intervals, or seed variance.

Third, Elliptic++ contains historical Bitcoin transaction labels. It cannot fully represent mixer hops, cross-chain transfers, changing entity-resolution systems, new wallet behaviors, or the evidentiary standards used in live enforcement. Attribution measured on a static dataset also does not guarantee long-term production stability.

Fourth, substring matching is intentionally a weak citation baseline. It demonstrates that a common validator can accept semantically invalid references, not that automated legal-citation verification is impossible. A stronger check must validate clause versions, factual premises, applicable entities, jurisdictions, and effective dates.

Engineering Trade-offs

A deterministic wallet score is reproducible, fast, and easy to audit, but thresholds can become brittle, address clustering can be wrong, and adversaries can adapt to fixed rules. Graph detectors capture relational structure, yet graph construction, label propagation, and feature drift create their own maintenance burden. RAG supplies context that hard rules cannot cover, but it enlarges the leakage surface. An LLM judge can process unstructured evidence and generate explanations, yet remains stochastic and vulnerable to score anchoring, context truncation, and fabricated citations.

Attribution also has a price. Per-case component masking repeats expensive graph and model operations, while exact Shapley enumeration creates a combinatorial explosion. Practical deployments should audit high-risk alerts and analyst disputes first, run approximate Shapley offline against replayed traces, and cache graph features, retrieval indexes, and deterministic rule results that remain invariant under intervention.

Deployment Recommendations

  1. Separate evidence construction from risk scoring. Maintain a genuinely score-blind evidence path, preventing derived wallet scores from influencing retrieval ranking, field labels, or summary templates. If a risk score is legitimately required, register it as an upstream signal rather than allowing the LLM to reinterpret it as independent evidence.

  2. Attach provenance and taint metadata. For every field, record whether it came from a raw transaction, graph relation, rule output, model summary, or risk score. Track which retrieved artifacts were generated in an environment where the score was visible.

  3. Require structured verdicts. Enforce flag, no_flag, or abstain, accompanied by component IDs, evidence IDs, legal-clause IDs, applicability assumptions, and factual references. The system should abstain when the available context cannot preserve the system prompt.

  4. Upgrade legal-citation verification. Beyond confirming that a clause exists, verify that its quoted text entails the relevant facts and that the clause applies to the entity, jurisdiction, and time period. A separate validator can review high-risk cases.

  5. Make attribution a release gate. Whenever a model, prompt, rule, or graph feature changes, compare attribution distributions, override rates, and the proportion of model-originated alerts that concern licit transactions. If the model's contribution remains negligible while it still controls the final narrative, redesign its role instead of lengthening the prompt.

  6. Launch with cost-sensitive metrics. Track precision, recall, false-positive rate, abstention rate, citation validity, end-to-end latency, and analyst-review burden for each decision source. Use temporal splits and adversarial cases to detect threshold drift. In high-stakes enforcement, a deterministic engine can serve as the primary decision layer while the LLM handles evidence organization and secondary review rather than issuing unvalidated unilateral alerts.

Bottom Line

The paper turns the question of why an agent raised an alert into a testable combination of data-flow tracing and intervention experiments. With roughly 94% of alert credit concentrated in the wallet-score override, the LLM judge is primarily narrating rather than deciding. Risk-score leakage, context-budget failures, and weak citation checks further show that natural-language justification is not causal evidence. Reliable AML systems therefore need provenance-aware evidence pipelines, component-level counterfactual attribution, abstention controls, and semantic legal-citation validation.


Source: Hugging Face Daily Papers (2026-11-22)

— END —

Tags: #Agentic AI Auditing #Crypto Transaction Monitoring #Causal Attribution #Shapley Credit Assignment #LLM Judge

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
🚀 Explore & Submit Works

Community Comments

Loading live comments and annotations…