---
title: "Efficiently Scaling Transformer Inference — Pope 2022"
description: "How Transformer inference balances latency, throughput, memory and communication through tensor partitioning on TPU v4 hardware."
canonical: "https://research.elamur.ai/free/en/papers/pope-2022-efficiently-scaling-transformer-inference/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/pope-2022-efficiently-scaling-transformer-inference/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Efficiently Scaling Transformer Inference

# Efficiently Scaling Transformer Inference

Paper · 2022 · Reiner Pope, Sholto Douglas, Aakanksha Chowdhery et al.

**Authors:** [Reiner Pope](https://md.research.elamur.ai/free/en/authors/reiner-pope/), [Sholto Douglas](https://md.research.elamur.ai/free/en/authors/sholto-douglas/), [Aakanksha Chowdhery](https://md.research.elamur.ai/free/en/authors/aakanksha-chowdhery/), [Jacob Devlin](https://md.research.elamur.ai/free/en/authors/jacob-devlin/), [James Bradbury](https://md.research.elamur.ai/free/en/authors/james-bradbury/), [Anselm Levskaya](https://md.research.elamur.ai/free/en/authors/anselm-levskaya/), [Jonathan Heek](https://md.research.elamur.ai/free/en/authors/jonathan-heek/), [Kefan Xiao](https://md.research.elamur.ai/free/en/authors/kefan-xiao/), [Shivani Agrawal](https://md.research.elamur.ai/free/en/authors/shivani-agrawal/) and [Jeff Dean](https://md.research.elamur.ai/free/en/authors/jeff-dean/) · **Year:** 2022 · **Venue:** arXiv:2211.05102 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[**55** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4308760184) · [arXiv:2211.05102](https://openalex.org/S4306400194) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2211.05102)
- [arXiv 2211.05102](https://arxiv.org/abs/2211.05102)
- [OpenAlex](https://openalex.org/W4308760184)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Efficiently Scaling Transformer Inference

How Transformer inference balances latency, throughput, memory and communication through tensor partitioning on TPU v4 hardware. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Generating text with a large [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) requires more than enough arithmetic capacity. Its parameters must fit in memory, its attention state must remain available throughout generation, and its chips must exchange intermediate results quickly enough to keep each new token moving. These demands become difficult to reconcile when an application needs both a long context and a fast response. Efficiently Scaling Transformer Inference studies how to distribute this work across accelerators, with particular attention to the different requirements of interactive applications and offline processing.

The paper’s main contribution is an analytical framework for choosing how tensors should be partitioned across chips. The authors distinguish the time spent computing, reading device memory, and communicating between devices. They then explain how different layouts change those costs. Keeping weight shards on their assigned chips works well when each forward pass processes relatively few tokens. Gathering weights becomes advantageous when many tokens can be processed together. A central practical consequence is that processing an existing prompt, called prefill, should often use a different layout from generating the response, called decode.

Attention needs its own treatment. During generation, every sequence carries a cache of earlier attention keys and values, known as the KV cache. Multiquery attention makes this cache smaller by sharing a key and value head across query heads, but an unsuitable partition can replicate the cache and waste the potential saving. The authors instead distribute multiquery attention across the batch during decode. This exchanges small current-token tensors between chips so that each chip reads a smaller share of the much larger historical cache. Their results show that the combination of attention architecture and partitioning can substantially extend the context that fits in memory.

The implementation combines these layouts with communication scheduling, matrix-operation fusion, and int8 weight quantization. On PaLM 540B using 64 TPU v4 chips, the paper reports approximately 29ms for each generated token at low batch size with int8 weights, and 76% model FLOPS utilization during large-batch prefill with a 2048-token context. Model FLOPS utilization, or MFU, measures achieved token throughput against the throughput implied by the hardware’s peak arithmetic rate. In an interactive example, processing 64 newly supplied tokens alongside 1920 cached history tokens and producing a 64-token reply takes 1.9 seconds. An offline example, with 1984 input tokens and 64 generated tokens, reaches 73% overall FLOPS efficiency.

The broader result is a better measured tradeoff between latency and utilization for systems in the 500B+ parameter range, including comparisons with FasterTransformer. The authors also run Megatron-Turing NLG 530B through their implementation, which helps distinguish execution improvements from the architectural advantages of PaLM. These findings support a set of engineering principles rather than a universal winning configuration: the appropriate batch size, chip count, attention layout, and feedforward layout depend on the workload and its latency requirements.

### Ideas worth borrowing

Separate phases before optimizing. Prefill and decode execute the same network under different conditions. Prefill can process an available prompt together; decode repeatedly advances each sequence by a single token. Their arithmetic reuse, activation sizes, and memory traffic therefore differ. Treating them as separate workloads makes it possible to choose appropriate execution layouts for each. This idea applies more broadly whenever a system contains an initial bulk operation followed by many small updates. A shared mathematical operation does not imply that both stages should share an execution strategy.

Move whichever tensor is cheaper. Conventional tensor parallelism leaves weights in place and communicates activations. The paper asks when that choice stops being economical. As the token batch grows, activations can become the larger communication burden, making weight gathering preferable. The reusable principle is to compare the changing sizes and reuse opportunities of the operands before deciding what remains stationary. It is useful in distributed numerical work wherever one operand is shared across many independent examples and the other grows with the workload.

Count physical replication. Multiquery attention has a compact logical cache, but the baseline distributed layout copies that cache across chips. The architecture’s apparent saving therefore does not automatically become a bandwidth saving. The improved layout changes where requests are assigned so that the cache can remain distributed. Researchers can borrow this distinction when evaluating compression, shared state, or distributed representations: a smaller mathematical object only helps if the implementation also reduces the bytes stored, transferred, or repeatedly read.

Spend small communication to avoid large reads. Batch-partitioned attention adds an all-to-all exchange for current-token tensors. That extra communication is beneficial because it avoids repeatedly loading a much larger cache on every chip. The important comparison is between complete execution paths, rather than between isolated operation counts. This reasoning applies when a redistribution, index transformation, or routing operation makes a larger downstream transfer unnecessary. Adding an operation can improve performance if it changes the dominant cost elsewhere.

Use compatible storage for different execution paths. The weight-gathered and weight-stationary strategies begin from the same stored weight partition. This allows execution to change between phases without requiring an completely different persistent arrangement of parameters. The reusable design idea is to distinguish a durable representation from the temporary layout needed for a particular operation. Systems with multiple workload regimes can benefit from a common storage format that supports several specialized execution paths.

Optimize a frontier. The paper evaluates configurations through both latency and efficiency. A setting that responds fastest can consume more chip time per token, while a cheaper setting may require a larger batch and a longer wait. Preserving several efficient choices makes the evaluation more useful to applications with different priorities. This approach transfers naturally to systems where cost, response time, capacity, and quality cannot all be optimized independently. The objective should describe an application requirement, not merely a convenient benchmark score.

Match precision to the bottleneck. Int8 weights help most when reading weights limits performance. Their advantage is smaller when arithmetic dominates because the implementation still performs matrix multiplication using bfloat16. This is a useful discipline for [efficient models and compression](https://md.research.elamur.ai/free/en/topics/efficient-models/): explain which resource a representation change saves, then check whether that resource constrains the target workload. A storage reduction, a communication reduction, and a compute reduction are different benefits, even when they originate from the same technique.

### How Mova uses it

For Mova, the small transparent language system written in Rust, the most direct contribution is a way to reason about execution costs. The paper’s experiments concern large distributed Transformer inference, so their measured performance cannot be transferred to a small system by analogy. What can transfer is the habit of exposing where time and memory go. Mova could distinguish reading persistent parameters, maintaining sequence state, performing arithmetic, and moving intermediate data, then make optimization choices against those observed costs.

A concrete application would be to record prompt processing separately from incremental generation wherever Mova has corresponding stages. A single total duration can conceal whether a change improves startup, subsequent token production, or only large batches. Separate measurements would make such changes easier to interpret. This would follow the paper’s experimental logic without assuming that Mova uses its hardware, attention architecture, or distributed layouts.

The cache analysis also suggests an inspectable memory accounting practice. If Mova maintains reusable state for earlier input, that state could be described by its ownership, lifetime, and physical copies. The question would be whether shared information is actually stored once or merely represented as shared in the design. In a Rust implementation, the relevant engineering proposal is to make those ownership and allocation decisions visible enough to inspect. The paper supplies the motivation for that proposal; it does not establish anything about Mova’s existing memory layout.

Another possible use is a small cost estimator that explains why a chosen execution path is appropriate. Its inputs could describe the workload and the available execution resources. Its output could identify the expected limiting resource and the assumptions behind that judgment. The benefit for a transparent system would be an explicit explanation of a decision, together with measurements that can confirm or contradict it. The estimator would need calibration against Mova’s own operations rather than reuse of TPU-specific constants.

The paper also supports restraint about optimization scope. Multi-axis partitioning, communication collectives, and large-scale weight gathering solve problems created by distributed execution. Mova should only adopt such machinery if its own execution setting creates the corresponding problem. A smaller system may gain more from reducing copies, improving data layout, or separating bulk work from incremental work. These are proposed applications of the paper’s reasoning, not claims that its techniques have already been implemented in Mova.

The useful relationship is therefore methodological. Mova could make its resource use understandable, compare alternatives under declared workloads, and explain why a particular optimization helps. Nothing in the paper demonstrates an existing Mova integration, a Rust implementation of the authors’ framework, or a measured Mova speedup.

### The problem and its context

#### Why generation is harder to parallelize

The paper begins from a mismatch between training and deployment. Transformers can process many positions in parallel when the relevant tokens are already available. Autoregressive [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) has a sequential dependency: the next token depends on the sequence produced so far. The system cannot simply expose the whole future response as parallel work.

That difference changes the significance of hardware scale. A configuration that uses many chips efficiently during training may not use them efficiently while generating text. During generation, each step offers relatively little new token work, yet it still needs access to a large parameter set and the accumulated attention state. Distributing the computation across additional chips can reduce local work while increasing the importance of communication.

The authors place this issue against the growth of large [language models](https://md.research.elamur.ai/free/en/concepts/language-model/). They cite [Language Models are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/) and work on [Scaling Laws for Neural Language Models](https://md.research.elamur.ai/free/en/papers/kaplan-2020-scaling-laws-neural-language-models/) when discussing the move toward larger systems. [PaLM](https://md.research.elamur.ai/free/en/papers/chowdhery-2022-palm-scaling-language-modeling-pathways/) and [Megatron-Turing NLG 530B](https://md.research.elamur.ai/free/en/papers/smith-2022-using-deepspeed-megatron-train-megatron/) supply examples at the scale examined experimentally.

The paper’s question is how to run such systems under practical constraints. It does not seek a new language-learning objective or a new training dataset. It examines the execution of already trained networks: how to arrange their tensors, use device memory, and coordinate accelerator work.

#### Applications ask for different things

An interactive application cares about how long a person waits. The paper uses [chatbots](https://md.research.elamur.ai/free/en/concepts/chatbot/) as an example and cites [LaMDA](https://md.research.elamur.ai/free/en/papers/thoppilan-2022-lamda-language-models-dialog-applications/) in that context. A fast response may justify allocating more hardware or accepting lower utilization.

Offline processing presents another objective. Scoring large collections of text or producing material for distillation can prioritize the amount of useful work completed per chip. If waiting longer allows a larger batch to reuse weights more effectively, the resulting configuration can be preferable even though its individual requests finish later.

These objectives cannot be reduced to a single throughput figure. A large batch can yield impressive aggregate throughput while producing unsuitable response times for an interactive application. A small batch can deliver quick responses while leaving much of the hardware’s arithmetic capacity unused. The paper therefore evaluates the tradeoff explicitly.

#### Two large memory burdens

The first memory burden is the parameter set. At the sizes studied, it does not fit on an individual accelerator. Parameters must be distributed, and the pieces needed for a forward pass must be read from high-bandwidth device memory into the compute units.

The second burden is the KV cache. Attention needs access to keys and values associated with earlier tokens. Retaining these tensors avoids rebuilding all of that state at every generation step, but the cache grows with the number of sequences and their context lengths. Unlike weights, it is specific to the sequences being processed.

This distinction becomes consequential at large batches. The paper gives a multihead-attention example in which a 500B+ parameter system processes a batch of 512 with context length 2048. Its KV cache occupies 3TB, described as 3 times the parameter storage. The example illustrates why counting only parameter memory can badly mischaracterize inference requirements.

Capacity and bandwidth are separate concerns. A cache may fit in the aggregate memory of a chip group while still taking too long to read on every decode step. Long-context inference therefore requires more than sufficient storage. It also requires a partition that distributes repeated reads effectively.

#### Earlier approaches described by the paper

The authors situate their work within research on [GPU and parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/). Earlier distributed systems, including GSPMD and [Alpa](https://md.research.elamur.ai/free/en/papers/zheng-2022-alpa-automating-inter-intra-operator/), address the expression or discovery of parallel execution strategies. Alpa uses integer-linear programming to search parallelization choices. The present paper instead emphasizes an analytical explanation of why particular choices become appropriate as workload dimensions change.

FasterTransformer provides an inference benchmark suite and combines tensor parallelism, pipeline parallelism, and memory improvements. DeepSpeed Inference also introduces offloading through ZeRO, extending storage beyond accelerator memory to CPU and NVMe resources. The authors describe these as established approaches to making large inference workloads possible and efficient.

Other earlier work changes the computation or network itself. The paper groups [Reformer](https://md.research.elamur.ai/free/en/papers/kitaev-2020-reformer-efficient-transformer/), [Routing Transformers](https://md.research.elamur.ai/free/en/papers/roy-2020-efficient-content-based-sparse-attention/), and [Performers](https://md.research.elamur.ai/free/en/papers/choromanski-2020-rethinking-attention-performers/) among approaches to more efficient attention. It also discusses distillation through examples including [DistilBERT](https://md.research.elamur.ai/free/en/papers/sanh-2019-distilbert-distilled-version-bert-smaller/) and [MobileBERT](https://md.research.elamur.ai/free/en/papers/sun-2020-mobilebert-compact-task-agnostic-bert/), alongside pruning and quantization.

The contribution here is compatible with many such methods. It asks how to execute the resulting tensors efficiently across devices. Quantization is incorporated directly, while other compression methods are presented as potentially complementary. The paper’s distinctive emphasis is the interaction between workload shape, tensor placement, and communication.

### The method, step by step

The method starts with an application requirement and ends with a phase-specific execution strategy. The authors identify the main resource demands, estimate how candidate layouts scale, and implement the promising layouts with enough control over communication to realize their expected benefits. They then measure latency and efficiency across batch sizes and chip counts.

Choosing an inference execution layout The steps in order.

#### Establish the workload and notation

Let B denote the number of sequences processed together. Each sequence begins with an available input of length L_input and produces an output of length L_gen. Prefill runs over the available input positions together. Decode performs a sequence of forward passes, sampling a new token for each example after each pass.

The total token work exposed to prefill is:

```
B × L_input
```

B is the batch size measured in sequences, and L_input is the input length of each sequence. Their product counts the input tokens available together. This distinction matters because the paper sometimes measures a batch by its token count instead of its number of examples.

The network’s embedding width is E, its feedforward intermediate width is F, and its number of query heads is H. Let C denote the chip count. The hardware mesh has axes X, Y, and Z, corresponding to the physical dimensions of the TPU v4 torus.

```
C = X × Y × Z
```

C counts all chips in the chosen mesh. X, Y, and Z specify how many chips lie along each physical axis. A layout assigns tensor dimensions to these mesh axes, determining both the local tensor shapes and the required communication.

For example, a logical activation tensor has dimensions for batch, sequence, and embedding width. If its embedding dimension is distributed across the entire mesh, each chip holds:

```
[B, L, E / (X × Y × Z)]
```

B is the sequence batch, L is the relevant sequence dimension, and E is the full embedding width. The denominator describes how the embedding entries are divided among chips. A mesh axis omitted from a tensor’s partition description indicates replication across that axis.

A partial sum is different from a replicated completed value. Each chip may have computed only the contribution associated with its own weight shard. Those contributions must be combined before the result can serve as the complete input to a later operation. The paper’s notation tracks this distinction because it determines which collective communication is necessary.

#### Separate arithmetic, memory, and communication

For a decoder-only network with N parameters, the paper approximates the parameter-related matrix arithmetic per token as:

```
FLOPs per token = 2N
```

N is the parameter count. The factor 2 counts a multiplication and an addition for each relevant parameter–activation interaction. FLOPs denotes the number of floating-point operations, whereas FLOPS denotes a rate of such operations.

This approximation leaves out attention matrix arithmetic when it is small relative to the parameter-related operations. It does not imply that attention is unimportant. Attention can consume substantial memory bandwidth even when its arithmetic contribution is relatively modest.

Memory time describes reading the major stored tensors from high-bandwidth memory into the compute units. At small batches, loading weights is especially important because relatively little token work shares each load. At larger batches or longer contexts, reading the sequence-specific KV cache can become dominant.

Communication time arises because distributed matrix operations need inputs or results from other chips. Increasing chip count reduces the local share of weights and arithmetic, but communication does not necessarily shrink at the same rate. The analytical framework is useful precisely because it exposes this difference.

The authors do not assume that all resource costs simply disappear into a single arithmetic estimate. Nor do they treat predicted communication volume as a complete latency measurement. Their implementation later overlaps communication with computation, making scheduling an essential part of the final result.

#### Understand the communication operations

An all-gather collects distributed pieces so that every participating chip obtains the combined tensor. A reduce-scatter combines partial results but leaves the completed output distributed. An all-reduce combines partial results and provides the complete result to each participant.

The paper usually treats all-reduce as a reduce-scatter followed by an all-gather. Splitting it this way allows an intermediate result to remain sharded when that form is useful for the next operation. It also provides opportunities to overlap communication with arithmetic.

An all-to-all changes which tensor dimension is partitioned. For attention, a tensor initially divided by heads can be redistributed so that it is divided by batch instead. Each source sends the appropriate pieces to their destinations.

The appendix gives the all-gather communication estimate:

```
T_all-gather = (D / W) × ((K − 1) / K)
```

T_all-gather is the communication time. D is the size of the full output held by each chip after gathering, W is network bandwidth, and K is the number of participating partitions. The final factor accounts for the fraction transferred through the collective.

Reduce-scatter has the same estimated time when D refers to its larger input buffer. As a consequence, the paper expresses all-reduce time as:

```
T_all-reduce = 2 × T_all-gather
```

T_all-reduce is the combined time of reduction and redistribution. T_all-gather is the corresponding gathering time. This is a communication-cost relation, not a guarantee that every concrete implementation achieves precisely the predicted duration.

Most later derivations approximate the partition factor as follows:

```
(K − 1) / K ≈ 1
```

K again counts participating partitions. The approximation is intended for sufficiently large K and simplifies comparisons between layouts. It also helps explain why the resulting formulas describe scaling behavior more directly than every implementation detail.

#### Start with weights partitioned along a single dimension

The basic weight-stationary strategy stores a shard of each weight matrix on its assigned chip. Activations move as needed to interact with those shards. In a feedforward block, the first matrix expands from embedding width E into intermediate width F, and the second projects back.

A useful existing arrangement partitions the first multiplication by its output dimension and the second by its input dimension. The first operation then produces exactly the local activation shard required by the second. Communication between those consecutive matrix multiplications can be avoided.

The difficulty appears as the chip group grows. Each chip handles less arithmetic and reads fewer weights, but the activation aggregation still involves the full relevant activation extent. The communication estimate for this layout is:

```
T_comm = 2BLE / W
```

T_comm is communication time, B is batch size, L is the sequence dimension being processed, E is embedding width, and W is network bandwidth. C does not appear in the expression. Under the approximation, adding chips does not reduce this communication term.

This explains the scaling problem. More hardware can initially lower latency, but eventually communication becomes a floor. The paper’s aim is to replace that floor with layouts whose communication also decreases as the work is spread more widely.

#### Partition both dimensions of a weight matrix

The two-dimensional weight-stationary layout divides both E and F. A chip holds a smaller rectangle of the matrix rather than a shard extending across an entire matrix dimension.

The paper’s illustrative matrix has E = 1024 and F = 4096, distributed across 64 chips. Dividing E into 4 parts and F into 16 parts gives each chip a 256-by-256 weight block. The example makes the geometry tangible: distributing both dimensions prevents an entire activation dimension from needing replication everywhere.

Communication now alternates between the partitioned embedding and intermediate dimensions. This introduces more collective operations than the simpler layout, but each operation moves a smaller tensor. Operation count alone therefore gives the wrong intuition about its efficiency.

The general communication estimate is:

```
T_comm = (2BL / W) × (E / X + F / (YZ))
```

T_comm is total communication time. B and L determine the token batch, W is network bandwidth, E and F are the matrix dimensions, and X and YZ describe their respective partition counts. The expression balances the communication associated with each dimension.

For the assumed feedforward expansion, the paper uses:

```
F = 4E
```

F is intermediate width and E is embedding width. Under this assumption, the communication-minimizing mesh allocation is expressed through the following choices:

```
X = 0.5 × √C
```

X is the partition count assigned to the embedding dimension, and C is total chip count. The expression gives the continuous optimum used in the analysis, subject in practice to available hardware shapes.

```
YZ = 2 × √C
```

YZ is the combined partition count assigned to the intermediate dimension. C again denotes total chips. Together, the choices balance the differently sized matrix dimensions.

Substituting those choices gives:

```
T_comm = 8BLE / (√C × W)
```

T_comm is communication time, B is the sequence batch, L is the processed sequence dimension, E is embedding width, C is chip count, and W is bandwidth. Unlike the single-dimensional estimate, this term decreases as chip count grows.

The comparison gives the threshold:

```
√C > F / E
```

C is chip count, and F/E is the feedforward expansion ratio. The inequality identifies when the extra dimensional partitioning becomes communication-efficient under the paper’s assumptions. With the stated expansion, the authors identify C > 16 as the relevant threshold.

The practical lesson is not that every additional partition helps. It is that matrix geometry and communication geometry should be matched. Available mesh shapes, local matrix efficiency, and scheduling still determine the measured outcome.

#### Gather weights when token batches become large

Weight-stationary execution assumes that communicating activations is preferable to communicating weights. That assumption weakens as B and L grow. The parameter matrices keep the same dimensions, while activation tensors grow with the token workload.

The alternative gathers weight shards over some mesh axes while distributing examples more widely. Activations can then remain more local during consecutive operations. The paper considers variants gathering over X, over XY, or over XYZ, progressively trading more weight movement for less activation movement.

These variants share the same persistent weight arrangement as the two-dimensional weight-stationary strategy. The difference is introduced immediately before the matrix operations through gathering. This compatibility allows prefill and decode to choose different execution paths from a common stored representation.

Let G denote the number of chips participating in weight gathering. This renaming separates the gathered group size from the parameter count used earlier. The weight communication estimate is:

```
T_weights = 2EFG / (CW)
```

T_weights is time spent communicating weights, E and F are matrix dimensions, G is the gathering group size, C is total chip count, and W is network bandwidth. Increasing G increases weight communication.

The activation term behaves in the opposite direction:

```
T_activations = 2BLE / (GW)
```

T_activations is activation communication time. B, L, and E describe the activation workload, G is the weight-gathering group size, and W is network bandwidth. Increasing G reduces this term because more of the activation work remains local.

The main-text optimum is:

```
G = √(BLC / F)
```

G is the gathered group size, B is batch size, L is processed sequence length, C is chip count, and F is intermediate width. The expression balances the two communication terms. Practical layouts choose among the available mesh-axis combinations rather than arbitrary group sizes.

The appendix writes a different sequence symbol in the corresponding optimum. The main-text expression above uses L consistently with the surrounding activation formulas. This notation issue does not change the stated comparison between the two communication costs.

At the analytical optimum, total communication becomes:

```
T_comm = 4E√(BLF) / (√C × W)
```

T_comm is total communication time. E and F are the network dimensions, B and L determine the token batch, C is chip count, and W is bandwidth. Its dependence on the token workload grows with a square root, whereas the weight-stationary communication estimate grows directly with that workload.

This is why weight gathering is particularly useful for large prefill batches. The same number of sequences produces a much smaller current-token workload during decode. A layout chosen only by sequence batch size would miss that distinction.

#### Partition attention to preserve cache savings

Multi-head attention can distribute work over heads, much as a feedforward operation distributes work over an intermediate dimension. Its difficulty is that every sequence also carries historical keys and values for those heads.

Multiquery attention retains multiple query heads but uses a shared key head and a shared value head. Logically, the cache becomes smaller by a factor corresponding to H, the query-head count. The projection matrices with a head dimension can still follow the feedforward partitioning strategy.

The naive distributed arrangement nonetheless replicates the shared cache across chips. Every chip working on query heads may need the same keys and values. The compact architecture then fails to produce the expected reduction in repeated local reads.

The proposed decode arrangement distributes Q, K, and V across the batch dimension. Q, K, and V denote the current queries, keys, and values. An all-to-all changes their partition from the projection layout to the batch layout.

This exchange is worthwhile because each decode step has only the current token for each sequence in these tensors. The KV cache can contain a much longer history, such as 2048 tokens. Moving the small current state permits the large historical state to stay distributed.

Prefill reverses the balance. It has many query positions available together, and these positions reuse the same keys and values. Cache loading is amortized across those queries, reducing the benefit of batch redistribution. The authors therefore use head-oriented attention partitioning during prefill.

#### Fuse operations and overlap transfers

PaLM computes attention and feedforward branches from the same normalized input. Their outputs are then combined. The paper explains that this parallel block structure uses fewer normalization operations and permits larger fused matrix operations.

It also removes one of the all-reduce operations otherwise required by the feedforward and head partitioning. The architectural advantage therefore includes less activation communication, not merely a different order of arithmetic.

At a lower level, Looped CollectiveEinsum overlaps communication with dependent matrix computation. The authors develop variants for different mesh dimensions and workload priorities. They also explicitly pair communication operations with the matrix operations that offer suitable overlap.

Their reduce-scatter choices favor hidden dimensions over batch or sequence dimensions because this exposes better overlap opportunities. The paper contrasts that choice with [Reducing Activation Recomputation in Large Transformer Models](https://md.research.elamur.ai/free/en/papers/korthikanti-2022-reducing-activation-recomputation-large-transformer/), which favors another arrangement to avoid communication around normalization.

Other improvements address tensor padding and copying, sampling operations, and implementations of Softmax and Swish. Incremental prefill processing is supported as well. These details matter because a favorable analytical layout still needs an efficient concrete schedule and memory representation.

#### Quantize weights and evaluate execution

The authors use AQT to convert 16-bit weights to int8. The primary benefits are fewer bytes read during weight loading and less weight communication in gathered layouts. Matrix arithmetic remains bfloat16 in the described implementation.

The inference framework uses JAX and XLA, with an original high-level implementation derived from T5X. This is an execution study instead of a training procedure: the paper does not introduce a new corpus, training objective, or data split for learning the proposed layouts.

For cost comparisons, it defines:

```
Cost = C × t / (BL)
```

Cost is measured in chip-seconds per token. For the phase being measured, C denotes the chip count, t the elapsed inference time, B the sequence count, and L the count of tokens processed or generated for each sequence. The quantity accounts for both the duration and the hardware allocation.

The final selection comes from comparing latency and efficiency across the candidate configurations. The analytical derivations explain where to look and why a layout should help. Measurements determine which realizable combinations form the useful tradeoff frontier.

### Experiments and results

#### Hardware, workloads, and measurements

The empirical study covers PaLM 8B, 62B, and 540B with bfloat16 or int8 weights. The authors vary batch size and chip count, using up to 256 TPU v4 chips. Each chip is described as providing 275 TFLOPS for bfloat16 matrix arithmetic, 32 GiB of high-bandwidth memory, 1200 GB/s of memory bandwidth, and 270 GB/s of interconnect bandwidth.

These specifications represent different resources. Peak arithmetic rate determines the throughput used to normalize MFU. Memory capacity limits which parameter and cache combinations fit. Memory bandwidth affects repeated local reads, while interconnect bandwidth constrains communication between chips.

For PaLM 540B, the authors pad the attention-head count from 48 to 64 to improve partitioning on 64+ chips. This adds 18B parameters and incurs a stated 3% MFU cost. They report that the resulting partitioning improvement more than compensates for that overhead.

The experiments are primarily systems benchmarks defined through token lengths, batch sizes, network sizes, and hardware allocations. They do not report a new task dataset with training and test partitions. The central metrics are prefill latency, decode latency, token throughput, MFU, and chip-seconds per token.

#### The detailed low-latency result

For PaLM 540B at batch size 64, the end-to-end analysis reports lower decode latency with int8 weights than with bfloat16 weights. The comparison belongs to the study using a 2048-token context. The matrices still use bfloat16 arithmetic, so the result is evidence for reducing weight traffic rather than for an implemented int8 arithmetic path.

PaLM 540B, batch size 64, decode latency per token Int8 weight storage reduces latency in the regime where loading weights matters strongly.

**The numbers**

| System or setting | ms/token |
| --- | --- |
| Bfloat16 weights | 36.9 |
| Int8 weights (this paper) | 28.5 |

The abstract’s approximately 29ms result describes the low-batch generation performance on 64 TPU v4 chips. The more detailed measurement above supplies the corresponding precision comparison. These are generation timings; they should not be read as the complete time required to ingest an arbitrary prompt and finish a response.

At low latency targets, the authors report a cost improvement of just over a factor of 2 from int8 weights. At large batches the difference is smaller because compute time becomes dominant and the matrix operations retain bfloat16 arithmetic.

#### Prefill reaches a different operating regime

For prefill, the authors sweep from 2048 tokens, corresponding to a single example of that length, to a token batch described as 1 million tokens, using 512 examples with 2048 tokens per example. The purpose is to observe how communication changes as more token work shares the parameter matrices.

The preferred layout changes as predicted. Two-dimensional weight-stationary execution performs well at smaller token batches. Weight-gathered variants become preferable as the workload grows, eventually reaching 76% MFU on PaLM 540B with 64 chips.

The result depends on memory feasibility as well as communication efficiency. The authors explain that the large batches used for this high utilization would exceed memory without multiquery attention. The attention saving therefore enables the workload that makes the feedforward strategy effective.

At batch size 512, the paper reports prefill cost as 2 times lower than decode cost. It attributes this to the higher MFU available with the weight-gathered prefill layouts. The comparison concerns cost per token, rather than equality of the two phases’ total durations.

#### Application-shaped examples

The interactive example combines newly supplied text with retained history. On PaLM 540B with int8 weights and 64 TPU v4 chips, the system processes 64 user tokens, attends to 1920 cached tokens, and generates a reply of 64 tokens in 1.9 seconds.

This example matters because cached history and new prompt material create different work. The history remains relevant to attention during decoding, but it does not have to be processed again as entirely new input. The reported duration is tied to that workload.

For offline use, the paper describes processing 1984 input tokens and generating 64 output tokens with 73% overall FLOPS efficiency. This reflects a throughput-oriented configuration. It should be distinguished from the 76% prefill result, which measures the input-processing phase alone.

The low-latency configurations also use different batch sizes across phases. The authors combine prefill at batch size 1 with decode batches in the 32-to-64 range. They explain that this can support multiple continuations from one prompt or a pipeline connecting a small-batch prefill service with a larger-batch decode service.

#### Scaling across network sizes

Across the PaLM family, reducing decode batch size lowers latency but increases cost per token. The lowest costs occur at batches larger than about 512. The paper reports minimum generation latency as 3 times lower than the batch-512 latency.

Larger networks require more chips at their useful low-latency operating points. The authors nevertheless observe latency growing more slowly than parameter count because additional partitioning remains beneficial for larger networks before communication becomes limiting.

They estimate an approximately square-root relationship between network size and low-batch latency along the measured frontier. This is an empirical characterization of their configurations. It is not presented as a hardware-independent law.

The appendix also qualifies the connection between size and utilization. Larger matrix operations often improve MFU, but PaLM 62B can exceed PaLM 540B at long-latency decode settings. The authors connect that exception to the different degrees of model parallelism.

#### Comparison with FasterTransformer

The FasterTransformer baseline uses 16–32 NVIDIA A100 devices with 80GiB HBM, while the authors’ comparison uses 64 TPU v4 chips with 32GiB HBM. MFU provides normalization for chip count and arithmetic capability, but the comparison still spans different hardware and interconnects.

The authors evaluate their own execution of both PaLM 540B and Megatron-Turing NLG 530B. Running the latter helps show that their advantage cannot be attributed entirely to PaLM’s architecture.

The workloads compared have input/output token counts of 20/8, 60/20, and 128/8. Across the highlighted comparison, the PaLM implementation gives the best absolute latency. Their Megatron implementation achieves the best MFU for all but one latency target.

FasterTransformer’s reported maximum MFU is 33% with 32-way tensor parallelism, compared with 46% in its 16-way configuration. The authors’ implementation reaches 44% while using 64-way tensor parallelism. They interpret this as evidence of better scaling for their partitioning on the TPU interconnect.

Those maxima summarize reported settings rather than a single matched experiment that isolates partitioning from hardware. The strongest supported conclusion is about the measured combinations of execution strategy and platform.

### What the ablations show

#### Feedforward layout changes the scaling behavior

The feedforward comparisons test the analytical prediction directly. During decode, the authors use batch size 512 and compare the single-dimensional and two-dimensional weight-stationary approaches. Both eventually encounter communication limits, but the two-dimensional strategy performs better as parallelism grows.

This is evidence for reducing communication volume per chip. The theoretical analysis predicts that single-dimensional communication remains roughly fixed while two-dimensional communication can keep decreasing. The measured comparison supports that mechanism without implying unlimited benefit from adding chips.

The prefill sweep examines another controlled change: the number of tokens processed together. Weight gathering is inefficient at the smaller end of the sweep and becomes effective at larger token batches. This shows why a layout should be selected against the actual phase workload.

The comparisons therefore support a conditional claim. Two-dimensional weight-stationary execution is well suited to the studied decode regime, while weight gathering is valuable for sufficiently large prefill workloads. A universal preference for either would erase the main finding.

#### Attention architecture and layout must be tested together

The attention study compares optimized batch-partitioned multiquery attention with a baseline head-partitioned version and a modified multi-head variant. The multi-head variant reduces head width from 256 to 128 so that the attention parameter count remains constant.

That adjustment matters when interpreting the experiment. It limits parameter-count differences, but the variants are not otherwise identical. The study evaluates a controlled architectural modification together with alternative distributed layouts.

The capacity analysis reserves 30% of total memory for the KV cache. The abstract and the table caption describe support for up to 32 times larger contexts with the optimized arrangement. The surrounding analysis also reports 32–64 times longer contexts relative to the compared variants. These statements belong to their respective comparisons and should not be collapsed into a single universal multiplier.

For latency, the authors use an 8-layer version of PaLM 540B on 64 chips at batch size 256. This reduced-depth setting permits comparisons at context lengths that would not fit for the full baseline network.

The figure caption identifies the full network as having 118 layers and notes that, beyond context length 512, the cache no longer fits for multi-head attention or baseline multiquery partitioning. The reduced-depth latency curve therefore cannot be treated as a direct full-network measurement at every plotted length.

#### Context length determines attention’s importance

At short contexts, the optimized attention layout brings only a small overall speed improvement because feedforward work dominates. Longer contexts increase the share of time spent loading cached keys and values, making the partitioning change more consequential.

The paper reports multiquery execution at sequence lengths of 8192–32,768 tokens, associated with batch sizes 512 and 128 respectively. Attention accounts for 8–31% of total runtime in the reported settings.

These measurements support the explanation that cache traffic drives the growing benefit. They do not show that context length becomes free, or that arithmetic and memory constraints disappear. The optimized arrangement changes the scale at which those constraints become restrictive.

Prefill gives a complementary result. Multi-head and multiquery attention have similar latencies there because many queries are evaluated together and attention matrix arithmetic becomes limiting. The cache bandwidth advantage is much less decisive in that phase.

#### Parallel blocks reduce activation communication

The authors replace PaLM’s parallel attention/feedforward block with a serial version. With a batch size of 512 and 64 chips, the decode comparison employs a weight-stationary layout in two dimensions.

The serial version has 14% higher per-step latency. The paper attributes the increase to additional activation communication. This supports the argument that the parallel block’s benefit includes fewer distributed synchronization operations.

During prefill, the difference narrows because weight-gathered layouts already reduce activation communication. The ablation again shows an interaction: an architectural feature has different execution value depending on the selected layout.

#### Scheduling provides an additional improvement

The low-level implementation work yields about 1.4 times better performance than the authors’ initial compiler-partitioned and compiler-scheduled version. This comparison shows that selecting a favorable partition is insufficient by itself.

Some weight-gathered layouts would run out of memory without the scheduling improvements. Overlap and temporary-buffer management therefore affect which strategies can run, as well as how quickly they run.

The paper reports this as an aggregate implementation improvement. It does not assign a separate measured contribution to every change in sampling, tensor layout, nonlinear operations, or collective scheduling. Those changes should not be credited with individually isolated speedups.

### Limitations

#### Limits explicitly identified by the authors

Activation quantization is not implemented. Int8 applies to stored weights, while matrix arithmetic remains bfloat16. The authors suggest that activation quantization could improve large-batch compute cost and reduce activation communication, but those benefits remain proposed extensions.

Their large-batch int8 software also lacks some optimizations. For throughput-oriented configurations they use bfloat16 because weight loading has become relatively unimportant and the available implementation favors that path. This limits any broad claim that int8 is always the preferred precision.

The appendix excludes batch sizes below 4 from the FasterTransformer comparison. Batch partitioning of multiquery attention provides no speedup below that level because the smallest TPU v4 torus axis has size 4. The result is a concrete hardware constraint on the proposed arrangement.

The authors identify possible further improvement in throughput-oriented PaLM 540B execution by reducing model parallelism. Their reported frontier is therefore the best among the measured configurations, not proof that every useful configuration has been exhausted.

The conclusion also acknowledges fundamental costs in dense Transformer inference. Parameter-related arithmetic and communication remain substantial even after the proposed optimizations. Sparse computation, adaptive computation, and compressed communication are discussed as promising directions rather than demonstrated solutions in this study.

#### Limits of the analytical estimates

The communication derivations simplify collective behavior, including the approximation that drops the partition-count correction for sufficiently large groups. They describe bandwidth-related scaling and expose useful tradeoffs, but they do not represent every latency source in an actual collective implementation.

The mesh dimensions must also correspond to available hardware shapes. A continuous mathematical optimum may not map exactly onto a realizable partition. Local matrix sizes, padding, temporary storage, and overlap opportunities can change which available option is best.

The two-dimensional optimum assumes a particular relationship between intermediate and embedding widths. Other aspect ratios require reconsidering the balance between partition axes. The broader reasoning transfers more readily than the exact axis allocation.

Communication volume is also different from exposed communication time. Some transfers can overlap computation; others remain on the critical path. The paper addresses this through implementation work, but a reader should not substitute the volume formulas directly for measured end-to-end latency.

#### Limits visible in the experimental setup

The main implementation is evaluated on TPU v4. The authors argue that the partitioning ideas generalize to other topologies, including GPU interconnects, but the study does not provide equivalent implementations across every such platform.

The FasterTransformer comparison changes hardware alongside execution strategy. MFU adjusts for arithmetic capacity and device count, yet memory systems, interconnect structure, and implementation details remain different. The experiment establishes the quality of the measured system combinations more directly than the isolated contribution of a single partitioning rule.

PaLM also includes multiquery attention and parallel blocks. The authors address architectural differences through ablations and a Megatron implementation, but the headline PaLM result still combines architecture, layout, quantization, and low-level scheduling. It is not the result of a solitary change.

The head-padding modification further means that the executed PaLM 540B configuration includes extra parameter work introduced for partitioning. The authors account for its MFU cost, which is important when interpreting nominal network sizes.

#### Context capacity does not establish long-context quality

The long-context results concern storage feasibility and execution time. They show that the system can retain and process larger attention state under the evaluated conditions.

They do not evaluate whether useful information is recovered from all positions of a longer context, whether answer quality remains stable, or whether the original training setup supports every proposed application. Efficiently processing a token history and using that history successfully are different experimental questions.

The reduced-depth attention latency study also requires care. It is designed to expose scaling behavior when full baseline variants cannot fit. Its measured timings should not be presented as full-network results at those same settings.

#### Quality and serving behavior receive narrower treatment

The authors report no noticeable quality loss from their weight quantization. They do not provide a detailed task-by-task quality analysis alongside the central performance results. That claim is therefore narrower than a comprehensive evaluation of output behavior.

Likewise, the benchmarks do not constitute a full study of a live service under variable arrivals and heterogeneous requests. The paper gives practical application configurations and discusses connecting prefill and decode services, but does not establish every consequence of queueing, batching delays, or operational scheduling.

Chip-seconds per token is a useful hardware-normalized cost measure. Translating it into financial cost requires assumptions about the deployment environment. The paper does not supply a universal price for the measured work.

### What came after

The later citing works show how widely inference efficiency connects to architecture, memory representation, scheduling, and application design. A citation establishes a connection to this paper, but it does not on its own establish that a later system implements its exact partitioning scheme. The titles and citation relationships support a useful map of subsequent directions; they do not support detailed claims about undocumented mechanisms or numerical improvements.

#### Attention design remained connected to serving cost

[GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints](https://md.research.elamur.ai/free/en/papers/ainslie-2023-gqa-training-generalized-multi-query/) develops the architectural direction identified in its title: generalized multiquery attention and its relationship to existing multi-head checkpoints. Its connection to this paper is particularly relevant because the inference study shows that attention architecture changes both cache size and available parallelism. The citation relationship does not establish that GQA uses the same TPU layouts.

[The Falcon Series of Open Language Models](https://md.research.elamur.ai/free/en/papers/almazrouei-2023-falcon-series-open-language-models/) and [Llama 2](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-2-open-foundation-fine/) place the paper within later work on language-system development. Their listed titles identify the scope of those works, but provide no basis for attributing a particular attention choice or serving result to this citation. The defensible connection is that the engineering tradeoffs studied here became relevant reference material for later foundation-system work.

[Gemini 1.5](https://md.research.elamur.ai/free/en/papers/gemini-team-2024-gemini-1-5-unlocking-multimodal/) names multimodal understanding over very long contexts as its subject. That direction connects naturally to the memory problem examined here: retaining more context changes the amount of attention state that execution must manage. The relationship does not demonstrate that the later work achieves its context capabilities through the same partitioning strategy, and no such implementation claim follows from the citation alone.

#### Quantization expanded the representation question

[QLoRA: Efficient Finetuning of Quantized LLMs](https://md.research.elamur.ai/free/en/papers/dettmers-2023-qlora-efficient-finetuning-quantized-llms/) addresses efficient adaptation with quantized representations, as its title states. Its focus differs from this paper’s use of int8 weights to reduce inference memory traffic. The useful connection is the shared importance of separating representation size from the operation that consumes that representation.

[KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache](https://md.research.elamur.ai/free/en/papers/liu-2024-kivi-tuning-free-asymmetric-2bit/) explicitly targets the cache rather than only the parameters. That subject follows a resource distinction made central here: parameter memory and sequence-specific attention memory create different bottlenecks. The later title supports identifying cache quantization as its direction; it does not supply a measured comparison with the batch-partitioned layout.

[Atom: Low-bit Quantization for Efficient and Accurate LLM Serving](https://md.research.elamur.ai/free/en/papers/zhao-2023-atom-low-bit-quantization-efficient/) places quantization in a serving context. It belongs to the same broad question of when fewer stored or transferred bytes improve practical execution. The present paper supplies an important condition for interpreting that question: the benefit depends on whether weights, activations, arithmetic, or cached state limits the workload.

#### Serving systems developed the phase distinction

[Splitwise: Efficient Generative LLM Inference Using Phase Splitting](https://md.research.elamur.ai/free/en/papers/patel-2023-splitwise-efficient-generative-llm-inference/) identifies phase splitting as its organizing idea. This is closely aligned with the earlier observation that prefill and decode have different resource behavior. The title supports that thematic relationship, while the citation list does not establish which layouts, hardware assignments, or transfer mechanisms Splitwise uses.

[SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefills](https://md.research.elamur.ai/free/en/papers/agrawal-2023-sarathi-efficient-llm-inference-piggybacking/) names another way to arrange work from the two phases. Its stated direction is scheduling decodes alongside subdivided prefill work. That extends the scheduling question suggested by the earlier phase analysis, though it should not be described as merely reusing the same execution plan.

[Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve](https://md.research.elamur.ai/free/en/papers/agrawal-2024-taming-throughput-latency-tradeoff-llm/) explicitly centers the tradeoff that this paper measures through its frontier. The shared evaluation concern is how to obtain useful throughput without unacceptable waiting. Detailed claims about the later system’s scheduling policy or results would require more than the title and citation relationship.

[Llumnix: Dynamic Scheduling for Large Language Model Serving](https://md.research.elamur.ai/free/en/papers/sun-2024-llumnix-dynamic-scheduling-large-language/) moves the discussion toward changing runtime assignments. Its title identifies dynamic scheduling, complementing the static configuration analysis emphasized here. The connection is a broader systems problem: selecting a good execution arrangement and deciding how requests use it are related but distinct tasks.

#### Cache reuse and alternative resource budgets broadened the agenda

[Prompt Cache: Modular Attention Reuse for Low-Latency Inference](https://md.research.elamur.ai/free/en/papers/gim-2023-prompt-cache-modular-attention-reuse/) makes attention reuse its explicit subject. [CachedAttention](https://md.research.elamur.ai/free/en/papers/gao-2024-cost-efficient-large-language-model/) addresses cost-efficient serving for conversations with multiple turns. Both directions connect to the paper’s distinction between processing new input and retaining state from earlier input. Their titles establish the reuse-oriented subject, without documenting an exact dependence on the earlier partitioning formulas.

[FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU](https://md.research.elamur.ai/free/en/papers/sheng-2023-flexgen-high-throughput-generative-inference/) studies a different resource setting from the multi-chip configurations central here. The shared subject is efficient generation under memory constraints. Its stated single-device setting also makes clear why the same general concern does not imply the same optimal communication strategy.

[SGLang: Efficient Execution of Structured Language Model Programs](https://md.research.elamur.ai/free/en/papers/zheng-2023-sglang-efficient-execution-structured-language/) extends the efficiency discussion to structured programs that invoke language generation. [Medusa](https://md.research.elamur.ai/free/en/papers/cai-2024-medusa-simple-llm-inference-acceleration/) names multiple decoding heads as its acceleration direction, while [Draft & Verify](https://md.research.elamur.ai/free/en/papers/zhang-2024-draft-verify-lossless-large-language/) names self-speculative decoding. These titles identify approaches that change the organization of inference work, beyond the placement of a fixed forward pass.

Across these later directions, the enduring contribution of Efficiently Scaling Transformer Inference is its explanation of resource interactions. Workload phase, batch size, context length, representation precision, and hardware topology jointly determine what an optimization can accomplish. Its measured results are specific to the systems evaluated, while its analytical questions remain useful when the surrounding architecture or serving design changes.

## Cite

Cite as Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Anselm Levskaya, Jonathan Heek, Kefan Xiao, Shivani Agrawal and Jeff Dean. 2022. Efficiently Scaling Transformer Inference. arXiv:2211.05102.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2211.05102](https://doi.org/10.48550/arxiv.2211.05102) · [arXiv 2211.05102](https://arxiv.org/abs/2211.05102)

```bibtex
@misc{pope2022efficiently,
  title = {{Efficiently Scaling Transformer Inference}},
  author = {Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Anselm Levskaya, Jonathan Heek, Kefan Xiao, Shivani Agrawal and Jeff Dean},
  year = {2022},
  doi = {10.48550/arxiv.2211.05102},
  eprint = {2211.05102},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2211.05102}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
