Seedlabs
Source research

T5Gemma 2: Seeing, Reading, and Understanding Longer

Zhang, Biao, Suganthan, Paul, Liu, Gaël, Philippov, Ilya, Dua, Sahil, Hora, Ben et al. · 2025 · 27 citationsRead the paper

We introduce T5Gemma 2, the next generation of the T5Gemma family of lightweight open encoder-decoder models, featuring strong multilingual, multimodal and long-context capabilities. T5Gemma 2 follows the adaptation recipe (via UL2) in T5Gemma -- adapting a pretrained decoder-only model into an encoder-decoder model, and extends it from text-only regime to multimodal based on the Gemma 3 models. We further propose two methods to improve the efficiency: tied word embedding that shares all embeddings across encoder and decoder, and merged attention that unifies decoder self- and cross-attention into a single joint module. Experiments demonstrate the generality of the adaptation strategy over architectures and modalities as well as the unique strength of the encoder-decoder architecture on long context modeling. Similar to T5Gemma, T5Gemma 2 yields comparable or better pretraining performance and significantly improved post-training performance than its Gemma 3 counterpart. We release the pretrained models (270M-270M, 1B-1B and 4B-4B) to the community for future research.

What the full text shows

Working prototype
  • T5Gemma 2 4B-4B outperforms Gemma 3 4B in long-context performance on RULER 128K. — 57.6 vs 7.0 (RULER 128K benchmark)
  • T5Gemma 2 1B-1B achieves multimodal and long-context performance close to the much larger Gemma 3 4B. — lagging by 8.7 and 6.9 points respectively (Average multimodal and long-context results)
  • T5Gemma 2 4B-4B shows superior pretraining performance in reasoning and factuality compared to Gemma 3 4B. — 77.4 vs 74.9 (HellaSwag) (Pretraining evaluation)
  • T5Gemma 2 4B-4B demonstrates strong multimodal capabilities across various VQA tasks. — 66.0 (ChartQA), 62.7 (VQAv2), 74.7 (DocVQA) (Pretraining evaluation)
  • The UL2 objective is consistently more effective than PrefixLM+KD for models ≤ 1B-1B. — UL2+KD slightly better than UL2 by ~0.4 points on average (1B-1B model scale)
Setup
Three model sizes (270M-270M, 1B-1B, 4B-4B) pretrained on ~2T tokens with sequence lengths up to 16K; vision processed via frozen SigLIP encoder (256 tokens).
How
Adapted pretrained decoder-only Gemma 3 models into encoder-decoder architectures using the UL2 objective. Efficiency was improved via tied word embeddings across encoder/decoder and merged attention unifying self- and cross-attention.
Limitations
Post-training results are for illustration only and lack comprehensive RL learning. · Pretraining sequence length is limited to 16K despite supporting 128K context.

Summarized by Gemma 4 from the open-access full text · 8 Nov 2026. Read it