|
Dear friends,
“Loop engineering” is a hot buzzphrase after Boris Cherney (Claude Code’s creator) and Peter Steinberger (OpenClaw's creator) both mentioned it on social media. Loops are now a key part of how we get AI agents to iterate at length to build software. In this letter, I’d like to share my 3 key loops, shown in the image below, for building 0-to-1 products. These loops guide not just how I build software, but also how I decide what software to build.
Agentic coding loop: Given a product specification and optionally a set of evals (that is, a dataset against which to measure performance), we can have an AI agent write code, test its work, and keep iterating until the code is bug-free and meets its specification. This idea of closing the loop took off around the end of last year, and it has been a game changer in enabling coding agents to work longer productively without human intervention. For example, over the weekend, I was building an app for my daughter to practice typing, and my coding agent could easily work for around an hour, using a web browser to check what it had built multiple times before getting back to me, without needing my intervention.
The engineering loop executes quickly. Every few minutes, the coding agent might build and test a new version of the software. I hear frequently from developers who are finding new ways to engineer more effective engineering loops. This is an active area of invention!
Developer feedback loop: In this loop, a developer examines the current product and steers the coding agent to improve it. Last year, a lot of developers (including me) were acting as the QA (quality assurance) function for our coding agents, manually finding bugs and then asking the agent to fix them. But with coding agents much more able to test their own code, the amount of time we need to spend on this function has decreased significantly. This allows us to make higher-level product decisions, such as what key features to offer, where the UI needs improvement, and so on.
When a developer has a clear vision for what to build, it is still a lot of work to translate that vision into a specification for a coding agent to implement. Further, after the developer has seen an implementation, they might update (or perhaps clarify) the spec to steer it toward what they want. If you find that the system repeatedly runs into certain problems, building a set of evals for the agent becomes useful.
I will write more about how to do this in future letters, but for now, I find it encouraging that engineers are playing an expanded role (just as product managers and designers now do more engineering).
Keep building! Andrew
A MESSAGE FROM DEEPLEARNING.AIStop watching your terminal. Learn to teach your agent to call you when it needs your input. Join the free 7-Day Voice AI Builder Challenge today.
News
Top Agentic Performance, Low Cost
Z.ai released an open-weights model that rivals proprietary leaders for autonomous agentic tasks.
What’s new: GLM-5.2, the latest in a series of large language models that are optimized for coding, including an input context far larger than its predecessor’s.
How it works: GLM-5.2 builds on GLM-5. The team modified the earlier model’s implementation of DeepSeek sparse attention to reduce the processing required, making it practical to expand the input context to 1 million tokens from GLM-5’s 200,000 tokens.
Performance: GLM-5.2 posted the strongest performance of any open-weights model in Artificial Analysis’s tests. It ran close to the leading proprietary models from Anthropic and OpenAI on several agentic benchmarks, edging ahead of some and trailing others narrowly.
Behind the news: High-performance, open-weights models become more attractive as the U.S. government and U.S. companies tighten the screws on AI technology developed within the country. Z.ai released GLM-5.2 only one day after the U.S. government restricted access to Anthropic’s Claude Fable 5 and Claude Mythos 5 to citizens, and Anthropic suspended access to Claude Fable 5.
Why it matters: Beyond GLM-5.2’s open license, the low cost of Z.ai’s API gives developers an additional incentive to adopt it. Developers who find Claude Opus 4.8 or GPT-5.5 too pricey can obtain similar agentic and coding capabilities for as little as a quarter of the cost, according to Artificial Analysis’ assessment of cost per intelligence.
We’re thinking: Open weights continue to close in on top closed models. GLM-5.2’s outstanding performance on web-dev and post-training tasks suggests that advanced agentic capabilities are available to anyone with sufficiently advanced hardware, free of charge.
AI Degrees on the Rise
Universities in the U.S. are rapidly rolling out undergraduate majors, minors, and specializations in artificial intelligence to meet the growing demand for AI expertise.
What’s new: There are at least 1,000 AI programs across nearly 584 U.S. colleges and universities, including 78 majors and 103 minors as of April, according to the Center for Inclusive Computing at Northeastern University. These numbers have risen dramatically. In 2021, just five schools offered majors in AI, The New York Times reported.
How it works: Course requirements for a bachelor’s degree in artificial intelligence run the gamut. Some programs are highly technical and math-intensive, while others take a broader, interdisciplinary approach that includes courses in ethics, policy, or domain-specific applications. Some emphasize the theoretical foundations of AI, while others focus on how to build and deploy AI systems in practice.
Behind the news: Some commentators argue that universities have moved too slowly to prepare students for employers that expect AI competency. Others dismiss AI degrees as a fad. However, even some proponents warn that specialized AI degrees may come at the expense of broader computer science foundations, which students may need to adapt in a rapidly evolving field.
Why it matters: Today’s curricula could shape who enters the profession and what skills the next generation of AI engineers brings with them. It’s only natural to expect a standardized, one-size-fits-all education in a field as varied as AI. Some roles in industry resemble traditional software engineering jobs with AI components; others require deeper expertise in machine learning research, distributed systems, or data engineering. There will also always be large gaps between programs designed to prepare students for graduate work and others that assume the bachelor’s will be a terminal degree.
We’re thinking: AI is moving so quickly that many universities are struggling to adapt. The established pace of change in academic curricula — in which the faculty learns a topic, proposes new courses, gets approval from a curriculum committee, and perhaps modifies degree requirements — is poorly matched to the rapid pace of change of AI. However, we are glad that universities are moving in this direction, and that a number of innovative faculty and administrators are finding ways to move faster. This will be important to prepare students not only for the jobs of 2026, but for those in many years beyond.
Learn More About AI With Data Points!
AI is moving faster than ever. Data Points helps you make sense of it just as fast. Data Points arrives in your inbox twice a week with six brief news stories. This week, we covered the rapid rise of chatbot use in the U.S. and OpenAI’s new custom chip designed for AI inference. Subscribe today!
Large-Model AI for Apple Devices
The third generation of Apple Foundation Models — fruit of Apple’s collaboration with Google — introduces a variation on the mixture-of-experts architecture that runs on local devices.
What’s new: AFM 3 Core Advanced, a model designed to generate text and speech on some Apple devices, exceeds the processing efficiency of the popular mixture-of-experts architecture while occupying substantially less working memory. (Other models in the AFM 3 family, all of which are custom-built and distilled from unspecified Google Gemini models, include AFM 3 Core, which also runs on Apple devices, and AFM 3 Cloud, AFM 3 Cloud Image, and AFM 3 Cloud Pro, which run on servers.)
How it works: AFM 3 Core Advanced is optimized to run on Apple silicon.
Results: Apple has not yet published any benchmark results for AFM 3 models yet. It says it will release results later in the year. Like other AFM 3 models, AFM 3 Core Advanced outperformed the previous generation in proprietary measurements of human preference.
Behind the news: In January, Apple struck a multi-year agreement with Google to use Gemini models as the basis of its AI models. As part of the AFM 3 launch, Apple Vice President of AI Amar Subramanya revealed that the models were "distillation-based, not a wholesale adoption of Gemini.” Concurrently, Apple announced plans for its Foundation Models Framework to accommodate models from other companies. Developers who are building on Apple hardware will be able to choose between AFM 3 models and alternatives that implement Apple’s LanguageModel protocol, including Anthropic Claude or Google Gemini families.
Why it matters: AFM 3 Core Advanced’s architecture is a notable accomplishment. A typical mixture of experts requires loading the whole model into active memory (RAM or VRAM), since loading the experts token by token from flash-memory storage is slow. AFM 3 Core Advanced uses the same experts across multiple tokens. This makes it practical to store the model in flash memory — a larger, more capable model that can run on local devices.
We’re thinking: Constraints on memory and bandwidth make it impractical for most apps to download and run multi-billion-parameter models. So iOS developers have ample incentive to use streamlined models that are designed to run on iOS hardware. Moreover, Apple’s partnership with Google lets it tap into the latter’s expertise at running such models on phones.
Biological Molecules as Language
Google’s AlphaFold models pioneered the task of finding the shapes of biologically active molecules, opening new pathways for drug development. An open-source team refined AlphaFold 3’s architecture using insights drawn from large language models.
What’s new: A team at the non-profit biomedical research organization Biohub and the independent AI-for-biology lab EvolutionaryScale released ESMFold2, which infers the shapes of biologically active molecules — including proteins, DNA, RNA, and molecules that bind to them — by treating their components like a natural language. Where AlphaFold 3 and ESMFold2 infer molecular shapes by considering characteristics of multiple related molecules that have been aligned for comparison, ESMFold2 can also use a separate transformer to embed individual molecules directly, in the manner of a large language model. In addition to ESMFold2, the team released its embedding model, which is called ESMC.
Key insight: To analyze a given molecule, AlphaFold3 and similar models must also receive an MSA, which requires finding related molecules in existing databases and aligning them properly. But transformer-based large language models are good at producing embeddings based on large amounts of training data, and databases are available to provide vast numbers of sequences and standardized text descriptions of bioactive molecules. A transformer can be trained to embed individual molecules, and the embedding can serve as input instead of an MSA.
How it works: Given a protein, DNA, or RNA sequence or description of a bioactive molecule, ESMFold2 (i) embeds the input in three different ways, including (a) the sequence, (b) its atoms, and (c) an MSA if it receives one. (ii) It produces an embedding that represents the physical distances between amino acids, base pairs, or atoms in a molecule. (iii) It estimates the coordinates of the atoms in the input. And (iv) it estimates its error in those coordinates. It learned to perform these steps using two datasets that match existing sequences and descriptions to their shapes.
Results: The authors tested ESMFold2 using FoldBench, which includes tests of finding the shapes of biologically active molecules in various combinations. Given only proteins as input, ESMFold2 outperformed Chai-1, a molecular model that doesn’t accept MSAs. Given MSAs, it performed similarly to competing models that use MSAs, including AlphaFold3.
Behind the news: ESMFold2 is an update to Biohub’s 2022 ESMFold. It’s bigger and trained on more data. In addition, its architecture incorporates top-performing components proposed in other work, notably AlphaFold3, such as a diffusion model that predicts atom coordinates and a model that estimates error in the system’s output.
Why it matters: Using a transformer — essentially a large language model — to embed molecules gives ESMFold2 the ability to process input molecules without requiring an aligned set of biologically related molecules. This capability reduces friction in biological research. It's especially important if a molecule is novel (such as a rapidly evolving viral protein) or synthetic (such as a product of synthetic biology) and if information about related molecules is scarce. Moreover, since the system has open weights, it’s freely available to scientists whatever their means or affiliation.
We're thinking: LLMs have proven the value of applying more processing at inference. ESMFold2’s distance-estimation model uses the same principle, improving performance by cycling its embedding through the model multiple times.
Work With Andrew Ng
Join the teams that are bringing AI to the world! Check out job openings at DeepLearning.AI, AI Fund, and Landing AI.
Subscribe and view previous issues here.
Thoughts, suggestions, feedback? Please send to thebatch@deeplearning.ai. Avoid our newsletter ending up in your spam folder by adding our email address to your contacts list.
|