arXiv(opens in a new tab)Computer ScienceMar 2024Cited by 91 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2403.05530

Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context

Gemini Robotics Team, Petko Georgiev, Ving Ian Lei, Ryan Burnell, Bai, Libin, Anmol Gulati, Garrett Tanzer, Damien Vincent, Zhufeng Pan, Wang, Shibo, Mariooryad, Soroosh, Yifan Ding, Geng, Xinyang, Fred Alcober, Roy Frostig, Mark Omernick, Lexi Walker, Paduraru, Cosmin, Christina Sorokin, Andrea Tacchetti, Colin Gaffney, Samira Daruki, Sercinoglu, Olcan, Zach Gleicher, Juliette Love, Paul Voigtlaender, Rohan Jain, Gabriela Surita, Mohamed, Kareem, Rory Blevins, Junwhan Ahn, Zhu, Tao, Kawintiranon, Kornraphop, Orhan Fırat, Gu, Yiming, Yujing Zhang, Rahtz, Matthew, Faruqui, Manaal, Clay, Natalie, Justin Gilmer, Co-Reyes, JD, Ivo Penchev, Zhu, Rui, Morioka, Nobuyuki, Kevin Hui, Krishna Haridasan, Campos, Victor, Mahdieh, Mahdis, Guo, Mandy, Hassan, Samer, Kilgour, Kevin, Arpi Vezer, Cheng, Heng-Tze, Raoul de Liedekerke, Goyal, Siddharth, Paul R. Barham, Strouse, DJ, Seb Noury, Jonas Adler, Mukund Sundararajan, Sharad Vikram, Lepikhin, Dmitry, Michela Paganini, Garcia, Xavier, Fan Yang, Valter, Dasha, Maja Trębacz, Kiran Vodrahalli, Chulayuth Asawaroengchai, Roman Ring, Norbert Kalb, Livio Baldini Soares, Siddhartha Brahma, David F. Steiner, Tianhe Yu, Fabian Mentzer, Antoine He, Lucas Gonzalez, Xu, Bibo, Raphaël Lopez Kaufman, Laurent El Shafey, Junhyuk Oh, Hennigan, Tom, George van den Driessche, Seth Odoom, Mario Lučić, Becca Roelofs, Lall, Sid, Marathe, Amit, Chan, Betty, Santiago Ontañón, Luheng He, Denis Teplyashin, Lai, Jonathan, Phil Crone, Bogdan Damoc, Ho, Lewis, Sebastian Riedel, Karel Lenc, Chih‐Kuan Yeh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this report, we introduce the Gemini 1.5 family of models, representing the next generation of highly compute-efficient multimodal models capable of recalling and reasoning over fine-grained information from millions of tokens of context, including multiple long documents and hours of video and audio. The family includes two new models: (1) an updated Gemini 1.5 Pro, which exceeds the February version on the great majority of capabilities and benchmarks; (2) Gemini 1.5 Flash, a more lightweight variant designed for efficiency with minimal regression in quality. Gemini 1.5 models achieve near-perfect recall on long-context retrieval tasks across modalities, improve the state-of-the-art in long-document QA, long-video QA and long-context ASR, and match or surpass Gemini 1.0 Ultra’s state-of-the-art performance across a broad set of benchmarks. Studying the limits of Gemini 1.5’s long-context ability, we find continued improvement in next-token prediction and near-perfect retrieval (>99%) up to at least 10M tokens, a generational leap over existing models such as Claude 3.0 (200k) and GPT-4 Turbo (128k). Finally, we highlight real-world use cases, such as Gemini 1.5 collaborating with professionals on completing their tasks achieving 26 to 75% time savings across 10 different job categories, as well as surprising new capabilities of large language models at the frontier; when given a grammar manual for Kalamang, a language with fewer than 200 speakers worldwide, the model learns to translate English to Kalamang at a similar level to a person who learned from the same content.

1 Introduction

We present our latest multimodal models from the Gemini line: Gemini 1.5 Pro and Gemini 1.5 Flash. They are members of Gemini 1.5, a new family of highly-capable multimodal models which incorporates our latest innovations in sparse and dense scaling as well as major advances in training, distillation and serving infrastructure that allow it to push the boundary of efficiency, reasoning, planning, multi-linguality, function calling and long-context performance. Gemini 1.5 models are built to handle extremely long contexts; they have the ability to recall and reason over fine-grained information from up to at least 10M tokens. This scale is unprecedented among contemporary large language models (LLMs), and enables the processing of long-form mixed-modality inputs including entire collections of documents, multiple hours of video, and almost five days long of audio.

The Gemini 1.5 Pro presented in this report is an update over the previous Gemini 1.5 Pro February version and it outperforms it predecessor on most capabilities and benchmarks. All in all, the Gemini 1.5 series represents a generational leap in model performance and training efficiency. Gemini 1.5 Pro surpasses Gemini 1.0 Pro and 1.0 Ultra on a wide array of benchmarks while requiring significantly less compute to train. Similarly, Gemini 1.5 Flash performs uniformly better compared to 1.0 Pro and even performs at a similar level to 1.0 Ultra on several benchmarks.

The ability to model data of increasingly longer contexts has tracked the development of more general and capable language models, from the now toy 2-gram language model proposed by Shannon (1948), to the modern n-gram models of the 1990s & 2000s typically constrained to 5 tokens of context (Brants et al., 2007; Chen and Goodman, 1999; Kneser and Ney, 1995; Jelinek, 1998), to recurrent neural networks language models from the 2010s which could effectively condition on hundreds of tokens (Mikolov et al., 2010; Jozefowicz et al., 2016), to the modern Transformer (Vaswani et al., 2017) which can condition on hundreds of thousands of tokens (Anthropic, 2023a). Gemini 1.5 Pro continues this trend by extending language model context lengths by over an order of magnitude. Scaling to millions of tokens, we find a continued improvement in predictive performance (Section 5.2.1.1), near perfect recall (>>99%) on synthetic retrieval tasks (Figure 1 and Section 5.2.1.2), and a host of surprising new capabilities like in-context learning from entire long documents and multimodal content (Section 5.2.2).

Figure

Figure 1: Gemini 1.5 Pro achieves near-perfect “needle” recall (>>99.7%) up to 1M tokens of “haystack” in all modalities, i.e., text, video and audio. It even maintains this recall performance when extending to 10M tokens in the text modality (approximately 7M words); 9.7M tokens in the audio modality (up to 107 hours); 9.9M tokens in the video modality (up to 10.5 hours). The x-axis represents the context window, and the y-axis the depth percentage of the needle placed for a given context length. The results are color-coded to indicate: green for successful retrievals and red for unsuccessful ones. Note that the performance for all modalities is obtained with the previously reported Gemini 1.5 Pro version from February.

To measure the effectiveness of our models’ multimodal long-context capabilities, we conduct experiments on both synthetic and real-world tasks. In synthetic “needle-in-a-haystack” tasks inspired by Kamradt (2023) that probe how reliably the model can recall information amidst distractor context, we find that both Gemini 1.5 Pro and Gemini 1.5 Flash achieve near-perfect (>>99%) “needle” recall up to multiple millions of tokens of “haystack” in all modalities, i.e., text, video and audio. As part of our experimental setup, we also assessed the performance of Gemini 1.5 Pro when extending the context to 10M tokens across all three modalities. We found that the recall performance was maintained even with this significant increase in context size.

Gemini 1.5 ProRelative to 1.5 Pro (Feb)Relative to 1.0 ProRelative to 1.0 Ultra
Long-Context Text, Video & Audiono changefrom 32k up to 10M tokensfrom 32k up to 10M tokens
Core CapabilitiesWin-rate: 78.1% (25/32 benchmarks)Win-rate: 88.0% (44/50 benchmarks)Win-rate: 77.8% (35/45 benchmarks)
TextWin-rate: 78.6% (11/14 benchmarks)Win-rate: 95.8% (23/24 benchmarks)Win-rate: 84.2% (16/19 benchmarks)
VisionWin-rate: 92.3% (12/13 benchmarks)Win-rate: 95.2% (20/21 benchmarks)Win-rate: 85.7% (18/21 benchmarks)
Audio*{}^{\text{*}}Win-rate: 80% (4/5 benchmarks)Win-rate: 60% (3/5 benchmarks)Win-rate: 40% (2/5 benchmarks)

Table 1: Gemini 1.5 Pro Win-rates compared to Gemini 1.5 Pro from the February release, as well as the Gemini 1.0 family. Gemini 1.5 Pro maintains high levels of performance even as its context window increases. Detailed results are presented in Table 10. ∗ In speech recognition, it is generally accepted that any difference in Word Error Rate (WER) that falls within a 3% relative range is not statistically significant and can be considered as mere noise, and we grouped such instances as wins for the latest systems.

Gemini 1.5 FlashRelative to 1.0 ProRelative to 1.0 Ultra
Long-Context Text, Video & Audiofrom 32k up to 10M tokensfrom 32k up to 10M tokens
Core CapabilitiesWin-rate: 82.0% (41/50 benchmarks)Win-rate: 46.7% (21/44 benchmarks)
TextWin-rate: 94.7% (18/19 benchmarks)Win-rate: 42.1% (8/19 benchmarks)
VisionWin-rate: 90.5% (19/21 benchmarks)Win-rate: 61.9% (13/21 benchmarks)
AudioWin-rate: 0% (0/5 benchmarks)Win-rate: 0% (0/5 benchmarks)

Table 2: Gemini 1.5 Flash Win-rates compared to Gemini 1.0 family. Gemini 1.5 Flash while being smaller and way more efficient and faster to serve, maintains high levels of performance even as its context window increases. Detailed results are presented in Table 10.

In more realistic multimodal long-context benchmarks which require retrieval and reasoning over multiple parts of the context (such as answering questions from long documents or long videos), we also see Gemini 1.5 Pro outperforming all competing models across all modalities even when these models are augmented with external retrieval methods. We showcase the in-context learning abilities of both Gemini 1.5 Pro and Gemini 1.5 Flash enabled by very long context: for example, learning to translate a new language from a single set of linguistic documentation. With only instructional materials (a 500-page reference grammar, a dictionary, and ≈400\approx 400 extra parallel sentences) all provided in context, Gemini 1.5 Pro and Gemini 1.5 Flash are capable of learning to translate from English to Kalamang--- a Papuan language with fewer than 200 speakers and therefore almost no online presence—with quality similar to a person who learned from the same materials. Moreover, we add in 45 minutes of transcribed Kalamang speech recordings to demonstrate that Gemini 1.5, for the first time with an LLM, can leverage mixed-modal documentation to learn speech recognition for a new language in context. We further showcase how long-context capability of Gemini 1.5 models break grounds on long-context automatic speech recognition, long-context video understanding, in-context planning and unstructured multimodal data analytics tasks.

Importantly, this leap in long-context performance does not come at the expense of the core multi-modal capabilities of the model. Across a extensive battery of evaluations, both Gemini 1.5 Pro and Gemini 1.5 Flash greatly surpass Gemini 1.0 Pro (44/50 for Gemini 1.5 Pro and 41/50 for Gemini 1.5 Flash). These include core capabilities such as Math, Science and Reasoning (+49.6% and +30.8%, respectively, Sec. 6.1.1), Multilinguality (+21.4% and +16.7%, Sec. 6.1.4), Video Understanding (+18.7% and +7.5%, Sec. 6.2.4), Natural Image Understanding (+21.7% and +18.9%, Sec. 6.2.3), Chart and Document Understanding (+63.9% and +35.9%, Sec. 6.2.2), Multimodal Reasoning (+31.5% and +15.6%, Sec. 6.2.1), Code (+21.5% and +10.3%, Sec. 6.1.3), and more (see Table 10 and Table 2 for full breakdowns). These evaluations additionally evaluate on a series of “agentic” tasks including Function Calling (+72.8% and +54.6%, Sec. 6.1.5), planning (Sec. 5.2.2.7) and in-the-wild long-tail real world use cases such as improving job productivity for professionals (Sec. 6.1.7). These advances are particularly striking when benchmarking against Gemini 1.0 Ultra, a state-of-the-art model across many capabilities. Despite using significantly less training compute and being more efficient to serve, Gemini 1.5 Pro performs better on more than half of the overall benchmarks (35/45), and the majority of vision (18/21) and text (16/19) benchmarks. For Gemini 1.5 Flash, which substantially more efficient to serve and faster at inference time, we find it to be be better than Ultra 1.0 on the majority of vision benchmarks (13/21) and almost half the text benchmarks (8/18).

In the following sections, we provide an overview of the model architecture and present the results of large-scale quantitative evaluations comparing Gemini 1.5 Pro and 1.5 Flash to other LLMs. We present detailed evaluations for the models’ long context capabilities followed by evaluations of their core capabilities, similar to the Gemini 1.0 Technical Report (Gemini-Team et al., 2023), covering well-studied benchmarks across text, code, image, video and audio. Finally, we discuss our approach to responsible deployment, including our process for impact assessment developing model policies, evaluations, and mitigations of harm before deployment decisions.

References (100)

Couldn't load all references. Reload the page to try again.

Cited by (91)