arXiv — Machine Learning · · 4 min read

If It Walks Like an Arbitrage: Protocol-Agnostic Detection with Decidable Structural Equivalence

Mirrored from arXiv — Machine Learning for archival readability. Support the source by reading on the original site.

Quantitative Finance > Computational Finance

arXiv:2608.20377 (q-fin)
[Submitted on 26 Jun 2026]

Title:If It Walks Like an Arbitrage: Protocol-Agnostic Detection with Decidable Structural Equivalence

View a PDF of the paper titled If It Walks Like an Arbitrage: Protocol-Agnostic Detection with Decidable Structural Equivalence, by Adam Khayam and Hamid Kolli and Mohamed Iguernalala and \c{C}agdas Bozman
View PDF
Abstract:Ethereum transactions admit a canonical structural form. Each execution trace is built into an abstract syntax tree of token transfers grouped by call-frame nesting and reduced by a convergent term rewriting system of 15 rules to a unique canonical form. The system is terminating, sound, and confluent, and the induced structural equivalence on fund flows is decidable. All five properties are mechanized in Rocq with zero admitted obligations. The canonical form makes structural questions about fund flows decidable, opening the way to strategy-family classification, bot fingerprinting, and equivalence-based attribution. In this paper, we demonstrate the canonical form on arbitrage detection: cycles emerge at fixpoint and are read off the canonical form, with no protocol-specific patterns. The pipeline depends only on the standard ERC token and WETH ABIs and no protocol-specific events, so the same binary runs unmodified on Arbitrum and BSC. We evaluate on 220 000 Ethereum blocks against Eigenphi (production MEV platform) and on 1 000 shared blocks against ArbiNet (GNN classifier). The system produces 469 801 confirmed detections and 245 497 attempted arbitrages; across all detections it agrees with Eigenphi on 83.5% and covers 81% of ArbiNet, while surfacing 60 199 exclusive confirmed detections. 99.2% of all detections are produced by the fixpoint alone and are sound by construction. Manual validation of 500 transactions finds no false positives in the confirmed tier. Forensic reanalysis of 200 Eigenphi-exclusive detections finds 63.5% have no cycle in canonical form; 9.0% have cycles the fixpoint detects but our conservative classifier does n
Subjects: Computational Finance (q-fin.CP); Cryptography and Security (cs.CR); Machine Learning (cs.LG)
Cite as: arXiv:2608.20377 [q-fin.CP]
  (or arXiv:2608.20377v1 [q-fin.CP] for this version)
  https://doi.org/10.48550/arXiv.2608.20377
arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Adam Khayam [view email]
[v1] Fri, 26 Jun 2026 11:40:22 UTC (127 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled If It Walks Like an Arbitrage: Protocol-Agnostic Detection with Decidable Structural Equivalence, by Adam Khayam and Hamid Kolli and Mohamed Iguernalala and \c{C}agdas Bozman
  • View PDF
  • TeX Source

Current browse context:

q-fin.CP
< prev   |   next >
Change to browse by:

References & Citations

Loading...

BibTeX formatted citation

loading...
Data provided by:

Bookmark

BibSonomy Reddit
Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos

Demos

Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers

Recommenders and Search Tools

Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from arXiv — Machine Learning