Illustration of Rei Network: A Deep Yet Simple Understanding of the Seamless Interaction Between AI Agents and Blockchain

CN
23 hours ago

The birth of the Rei framework is aimed at bridging the communication gap between AI and blockchain.

Author: francesco

Compiled by: Deep Tide TechFlow

When creating AI agents, a core challenge is how to allow them to learn, iterate, and grow flexibly while ensuring the consistency of output results.

Rei provides a framework for sharing structured data between AI and blockchain, enabling AI agents to learn, optimize, and retain a set of experiences and knowledge.

The emergence of this framework makes it possible to develop AI systems with the following capabilities:

  • Understanding context and patterns, and generating valuable insights

  • Transforming insights into actionable steps while benefiting from the transparency and reliability of blockchain

Challenges Faced

AI and blockchain have significant differences in their core attributes, which pose many challenges to their compatibility:

  1. Deterministic Computation of Blockchain: Every operation on the blockchain must produce completely consistent results across all nodes to ensure:

    1. Consensus: Each node agrees on the content of the new block and collectively completes the validation

    2. State Verification: The state of the blockchain is always traceable and verifiable. Newly added nodes should be able to quickly synchronize to a state consistent with other nodes

    3. Execution of Smart Contracts: All nodes must generate consistent outputs under the same input conditions

  2. Probabilistic Computation of AI: The output results of AI systems are often based on probabilities, meaning that different results may be obtained with each run. This characteristic arises from:

    1. Context Dependency: The performance of AI depends on the context of the input, such as training data, model parameters, and time and environmental conditions

    2. Resource Intensity: AI computation requires high-performance hardware support, including complex matrix operations and large memory

The above differences lead to the following compatibility challenges:

  • Conflict between Probabilistic and Deterministic Data

    • How to convert AI's probabilistic output into the deterministic results required by blockchain?

    • When and where should this conversion take place?

    • How to retain the value of probabilistic analysis while ensuring determinism?

  • Gas Costs: The high computational demands of AI models may lead to prohibitive gas fees, limiting their application on the blockchain.

  • Memory Limitations: The memory capacity of the blockchain environment is limited, making it difficult to meet the storage needs of AI models.

  • Execution Time: The block time of the blockchain imposes limitations on the running speed of AI models, which may affect their performance.

  • Integration of Data Structures: AI models use complex data structures that are difficult to directly integrate into the storage patterns of the blockchain.

  • Oracle Problem (Verification Requirements): The blockchain relies on oracles to obtain external data, but how to verify the accuracy of AI computations remains a challenge. Especially since AI systems require rich context and low latency, which conflicts with the characteristics of blockchain.

Original image from francesco, compiled by Deep Tide TechFlow

How do AI agents seamlessly interact with blockchain?

Original image from francesco, compiled by Deep Tide TechFlow

Rei proposes a brand new solution that combines the advantages of AI and blockchain.

Original image from francesco, compiled by Deep Tide TechFlow

Rather than forcibly merging these two fundamentally different systems, Rei prefers to act as a "universal translator," allowing smooth communication and collaboration between the two through a translation layer.

Original image from francesco, compiled by Deep Tide TechFlow

The core goals of Rei include:

  • Enabling AI agents to think and learn independently

  • Transforming the insights of agents into precise and verifiable blockchain operations

Original image from francesco, compiled by Deep Tide TechFlow

The first application of this framework is Unit00x0 (Rei_00 - $REI), which has currently been trained as a quantitative analyst.

Rei's cognitive architecture consists of the following four layers:

  1. Thinking Layer: Responsible for processing and collecting raw data, such as chart data, transaction history, and user behavior, and searching for potential patterns.

  2. Reasoning Layer: Based on the discovered patterns, it adds contextual information, such as date, time, historical trends, and market conditions, to make the data more dimensional.

  3. Decision Layer: Develops specific action plans based on the contextual information provided by the reasoning layer.

  4. Action Layer: Transforms decisions into deterministic operations that can be executed on the blockchain.

The Rei framework is built on the following three core pillars:

Original image from francesco, compiled by Deep Tide TechFlow

  1. Oracle (similar to neural pathways): Converts the diverse outputs of AI into unified results and records them on the blockchain.

  2. ERC Data Standard: Expands the storage capacity of the blockchain, supporting the storage of complex pattern data while retaining the contextual information generated by the thinking and reasoning layers, thus achieving the conversion from probabilistic data to deterministic execution.

  3. Memory System: Allows Rei to accumulate experience over time and call upon previous outputs and learning results at any time.

The following are the specific manifestations of these interactions:

Original image from francesco, compiled by Deep Tide TechFlow

  • The Oracle bridge is responsible for identifying data patterns

  • ERCData is used to store these patterns

  • The memory system retains contextual information for better understanding of patterns

  • Smart contracts can access this accumulated knowledge and act accordingly

With this architecture, Rei agents have already been able to combine on-chain data, price movements, social sentiment, and other multidimensional information for in-depth analysis of Tokens.**

More importantly, Rei can not only analyze data but also form deeper understandings based on it. This is thanks to her ability to store her experiences and insights directly on the blockchain, making this information part of her knowledge system, which can be called upon at any time, continuously optimizing decision-making capabilities and overall experience.

Rei's data sources include the Plotly and Matplotlib libraries (for charting), Coingecko, Defillama, on-chain data, and social sentiment data from Twitter. Through these diverse data sources, Rei is able to provide comprehensive on-chain analysis and market insights.

With the Quant V2 feature update, Rei now supports the following types of analysis:

  1. Project Analysis: Added support for quantitative indicators and sentiment data on top of existing features. The analysis includes candlestick charts, engagement charts, holder distribution, and profit and loss (PnL) situations. (Related Example)

  2. Inflow and Outflow Analysis: By monitoring the price and trading volume of popular on-chain tokens, Rei can compare this data with the inflow and outflow of funds, helping users identify potential market trends. (Related Example)

  3. Engagement Analysis: Evaluates the overall engagement of projects, including comparisons of real-time data with data from 24 hours ago, as well as relative price changes. This feature reveals the correlation between the latest information and user engagement performance. (Related Example)

  4. Top Category Analysis: Analyzes the lowest trading volume and highest number of trades within a single category, highlighting the project's performance within its category.

  5. The first chart displays the trading volume at the bottom and the number of trades at the top; it then delves into the analysis of individual categories, revealing the metric changes of a single project compared to similar projects. (Related Example)

Additionally, as of January 2025, Rei has supported on-chain token trading functionality. She is equipped with an ERC-4337 standard-based smart contract wallet, making transactions more convenient and secure.

(Deep Tide TechFlow Note: ERC-4337 is an Ethereum improvement proposal that supports account abstraction, aimed at enhancing user experience).

Rei's smart contract delegates operations to her through user-signed authorization, allowing Rei to autonomously manage her portfolio.

Here are Rei's wallet addresses:

Use Cases: Versatility of the Rei Framework

Original image from francesco, compiled by Deep Tide TechFlow

The Rei framework is not limited to the financial sector but can be applied to a wide range of scenarios:

  • User Interaction with Agents: Supports content creation

  • Market Analysis: Supply chain management and logistics

  • Building Adaptive Systems: Governance scenarios

  • Risk Assessment: In the medical field, Rei assesses potential risks through contextual analysis

Future Development Directions for Rei

  • Better UI

  • Token-based Alpha Terminal

  • Developer Platform

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到support@aicoin.com,本平台相关工作人员将会进行核查。

Share To
APP

X

Telegram

Facebook

Reddit

CopyLink