ホーム 格闘技 Overview of T5Gemma

Overview of T5Gemma

八木 麻衣 八木 麻衣 • 更新: • 公開: • 読了約 14 分
目次

I found the following article interesting, so I have summarized it briefly.

1. Introduction

ne35e8aeb82ed

In the rapidly evolving world of LLMs, attention has primarily focused on decoder-only architectures. While these models have demonstrated excellent performance across a wide range of generative tasks, classic encoder-decoder architectures like "T5" (The Text-to-Text Transfer Transformer) remain a popular choice for many real-world applications. Encoder-decoder models excel in areas such as summarization, translation, and quality assurance due to their high inference efficiency, design flexibility, and richer encoder representations for understanding input. However, powerful encoder-decoder architectures have received relatively little attention.

Today, we revisit this architecture and introduce "T5Gemma". This is a new collection of encoder-decoder LLMs developed by converting pre-trained decoder-only models into an encoder-decoder architecture using a technique called adaptation. "T5Gemma" is based on the "Gemma 2" framework and includes adaptive "Gemma 2 2B" and "9B" models, as well as a newly trained set of T5-sized models (Small, Base, Large, XL). We are excited to release pre-trained and instruction-tuned "T5Gemma" models to the community to create new opportunities for research and development.

2. From Decoder-only to Encoder-Decoder

With "T5Gemma", we ask the following question: Can we build top-tier encoder-decoder models based on pre-trained decoder-only models? The answer to this question is found by exploring a technique called model adaptation. The core idea is to initialize the parameters of an encoder-decoder model using the weights of a pre-trained decoder-only model, and then further adapt them through UL2 or PrefixLM-based pre-training.

This adaptation technique is highly flexible and allows for creative combinations of model sizes. For example, you can create "unbalanced" models by combining a large encoder with a small decoder (e.g., a 9B encoder and a 2B decoder). This allows for fine-tuning the trade-off between quality and efficiency for specific tasks such as summarization, where a deep understanding of the input is more important than the complexity of the generated output.

3. Towards a Better Quality-Efficiency Trade-off

How is the performance of "T5Gemma"?
In our experiments, "T5Gemma" achieved performance equal to or better than the decoder-only "Gemma", and nearly dominated the Pareto frontier of quality-inference efficiency across several benchmarks such as "SuperGLUE", which measures the quality of learned representations.

This performance advantage is not just theoretical; it is reflected in real-world quality and speed. When we measured the actual latency for GSM8K (mathematical reasoning), "T5Gemma" showed a clear victory. For example, "T5Gemma 9B-9B" achieved higher accuracy than "Gemma 2 9B" while maintaining similar latency. Even more surprisingly, "T5Gemma 9B-2B" has significantly improved accuracy over the "2B-2B" model, yet its latency is nearly the same as the much smaller "Gemma 2 2B". In short, these experiments demonstrate that encoder-decoder adaptation is a flexible and powerful way to balance quality and inference speed.

4. Unlocking Foundational and Fine-tuned Capabilities

Can encoder/decoder LLMs have the same capabilities as decoder-only models?

Yes, "T5Gemma" shows promising capabilities both before and after instruction tuning.

After pre-training, "T5Gemma" achieved remarkable performance gains in complex tasks requiring reasoning. For example, "T5Gemma 9B-9B" scored over 9 points higher on GSM8K (mathematical reasoning) and 4 points higher on DROP (reading comprehension) compared to the original "Gemma 2 9B". This pattern suggests that encoder-decoder architectures initialized through adaptation have the potential to create more powerful and superior foundation models.

These foundational improvements from pre-training serve as the basis for further dramatic improvements after instruction tuning. For example, when comparing "Gemma 2 IT" and "T5Gemma IT", the performance gap widens significantly across the board. "T5Gemma 2B-2B IT" saw its MMLU score rise by approximately 12 points compared to "Gemma 2 2B", and its GSM8K score improved from 58.0% to 70.7%. The adapted architecture not only provides a better starting point but also improves responsiveness to instruction tuning, ultimately leading to higher-performing and more useful final models.

5. Exploring the Models: Releasing T5Gemma Checkpoints

We are very excited to introduce this new method for building powerful and versatile encoder-decoder models by applying pre-trained decoder-only LLMs like "Gemma 2". To accelerate further research and enable the community to build upon this work, we are releasing the "T5Gemma" checkpoint suite.

The release includes the following:

We hope these checkpoints will be a valuable resource for investigating model architecture, efficiency, and performance.

6. Getting started with T5Gemma

For more details, please refer to the following links.


同じカテゴリの記事

八木 麻衣
トレンドリサーチャー 八木 麻衣
プロフィールを見る →

全記事の事実確認を担当。一次情報・公式発表・公開資料の三点を確認できない場合は公開を見送る判断をします。

おすすめの関連記事