AWS 公布 Trainium4:算力达 Trainium3 的 10 倍,CPTC 让 4-bit 精度达 98%
AWS Trainium4 delivers the full value of 4-bit AI, with almost nothing wasted

AWS 在 re:Invent 2026 主题演讲中公布 Trainium4,相对 Trainium3 提供 10 倍算力、5 倍内存带宽、2 倍内存容量和 2 倍 NeuronLink 带宽,将于明年下半年推出。
亚马逊高管披露 Trainium4 的规格提升与 CPTC 量化方案,读者可据此判断 4-bit 推理的精度与成本取舍。
This is a slightly expanded version of a keynote address that Amazon vice president and distinguished engineer Ron Diamant delivered at AWS re:Invent 2026. You’ve likely heard people say that work that used to take months now takes days, and we’re seeing it firsthand on the Trainium team. For instance, one of the most delicate tasks in chip design is tuning a compute circuit for energy efficiency. Finding the perfect balance between a chip’s processing speed and its power consumption is one of the hardest and most precise parts of chip engineering. You have to understand the arithmetic the circuit computes, as well as every transistor and how it’s wired. Every choice you make ripples through the others: save power in one place, and you sacrifice performance somewhere else. This kind of tuning used to take us months, but recently we did it in just under a week. AI agents ran hundreds of power optimization experiments in parallel. Formal verification rejected anything functionally incorrect, electronic-design-automation (EDA) tools simulated performance and power to select the best candidates, and every round built on what the last one learned. The result of this agentic optimization loop was a key Trainium circuit that became 30% more energy efficient! But how did the agents learn to optimize circuits in the first place? Nobody programmed them to do that. In fact, AI models aren't really programmed at all. A better analogy is that they're grown. Let's trace how a model comes to life and develops these capabilities — and how Trainium helps at every step. The Blueprint Training a frontier model takes months on hundreds of thousands of chips, and if it fails, there's no easy do-over. Before you start, you want to be confident it will turn out the way you expect. To get there, model builders climb a ladder: a series of smaller models, say one billion parameters, then seven billion, then 30 billion, each at a tiny fraction of the cost of training the full model. That's where we test hyperparameters and data configurations: the architecture, the learning rates, the numerical precision, even the data mix. Once we’ve climbed the ladder, we start the big run, which is called a pretraining run. Pretraining Pretraining is, at its core, beautifully simple. We feed the model long sequences of text and code, hide the next word, and ask it to guess. Each guess nudges the model a little closer to the right answer. Do that trillions of times, and those nudges add up to language use, knowledge, and reasoning. The idea is simple. It's the scale that's hard: trillions of predictions across hundreds of thousands of chips, running for months. And the compute used to train frontier models is growing more than fourfold per year. That's about a million-fold in just one decade! By comparison, Moore's law gave us only 15x over the same period. Bridging that gap requires innovation in every part of the system: the compute engines, the memory subsystem, the interconnect between chips, and even how numbers are represented. We’ve designed Trainium4 to advance all of those together. It’ll be available in the second half of next year, and today I want to give you a glimpse of what it has to offer. Last year we told you to expect 6x the compute performance of Trainium3. That would have been impressive enough, but our team crushed that goal. Relative to Trainium3, Trainium4 delivers 10x the compute, 5x the memory bandwidth, twice the memory capacity, and twice the bandwidth for the NeuronLink chip-to-chip interconnect. The energy-efficient circuit that I described earlier was one of the key innovations that helped us go from the 6x we promised to the 10x we’re delivering. Trainium4 also expands the scale-up domain to support over a 1,000 tightly connected chips in a single system, allowing you to efficiently train much larger models. And we’ve built redundancy into every component, so your training job keeps running day and night, uninterrupted. But these specs are only the beginning of the performance story. We also included dozens of architectural optimizations to help you squeeze every bit of performance from the hardware. Take microscaled quantization as an example. In this approach, you divide a range of values into groups and approximate all the values in each group with a single value. While many other chips spend compute cycles doing this in software, Trainium does it entirely in hardware, so you get more performance from every cycle. Post-training After months of pretraining, a model is like a fresh graduate. It has the textbook knowledge, but knowing isn't the same as doing. Post-training is where it develops practical skills, and today that’s mostly done with reinforcement learning. We give the model verifiable tasks, like a bug to fix or code to speed up. Running on an inference cluster, the model tries to solve each task many times. A verifier scores every attempt, and a training cluster uses those scores to update the model so that the good attempts become more likely. The updated model goes back to the inference cluster, and the loop runs millions of times. Here’s a concrete example — optimizing workloads on Trainium. The model tries different ways to make the code faster. We score each attempt by how fast it runs, with insights from Neuron Explorer — the industry-leading AI chip profiler that shows you a trace of exactly what ran on the hardware, down to every instruction, without slowing anything down. That way the model learns not just whether the code is faster, but also why. Over many rounds, the model learns to play a giant game of Tetris: look at the trace, rewrite the code to fill every gap, and pack the trace tighter, so the whole workload runs faster. So reinforcement learning is really a training cluster and an inference cluster running side by side. How many chips should each cluster get? The challenge is that the answer keeps moving. As training goes on, the model learns to reason longer, its responses grow, and inference needs more chips. That’s one of the reasons we built Trainium to run both training and inference efficiently. You don't have to guess how big each pool should be. The same chip does both, so you can shift capacity whenever the balance moves. Serving After post-training, the model is finally ready to serve. Here we care deeply about speed per token and cost per token. And different tasks want different things: summarizing your nightly e-mails favors the cheapest tokens possible, while a voice agent that thinks before it speaks wants maximum speed to avoid awkward pauses. It's common today to serve models with 4-bit weights: that’s a quarter as much data to move as with the bf16 floating-point standard, so tokens become cheaper and faster. But today's 4-bit formats deliver only about three bits of effective precision, which can hurt model quality. That gap comes from how precision is reduced: quantization. You can think of it like reducing the number of colors in an image. Fewer shades make the file smaller, but if you go too far the image will look noticeably worse. Let’s go deeper. This plot shows the distribution of weights in a trained model after a quick mixing step. Most of them cluster near the center, and only a few are at the tails. Four-bit data types can represent only 16 values, so 4-bit quantization divides the full range of values into 16 intervals and rounds all the values in each interval to a single representative value. For example, everything within this shaded area would be rounded to the same value: Rounding always loses some precision. We measure what's left as effective precision: how many of the four bits actually carry useful information, shown as a percentage. If our quantization intervals are evenly spaced, we spend as many bits representing the rare weights in the tails as the common weights in the middle. That leaves informational capacity on the table. To understand how we can get more from every bit, let’s look at our model weights two at a time. Each dot in the visual below represents a pair of neighboring weights, and you can see that their distribution forms a round cloud. But uniform quantization gives us this square-shaped encoding, even though our data is round. This leads to an effective-precision score of 78%. If we were to grade this, it would be a C+, or a B- at best. If we assign more bits to the values at the center, the encoding will more closely match the distribution of the data. This is called nonuniform quantization, and it gets us to an effective-precision score of 84%, a solid B. But look at the corners. The grid cells may be larger, but there are still hardly any dots in them. Because we quantized our values in one dimension and then mapped them to two, we’re still wasting precious bits on data that is almost never used. If we quantize in two dimensions from the outset, following the shape of the data, the grid becomes a honeycomb, and we get a bump in our effective-precision score. But the real gains come when we move to higher dimensions. That's why we invented CPTC — computed-permutation trellis coding — and built it into Trainium4. CPTC quantizes up to 256 numbers together, and it supports any data type from 1 to 6 bits. Dequantization happens fully in hardware, with near-zero overhead to the compute engines. At four bits, Trainium4 with CPTC reaches 98% effective precision. And that’s ... A+ work. When other data types offer four bits, they deliver three. When we offer four bits with Trainium4’s CPTC, we deliver nearly all four. And the choice is yours: you can either get higher model quality at four bits or drop to three bits to get cheaper and faster tokens, with quality similar to that of existing 4-bit formats. Here's another way CPTC helps. When a model generates a response, it keeps a working memory of the conversation, called the key-value (KV) cache. In our testing, CPTC compressed the KV cache by 3.5x, with practically no impact on model quality. That's better than any other KV cache compression method we've found. So you can fit much longer contexts in the same memory or serve the same requests at lower cost per inference. Finally, some applications need the fastest tokens possible. AI agents, for example, don’t just answer once and stop. They reason, write code, call tools, check their work, and often repeat this sequence many times per task. Each step waits on the previous one, so faster tokens mean that we can accelerate the entire task. We wanted to make LLM inference dramatically faster. Not 20% or 30% faster, but a step function change. That’s why we’ve added a new member to the Trainium family: Trainium3SR. It moves the model parameters from high-bandwidth memory (HBM) to an on-chip memory that's more than 10x as fast, enabling industry-leading token generation speeds, with a variety of models exceeding 2,500 output tokens per second. In our tests, Trainium3SR outperformed other leading chips on a variety of models — often by a large margin. When you run agents on AWS, you benefit from many of the innovations I describe in this post. Trainium processes your prompt and hands it off to Trainium3SR over the AWS elastic fabric adapter (EFA). Trainium3SR generates the response and returns it to you at record speed. And Graviton runs the tool calls as efficiently as possible. Each chip does what it does best, and they all work as a single system.
来源: Amazon Science · amazon.science