Skip to content
Modelwire
Subscribe

LLM-generated DeFi workflows fail safety tests despite structural validity

Source published ·Modelwire updated

Original coverage: arXiv cs.LG ↗·How Modelwire adds context

The development

Researchers have exposed a critical gap in LLM-driven DeFi automation: structurally sound workflows can still execute unsafe trades that violate user intent. DeFiFlowBench, a 207-prompt benchmark, reveals that standard prompting techniques (direct, constrained, few-shot) consistently produce unsafe configurations, with slippage bounds failing to protect against price impact. The team proposes Koan-Safe, a hybrid system combining intent parsing, modular generation, and structural repair with default safety guardrails, achieving 0.67 safety scores on held-out tests. This work signals a broader challenge for AI agents handling financial transactions: correctness of workflow structure does not guarantee safety of execution, forcing the field to rethink how LLMs should validate high-stakes decisions before deployment.

Modelwire’s AI-generated summary of coverage from arXiv cs.LG.

Modelwire analysis

Explainer

Our AI-generated reading of the wider context and the next developments to watch.

The paper's core finding is that LLMs can generate syntactically valid DeFi transactions that still violate user intent through unsafe parameter choices (slippage, price impact). This is distinct from hallucination or logical errors; the workflows execute as written but do the wrong thing.

This connects directly to the crash-severity certification work from earlier this week. Both papers tackle the same deployment problem: a model can be locally accurate yet globally unsafe when shipped to production. The crash-severity paper wraps existing classifiers with distribution-free guarantees; DeFiFlowBench proposes intent parsing plus structural repair as the wrapper. The key parallel is that neither trusts the base model's outputs in isolation. Where crash-severity focuses on domain shift, DeFiFlowBench identifies a deeper issue specific to financial automation: even on-distribution prompts can produce parameter configurations that are technically valid but financially dangerous. This suggests a broader pattern in safety-critical AI where correctness of the artifact (query, transaction, prediction) differs from correctness of the outcome.

If Koan-Safe's 0.67 safety score holds when tested on real EVM transactions from live protocols (Uniswap, Aave, Curve) rather than synthetic benchmarks, the approach has real deployment potential. If it drops below 0.55 on mainnet data, the gap between benchmark and production will signal that the threat model is incomplete.

This interpretation is generated from the summary above and the archive coverage cited below. Our methodology · Report an error

Coverage behind this analysis

These archive entries ground the connection in our analysis. They are ordered by source publication date, with links to our coverage and the original sources.

  1. ·arXiv cs.LG

    Crash prediction models gain distribution-free safety guarantees

    Researchers have developed a certification layer that wraps existing crash-severity prediction models to provide distribution-free guarantees on their outputs, addressing a critical gap in high-stakes deployment. The framework tackles a real problem: severity classifiers trained on one jurisdiction and time period fail when deployed elsewhere, and ground-truth labels themselves are unreliable field assessments. By exploiting…

    Read Modelwire coverage →Original source ↗

MentionsDeFiFlowBench · Koan-Safe · EVM

MW

How this coverage is produced

Modelwire uses AI to generate summaries and context from source headlines, snippets, and selected archive coverage. Automated checks do not verify every claim, and items are not routinely reviewed by a person before publication. Zacaria Solis operates the site. Read the linked source for the full evidence and report errors through our corrections process.

Modelwire summarizes, we don’t republish. arXiv cs.LG originally reported this story as “DeFiFlowBench: Benchmarking and Improving Safe Executability in Natural-Language DeFi Workflow Synthesis”. The full content lives on arxiv.org. If you’re a publisher and want a different summarization policy for your work, see our takedown page.

LLM-generated DeFi workflows fail safety tests despite structural validity · Modelwire