Author: DeSpread Research

Compiled by: TechFlow

Disclaimer: The content in this report represents the personal opinions of the author and is for reference purposes only. This article is not intended to recommend the purchase or sale of tokens or the use of any protocol. Nothing in the report constitutes investment advice and should not be considered investment advice.

1. Introduction

With the development of the IT industry, the improvement of computing power and the widespread application of big data, the performance of artificial intelligence (AI) models has also improved significantly. In recent years, AI's capabilities have reached or even surpassed human levels in many fields, and it has been rapidly applied to industries such as medical, finance, and education.

A typical example of AI commercialization is ChatGPT, a generative AI model launched by OpenAI in November 2022 that can understand and respond to human natural language. ChatGPT attracted 1 million users just 5 days after its launch and reached 100 million monthly active users within 2 months, becoming the fastest growing consumer application in history.

NVIDIA, which designs and manufactures GPUs for major AI platforms, has also benefited greatly from this trend. In the first quarter of 2024, NVIDIA's net profit increased by 628% year-on-year to $14.8 billion, and its stock price rose about three times from last year, with a market value of $3.2 trillion, which is quite impressive.

The rise of the AI ​​industry has had a significant impact on the crypto market. In June 2022, when the NFT art project was in its boom period, the AI ​​model DALL-E 2 developed by OpenAI was released, which was able to generate high-quality images based on text, which led to the mention of AI keywords in South Korea's major encrypted Telegram channels Volume increased 8 times. Additionally, starting in the second half of 2022, there are increasing attempts to combine AI and blockchain more directly, with AI mentions increasing another 2x.

The crypto community's strong interest in AI is also reflected in the investment trends of AI-related crypto projects. According to data from the virtual asset statistics website Coingecko, as of August 20, 2024, since the emergence of projects combining AI and blockchain in the second half of 2022, the total market value of 277 blockchain projects classified as AI has grown rapidly to US$21 billion, about 25% higher than the Layer2 category.

However, the blockchain projects in the AI ​​field that are currently receiving attention mainly use blockchain technology to solve the limitations exposed in the development of the AI ​​industry. The main application scenarios include:

  • Distributed GPU Networks: These projects use blockchain technology to create a distributed GPU network where anyone can contribute GPU computing power and receive token rewards, thereby lowering the entry barrier caused by the high cost of GPUs required for AI model training (e.g., IO.NET, Akash Network).

  • Decentralized AI training and model development: These projects allow multiple participants to jointly participate in AI training and model development and obtain token rewards through blockchain technology, aiming to solve the AI ​​bias problem caused by the centralized AI development environment (for example, Bittensor).

  • On-chain AI marketplaces: These decentralized AI marketplace projects leverage blockchain technology to transparently evaluate and trade the performance and reliability of AI models or agents to meet the needs of various industries and specific functions for AI models or agents (e.g., SingularityNET, Autonolas).

In addition to the above examples, many new attempts are emerging to use blockchain infrastructure, such as decentralized data markets and IP protocols, to solve the challenges currently facing the AI ​​industry. These attempts are creating synergies by providing a more stable infrastructure for the AI ​​industry and expanding the scope of application of blockchain technology.

At the same time, integrating AI into the blockchain ecosystem also holds unlimited development potential. Especially in permissionless DeFi services, the introduction of AI can reduce reliance on trusted third parties, thereby achieving many functions that are difficult to achieve with existing smart contracts.

In this article, we will explore specific application examples of AI in current DeFi protocols, the challenges faced, and the future development direction of AI in DeFi.

2. Smart DeFi

AI has excellent real-time data analysis capabilities and can draw conclusions from large amounts of data. This feature plays an important role in concretizing the return and risk data provided by DeFi protocols when helping users perform fund operations and conduct risk management. In this case, AI is mainly applied to the user interface of Dapp, allowing existing DeFi protocols to take advantage of AI without major structural adjustments.

Yearn Finance is a typical example, which is a yield aggregator. In order to provide users with a safer investment environment, Yearn Finance is working with GIZA, an AI agent building platform, to build a real-time strategy risk assessment system for its v3 vault.

However, I am more focused on the potential for DeFi protocols to become autonomous by leveraging AI’s ability to think and act autonomously in the convergence of the DeFi ecosystem and AI.

Current DeFi protocols are usually reactive to user transactions, meaning that the protocol’s smart contracts run in a preset manner based on user interactions. However, by incorporating AI into DeFi protocols, the protocols can autonomously analyze market conditions, make optimal decisions, and proactively generate transactions. This makes it possible for DeFi protocols to provide new financial services that were previously difficult to achieve.

Let’s take a closer look at some of the smart DeFi protocols that apply AI in their main operating mechanisms.

2.1. Fyde Treasury: AI Token Fund

Fyde Treasury is a protocol that provides a basket fund service called Liquid Vault, which operates multiple tokens together and manages the portfolio by AI. Users can receive and use the liquidity token $TRSY corresponding to the assets deposited in the Liquid Vault.

2.1.1. Asset selection and fund operation methods

Liquid Vault’s core mission is to increase the proportion of low-volatility tokens during market downturns in order to provide users with a smaller loss rate and thus a portfolio that outperforms other asset classes in the long run.

Fyde Treasury selects assets for inclusion in the Liquid Vault portfolio in three steps:

  • Assess whether trading liquidity is sufficient

  • Check the background of the protocol founders and audit the protocol code to determine if there are any issues

  • Analyze on-chain data through AI to assess whether there are wash transactions, token concentration, and natural growth trends, etc.

Tokens that meet these criteria will be included in the Liquid Vault portfolio. In addition, Fyde Treasury also uses AI in the asset management process of Liquid Vault, including:

  • Market analysis and prediction: Analyze on-chain transaction data, market trends, news, etc. to predict future market trends

  • Weight calculation and rebalancing: Calculate the optimal token weights and rebalance based on the predicted market trends and the recent performance and volatility of the tokens in the portfolio

  • Risk management and response: Quickly identify governance attacks, liquidity pool exhaustion, and abnormal transactions of specific wallets for each token in the portfolio in real time, and adjust the portfolio or isolate the relevant tokens in a timely manner

  • Advanced asset management strategies: Continuously evaluate the performance of the portfolio, analyze the effectiveness of the strategy, and extract data from it to modify and develop new strategies. Then, compare and test the existing strategy with the new strategy, measure its performance, and apply it to the actual operation strategy

As of the writing date of August 23, there are 29 tokens in the Liquid Vault portfolio, all of which are various industry tokens based on the Ethereum network.

Liquid Vault Dashboard, Source: Fyde

In addition, Fyde Treasury provides a feature that allows users who deposit specific protocol governance tokens into Liquid Vault to maintain their governance voting rights through liquid tokens. The governance tokens that users deposit into Liquid Vault will be sent to their wallets in the form of $gTRSY-tokens, which can be used to perform governance votes for the corresponding protocols in the governance tab of Fyde Treasury.

However, voting rights are affected by the weight of tokens in the portfolio, so voting rights may change every time the portfolio is adjusted.

2.1.2. Liquidity Mining Activities

Fyde Treasury rewards Fyde points to liquidity providers who increase the liquidity of the $TRSY (Liquid Vault liquidity token) market, and promises to distribute its governance token $FYDE based on these points in the future.

Unlike other projects that usually require users to deposit trading pairs directly on decentralized exchanges to obtain tokens or points for liquidity mining activities, Fyde Treasury accepts users to deposit $FYDE into the liquidity mining contract within the protocol and directly provide liquidity on Uniswap v3. Uniswap v3 is a decentralized exchange that allows users to set a supply range when providing liquidity.

When providing liquidity to Uniswap v3, the system uses an AI-driven simulation environment to calculate and execute the best path to convert a portion of the $FYDE deposited in the liquidity mining contract into $ETH. In addition, the AI ​​also manages and optimizes the range of liquidity deposits on Uniswap v3 in real time based on market conditions, making the capital efficiency about 4 times higher than providing liquidity of the same capital on a general decentralized exchange.

AI Simulation Dashboard, Source: Fyde Docs

In this way, Fyde Treasury is building a basket fund that uses AI to manage the assets deposited by users in the protocol in real time, thereby reducing human judgment and preventing various risks in the market.

2.1.3. Protocol Performance

Fyde Treasury’s TVL has grown steadily since its launch in January 2024, reaching and stabilizing at approximately $2 million. However, due to continued market weakness since late May, $TRSY Token has seen a -35% return over the past three months.

However, comparing $TRSY’s returns to other major tokens in the Ethereum ecosystem, $TRSY’s price fluctuations are relatively stable with smaller declines.

Although Fyde Treasury has been launched for less than a year, its AI model has been continuously learning and developing through market data. As AI learning accumulates and optimizes, it may perform better in the future, so it is worth paying attention to Fyde Treasury's future development direction and performance.

2.2. Mozaic Finance: AI Yield Optimizer

Mozaic Finance is a yield optimization protocol that uses AI to optimize yield farming strategies, implemented through a specific DeFi protocol. It provides users with a variety of DeFi ecosystem asset management strategies, presented in the form of vaults, and uses the following two AIs for strategy optimization:

  • Conon: Analyze on-chain data in real time to predict market conditions and APY changes for yield farming strategies

  • Archimedes: Calculates the best investment strategy based on Conon's forecast data and executes fund allocation

In Mozaic Finance, the AI ​​agent Conon plays the role of "analyst" and Archimedes plays the role of "strategist", jointly managing the assets deposited by users.

2.2.1. Vault Type

  • Hercules: This is a treasury that uses stablecoins for yield farming, and depositors will receive MOZ-HER-LP Token as a liquidity token.

    • The assets deposited by users in the vault are used to provide liquidity and generate income through the bridge protocol Stargate. AI will bridge and rebalance the vault assets to higher-yielding liquidity pools in real time. The characteristic of Stargate is that even for the same assets, the APY of different networks will vary due to liquidity differences.

Stargate Farm Dashboard, 来源:Stargate

Theseus: This is a vault that generates income through various volatile assets, and depositors will receive MOZ-THE-LP Token as a liquidity token.

  • The user's assets are deposited in the GM pool of the GMX protocol, a decentralized perpetual futures exchange that provides liquidity and incentives for traders. When deploying liquidity, the volatility and interest rates of the assets traded in each GM pool are taken into account. Depending on market conditions, the proportion of stablecoins may be increased and deposited in Stargate to generate additional interest.

GMX GM Pool Dashboard, Source: GMX

  • Perseus: This is a vault that actively utilizes the PoL (Proof of Liquidity) consensus mechanism to earn network rewards by providing liquidity to Berachain's ecosystem protocols that are about to be launched on the mainnet. The Mozaic Finance team is developing and preparing to launch a strategy using the Berachain testnet, and details will be announced later.

For more information about Berachain and the PoL consensus mechanism, see the article Berachain — The Bear Catching Two Rabbits: Liquidity and Security.

Unlike Fyde Treasury, which builds a token basket fund, Mozaic Finance is a protocol that uses AI to optimize liquidity provision strategies and processes and manage risks when depositing user assets into DeFi protocols.

The Hercules and Theseus vaults are performing well, with expected APYs of approximately 11% and 50% respectively, as of January 2024. However, due to the theft of funds from Mozaic Finance’s vault, both vaults are currently suspended.

Expected annual returns for the Hercules and Theseus vaults as of January 2024. Source: @Mozaic_Fi

2.2.2. Fund theft and Mozaic 2.0

Mozaic Finance experienced a theft of funds on March 15, 2024. At the time, the team was transitioning to a new security solution developed by Hypernative to improve on-chain risk and security. Before the security update was completed, an internal developer discovered that the vault funds could be stolen by using the private key of a core team member. They hacked into the member's computer to obtain the private key and used it to steal approximately $2 million in vault assets, which were then transferred to a centralized exchange for liquidation.

Affected by this incident, the Mozaic Finance team suspended the operation of the Hercules and Theseus vaults, and the value of the governance and protocol fee collection token $MOZ fell by about 80%. After the incident, the Mozaic Finance team immediately and transparently announced the progress of the incident and cooperated with security companies to track the flow of stolen assets. At the same time, they applied to the exchanges where the developers stored the stolen assets to freeze and return funds, and worked hard to restore the normal operation of the protocol.

Fortunately, the return of all stolen funds is currently underway. While waiting for the return of stolen funds from centralized exchanges, the team is preparing to launch Mozaic 2.0. The new version includes the following improvements:

  • Enhanced security: Code audits and security enhancements are performed by security specialists such as Trust Security, Testmachine, and Hypernative.

  • AI Model Improvement: Comprehensively upgrade the existing Archimedes model and predict and learn from black swan events that have not yet occurred based on expert knowledge. In addition, detect abnormal decisions and set flags for manual review and model improvement.

  • Improve user experience: Improve the UI/UX of Dapps and enhance users’ access to Dapps in various chain environments through account abstraction and bridge service integration.

Therefore, although Mozaic Finance has experienced a major fund theft crisis, they are actively preparing to launch Mozaic 2.0, committed to providing users with more secure and efficient asset management services.

3. Challenge: AI’s decentralization and scalability dilemma

So far, through the cases of Fyde Treasury and Mozaic Finance, we have learned how smart DeFi protocols use AI as a core component of DeFi applications. The advantages that smart DeFi protocols can bring through AI include:

  • Building a new DeFi protocol model through autonomy

  • Improve capital efficiency by analyzing and optimizing the way funds operate

  • Real-time analysis and response to risks such as abnormal transactions

Currently, the integration of blockchain and AI is mostly focused on building blockchain infrastructure to overcome the limitations of AI. However, given the advantages mentioned above, it is expected that there will be more attempts to introduce AI into DeFi protocols. Of course, there are challenges that need to be addressed in the process of integrating these two fields.

AI requires an environment that can process large amounts of data quickly, but current blockchain infrastructure is not yet capable of this data processing speed. For example, the ChatGPT-3 model is estimated to need to process trillions of data per second to answer questions, which is about 10 million times faster than Solana’s maximum TPS (transactions per second) of 65,000.

In addition, even if the blockchain infrastructure develops to the point where it can support AI computing, the transparency of public blockchains may still expose the training data and decision weights of AI models to the public. This means that AI-generated transactions may become predictable, exposing them to the risk of various external attacks.

As a result, DeFi protocols looking to leverage AI, including Fyde Treasury and Mozaic Finance, currently choose to run the AI ​​on centralized servers and interact with the blockchain based on its results.

However, this approach results in users having to trust the honesty of the team responsible for managing the AI ​​when depositing assets in the protocol. This situation undermines the core principle of DeFi, which is to provide a trustless trading environment by eliminating the need for trusted third parties through smart contracts.

When applying AI in blockchain, the issues of decentralization and scalability are seen as challenges that DeFi applications must address in the process of utilizing AI. And zkML (zero-knowledge machine learning) technology is gaining attention as a solution.

3.1. zkML (Zero-Knowledge Machine Learning)

zkML is a technology that combines zero-knowledge proof (ZKP) with machine learning (ML). Zero-knowledge proof is a cryptographic method that can verify the authenticity of data without revealing the data itself, thereby achieving privacy protection and data integrity verification. zkML uses these characteristics of zero-knowledge proof and applies it to the field of machine learning, making it possible to verify the correctness of model output without disclosing inputs, parameters, and the internal mechanisms of AI models.

Furthermore, by designing the smart contracts of DeFi protocols to verify zero-knowledge proofs, on-chain transactions are generated only when the AI ​​model operates honestly as expected and without external interference, so that AI can be safely integrated into DeFi protocols.

For example, the previously mentioned Mozaic Finance plans to introduce zero-knowledge proof technology into its protocol in the future. They stated in the document that this technology will enhance the ability to verify Archimedes' honest decisions and manage the vault in real time.

However, zero-knowledge proof technology is still emerging and requires a lot of discussion and development to achieve practical application. In particular, for complex AI models, generating zero-knowledge proofs, while more efficient than executing AI models directly on the blockchain, still requires computing power and storage space that exceeds what the current blockchain infrastructure can provide. Therefore, in order to make zkML truly practical, further technological progress and optimization must be achieved in zero-knowledge proofs and blockchain infrastructure.

4. AI-based economy and identity verification

I expect that as blockchain and AI technologies develop further, they will gradually overcome the challenges required to achieve the integration of the two. Based on this progress, I believe that in the near future, most DeFi protocols will integrate AI into their operating mechanisms.

In addition, with the emergence and maturity of AI agent deployment and trading platforms such as SingularityNET and Autonolas, AI can be integrated not only at the protocol level, but also an environment is created for individual users to easily use AI agents. In other words, everyone participating in the blockchain ecosystem is able to build and use smart DeFi protocols optimized for individuals.

For example, Autonolas’ AI agents, which place bets on Omen, the Gnosis Network’s prediction market platform, have steadily increased in number and activity by analyzing both on-chain and off-chain data. In the year since July 2023, these agents have generated more than one million trades.

It is expected that the number of personalized AI agents that can efficiently manage capital around the clock will increase in the future and actively participate in the blockchain ecosystem. This will promote the utilization of idle liquidity and more efficient capital operations, thereby significantly improving the overall liquidity of the ecosystem. Ultimately, transactions between AI agents may become the main activity of the ecosystem, forming a new economic ecosystem based on agents.

In addition, as personalized AI agent models become increasingly intelligent, these agents may expand their activities into areas designed specifically for “humans.” This includes on-chain asset management customized to personal preferences, capturing and participating in airdrop opportunities, and participating in governance activities.

Therefore, as AI agents mimic human behavior more and more accurately, it will become increasingly difficult to distinguish between "real" human users and AI agents in the future. To this end, proof of identity as a mechanism to prove the identity and uniqueness of users is expected to become increasingly important, especially in protocols that value human values ​​and agency.

4.1. Proof of Identity

Proof of identity is a mechanism that verifies an individual's identity and uniqueness by combining unique human characteristics with a personal account on the network. The methods currently under discussion and development can be divided into two main categories:

  • Physical authentication-based methods: Use hardware devices to collect unique biometric information, such as facial recognition, fingerprint recognition, and iris recognition.

  • Behavior analysis-based methods: By analyzing the user's social network graph, reputation, and network activity patterns, the authenticity and uniqueness of the account are judged. This method relies on the network activity of a user's specific account and its interaction with other accounts.

The identity verification method based on behavioral analysis can better protect user privacy and can be implemented without the use of special hardware equipment. However, in order to improve the accuracy and reliability of the proof, this method requires a large amount of network data. As the complexity of AI agents increases, their recognition ability may decrease, so it is expected that the identity verification method based on physical authentication will be more widely used in the future.

A representative protocol that uses physical authentication for identity proof is Worldcoin. The project was co-founded by Sam Altman, the founder of OpenAI, who is also the creator of ChatGPT. Worldcoin aims to assign a unique digital ID to everyone in the world through identity proof and distribute $WLD tokens to those who have the ID. This move is to study and explore the possibility of achieving universal basic income to cope with the unemployment problem caused by the development of AI in the future.

4.1.1. Worldcoin

Worldcoin is a physical authentication-based identity verification project that uses special hardware called Orb to identify human irises. After iris recognition is completed, the Worldcoin network issues a World ID for the iris and generates a private key on the user's personal device that can be used to access the World ID.

Worldcoin Orb, Source: Worldcoin Whitepaper

Currently, the Worldcoin network only stores the hash of the scanned iris data, which prevents the user's iris from being reconstructed or recognized. When World ID authentication is required, the user's device generates a zero-knowledge proof and sends it to the network, protecting the data privacy of the user's on-chain activities. However, since the system only performs iris recognition when issuing a World ID, there are still some challenges, such as transferring World IDs by trading devices holding private keys, and AI agents obtaining private keys. To address these issues, Worldcoin is discussing the introduction of a biometric verification system when using World ID and developing an AI detection algorithm based on behavioral analysis.

5. Conclusion

In this article, we explore the new service protocols that emerge as AI is integrated into the blockchain ecosystem, the challenges these protocols face, and the future of blockchain ecosystems based on AI agents.

In the future, AI and blockchain technologies will continue to develop and merge with each other to make up for each other's shortcomings. Through this fusion, it is expected to provide individuals with a more convenient environment to easily access and utilize AI and blockchain technologies.

Especially in the future on-chain economic ecosystem with AI agents at its core, people will be able to easily use and provide financial services without deep financial knowledge. This will help significantly improve the liquidity of the on-chain ecosystem and expand the inclusiveness of the financial industry.

In addition, AI and blockchain can not only influence each other, but also have the potential to become the infrastructure of various industries. Therefore, the development of these two technologies will have a profound impact on the entire human society, not just a single industry.

However, AI-related regulations, such as data privacy protection and AI liability issues, and blockchain-related regulations, such as the securities attributes of tokens, will have a significant impact on the future development direction of these technologies and the industry structure. Therefore, we need to pay close attention to the upcoming AI and blockchain industry regulations.

We ultimately hope that the development of these technologies will create a better environment for humans and help solve many problems in society.