![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
1. What story does DeFAI tell?
1.1 What is DeFAI?
In simple terms, DeFAI refers to AI + DeFi. The market has gone through multiple rounds of hype around AI, from AI computing power to AI memes, and from different technical architectures to various infrastructures. Although the overall market value of AI agents has recently seen a decline, the concept of DeFAI is emerging as a new breakthrough trend. Currently, DeFAI can be broadly categorized into three types: AI abstraction, autonomous DeFi agents, and market analysis and prediction. The specific divisions within these categories are illustrated in the figure below.
Image source: Created by the author
1.2 How does DeFAI work?
In the DeFi system, the core behind AI agents is LLM (Large Language Model), which involves multi-layered processes and technologies, covering all aspects from data collection to decision execution. According to the research by @3sigma in the IOSG document, most models follow six specific workflows: data collection, model inference, decision-making, custody and operation, interoperability, and wallet management. The following summarizes these processes:
1. Data Collection: The primary task of the AI agent is to gain a comprehensive understanding of its operating environment. This includes obtaining real-time data from multiple sources:
On-chain data: Real-time blockchain data such as transaction records, smart contract statuses, and network activity are obtained through indexers, oracles, etc. This helps the agent stay synchronized with market dynamics;
Off-chain data: Price information, market news, and macroeconomic indicators are obtained from external data providers (e.g., CoinMarketCap, Coingecko) to ensure the agent's understanding of external market conditions. This data is typically provided to the agent via API interfaces;
Decentralized data sources: Some agents may obtain price oracle data through decentralized data feed protocols, ensuring the decentralization and reliability of the data.
2. Model Inference: After data collection is complete, the AI agent enters the inference and computation phase. Here, the agent relies on multiple AI models for complex reasoning and prediction:
Supervised and unsupervised learning: By training on labeled or unlabeled data, AI models can analyze behaviors in markets and governance forums. For example, they can predict future market trends by analyzing historical trading data or infer the outcome of a voting proposal by analyzing governance forum data;
Reinforcement learning: Through trial and error and feedback mechanisms, AI models can autonomously optimize strategies. For instance, in token trading, the AI agent can simulate various trading strategies to determine the best time to buy or sell. This learning method allows the agent to continuously improve under changing market conditions;
Natural Language Processing (NLP): By understanding and processing user natural language inputs, the agent can extract key information from governance proposals or market discussions, helping users make better decisions. This is particularly important when scanning decentralized governance forums or processing user commands.
3. Decision-Making: Based on the collected data and inference results, the AI agent enters the decision-making phase. In this stage, the agent needs to analyze the current market conditions and weigh multiple variables:
Optimization engine: The agent uses an optimization engine to find the best execution plan under various conditions. For example, when providing liquidity or executing arbitrage strategies, the agent must consider factors such as slippage, transaction fees, network latency, and capital size to find the optimal execution path;
Multi-agent system collaboration: To cope with complex market conditions, a single agent may not be able to optimize all decisions comprehensively. In such cases, multiple AI agents can be deployed, each focusing on different task areas, collaborating to improve the overall decision-making efficiency of the system. For example, one agent focuses on market analysis while another agent focuses on executing trading strategies.
4. Custody and Operation: Since AI agents need to handle a large amount of computation, they typically require their models to be hosted on off-chain servers or distributed computing networks:
Centralized hosting: Some AI agents may rely on centralized cloud computing services like AWS to host their computing and storage needs. This approach helps ensure the efficient operation of the models but also brings potential risks of centralization;
Decentralized hosting: To reduce centralization risks, some agents use decentralized distributed computing networks (like Akash) and distributed storage solutions (like Arweave) to host models and data. Such solutions ensure the decentralized operation of models while providing data storage persistence;
On-chain interaction: Although the models themselves are hosted off-chain, AI agents need to interact with on-chain protocols to execute smart contract functions (such as trade execution and liquidity management) and manage assets. This requires secure key management and transaction signing mechanisms, such as MPC (Multi-Party Computation) wallets or smart contract wallets.
5. Interoperability: The key role of AI agents in the DeFi ecosystem is to interact seamlessly with multiple different DeFi protocols and platforms:
API integration: Agents exchange data and perform interactions with various decentralized exchanges, liquidity pools
免責聲明:info@kdj.com
所提供的資訊並非交易建議。 kDJ.com對任何基於本文提供的資訊進行的投資不承擔任何責任。加密貨幣波動性較大,建議您充分研究後謹慎投資!
如果您認為本網站使用的內容侵犯了您的版權,請立即聯絡我們(info@kdj.com),我們將及時刪除。
-
-
- Tether推出了旨在優化國際貿易的基於區塊鏈的金融服務Tradefi
- 2025-02-22 17:00:25
- Tether推出了Tradefi,這是一家金融服務,旨在通過提供增強的資金解決方案來優化國際貿易。
-
-
-
-
-
- 如何使用Coingecko和Python構建加密價格警報系統
- 2025-02-22 17:00:25
- 加密貨幣市場迅速發展,新硬幣和新興趨勢不斷變化。在本文中,我們將學習如何構建加密價格警報系統
-
-