Investigating Similarities Across Decentralized Financial (DeFi) Services
ArXiv ID: 2404.00034 “View on arXiv”
Authors: Unknown
Abstract
We explore the adoption of graph representation learning (GRL) algorithms to investigate similarities across services offered by Decentralized Finance (DeFi) protocols. Following existing literature, we use Ethereum transaction data to identify the DeFi building blocks. These are sets of protocol-specific smart contracts that are utilized in combination within single transactions and encapsulate the logic to conduct specific financial services such as swapping or lending cryptoassets. We propose a method to categorize these blocks into clusters based on their smart contract attributes and the graph structure of their smart contract calls. We employ GRL to create embedding vectors from building blocks and agglomerative models for clustering them. To evaluate whether they are effectively grouped in clusters of similar functionalities, we associate them with eight financial functionality categories and use this information as the target label. We find that in the best-case scenario purity reaches .888. We use additional information to associate the building blocks with protocol-specific target labels, obtaining comparable purity (.864) but higher V-Measure (.571); we discuss plausible explanations for this difference. In summary, this method helps categorize existing financial products offered by DeFi protocols, and can effectively automatize the detection of similar DeFi services, especially within protocols.
Keywords: DeFi, graph representation learning, smart contracts, Ethereum, clustering
Complexity vs Empirical Score
- Math Complexity: 7.0/10
- Empirical Rigor: 6.0/10
- Quadrant: Holy Grail
- Why: The paper employs advanced graph representation learning and agglomerative clustering, representing substantial mathematical complexity. It demonstrates empirical rigor by using real-world Ethereum transaction data and evaluating clustering performance with established metrics like purity and V-measure, though it lacks explicit backtesting for trading strategies.
flowchart TD
Start(["Research Goal"]) -->|Investigate similarities<br>in DeFi services| Methodology
Methodology["Proposed Methodology"] --> Data["Data: Ethereum Transactions"]
Data -->|Identify| Blocks["DeFi Building Blocks"]
Data -->|Extract| Attributes["Smart Contract Attributes"]
Data -->|Construct| Graph["Contract Call Graph"]
Blocks --> Embeddings["Graph Representation Learning"]
Attributes --> Embeddings
Graph --> Embeddings
Embeddings --> Clustering["Agglomerative Clustering"]
Clustering --> Evaluation["Evaluation Purity .888"]
Clustering --> Protocol["Protocol Labels Purity .864"]
Evaluation --> Outcomes(["Key Findings"])
Protocol --> Outcomes
Outcomes -->|Categorizes products<br>Automates detection| Conclusion