The Day The AGI Was Born: An Incomplete Guide to Rollups
Hatched by Kazuki Nakayashiki
Aug 17, 2023
5 min read
10 views
The Day The AGI Was Born: An Incomplete Guide to Rollups
Artificial General Intelligence (AGI) has long been a topic of fascination and speculation. It represents the creation of a machine that possesses the same level of intelligence and cognitive abilities as a human being. While AGI is still a distant dream, recent advancements in language models, such as the GPT-3.5 series and InstructGPT, have brought us closer to the possibilities of AGI-like experiences.
The GPT-3.5 series, a fine-tuned model based on OpenAI's GPT-3, has shown remarkable improvements in zero-shot generation of text. It has an impressive long-term memory of up to 8192 tokens and can generate output about twice as long as its predecessor. However, it still falls short in certain areas. It cannot perform mathematical calculations accurately, generates false information about the real world, writes faulty code, and fails Turing, SAT, or IQ tests. Despite these limitations, the model excels in use cases where creativity is valued more than precision, such as brainstorming, drafting, and presenting information in creative ways.
While the GPT-3.5 series shows promise, there is an ongoing debate about its ability to replace Google. On one hand, ChatGPT, a variant of the model, provides direct and legible answers to questions, surpassing the traditional Google results page. On the other hand, its answers often lack accuracy and sources. The question remains whether a ChatGPT-like experience can truly replace the vast knowledge and reliability offered by Google.
One of the most significant factors contributing to the rapid progress in AGI development is the application of Reinforcement Learning via Human Feedback. This approach has proven to be much faster than anticipated, propelling us closer to AGI-like capabilities.
While AGI continues to evolve, another innovative concept known as rollups has emerged in the blockchain space. Rollups are a layer-2 scaling solution that aims to improve the scalability and efficiency of blockchain ecosystems. They offer an alternative to the traditional approach of increasing the transaction capacity of the base-layer blockchain.
Rollups operate by moving computation and state storage off-chain while keeping essential data per transaction on-chain. This hybrid model allows for significant scalability improvements without sacrificing security or decentralization. There are three major types of layer-2 scaling solutions: state channels, Plasma, and rollups.
State channels enable off-chain transactions without the need for on-chain data, making them highly efficient during normal operation. However, they have limitations. Channels cannot be used to send funds off-chain to non-participants or represent objects without a clear logical owner. They also require a substantial amount of capital to be locked up, especially for complex transactions beyond simple recurring payments.
Plasma, another layer-2 scaling solution, offers more versatility than state channels. It allows assets to be sent to participants who were not initially part of the system and requires lower capital requirements. However, Plasma also shares the limitation of channels in terms of logical ownership. Objects that can be changed without the owner's consent do not work well with Plasma, making it unsuitable for certain applications like Uniswap.
Rollups, on the other hand, offer a comprehensive and flexible approach to layer-2 scaling. They move computation and state storage off-chain but retain a minimal amount of data on-chain. This arrangement allows for significant compression and cost reduction in transactions. For example, an Ethereum base-layer ERC20 token transfer costs approximately 45,000 gas, while a rollup transfer only takes up 16 bytes of on-chain space and costs less than 300 gas. Additionally, rollups can host an EVM (Ethereum Virtual Machine) inside, enabling seamless migration of existing Ethereum applications with minimal code modification.
There are two types of rollups: Optimistic rollups and ZK rollups. Optimistic rollups rely on fraud proofs, where the rollup contract maintains a history of state roots and their corresponding batches. If any fraudulent activity occurs, the proofs can be used to verify the correctness of the state updates. ZK rollups, on the other hand, utilize validity proofs, which include cryptographic proofs like ZK-SNARKs to validate the post-state root. ZK-SNARKs are complex mathematical proofs that can be quickly verified on-chain, making them a highly secure and efficient solution.
While both types of rollups have their advantages, ZK rollups show great potential for widespread adoption as ZK-SNARK technology improves. They offer significant compression advantages, reducing the size of transactions and enabling faster processing. For example, an Ethereum transaction requires around 110 bytes, while an ETH transfer on a rollup only takes approximately 12 bytes. This compression, coupled with the ability to leave unnecessary verification data off-chain, can lead to scalability improvements of over 100x for most applications.
However, there are challenges associated with rollups. One major concern is the potential for wasted effort and gas due to multiple participants generating and attempting to submit batches in parallel. Only one batch can be successfully included, leading to inefficiencies in the system. To address this issue, Ethereum's proposed data sharding, known as eth2, offers additional space for rollups to store data and ensure consensus on its availability. This integration of rollups and data sharding presents an exciting prospect for the future of Ethereum scalability.
In conclusion, the development of AGI-like models and the emergence of rollups as a layer-2 scaling solution mark significant milestones in their respective fields. The GPT-3.5 series demonstrates impressive capabilities in generating text, emphasizing creativity over precision. On the other hand, rollups offer scalability improvements to blockchain ecosystems while maintaining security and decentralization.
To leverage these advancements effectively, here are three actionable pieces of advice:
-
Embrace the creative potential of AGI-like models: Utilize language models like the GPT-3.5 series for brainstorming, drafting, and presenting information in unique and engaging ways. Combine them with external assets to compensate for their limitations in accuracy.
-
Explore rollups for scalable blockchain solutions: Investigate the benefits of rollups, such as state channels, Plasma, and ZK rollups, to enhance blockchain scalability. Consider the specific requirements of your use case and choose the most suitable rollup solution accordingly.
-
Stay updated on technological advancements: Keep track of the latest developments in AGI-like models and rollups. Follow research papers, industry news, and community discussions to stay informed about new opportunities and potential improvements in these areas.
By embracing the potential of AGI-like models and leveraging the scalability offered by rollups, we can drive innovation and unlock new possibilities in various domains, from creative writing to blockchain-based applications. The future holds exciting prospects as we continue to push the boundaries of technology and explore the realms of artificial intelligence and decentralized systems.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣