Open the WaytoAGI knowledge base on Feishu · 100M+ visits, open to everyone →
WaytoAGI

Knowledge Base · Learning paths

Advanced: a16z Recommended Classic AI Resources

Discover the advanced AI classics recommended by a16z, featuring in-depth explorations of Transformers, large language models, RLHF, scaling laws, Stanford courses, and practical guides for building applications with LLMs. This curated collection helps engineers and researchers systematically advance their expertise in cutting-edge AI technologies.

a16z AI resourcesadvanced AI learningTransformers tutorialRLHF guidescaling laws

Translated from Chinese by AI. Spotted an issue? Use the feedback button.

Author: Derrick Harris, Matt Bornstein, and Guido Appenzeller

Original Article: https://a16z.com/2023/05/25/ai-canon/

Translator: WaytoAGI (Way to AGI)

First Half: Table of Contents: a16z Recommended Introductory Classics

Technical Deep Dive: Understanding Transformers and Large Language Models

There are countless resources (some better than others) that attempt to explain how large language models (LLMs) work. Below are some of our favorites, aimed at a broad range of readers and viewers.

Recommended Resources

Courses

  • Stanford CS25: Transformers United, an online seminar on transformer technology.

  • Stanford CS324: The Large Language Models course taught by Percy Liang, Tatsu Hashimoto, and Chris Re, covering both technical and non-technical aspects of large language models.

References and Commentary

  • Predictive Learning, NIPS 2016: In this early talk, Yann LeCun makes a strong case that unsupervised learning is the key ingredient for large-scale AI model architectures. Jump to 19:20 to see his famous cake analogy, which remains one of the best mental models for modern AI.

  • AI for Full Self-Driving at Tesla: Another classic Karpathy talk, this time introducing Tesla’s data engine. Starting at 8:35, he gives a great talk on AI and explains why the long-tail problem (in this case, stop sign detection) is so difficult.

  • The Scaling Hypothesis: One of the most surprising aspects of large language models is that scaling (adding more data and compute) continues to improve accuracy. GPT-3 was the first model to clearly demonstrate this, and Gwern’s essay does an excellent job explaining the intuition behind it.

  • Chinchilla's Wild Implications: Nominally an explanation of the important Chinchilla paper, this article dives into the core of one of the biggest questions in LLM scaling: are we running out of data? Building on the piece above, it offers a fresh perspective on scaling laws.

  • A Survey of Large Language Models: A comprehensive analysis of current LLMs, covering development timelines, model scale, training strategies, training data, hardware, and more.

  • Sparks of Artificial General Intelligence: Early Experiments with GPT-4: An early analysis by Microsoft Research on the capabilities of the most advanced LLM at the time (GPT-4) in relation to human-level intelligence.

  • The AI Revolution: How Auto-GPT Unleashes a New Era of Automation and Creativity: An introduction to Auto-GPT and AI agents. The technology is still in its early stages, but it is important to understand: it uses internet access and self-generated subtasks to solve specific, complex problems or achieve given goals.

  • The Waluigi Effect: Nominally an explanation of the “Waluigi Effect” (i.e., why LLMs sometimes exhibit an “anti-self” or opposing persona), the post’s real value lies in its deep exploration of LLM prompting theory.

Practical Guide to Building with LLMs

A new application stack is taking shape with LLMs at its core. While there are still few formal educational programs on this topic, we have gathered some of the most useful resources available.

References

  • Build a GitHub support bot with GPT-3, LangChain, and Python: One of the earliest public explanations of the modern LLM application stack. Some of the advice may now be outdated, but in many ways it helped spark the widespread adoption and practical use of the new generation of AI applications.

  • Building LLM applications for production: Chip Huyen discusses many of the critical challenges in building LLM applications, how to address them, and which types of use cases make the most sense.

  • Prompt Engineering Guide: The most comprehensive guide for anyone writing LLM prompts—including application developers—with concrete examples for several popular models. For a lighter, more conversational take, check out Brex’s Prompt Engineering Guide.

  • Prompt injection: What’s the worst that can happen?: Prompt injection is a potentially serious security vulnerability in LLM applications, and there is still no perfect solution. Simon Willison provides the definitive treatment of the issue in this article. Almost everything Simon writes about AI is excellent.

  • OpenAI cookbook: The most authoritative collection of guides and code examples for developers using the OpenAI API. It is continuously updated with new examples.

  • Pinecone learning center: Many LLM applications are built on the vector search paradigm. Although this is branded content from Pinecone, it offers some of the most useful guidance on how to build applications in this paradigm.

  • LangChain docs: As the default orchestration layer for LLM applications, LangChain connects all the other pieces in the stack. Their documentation therefore serves as a practical reference for understanding the entire technology stack and how its components work together.

Courses

  • LLM Bootcamp: A hands-on course led by Charles Frye, Sergey Karayev, and Josh Tobin, focused on building applications powered by LLMs.

  • Hugging Face Transformers: A guide that teaches you how to use open-source LLMs from the Hugging Face transformers library.

LLM Benchmarks

  • Chatbot Arena: A platform led by a UC Berkeley team that ranks popular LLMs using an Elo rating system. Users can also participate by making direct head-to-head comparisons between models.

  • Open LLM Leaderboard: A leaderboard provided by Hugging Face that compares open-source LLMs across a range of standard benchmarks and tasks.

Market Analysis

We are all amazed by what generative AI can create, but there are still many questions that need answers. Which products and companies will survive and thrive? What will happen to artists? How should companies take advantage of it? How will it affect employment and society as a whole? Below are some attempts to answer these questions.

a16z Perspectives

Other Perspectives

  • On the opportunities and risks of foundation models: Stanford University’s comprehensive overview paper on foundation models. This paper is rich in content and presents clear viewpoints; it played a pivotal role in establishing the term “foundation models.”

  • State of AI Report: An annual review covering everything in the AI field, including technological breakthroughs, industry development, policy and regulation, economic impact, safety, and predictions for the future.

  • GPTs are GPTs: An early look at the labor market impact potential of large language models: An early study on the potential impact of large language models (LLMs) on the labor market. Researchers from OpenAI, OpenResearch, and the University of Pennsylvania predict in this paper that “following the introduction of LLMs, approximately 80% of the U.S. workforce could have at least 10% of their work tasks affected, while about 19% of workers may see at least 50% of their tasks impacted.”

  • Deep Medicine: How Artificial Intelligence Can Make Healthcare Human Again: Dr. Eric Topol reveals how artificial intelligence can potentially free doctors from time-consuming tasks without disrupting human connection, thereby restoring the doctor-patient relationship. (a16z Podcast)

Milestone Research Achievements

Many of the astonishing AI products we see today are built upon groundbreaking research conducted by experts at major corporations and top universities. More recently, we have also witnessed remarkable contributions from individuals and open-source communities—for example, by creating autonomous AI agents or porting large language models to run on lower-compute hardware.

Below is a curated collection of these papers and projects for those who truly want to dive deep into generative AI. (For research papers and projects, we have also included links to related blog posts or websites where available, which often explain the work at a more accessible level. We also include the original publication year so you can trace the evolution of foundational research.)

Large Language Models (LLMs)

New Models

Model Improvements (e.g. Fine-tuning, Retrieval, Attention)

Image Generation Models

Agents (AI Agents)

Other Data Modalities

Code Generation

Video Generation

Human Biology and Medical Data

Audio Generation

Multidimensional Image Generation

Special thanks to Jack Soslow, Jay Rughani, Marco Mascorro, Martin Casado, Rajko Radovanovic, and Vijay Pande for their contributions to this article. We also thank the entire a16z team for their consistently insightful discussions on the latest developments in AI. Additional thanks to Sonal Chokshi and the crypto team for establishing a series of classic content at the firm.