Zipper: A Multi-Tower Decoder Architecture for Fusing Modalities

Vicky Zayats, Peter Chen, Melissa Ferrari, Dirk Padfield

Introduction

Creating multimodal artificial intelligence—models capable of processing and generating diverse data types like text, speech, and images—typically follows one of two arduous paths. The first involves training a massive model from scratch on perfectly aligned datasets, a process that is both computationally expensive and limited by the scarcity of high-quality paired data. The second, known as "vocabulary expansion," involves grafting new modality tokens onto a pre-trained text model. However, this often degrades the original model's performance and lacks the flexibility to easily incorporate additional modalities later.

Researchers at Google DeepMind have introduced Zipper, a modular "plug-and-play" architecture designed to overcome these hurdles. Zipper allows for the fusion of independently pre-trained unimodal decoders (e.g., a text expert and a speech expert) using a novel cross-attention mechanism. This approach excels in low-data regimes and preserves the specialized capabilities of the underlying models.

The Zipper Architecture

Zipper departs from the standard single-tower transformer design by utilizing two or more parallel decoder towers. These towers are connected through a mechanism the authors call "zipping."

The "Zip" Mechanism

Rather than merging different modalities into a single sequence, Zipper maintains separate towers that communicate via gated cross-attention layers. These layers are interleaved throughout the architecture, allowing the text tower to attend to the speech tower’s representations and vice versa. This bi-directional flow ensures that each modality can inform the generation of the other.

Projection and Alignment

Because different pre-trained models often have different internal embedding dimensions and "shapes," Zipper employs non-linear MLP (Multi-Layer Perceptron) projection layers. These layers act as translators, mapping representations from one modality's latent space into another's, ensuring compatibility across the towers.

Flexibility and Freezing

A defining feature of Zipper is its modularity. Researchers can choose to freeze specific towers during training. For instance, a powerful Large Language Model (LLM) like PaLM 2 can be kept frozen to ensure it retains its complex reasoning and prose-generation skills. In this scenario, only the "zipper" layers and the new modality tower (e.g., speech) are trained to align with the established LLM backbone.

Experimental Setup

The study primarily focused on the fusion of speech and text modalities:

  • Speech Pre-training: A speech-only decoder was trained from scratch using LibriLight, which contains 60,000 hours of unlabeled speech.
  • Text Backbones: The researchers utilized variants of PaLM 2 (Gecko and Tiny) as the pre-trained text experts.
  • Alignment and Fine-tuning: The models were aligned using a mixture of LibriSpeech (for Automatic Speech Recognition - ASR) and LibriTTS (for Text-to-Speech - TTS).

Key Insights and Results

The Zipper architecture demonstrated significant advantages over traditional single-tower baselines, particularly in generative tasks and data efficiency.

Superior Generative Performance

Zipper showed a remarkable improvement in Text-to-Speech (TTS) tasks. On the LibriTTS benchmark, the architecture achieved a 12-13 point reduction in Word Error Rate (WER) compared to standard baselines—representing a relative error reduction of nearly 40%. The cross-attention mechanism provides a "global view" of the context that single-tower models often lack, leading to more coherent and accurate speech synthesis.

Extreme Data Efficiency

One of the most striking findings was Zipper's robustness in low-data environments. When the training set was reduced to just 1% of the aligned data (approximately 2,800 utterances), Zipper maintained a functional WER in the mid-20s. In contrast, the standard vocabulary-expansion baseline failed completely, with a WER approaching 100%.

Preserving the "Brain"

By freezing the text backbone, Zipper successfully performed ASR tasks with virtually no degradation to the LLM's original text-processing capabilities. This solves a common problem in multimodal AI where learning a new skill (like hearing) often causes the model to "forget" or perform worse on its original skills (like writing).

Limitations and Future Directions

While Zipper represents a significant step forward in modular AI, the authors note several areas for future exploration:

  • Modality Scope: The current proof-of-concept is limited to speech and text. Future work will test the architecture on more complex modalities such as video or biological sequences.
  • Data Realism: The experiments utilized "read speech" from audiobooks. Testing on messy, real-world conversational audio is a necessary next step.
  • Architectural Optimization: Further research is needed to determine the optimal number of cross-attention layers and whether shared or domain-specific projection layers yield better results.

Conclusion

Zipper offers a scalable, efficient, and flexible framework for building multimodal systems. By allowing researchers to compose models from existing experts, it paves the way for more sophisticated AI that can be rapidly adapted to new modalities without the need for massive, perfectly aligned datasets or the risk of destroying the capabilities of our best existing models.

Summary updated

BibTeX
@inproceedings{zayats2024zipper,
  author = {Vicky Zayats and Peter Chen and Melissa Ferrari and Dirk Padfield},
  title = {{Zipper: A Multi-Tower Decoder Architecture for Fusing Modalities}},
  booktitle = {ENLSP},
  year = {2024},
}
Figure