Elamur Research

Gemma 2: Improving Open Language Models at a Practical Size

Paper · 2024 · Gemma Team, Morgane Riviere, Shreya Pathak et al.

Summary

A smaller language model is easier to accommodate on limited hardware, but improving it by feeding it more text brings diminishing returns. Gemma 2 investigates a different way to strengthen training: make each prediction target more informative. Rather than asking a small system to learn only which token actually occurred next, the authors train it to reproduce a larger teacher’s probability distribution over possible continuations. This process, called knowledge distillation, supplies information about plausible alternatives as well as the observed continuation. The paper uses it throughout extended training, seeking stronger small systems rather than merely a shorter route to an existing performance level.

The released family contains 2B, 9B, and 27B variants. The smaller variants receive distillation during pretraining; the 27B variant is trained without it. Their training volumes are substantial: 2 trillion tokens for 2B, 8 trillion for 9B, and 13 trillion for 27B. The architecture remains a decoder-only Transformer, with alternating local and global attention, shared attention components through Grouped-Query Attention, bounded attention and output scores, and normalization around its main processing components. Instruction tuning then combines supervised examples, teacher guidance, reinforcement learning from human preferences, and averaging of trained weights.

The authors report broad improvements over earlier Gemma releases and strong comparisons with other open systems of similar size. Their most directly stated conversational results come from blind human comparisons in Chatbot Arena: the instruction-tuned 27B variant receives an Elo rating of 1218, compared with 1206 for Llama 3 70B. The 9B variant receives 1187, close to GPT-4-0314 at 1186. These are preference ratings within that evaluation, rather than universal measures of intelligence or accuracy. Separate studies examine instruction following, safety, and sustained conversation. Controlled training comparisons support the central claim that a teacher’s output probabilities improve learning beyond what ordinary text targets provide.

Gemma 2 therefore joins a training argument to a practical release: compact systems can benefit from richer supervision even after extensive exposure to text. Its evidence also has boundaries. Changes between Gemma generations extend beyond distillation, benchmark formatting affects scores, and conversational preference differs from factual reliability. Training is predominantly English, while instruction tuning uses English text; a vocabulary designed for many languages does not establish strong multilingual performance. The authors investigate memorization and several safety risks, but explicitly leave factuality, adversarial robustness, reasoning, and alignment as unfinished problems. The paper supports a stronger recipe for compact open systems while retaining the need for evaluation in each intended application.

Deep dive: Gemma 2: Improving Open Language Models at a Practical Size

How Gemma 2 combines knowledge distillation, attention changes, and post-training to improve compact open language models. · about 34 minutes to read

The problem and its context

Why training longer was becoming an awkward answer

Progress in language modelling had followed a familiar direction: larger systems, larger training collections, and greater computational expenditure. The paper presents scaling as a major contributor to improvements in language understanding, generation, and reasoning. Its account of the surrounding field includes stronger reasoning benchmarks, multilingual and multimodal capabilities, and context windows extending beyond 1M tokens. Those developments establish an ambitious backdrop, but Gemma 2 addresses a narrower question. How much capability can be brought into a system whose parameter count remains practical?

That question matters because a strong result obtained by a very large system does not automatically make the same capability available under tighter memory constraints. The authors emphasize total parameter count when comparing open systems. Their reason is operational: the memory needed to hold all the parameters frequently determines whether a system fits on an ordinary device. This choice of comparison does not settle every question about deployment cost, but it makes the paper’s intended tradeoff clear. Capability must be assessed alongside the size of the object that users actually need to load.

Earlier small systems had improved substantially by extending training. The paper places the first Gemma generation, Mistral, and Llama within this development. Continued gains suggested that compact networks could still learn more. Yet the gains were becoming expensive to obtain. The introduction describes recent small systems requiring as much as 15T tokens for improvements smaller than 1-2%. This is the motivation for seeking a better training signal: continuing the same procedure can work, while still being an increasingly costly way to advance.

The authors connect this behavior to scaling laws, citing Training Compute-Optimal Large Language Models. Their account distinguishes the usefulness of additional training from the allocation that theory identifies as optimal for a fixed compute budget. A compact network trained for an extremely long time may be useful to deploy even when that training allocation is far beyond the compute-optimal quantity. Training efficiency and deployment practicality are related concerns, but they answer different questions.

Gemma 2 deliberately explores this extended-training regime. For the distilled variants, the authors describe token quantities exceeding the compute-optimal estimate by more than 50×. The goal is not to show that this allocation minimizes training expenditure. It is to improve what a small deployed network can do. A reader should therefore understand “practical size” primarily as a statement about the resulting system, instead of a promise of modest resources throughout development.

What a teacher adds to a text target

Ordinary next-token training provides a narrow target at each position: the token that occurs in the training sequence. In the paper’s terminology, that target can be represented as a one-hot vector. It singles out the observed continuation while assigning no target probability to alternatives. This is a useful learning signal, but a sentence generally does not demonstrate every continuation that could have made sense in its context.

Knowledge distillation changes what is presented as the target. A larger teacher evaluates the same context and assigns probabilities across possible next tokens. The student then learns to approximate that distribution. The teacher may distinguish a plausible alternative from an unrelated continuation even when neither is the observed token. The student’s objective consequently contains more structure than a requirement to increase the probability of a single recorded answer.

The authors attribute the general approach to Distilling the Knowledge in a Neural Network. They explain that distillation is frequently used to accelerate the training of smaller networks by producing a more informative gradient. Gemma 2 changes the emphasis. Instead of ending training sooner, it keeps the richer target over a large volume of tokens. The hypothesis is that the teacher’s distribution can make available text more instructive and support further gains during extended training.

This distinction also clarifies the paper’s language about simulating training beyond available tokens. The method does not create additional observed documents merely by changing the target. It increases the information supplied for each context. The student learns from a teacher’s judgment about the continuation space, rather than only from the single continuation recorded in the corpus.

An architectural combination rather than a new foundation

The architecture follows the decoder-only design associated with Attention Is All You Need and the earlier Gemma report. Gemma 2 retains several earlier choices, including rotary position information and a gated feedforward nonlinearity. Its changes combine established mechanisms instead of replacing the Transformer with a different computational foundation.

For attention, the paper draws on Longformer for the use of restricted and broader attention patterns. It also adopts the mechanism described in GQA, which allows attention queries to share key and value components. These choices address the cost of using the trained network while preserving its ability to integrate context.

The resulting research question has several connected parts. Can a teacher improve compact pretraining after training has already become extensive? Can attention and depth choices support a useful efficiency tradeoff? Can the resulting pretrained network be turned into a capable conversational assistant? The paper investigates all of them, while treating distillation as its central finding. Understanding these separate questions helps avoid attributing every improvement to a single ingredient.

The method, step by step

From documents to a predictive network

The process begins with a collection containing web material, programming code, and scientific writing. Training is predominantly English. The 27B network sees 13 trillion tokens, the 9B network sees 8 trillion, and the 2B network sees 2 trillion. The authors choose the final mixture through data ablations, describing their approach as similar to that used in Gemini.

Before training, the data undergo filtering. The stated aims include reducing harmful material, removing certain kinds of personal or sensitive information, and limiting repeated sensitive content that might later be reproduced. The authors also remove evaluation material from the training mixture. These operations address different problems: harmful examples affect learned behavior, sensitive material creates privacy concerns, and evaluation overlap can make benchmark results misleading.

The paper does not present filtering as a complete solution to any of these problems. It is a preventive layer within a larger procedure that also includes instruction tuning and direct evaluation. A useful way to follow the method is to keep the roles separate. Corpus filtering changes what the network sees; teacher supervision changes what it is asked to predict; post-training changes how it responds to instructions.

From training text to an instruction-tuned Gemma

The steps in order.

From training text to an instruction-tuned GemmaStep 1: Filter documents and remove evaluation overlap1. Filter documents and remove evaluation overlapStep 2: Convert text into shared vocabulary tokens2. Convert text into shared vocabulary tokensStep 3: Build alternating local and global attention3. Build alternating local and global attentionStep 4: Train with teacher probabilities or text targets4. Train with teacher probabilities or text targetsStep 5: Fine-tune on filtered prompt-response examples5. Fine-tune on filtered prompt-response examplesStep 6: Optimize using a learned preference reward6. Optimize using a learned preference rewardStep 7: Average weights from training variants7. Average weights from training variants

Representing text consistently

The tokenizer is inherited from Gemma and Gemini. It uses SentencePiece, with a vocabulary of 256k entries. Tokenization converts the incoming character sequence into the units over which the network predicts. Its choices therefore affect both training examples and the representation of later user input.

The authors specify that digits are separated, whitespace is preserved, and byte-level encodings are available. These are properties of the text representation rather than evidence of success on a particular task. They describe how text enters the network, including material whose spelling or formatting might otherwise be awkward to represent.

The vocabulary was designed to accommodate many languages. The paper explicitly connects its breadth with larger embedding parameter counts than would be required by vocabularies serving fewer languages. Embeddings are the learned representations associated with vocabulary entries; allocating entries broadly has a parameter cost. This is relevant to compact systems because the vocabulary occupies part of the available parameter budget.

A broad vocabulary should not be confused with a broad multilingual training objective. The authors state that these systems were not trained specifically to lead on multilingual capabilities. The method supports representation of diverse text, while the data and instruction-tuning choices remain strongly oriented toward English.

How attention moves information

The network is a decoder-only Transformer. At each position, it processes the context available before the continuation being predicted. Attention supplies a way to select and combine information from that context. Gemma 2 alternates the range of this operation across successive layers.

Local layers use a sliding window spanning 4096 tokens. Global layers can use the full 8192-token context. The distinction concerns direct access within a layer: a local layer works over the restricted neighborhood, while a global layer has a wider view. Alternating them combines restricted processing with repeated opportunities to integrate information across the full supported sequence.

This is more specific than saying that the system simply has local attention. A local window does not define the whole architecture because the broader layers remain part of the computation. Equally, the presence of global layers does not mean every layer pays the cost of attending across the complete context.

The supported context length remains 8192 tokens, as in the earlier Gemma generation. Rotary Position Embeddings, typically shortened to RoPE, supply positional information. The feedforward components use an approximation to GeGLU, a gated nonlinearity inherited from the earlier design. The report names these retained ingredients but does not provide new equations for them.

Gemma 2 also uses Grouped-Query Attention, or GQA. Queries are the attention components that seek relevant information; keys and values supply the components against which that search is performed and the information being combined. GQA permits sharing instead of giving every query head a separate corresponding set of keys and values. The paper specifies num_groups = 2.

The reason for adopting GQA comes from a controlled comparison: the authors find little change in downstream quality while obtaining fewer parameters and faster inference. The method therefore uses a measured architectural tradeoff. It is not based on a claim that sharing attention components is intrinsically more accurate.

Keeping internal scores controlled

Attention and final token prediction both involve scores commonly called logits. Large logits can create very sharp preferences after conversion into probabilities. Gemma 2 applies a smooth bound to these scores:

logits ← soft_cap × tanh(logits / soft_cap)

Here, logits denotes the score or collection of scores being transformed. The left arrow means that the transformed value replaces the original one. soft_cap is the positive scale controlling the bound, and tanh is the hyperbolic tangent function. Multiplication is written with ×, while / denotes division.

The transformation compresses extreme positive and negative values smoothly. Scores remain bounded by the negative and positive cap, without an abrupt clipping threshold. The authors set soft_cap to 50.0 within self-attention and 30.0 for the final prediction layer. These values refer to internal scores, not to sequence lengths or probabilities.

Normalization supplies another stabilizing mechanism. The network applies RMSNorm at both the input and output of the attention and feedforward sublayers. RMSNorm rescales the representation being processed. Placing it around each main sublayer changes how signals enter and leave those computations.

The authors state training stability as the reason for this arrangement. Their ablation discussion does not separately establish how much of the final benchmark improvement comes from soft-capping or from this normalization placement. These mechanisms belong to the implemented recipe, but the evidence for their individual contribution is less direct than the evidence supplied for distillation.

Replacing the observed token with a distribution

For the smaller networks, the central pretraining operation is to match the teacher’s next-token distribution. The paper writes the objective as:

min over P_S: ∑ₓ −P_T(x | x_c) log P_S(x | x_c)

P_T is the teacher’s probability distribution, and P_S is the student’s parameterized probability distribution. The symbol x denotes a candidate next token. The symbol x_c denotes the context on which that prediction depends. The vertical bar means “conditioned on,” and log denotes the logarithm. The summation ∑ₓ ranges over candidate tokens. Minimizing over P_S means adjusting the student’s parameters to reduce this objective.

Each teacher probability weights the penalty associated with the student’s prediction for that token. If the teacher treats a continuation as plausible, assigning it very little student probability becomes costly. The student is therefore trained against a distribution of alternatives, including their relative importance, instead of a target containing only the observed continuation.

This objective explains why teacher quality matters to the logic of the method. The extra information is a larger network’s judgment. It is not an independently verified annotation of every possible continuation. The approach can transfer useful distinctions from the teacher, while retaining dependence on what the teacher has learned.

The 2B and 9B variants receive this kind of pretraining supervision. The 27B variant is trained from scratch without distillation. The report also notes that distillation was used in Gemini 1.5. Gemma 2’s distinctive emphasis is the use of rich probability targets across prolonged compact-network training.

The ablations use a smaller experimental setup to test the mechanism. A 7B teacher supervises a 2B student over 500B tokens, with an ordinary-training counterpart for comparison. The authors choose that relationship to resemble their intended 27B-to-9B setting. This supplies a controlled test without requiring every experimental branch to repeat the full release-scale procedure.

Distributing the training computation

The resulting systems are compact relative to their capabilities, but their training infrastructure is substantial. The 2B run uses TPUv5e hardware in a 2x16x16 arrangement, totaling 512 chips. It has 512-way data replication and 1-way model sharding. Data replication distributes examples across copies of the computation; model sharding partitions the network itself.

For 9B, the authors use TPUv4 hardware in an 8x16x32 arrangement. This run employs 4096 chips, replicating data 1024 ways and sharding the model 4 ways. For the 27B run, 6144 TPUv5p chips are arranged as 8x24x32, using data replication across 768 ways and model sharding across 8 ways.

The optimizer state is partitioned further using an approach similar to ZeRO-3. When training extends beyond a single pod, Pathways supports communication that combines results across data replicas. Jax and Pathways provide the controlling programming framework, while GSPMD partitions the computation and the MegaScale XLA compiler supports execution.

These details establish the scale and organization of training. They should not be read as deployment requirements for a finished checkpoint. They also show why parameter count alone cannot describe the resources needed to create the release.

Turning prediction into instruction following

After pretraining, the authors apply fine-tuning to produce instruction-tuned variants. The first stage is supervised fine-tuning, or SFT. It trains on English text pairs containing a prompt and a response, with both human-generated and synthetic material contributing to the collection.

Responses are predominantly generated by a larger teacher. The student learns to imitate these examples through behavioral cloning, and the authors also apply teacher-distribution guidance on the student’s distribution. Teacher supervision therefore appears both in compact pretraining and in the later process of shaping responses.

The post-training collection extends the earlier Gemma recipe with internal and public sources. One named source is LMSYS-chat-1M. The authors use its prompts while excluding its answers. This distinction identifies what is borrowed: examples of requests, instead of the original conversational responses associated with them.

Synthetic examples undergo additional filtering for sensitive personal information, unsafe material, duplication, and incorrect self-identification. The recipe also includes material encouraging attribution to context, appropriate uncertainty, and refusal where needed. The authors report that such subsets improve factuality metrics without harming the other measured capabilities.

Reinforcement learning from human feedback, or RLHF, follows SFT. A reward network learned from English preference labels provides a signal for adjusting the response-generating policy. In this terminology, the policy is the instruction-tuned network whose behavior is being optimized. Compared with the policy, the reward network is larger by an order of magnitude and gives more weight to conversations spanning multiple turns.

Finally, the authors average weights from variants produced with different hyper-parameter choices. This model-merging stage combines trained parameter values. It differs from asking several systems to answer and then combining their generated text.

The conversation format also changes. The same family of control tokens remains in use, but a completed response now emits <end_of_turn><eos>, rather than ending with <eos> alone. These markers are part of the representation of conversation boundaries. They complete the connection between the pretrained predictor and the instruction-following interface evaluated later.

Experiments and results

What is being measured

The evaluation separates pretrained checkpoints from instruction-tuned ones. Pretrained evaluation asks what the learned predictor can do under benchmark prompting. Instruction-tuned evaluation also measures the behavior developed through examples, preference optimization, and weight averaging. Treating these as separate stages is essential because a strong pretrained score does not directly determine the quality of the final conversational system.

The benchmark coverage includes question answering, commonsense reasoning, mathematics, science, and code generation. Named tasks include BoolQ, Natural Questions, WinoGrande, and Big-Bench Hard. Mathematical and scientific assessment includes GSM8K and MMLU. Coding assessment includes MBPP and HumanEval, associated respectively with program synthesis and evaluation on code.

These tasks measure different kinds of success. Selecting an answer to an academic question, solving a mathematical problem, and producing acceptable code are distinct outcomes. Their scores can support a broad capability comparison, but an average across them should not be interpreted as a single natural unit of intelligence.

The report combines evaluations run by the authors with results reported elsewhere. For comparisons involving Llama 3 8B, it draws on the HuggingFace leaderboard and the corresponding release discussion. That approach increases the available comparison set, while making evaluation compatibility important. The authors explicitly identify cases in which baseline formatting differs from their own.

Pretrained performance at the larger size

The 27B checkpoint is evaluated after ordinary pretraining on 13T tokens. The comparison includes a similarly sized Qwen1.5 system and LLaMA-3 70B, using the HuggingFace evaluation suite. The authors select these comparators according to their leaderboard position.

Their stated result is that Gemma 2 leads its size category in this comparison and approaches the larger LLaMA-3 system. The report describes LLaMA-3 70B as 2.5× larger. This is a comparison of parameter scale, not a measured factor for inference speed, energy, or application cost.

There is a naming inconsistency in the report: the prose names Qwen1.5 34B, while the table caption identifies Qwen1.5 32B. The evidence supports the authors’ intended comparison with a nearby size class, but that discrepancy should not be silently resolved by substituting an assumed identity.

The authors also temper their interpretation. They suggest that the 27B result probably lies on the same performance–size tradeoff curve as the LLaMA-3 family. In other words, a strong point at a smaller size does not itself demonstrate a wholly different scaling relationship. They further note uncertainty about how pretrained differences translate into the quality of instruction-tuned descendants.

This larger checkpoint has a distinct role in the paper’s argument. Because it is trained without distillation, its results establish the quality of the overall architecture and training recipe at that scale. They cannot independently establish the benefit of replacing ordinary targets with teacher probabilities.

Improvements in the distilled variants

The 2B and 9B comparisons include earlier Gemma releases and other standard open systems. The report describes improvements reaching up to 10% on some benchmarks for the 9B variant. This is a statement about selected benchmark gains, instead of an across-the-board average improvement.

For the smaller variant, the comparison is particularly informative about training volume. Gemma 2 2B is trained on 2T tokens, while the earlier Gemma 2B uses 3T. The newer release still improves substantially according to the authors. More raw tokens therefore cannot be the complete explanation of that generational improvement.

The comparison nevertheless changes several ingredients together. Architecture, data decisions, and supervision all belong to the new recipe. Its result supports the effectiveness of the package. The more specific causal evidence for distillation comes from the controlled runs discussed in the ablation section.

The benchmark table distinguishes an average over the 8 tasks shared with the LLaMA-3 comparison from an average over all evaluated tasks. This distinction matters because an aggregate depends on which tasks enter it. A score over the shared subset and a score over the complete collection answer different comparative questions.

The report also gives unusually concrete warnings about evaluation conventions. Under the baseline evaluation used for LLaMA-3, Gemma-1 7B receives 44.9% where the authors’ procedure yields 41.7%; Mistral 7B receives 44% where their procedure yields 41.2%. Another noted setting gives Gemma-1 7B 59.0% instead of 55.1%. These figures illustrate differences between evaluation procedures. They should not be treated as changes in the underlying trained checkpoints.

Blind conversational preference

Chatbot Arena supplies the clearest numerical comparison stated directly in the report’s narrative. Human participants compare responses without seeing the identities of the systems. Results are summarized through Elo ratings, which express comparative preference within the evaluation.

Chatbot Arena instruction-tuned systems, human-preference Elo

The reported Gemma variants compare strongly with larger or established conversational systems.

Chatbot Arena instruction-tuned systems, human-preference EloGemma 2 27B (this paper): 1218Gemma 2 27B (this paper)1218Llama 3 70B: 1206Llama 3 70B1206Gemma 2 9B: 1187Gemma 2 9B1187GPT-4-0314: 1186GPT-4-03141186Gemma 2 2.6B: 1126Gemma 2 2.6B1126GPT-3.5-Turbo-0613: 1116GPT-3.5-Turbo-06131116
The numbers
System or settingElo rating
Gemma 2 27B (this paper)1218
Llama 3 70B1206
Gemma 2 9B1187
GPT-4-03141186
Gemma 2 2.6B1126
GPT-3.5-Turbo-06131116

The Arena discussion names the smallest entrant as 2.6B, while the family is generally described using 2B. Preserving that label avoids implying that every use of the shorter family designation is an exact parameter count.

The comparison supports the paper’s practical-size claim in a meaningful setting: raters prefer responses from compact Gemma variants at levels competitive with larger or established alternatives. It also has a clear scope. Elo is derived from comparative judgments in this evaluation environment. It is not a percentage of correct answers and does not show that one entrant dominates another on every task.

The checkpoint identities matter as well. The report compares the 9B result with GPT-4-0314, not with every system carrying the GPT-4 name. Similarly, the smallest comparison names GPT-3.5-Turbo-0613. Keeping those identities attached to their ratings preserves the actual experimental claim.

Instruction following, safety, and sustained conversation

The authors conduct separate human studies beyond Arena. For single-turn assessment, held-out prompts target instruction following and safety. The comparison uses gpt4o-2024-05-13, with earlier Gemma 1.1 7B providing a generational reference.

Safety is reported through a win–loss ratio against the comparator. Instruction following uses a single-system measure: the proportion of prompts for which every requested instruction is satisfied. These metrics have different denominators and interpretations. A preference win is a comparative judgment, while complete instruction satisfaction checks the response against its request.

The authors report improvement over Gemma 1.1 and state that all Gemma 2 sizes produce safer, more appropriate responses than GPT4o on the held-out safety collection. This result is specific to that collection and its human assessment. It does not establish universal superiority on safety across all possible requests.

Multi-turn evaluation adds a different test. Human raters follow 500 held-out scenarios involving activities such as planning, brainstorming, and learning. The average conversation contains 8.4 user turns. Using a 1-to-5 scale, raters assess both overall satisfaction and how well the conversation’s goal was achieved.

The report states that Gemma 2 improves on Gemma 1.1 in both satisfaction and goal achievement. It also describes better maintenance of response quality as conversations continue. This matters because a strong isolated answer may not predict whether a system can sustain a useful exchange through changes, clarifications, and follow-up requests.

Instruction tuning also improves performance on standard few-shot benchmarks. The authors describe gains of several percentage points and suggest that instruction-tuned systems understand formatted questions more effectively. They present this as a conjecture about the mechanism. The result establishes a change in measured behavior, while the proposed explanation remains less directly tested.

Memorization and personal information

The privacy analysis uses a deliberately narrow definition of memorization. The question is whether suitable prompting can elicit a continuation closely resembling a training example. It does not assume that arbitrary training records can be retrieved at will.

The protocol supplies 50 tokens from training text and tests a continuation of 50 tokens. Exact matching measures verbatim reproduction. Approximate matching permits an edit distance of 10%. Examples are sampled uniformly across the training collection, and the analysis also examines differences between data sources.

The authors report exact memorization rates below 0.1% for Gemma 2. They find greater susceptibility in code, scientific material, and wiki sources than in some other categories. Approximate matching increases the measured rate, but the report describes the overall level as low and the increase as smaller than in earlier systems.

This result concerns prompted continuation under the chosen protocol. It is meaningful evidence of reduced reproduction in that setting, rather than a general guarantee that training information cannot be extracted. The source-level analysis reinforces that distinction: aggregate performance can conceal different exposure patterns across types of material.

For personal information, the authors apply Google Cloud Sensitive Data Protection Tool to memorized output. They report no emitted examples in the highest severity category. Lower-severity personal information appears in 0.00026% of memorized data. The denominator is memorized material examined in this analysis, not all possible output from the deployed system.

The authors also note that automated detection can flag benign strings because it lacks context. They consequently regard the reported personal-information rate as a likely overestimate under this detector. That qualification concerns the measurement process; it does not eliminate the broader need to study privacy.

Safety and capability assurance

The assurance studies examine several different kinds of risk. Closed-ended questions assess knowledge related to chemical, biological, radiological, and nuclear hazards. The authors characterize Gemma’s performance in these domains as low under those evaluations.

Cybersecurity assessment asks the 27B variant to complete capture-the-flag challenges, where success involves retrieving a secret from a simulated target. Among the collections tested are an internal suite, InterCode-CTF, and a challenge built around Hack the Box. Gemma 2 improves over CodeGemma 1.0 7B on the easier InterCode setting, while remaining much less capable than Gemini 1.5 Pro.

The report warns that its InterCode results cannot be directly compared with externally reported scores because internet-dependent challenges are excluded. This is a concrete example of why a shared benchmark name does not guarantee a shared test.

Code vulnerability detection offers another view of technical capability. Gemma 2 performs near chance on PrimeVul, DiverseVul, and SPI, while its SecretPatch result is described as similar to Gemini 1.0 Ultra. These findings concern recognition in the evaluated multiple-choice tasks, rather than reliable security analysis in a working development process.

Self-proliferation studies distinguish intermediate accomplishments from full task completion. The authors test scenarios involving autonomous setup and resource acquisition, including deployment on cloud infrastructure. Gemma 2 completes more milestones than Gemini 1.0 Ultra but remains weak at complete tasks, failing even the easiest challenge described, which involves installing a Bitcoin wallet.

Persuasion studies add human interaction. Gemma 2 shows strong rapport-building, but that strength does not consistently translate into greater success on concealed goals, charitable donation, or false-belief persuasion. In the donation study, participants begin with a £20 bonus, and the report finds no significant difference from a baseline that simply asks how much they would donate. These results show why conversational appeal and successful persuasion should be measured separately.

What the ablations show

Distillation under a shared training budget

The most direct experiment compares ordinary training with teacher-supervised training for a 2B student over 500B tokens. The teacher has 7B parameters. Holding student size and training-token exposure fixed makes this comparison more informative about the objective than a comparison between complete product generations.

The authors report better performance with distillation. They also emphasize that 500B tokens already represents 10× the compute-optimal quantity for the 2B setting. The benefit therefore appears after substantial training, rather than being confined to a short introductory phase.

This supports the paper’s main interpretation: richer targets remain useful when a compact network has already seen many tokens. It does not by itself establish that the same gain continues indefinitely, or that every teacher–student pairing will behave similarly.

The choice of teacher scale has a particular purpose. The authors use the 7B-to-2B experiment to approximate the relationship of the intended 27B-to-9B setting. This is an experimental stand-in, allowing the mechanism to be tested at lower cost. Its value is controlled evidence, while its limit is the difference between the ablation scale and the full release.

Whether the benefit survives changes in student size

A further comparison examines students of different sizes with and without distillation. The teacher remains fixed at 7B, and evaluation uses perplexity on a validation set.

Perplexity summarizes how well a predictive distribution assigns probability to held-out text. Lower values indicate a better fit under the evaluation procedure. This gives a different view from academic answer accuracy or conversational preference: it assesses the predictor directly on text continuation.

The authors report that the distillation advantage persists as student size increases. This weakens the interpretation that the earlier result is merely a quirk of a single compact configuration. It supports a broader teacher-supervision effect within the tested range.

A fixed teacher also sets a boundary on the inference. The experiment does not map the full relationship among teacher capacity, student capacity, and training duration. It asks whether the advantage remains visible across the selected students. That is useful evidence of persistence, instead of a complete law for choosing a teacher.

Sharing attention components

The GQA comparison uses two 9B instances, one with ordinary Multi-Head Attention and one with Grouped-Query Attention. The report summarizes performance across 4 benchmarks and finds little overall change.

The decision to use GQA follows from efficiency: it reduces parameter requirements and increases inference speed. This is a case where the preferred setting does not need a substantial accuracy advantage to be worthwhile. Preserving task performance while reducing operating cost is itself relevant to the paper’s goal.

The result also helps explain the architecture without overstating it. GQA belongs to the practical recipe because the authors find a favorable tradeoff. The comparison does not show that GQA is responsible for the major capability gains attributed to richer training.

Allocating parameters to depth

The width–depth ablation compares 9B networks with the same parameter budget. A wider network allocates more capacity within layers; a deeper network allocates more processing stages.

Across 4 benchmarks, the deeper setting performs slightly better. The authors describe the difference as small but consistent, and use it to justify the deeper design.

Matching parameter counts is important because otherwise a better score might simply reflect a larger network. Here, the experiment instead asks how to allocate a fixed capacity budget. The conclusion remains local to the tested designs: the paper favors its deeper alternative, instead of establishing that greater depth always beats greater width.

This result contributes to the final system through accumulation of design choices. It is smaller in emphasis than the distillation finding, but it helps account for why the released architecture differs from its predecessor.

Adjusting local attention after training

Another analysis changes the local attention window during inference for the 9B system. The authors report a moderate effect on perplexity and identify the window as a possible source of small inference-speed improvements.

This is a useful distinction between a training choice and a deployment adjustment. The network is trained with a particular local window, yet the inference procedure can alter that restriction. The test asks how sensitive held-out prediction is to that change.

The global layers remain relevant when interpreting the result. Adjusting local access does not remove every route to broader context, because the architecture also contains full-context attention layers.

Perplexity provides evidence about predictive fit, but it is not an exhaustive test of every use of distant information. A modest average effect does not establish unchanged behavior on tasks that depend heavily on particular remote passages. The analysis supports flexibility, with a task-specific qualification.

Sensitivity to question formatting

The formatting analysis evaluates MMLU under 12 combinations of prompt presentation and evaluation choices. It reports the standard deviation of scores across those combinations as an indicator of unwanted variability.

The authors find that the smaller Gemma variants are somewhat less robust than the larger ones. They also report substantially greater variability for Mistral 7B than for their systems.

This analysis changes how benchmark scores should be read. A single score reflects both the trained network and the way the question is presented and scored. Lower variability is valuable because it reduces the dependence of a conclusion on an arbitrary interface choice.

The result also connects with the post-training discussion. Instruction-tuned checkpoints improve on formatted academic questions, and the authors suggest that better interpretation of such formats may contribute. The formatting ablation makes that explanation plausible, but it does not directly separate improved format handling from every other effect of instruction tuning.

Taken together, the controlled comparisons support several different claims: teacher probabilities improve learning, shared attention can preserve quality while aiding efficiency, deeper allocation helps within the tested budget, and evaluation remains sensitive to presentation. Keeping these claims separate gives a more precise account of why the overall recipe works.

Limitations

Limits explicitly acknowledged by the authors

The authors state that their evaluations cannot represent every application or operating condition. Their recommendation for deployment is consequently use-case-specific safety testing. This follows directly from the gap between a finite evaluation collection and the variety of requests, interfaces, and environments that downstream developers may create.

The release is also limited in modality and language objective. Gemma 2 processes text instead of providing multimodal capability. Pretraining is predominantly English, and the described instruction and preference data are English-only. The authors explicitly avoid claiming that these systems were trained to achieve leading multilingual performance.

That qualification is especially relevant because the tokenizer has broad language coverage. Representing text is a prerequisite for processing it, but representation alone does not demonstrate reliable understanding, reasoning, or response quality in that language. Performance outside the main training emphasis requires direct measurement.

The conclusion identifies factuality, resistance to adversarial attacks, reasoning, and alignment as areas needing further research. Stronger conversational preference does not remove those unresolved problems. Nor do lower measured policy violations establish that harmful behavior has been eliminated.

Some evaluation limitations are unusually concrete. The authors exclude internet-dependent InterCode challenges, making their cybersecurity results incompatible with some external reports. They also acknowledge that automated personal-information detection can produce false positives. These are stated restrictions on interpreting particular measurements.

Their broader release assessment is a judgment instead of an experimentally proven outcome. The authors expect a negligible change in the overall risk landscape because more capable open systems already exist, and they anticipate a positive community impact. Those views explain their decision to release the weights. The benchmark and assurance studies do not by themselves establish the eventual balance of benefits and harms.

What the comparisons do not isolate

A careful reader should distinguish the controlled distillation experiments from the complete release comparison. Gemma 2 differs from the earlier generation in architecture, data decisions, and post-training as well as in teacher supervision. A generational improvement therefore cannot be assigned entirely to distillation.

The ablations provide a stronger basis for that narrower claim because they compare training objectives under shared conditions. Still, their scale and teacher–student choices do not exhaust the design space. They support the value of teacher probabilities in the tested settings, without establishing an optimal distillation recipe for every compact network.

The report’s post-training description also leaves important causal questions open. Supervised examples, teacher guidance, a larger reward network, filtering, and weight averaging all contribute to the final process. The narrative does not separately quantify the contribution of every stage. A reader can understand the sequence and its motivation without being able to attribute the final Arena result to a particular component.

Likewise, soft-capping and normalization are described as part of the architecture, but the reported ablation discussion does not isolate their individual benefits. Their inclusion is a fact about the recipe. A precise estimate of their effect would require a corresponding controlled comparison.

Practical size does not describe every cost

The paper’s total-parameter comparison is well motivated by memory constraints, but parameter count is only one aspect of practicality. It does not fully specify response latency, throughput, context-processing expense, or the resources needed for a particular application.

The training infrastructure makes a further distinction visible. A compact checkpoint can require a large distributed run to create. Distillation also depends on access to teacher probabilities. The paper establishes a route to stronger small deployed systems; it does not establish that developing such systems is inexpensive.

The authors estimate pretraining emissions at 1247.61 tCO₂ eq. Their calculation uses reported hourly energy consumption and an adjustment for data-center overhead. They separately describe Google’s carbon-neutral operation in terms of efficiency, renewable purchases, and offsets.

Those statements concern different accounting ideas. The numerical estimate reports attributed emissions from pretraining under the stated method. The neutrality statement concerns how the organization accounts for and offsets its operations. Neither should be substituted for a complete lifecycle comparison among alternative training approaches.

The paper also does not demonstrate an optimal allocation between teacher use and additional ordinary training. Its main controlled result shows that richer supervision helps. Establishing the best overall resource allocation would require a more complete accounting across teacher computation, student computation, data access, and the desired deployed capability.

Evaluation is narrower than general competence

Arena ratings measure comparative human preference. They can reward useful instruction following, clear expression, and conversational quality, but they are not direct guarantees of correctness. A response can be appealing while containing an error, and a system can perform differently across task types.

Academic benchmarks introduce their own limits. The report’s formatting analysis demonstrates that presentation and scoring choices affect MMLU results. The mixture of author-run and externally reported baselines therefore deserves attention, especially when the reported differences between systems are modest.

The authors’ observations about improved few-shot scores after instruction tuning are also open to more than one explanation. Better handling of formatted questions is plausible and explicitly offered as a conjecture. The evaluation does not isolate that mechanism from broader changes in response behavior.

Multi-turn studies offer a richer interaction test, but the scenarios remain a held-out collection designed for the study. They establish better behavior under those conditions. They cannot represent every long conversation, domain-specific workflow, or pattern of user correction.

Privacy and safety remain conditional findings

The memorization test is a particular attack setting: a supplied training prefix followed by a measured continuation. A low reproduction rate under that setup does not establish that every other extraction strategy will fail.

The same caution applies to personal information. No observed high-severity example in the tested output is a valuable result, but absence in a finite evaluation is different from impossibility. The lower-severity percentage also refers to a specific analyzed set, so it should not be generalized into a universal rate for user interactions.

Safety filtering and preference optimization may reduce harmful responses without eliminating factual errors or adversarial vulnerabilities. The authors’ emphasis on downstream responsibility follows from this conditional nature of the evidence. An application’s surrounding tools and permissions can change what consequences follow from an answer.

The persuasion studies illustrate why risk assessment needs several measures. Gemma 2 is strong at building rapport, yet it does not show a corresponding universal advantage on concealed-goal or donation tasks. Treating conversational warmth as a direct measure of manipulation would oversimplify those findings.

Similarly, partial progress in self-proliferation differs from complete autonomous success. Reporting milestones and expert assistance gives a more informative picture than a single label of capable or incapable. The remaining uncertainty concerns how those measured subskills behave when combined with different interfaces, support, or task conditions.

What came after

A successor and a wider citing landscape

Gemma 3 is the most direct continuation identified among the citing works. Its title establishes a subsequent report in the same family. The citation places Gemma 2 within that continuing development, but does not by itself show which architectural components or training settings were retained. A claim that the successor reused a particular attention pattern, distillation objective, or merging procedure would require evidence beyond the citation relationship.

This distinction applies throughout the later literature. A work can cite Gemma 2 as a comparison system, an architectural precedent, an available checkpoint, or part of a survey. Citation establishes engagement; it does not automatically establish adoption. The later record therefore shows the areas in which Gemma 2 became relevant more clearly than it shows the precise mechanism of influence in every case.

The citing landscape is broad. It includes subsequent compact-system reports, work on post-training, evaluation studies, multilingual development, and inference infrastructure. These areas correspond to different parts of Gemma 2’s contribution. Its significance was not confined to the distillation objective: the release also supplied systems to compare, a practical architecture to examine, and evidence about how capability and deployment size can be balanced.

Compact systems and post-training

SmolLM2 identifies data-centered training of a small system as its subject. Its citation places Gemma 2 alongside a continuing effort to improve compact networks through choices beyond parameter growth. The available record does not establish that SmolLM2 uses Gemma 2’s teacher-distribution objective. The supported connection is the shared concern with making limited capacity more effective through training design.

A Comprehensive Survey of Small Language Models provides a broader setting for the same concern. Its stated scope includes techniques, enhancements, applications, collaboration with larger systems, and trustworthiness. Gemma 2 is relevant across those themes because it combines compact deployment, teacher supervision, and safety investigation. The citation identifies it as part of that literature, without supplying a survey-specific judgment about which component matters most.

Tulu 3 concerns open-system post-training. That makes its relationship to Gemma 2 particularly useful for separating pretraining from assistant behavior. Gemma 2’s results already show that conversational quality emerges from a pipeline extending beyond the base predictor. The later work’s title establishes continued attention to that pipeline, but the citation alone does not demonstrate reuse of Gemma’s reward network, filtering mixture, or weight averaging.

Phi-4-Mini adds another compact-system direction, with multimodality and Mixture-of-LoRAs named in its title. Its citation indicates that Gemma 2 became part of the surrounding compact-system literature. The architectural and modality differences named by that title should not be flattened into a claim that the later system simply extends the same recipe.

Architecture and inference

ModernBERT studies a bidirectional encoder with an emphasis on speed, memory efficiency, and long-context use. Its citation shows that Gemma 2 was relevant beyond decoder-only text generation. The connection is to a wider effort to improve Transformer practicality through architecture and implementation. The available description does not identify a specific Gemma mechanism as the one adopted.

FlashInfer focuses on an attention engine for inference serving. This places the citing work on the execution side of the problem. Gemma 2 combines local attention, global attention, and grouped queries, making attention implementation part of its practical story. The citation does not establish a measured serving improvement for Gemma 2, but it locates the report within literature concerned with running such architectures efficiently.

A Comprehensive Survey on Long Context Language Modeling places Gemma 2 in another architectural discussion. The original report’s alternating attention spans are relevant to how networks manage access to context. That relevance should not be mistaken for evidence that Gemma 2 itself demonstrated the much longer contexts studied elsewhere.

Evaluation, reasoning, and reward signals

GSM-Symbolic addresses limitations of mathematical reasoning. Its citation broadens the context around Gemma 2’s mathematical benchmark results. It identifies a later research direction concerned with what such scores reveal about reasoning, while the supplied record does not give a Gemma-specific outcome from that study.

Arena-Hard and BenchBuilder concerns turning crowdsourced material into evaluation benchmarks. Its relationship is especially pertinent to a report whose headline conversational evidence comes from human preference comparisons. The citation establishes contact between the work and Gemma 2; it does not establish that a particular Arena-Hard result reproduces or overturns the reported Arena ordering.

SuperGPQA names evaluation across 285 graduate disciplines as its scope. It represents a broader academic assessment direction among Gemma 2’s citing works. That scope differs from conversational preference and reinforces the need to keep distinct kinds of evidence separate, without supplying an additional Gemma 2 score.

Generative Verifiers and Skywork-Reward belong to the reward-modelling branch of the citing literature. Their titles establish continued investigation of the signals used to judge and optimize responses. Gemma 2’s larger reward network makes this a relevant connection, although the citation record does not specify direct inheritance of its reward-training procedure.

Languages and the reach of compact releases

EuroLLM names multilingual development for Europe as its subject. IrokoBench concerns evaluation for African languages, while AraDiCE emphasizes dialectal and cultural capabilities. Their citations place Gemma 2 within a wider discussion of language coverage and evaluation.

That relationship is particularly important given the original report’s explicit boundary: a broad tokenizer accompanies predominantly English training, without a claim to leading multilingual performance. The later works identify areas where language-specific development or assessment matters. Their citation of Gemma 2 does not establish that its multilingual limitations have been resolved.

Across these directions, the supported later influence is broad engagement with compact capability, training design, evaluation, and execution. The record establishes Gemma 2 as a point of reference across those problems. More specific claims about inherited mechanisms or subsequent improvements must remain tied to the later studies’ own evidence.

Cite

Cite as Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, Johan Ferret, Peter Liu, Pouya Tafti, Abe Friesen, Michelle Casbon, Sabela Ramos, Ravin Kumar, Charline Le Lan, Sammy Jerome, Anton Tsitsulin, Nino Vieillard, Piotr Stanczyk, Sertan Girgin, Nikola Momchev, Matt Hoffman, Shantanu Thakoor, Jean-Bastien Grill, Behnam Neyshabur, Olivier Bachem, Alanna Walton, Aliaksei Severyn, Alicia Parrish, Aliya Ahmad, Allen Hutchison, Alvin Abdagic, Amanda Carl, Amy Shen, Andy Brock, Andy Coenen, Anthony Laforge, Antonia Paterson, Ben Bastian, Bilal Piot, Bo Wu, Brandon Royal, Charlie Chen, Chintu Kumar, Chris Perry, Chris Welty, Christopher A. Choquette-Choo, Danila Sinopalnikov, David Weinberger, Dimple Vijaykumar, Dominika Rogozińska, Dustin Herbison, Elisa Bandy, Emma Wang, Eric Noland, Erica Moreira, Evan Senter, Evgenii Eltyshev, Francesco Visin, Gabriel Rasskin, Gary Wei, Glenn Cameron, Gus Martins, Hadi Hashemi, Hanna Klimczak-Plucińska, Harleen Batra, Harsh Dhand, Ivan Nardini, Jacinda Mein, Jack Zhou, James Svensson, Jeff Stanway, Jetha Chan, Jin Peng Zhou, Joana Carrasqueira, Joana Iljazi, Jocelyn Becker, Joe Fernandez, Joost van Amersfoort, Josh Gordon, Josh Lipschultz, Josh Newlan, Ju-yeong Ji, Kareem Mohamed, Kartikeya Badola, Kat Black, Katie Millican, Keelin McDonell, Kelvin Nguyen, Kiranbir Sodhia, Kish Greene, Lars Lowe Sjoesund, Lauren Usui, Laurent Sifre, Lena Heuermann, Leticia Lago, Lilly McNealus, Livio Baldini Soares, Logan Kilpatrick, Lucas Dixon, Luciano Martins, Machel Reid, Manvinder Singh, Mark Iverson, Martin Görner, Mat Velloso, Mateo Wirth, Matt Davidow, Matt Miller, Matthew Rahtz, Matthew Watson, Meg Risdal, Mehran Kazemi, Michael Moynihan, Ming Zhang, Minsuk Kahng, Minwoo Park, Mofi Rahman, Mohit Khatwani, Natalie Dao, Nenshad Bardoliwalla, Nesh Devanathan, Neta Dumai, Nilay Chauhan, Oscar Wahltinez, Pankil Botarda, Parker Barnes, Paul Barham, Paul Michel, Pengchong Jin, Petko Georgiev, Phil Culliton, Pradeep Kuppala, Ramona Comanescu, Ramona Merhej, Reena Jana, Reza Ardeshir Rokni, Rishabh Agarwal, Ryan Mullins, Samaneh Saadat, Sara Mc Carthy, Sarah Cogan, Sarah Perrin, Sébastien M. R. Arnold, Sebastian Krause, Shengyang Dai, Shruti Garg, Shruti Sheth, Sue Ronstrom, Susan Chan, Timothy Jordan, Ting Yu, Tom Eccles, Tom Hennigan, Tomas Kocisky, Tulsee Doshi, Vihan Jain, Vikas Yadav, Vilobh Meshram, Vishal Dharmadhikari, Warren Barkley, Wei Wei, Wenming Ye, Woohyun Han, Woosuk Kwon, Xiang Xu, Zhe Shen, Zhitao Gong, Zichuan Wei, Victor Cotruta, Phoebe Kirk, Anand Rao, Minh Giang, Ludovic Peran, Tris Warkentin, Eli Collins, Joelle Barral, Zoubin Ghahramani, Raia Hadsell, D. Sculley, Jeanine Banks, Anca Dragan, Slav Petrov, Oriol Vinyals, Jeff Dean, Demis Hassabis, Koray Kavukcuoglu, Clement Farabet, Elena Buchatskaya, Sebastian Borgeaud, Noah Fiedel, Armand Joulin, Kathleen Kenealy, Robert Dadashi and Alek Andreev. 2024. Gemma 2: Improving Open Language Models at a Practical Size. arXiv:2408.00118.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2408.00118 · arXiv 2408.00118

@misc{team2024gemma,
  title = {{Gemma 2: Improving Open Language Models at a Practical Size}},
  author = {Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, Johan Ferret, Peter Liu, Pouya Tafti, Abe Friesen, Michelle Casbon, Sabela Ramos, Ravin Kumar, Charline {Le Lan}, Sammy Jerome, Anton Tsitsulin, Nino Vieillard, Piotr Stanczyk, Sertan Girgin, Nikola Momchev, Matt Hoffman, Shantanu Thakoor, Jean-Bastien Grill, Behnam Neyshabur, Olivier Bachem, Alanna Walton, Aliaksei Severyn, Alicia Parrish, Aliya Ahmad, Allen Hutchison, Alvin Abdagic, Amanda Carl, Amy Shen, Andy Brock, Andy Coenen, Anthony Laforge, Antonia Paterson, Ben Bastian, Bilal Piot, Bo Wu, Brandon Royal, Charlie Chen, Chintu Kumar, Chris Perry, Chris Welty, Christopher A. Choquette-Choo, Danila Sinopalnikov, David Weinberger, Dimple Vijaykumar, Dominika Rogozińska, Dustin Herbison, Elisa Bandy, Emma Wang, Eric Noland, Erica Moreira, Evan Senter, Evgenii Eltyshev, Francesco Visin, Gabriel Rasskin, Gary Wei, Glenn Cameron, Gus Martins, Hadi Hashemi, Hanna Klimczak-Plucińska, Harleen Batra, Harsh Dhand, Ivan Nardini, Jacinda Mein, Jack Zhou, James Svensson, Jeff Stanway, Jetha Chan, Jin Peng Zhou, Joana Carrasqueira, Joana Iljazi, Jocelyn Becker, Joe Fernandez, Joost {van Amersfoort}, Josh Gordon, Josh Lipschultz, Josh Newlan, Ju-yeong Ji, Kareem Mohamed, Kartikeya Badola, Kat Black, Katie Millican, Keelin McDonell, Kelvin Nguyen, Kiranbir Sodhia, Kish Greene, Lars Lowe Sjoesund, Lauren Usui, Laurent Sifre, Lena Heuermann, Leticia Lago, Lilly McNealus, Livio Baldini Soares, Logan Kilpatrick, Lucas Dixon, Luciano Martins, Machel Reid, Manvinder Singh, Mark Iverson, Martin Görner, Mat Velloso, Mateo Wirth, Matt Davidow, Matt Miller, Matthew Rahtz, Matthew Watson, Meg Risdal, Mehran Kazemi, Michael Moynihan, Ming Zhang, Minsuk Kahng, Minwoo Park, Mofi Rahman, Mohit Khatwani, Natalie Dao, Nenshad Bardoliwalla, Nesh Devanathan, Neta Dumai, Nilay Chauhan, Oscar Wahltinez, Pankil Botarda, Parker Barnes, Paul Barham, Paul Michel, Pengchong Jin, Petko Georgiev, Phil Culliton, Pradeep Kuppala, Ramona Comanescu, Ramona Merhej, Reena Jana, Reza Ardeshir Rokni, Rishabh Agarwal, Ryan Mullins, Samaneh Saadat, Sara Mc Carthy, Sarah Cogan, Sarah Perrin, Sébastien M. R. Arnold, Sebastian Krause, Shengyang Dai, Shruti Garg, Shruti Sheth, Sue Ronstrom, Susan Chan, Timothy Jordan, Ting Yu, Tom Eccles, Tom Hennigan, Tomas Kocisky, Tulsee Doshi, Vihan Jain, Vikas Yadav, Vilobh Meshram, Vishal Dharmadhikari, Warren Barkley, Wei Wei, Wenming Ye, Woohyun Han, Woosuk Kwon, Xiang Xu, Zhe Shen, Zhitao Gong, Zichuan Wei, Victor Cotruta, Phoebe Kirk, Anand Rao, Minh Giang, Ludovic Peran, Tris Warkentin, Eli Collins, Joelle Barral, Zoubin Ghahramani, Raia Hadsell, D. Sculley, Jeanine Banks, Anca Dragan, Slav Petrov, Oriol Vinyals, Jeff Dean, Demis Hassabis, Koray Kavukcuoglu, Clement Farabet, Elena Buchatskaya, Sebastian Borgeaud, Noah Fiedel, Armand Joulin, Kathleen Kenealy, Robert Dadashi and Alek Andreev},
  year = {2024},
  doi = {10.48550/arxiv.2408.00118},
  eprint = {2408.00118},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2408.00118}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/gemma-2024-team-gemma-2-improving-open-language/

References

58 references, from the paper's own bibliography.

  1. J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023. our card
  2. R. Agarwal, N. Vieillard, Y. Zhou, P. Stanczyk, S. R. Garea, M. Geist, and O. Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations, 2024. our card
  3. AI@Meta. Llama 3 model card, 2024. URL https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md. OpenAlex ↗ · Scholar ↗
  4. J. Ainslie, J. Lee-Thorp, M. de Jong, Y. Zemlyanskiy, F. Lebrón, and S. Sanghai. Gqa: Training generalized multi-query transformer models from multi-head checkpoints. arXiv preprint arXiv:2305.13245, 2023. our card
  5. E. Almazrouei, H. Alobeidli, A. Alshamsi, A. Cappelli, R. Cojocaru, M. Debbah, Étienne Goffinet, D. Hesslow, J. Launay, Q. Malartic, D. Mazzotta, B. Noune, B. Pannier, and G. Penedo. The falcon series of open language models, 2023. our card
  6. R. Anil, A. M. Dai, O. Firat, M. Johnson, D. Lepikhin, A. Passos, S. Shakeri, E. Taropa, P. Bailey, Z. Chen, et al. Palm 2 technical report. arXiv preprint arXiv:2305.10403, 2023. our card
  7. J. Austin, A. Odena, M. I. Nye, M. Bosma, H. Michalewski, D. Dohan, E. Jiang, C. J. Cai, M. Terry, Q. V. Le, and C. Sutton. Program synthesis with large language models. CoRR, abs/2108.07732, 2021. URL https://arxiv.org/abs/2108.07732. our card
  8. P. Barham, A. Chowdhery, J. Dean, S. Ghemawat, S. Hand, D. Hurt, M. Isard, H. Lim, R. Pang, S. Roy, B. Saeta, P. Schuh, R. Sepassi, L. E. Shafey, C. A. Thekkath, and Y. Wu. Pathways: Asynchronous distributed dataflow for ml, 2022. our card
  9. I. Bello, H. Pham, Q. V. Le, M. Norouzi, and S. Bengio. Neural combinatorial optimization with reinforcement learning. CoRR, abs/1611.09940, 2016. URL http://arxiv.org/abs/1611.09940. OpenAlex ↗ · Scholar ↗
  10. I. Beltagy, M. E. Peters, and A. Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020a. our card
  11. I. Beltagy, M. E. Peters, and A. Cohan. Longformer: The long-document transformer. CoRR, abs/2004.05150, 2020b. URL https://arxiv.org/abs/2004.05150. our card
  12. T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. Language models are few-shot learners. CoRR, abs/2005.14165, 2020. URL https://arxiv.org/abs/2005.14165. our card
  13. N. Carlini, D. Ippolito, M. Jagielski, K. Lee, F. Tramer, and C. Zhang. Quantifying memorization across neural language models. arXiv preprint arXiv:2202.07646, 2022. OpenAlex ↗ · Scholar ↗
  14. M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. de Oliveira Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, A. Ray, R. Puri, G. Krueger, M. Petrov, H. Khlaaf, G. Sastry, P. Mishkin, B. Chan, S. Gray, N. Ryder, M. Pavlov, A. Power, L. Kaiser, M. Bavarian, C. Winter, P. Tillet, F. P. Such, D. Cummings, M. Plappert, F. Chantzis, E. Barnes, A. Herbert-Voss, W. H. Guss, A. Nichol, A. Paino, N. Tezak, J. Tang, I. Babuschkin, S. Balaji, S. Jain, W. Saunders, C. Hesse, A. N. Carr, J. Leike, J. Achiam, V. Misra, E. Morikawa, A. Radford, M. Knight, M. Brundage, M. Murati, K. Mayer, P. Welinder, B. McGrew, D. Amodei, S. McCandlish, I. Sutskever, and W. Zaremba. Evaluating large language models trained on code. CoRR, abs/2107.03374, 2021. URL https://arxiv.org/abs/2107.03374. our card
  15. W.-L. Chiang, L. Zheng, Y. Sheng, A. N. Angelopoulos, T. Li, D. Li, H. Zhang, B. Zhu, M. Jordan, J. E. Gonzalez, and I. Stoica. Chatbot arena: An open platform for evaluating llms by human preference, 2024. our card
  16. C. Clark, K. Lee, M. Chang, T. Kwiatkowski, M. Collins, and K. Toutanova. Boolq: Exploring the surprising difficulty of natural yes/no questions. CoRR, abs/1905.10044, 2019. URL http://arxiv.org/abs/1905.10044. our card
  17. K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, and J. Schulman. Training verifiers to solve math word problems. CoRR, abs/2110.14168, 2021. URL https://arxiv.org/abs/2110.14168. our card
  18. Gemini Team. Gemini: A family of highly capable multimodal models, 2023. our card
  19. Gemini Team. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context, 2024. our card
  20. Gemma Team. Gemma: Open models based on gemini research and technology, 2024. our card
  21. Y. Gu, L. Dong, F. Wei, and M. Huang. Minillm: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations, 2024. OpenAlex ↗ · Scholar ↗
  22. D. Hendrycks, C. Burns, S. Basart, A. Zou, M. Mazeika, D. Song, and J. Steinhardt. Measuring massive multitask language understanding. CoRR, abs/2009.03300, 2020. URL https://arxiv.org/abs/2009.03300. our card
  23. G. Hinton, O. Vinyals, and J. Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. our card
  24. J. Hoffmann, S. Borgeaud, A. Mensch, E. Buchatskaya, T. Cai, E. Rutherford, D. d. L. Casas, L. A. Hendricks, J. Welbl, A. Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. our card
  25. D. Ippolito, F. Tramèr, M. Nasr, C. Zhang, M. Jagielski, K. Lee, C. A. Choquette-Choo, and N. Carlini. Preventing verbatim memorization in language models gives a false sense of privacy. arXiv preprint arXiv:2210.17546, 2022. OpenAlex ↗ · Scholar ↗
  26. A. Q. Jiang, A. Sablayrolles, A. Mensch, C. Bamford, D. S. Chaplot, D. de las Casas, F. Bressand, G. Lengyel, G. Lample, L. Saulnier, L. R. Lavaud, M.-A. Lachaux, P. Stock, T. L. Scao, T. Lavril, T. Wang, T. Lacroix, and W. E. Sayed. Mistral 7b, 2023. OpenAlex ↗ · Scholar ↗
  27. M. Kahng, I. Tenney, M. Pushkarna, M. X. Liu, J. Wexler, E. Reif, K. Kallarackal, M. Chang, M. Terry, and L. Dixon. Llm comparator: Visual analytics for side-by-side evaluation of large language models, 2024. URL https://arxiv.org/abs/2402.10524. OpenAlex ↗ · Scholar ↗
  28. M. Kinniment, L. J. K. Sato, H. Du, B. Goodrich, M. Hasin, L. Chan, L. H. Miles, T. R. Lin, H. Wijk, J. Burget, A. Ho, E. Barnes, and P. Christiano. Evaluating language-model agents on realistic autonomous tasks, 2024. URL https://arxiv.org/abs/2312.11671. OpenAlex ↗ · Scholar ↗
  29. T. Kudo and J. Richardson. SentencePiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. In E. Blanco and W. Lu, editors, Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 66–71, Brussels, Belgium, Nov. 2018. Association for Computational Linguistics. . URL https://aclanthology.org/D18-2012. our card
  30. S. Kudugunta, I. Caswell, B. Zhang, X. Garcia, C. A. Choquette-Choo, K. Lee, D. Xin, A. Kusupati, R. Stella, A. Bapna, et al. Madlad-400: A multilingual and document-level large audited dataset. arXiv preprint arXiv:2309.04662, 2023. our card
  31. T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, K. Toutanova, L. Jones, M. Kelcey, M.-W. Chang, A. M. Dai, J. Uszkoreit, Q. Le, and S. Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:0 452–466, 2019. . URL https://aclanthology.org/Q19-1026. our card
  32. Z. Lin, J. Cui, X. Liao, and X. Wang. Malla: Demystifying real-world large language model integrated malicious services, 2024. URL https://arxiv.org/abs/2401.03315. OpenAlex ↗ · Scholar ↗
  33. M. Luong, H. Pham, and C. D. Manning. Effective approaches to attention-based neural machine translation. CoRR, abs/1508.04025, 2015. URL http://arxiv.org/abs/1508.04025. our card
  34. Macknight, Aung, and Gomes. Personal Communication, 2024. OpenAlex ↗ · Scholar ↗
  35. M. Mozes, J. Hoffmann, K. Tomanek, M. Kouate, N. Thain, A. Yuan, T. Bolukbasi, and L. Dixon. Towards agile text classifiers for everyone, 2023. URL https://arxiv.org/abs/2302.06541. OpenAlex ↗ · Scholar ↗
  36. M. Nasr, N. Carlini, J. Hayase, M. Jagielski, A. F. Cooper, D. Ippolito, C. A. Choquette-Choo, E. Wallace, F. Tramèr, and K. Lee. Scalable extraction of training data from (production) language models. arXiv preprint arXiv:2311.17035, 2023. our card
  37. M. Phuong, M. Aitchison, E. Catt, S. Cogan, A. Kaskasoli, V. Krakovna, D. Lindner, M. Rahtz, Y. Assael, S. Hodkinson, H. Howard, T. Lieberum, R. Kumar, M. A. Raad, A. Webson, L. Ho, S. Lin, S. Farquhar, M. Hutter, G. Deletang, A. Ruoss, S. El-Sayed, S. Brown, A. Dragan, R. Shah, A. Dafoe, and T. Shevlane. Evaluating frontier models for dangerous capabilities, 2024. URL https://arxiv.org/abs/2403.13793. our card
  38. A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever. Language models are unsupervised multitask learners, 2019. OpenAlex ↗ · Scholar ↗
  39. C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. CoRR, abs/1910.10683, 2019. URL http://arxiv.org/abs/1910.10683. our card
  40. A. Ramé, J. Ferret, N. Vieillard, R. Dadashi, L. Hussenot, P.-L. Cedoz, P. G. Sessa, S. Girgin, A. Douillard, and O. Bachem. Warp: On the benefits of weight averaged rewarded policies, 2024. OpenAlex ↗ · Scholar ↗
  41. J. Ren, S. Rajbhandari, R. Y. Aminabadi, O. Ruwase, S. Yang, M. Zhang, D. Li, and Y. He. $\{$Zero-offload$\}$: Democratizing $\{$billion-scale$\}$ model training. In 2021 USENIX Annual Technical Conference (USENIX ATC 21), pages 551–564, 2021. our card
  42. A. Roberts, H. W. Chung, G. Mishra, A. Levskaya, J. Bradbury, D. Andor, S. Narang, B. Lester, C. Gaffney, A. Mohiuddin, et al. Scaling up models and data with t5x and seqio. Journal of Machine Learning Research, 240 (377):0 1–8, 2023. OpenAlex ↗ · Scholar ↗
  43. K. Sakaguchi, R. L. Bras, C. Bhagavatula, and Y. Choi. WINOGRANDE: an adversarial winograd schema challenge at scale. CoRR, abs/1907.10641, 2019. URL http://arxiv.org/abs/1907.10641. our card
  44. N. Shazeer. GLU variants improve transformer. CoRR, abs/2002.05202, 2020. URL https://arxiv.org/abs/2002.05202. OpenAlex ↗ · Scholar ↗
  45. T. Shevlane, S. Farquhar, B. Garfinkel, M. Phuong, J. Whittlestone, J. Leung, D. Kokotajlo, N. Marchal, M. Anderljung, N. Kolt, L. Ho, D. Siddarth, S. Avin, W. Hawkins, B. Kim, I. Gabriel, V. Bolina, J. Clark, Y. Bengio, P. Christiano, and A. Dafoe. Model evaluation for extreme risks, 2023. URL https://arxiv.org/abs/2305.15324. our card
  46. J. Su, Y. Lu, S. Pan, B. Wen, and Y. Liu. Roformer: Enhanced transformer with rotary position embedding. CoRR, abs/2104.09864, 2021. URL https://arxiv.org/abs/2104.09864. our card
  47. M. Suzgun, N. Scales, N. Schärli, S. Gehrmann, Y. Tay, H. W. Chung, A. Chowdhery, Q. V. Le, E. H. Chi, D. Zhou, and J. Wei. Challenging big-bench tasks and whether chain-of-thought can solve them, 2022. our card
  48. Q. Team. Introducing qwen1.5, February 2024. URL https://qwenlm.github.io/blog/qwen1.5/. OpenAlex ↗ · Scholar ↗
  49. I. Tenney, J. Wexler, J. Bastings, T. Bolukbasi, A. Coenen, S. Gehrmann, E. Jiang, M. Pushkarna, C. Radebaugh, E. Reif, and A. Yuan. The language interpretability tool: Extensible, interactive visualizations and analysis for nlp models, 2020. URL https://arxiv.org/abs/2008.05122. OpenAlex ↗ · Scholar ↗
  50. H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, A. Rodriguez, A. Joulin, E. Grave, and G. Lample. Llama: Open and efficient foundation language models, 2023. our card
  51. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin. Attention is all you need. CoRR, abs/1706.03762, 2017. URL http://arxiv.org/abs/1706.03762. our card
  52. L. Weidinger, J. Mellor, M. Rauh, C. Griffin, J. Uesato, P.-S. Huang, M. Cheng, M. Glaese, B. Balle, A. Kasirzadeh, Z. Kenton, S. Brown, W. Hawkins, T. Stepleton, C. Biles, A. Birhane, J. Haas, L. Rimell, L. A. Hendricks, W. Isaac, S. Legassick, G. Irving, and I. Gabriel. Ethical and social risks of harm from language models, 2021. URL https://arxiv.org/abs/2112.04359. our card
  53. xAI. grok-1, 2024. URL https://github.com/xai-org/grok-1. OpenAlex ↗ · Scholar ↗
  54. XLA. Xla: Optimizing compiler for tensorflow, 2019. URL https://www.tensorflow.org/xla. OpenAlex ↗ · Scholar ↗
  55. Y. Xu, H. Lee, D. Chen, B. A. Hechtman, Y. Huang, R. Joshi, M. Krikun, D. Lepikhin, A. Ly, M. Maggioni, R. Pang, N. Shazeer, S. Wang, T. Wang, Y. Wu, and Z. Chen. GSPMD: general and scalable parallelization for ML computation graphs. CoRR, abs/2105.04663, 2021. URL https://arxiv.org/abs/2105.04663. OpenAlex ↗ · Scholar ↗
  56. J. Yang, A. Prabhakar, K. Narasimhan, and S. Yao. Intercode: Standardizing and benchmarking interactive coding with execution feedback, 2023. URL https://arxiv.org/abs/2306.14898. our card
  57. B. Zhang and R. Sennrich. Root mean square layer normalization. CoRR, abs/1910.07467, 2019. URL http://arxiv.org/abs/1910.07467. OpenAlex ↗ · Scholar ↗
  58. L. Zheng, W.-L. Chiang, Y. Sheng, T. Li, S. Zhuang, Z. Wu, Y. Zhuang, Z. Li, Z. Lin, E. Xing, et al. Lmsys-chat-1m: A large-scale real-world llm conversation dataset. arXiv preprint arXiv:2309.11998, 2023. our card