atlas

Research map / Architectures and efficiency / Attention and transformers

MrT5: Dynamic Token Merging for Efficient Byte-level Language Models

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces MrT5, a ByT5 variant whose encoder has a learned delete gate at an early layer that dynamically removes tokens, cutting sequence length by up to 75% with comparable accuracy and faster inference.

Problem

Byte-level language models like ByT5 avoid subword tokenization drawbacks but produce much longer sequences, making training and inference slow and inefficient.

Approach

A learned, fully differentiable delete gate after a fixed early encoder layer soft-masks tokens during training and hard-deletes them at inference, so remaining tokens absorb context from deleted ones; a PI controller can target a specific deletion ratio, and the gate adds only 2d_model+1 parameters to a pre-trained ByT5.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add a learned delete gate targeting δ=0.5ByT5 Small · XNLIaccuracy: 64.72 -> 65.31Helped
add a learned delete gate targeting δ=0.5ByT5 Small · TyDiQA-GoldPEM/F1: 69.90/79.58 -> 68.27/77.73Hurt
add a learned delete gate targeting δ=0.5ByT5 Small · Spelling Correctionsequence-level accuracy: 66.73 -> 63.18Hurt
add a learned delete gate targeting δ=0.7ByT5 Small · Word Searchsequence-level accuracy: 76.61 -> 72.02Hurt
add a learned delete gateByT5 Small · XNLIruntime decrease: 45.13%Helped
increase the target deletion ratio from δ=0.3 to δ=0.7MrT5 · inference on a single sequenceruntime (ms): 34.99 -> 24.48Helped
move the delete gate to an earlier encoder layer (ablation)MrT5 · continued pre-trainingbits-per-byteHurt
remove Gumbel noise from the delete gate during training (ablation)MrT5 · continued pre-trainingperformanceNo clear effect
vary the deletion regularizer α (ablation)MrT5 · Simple Vowel Removaltoken-level accuracy: 100.00 -> 100.00No clear effect
vary the deletion regularizer α (ablation)MrT5 · Contextual Vowel Removalsequence length reduction: 1.56 -> 18.97Helped

Surprising findings

Limitations

Experimental setup

Datasets: mC4 C4 MultiNLI XNLI TyDiQA-GoldP character-level spelling correction and word search tasks

Benchmarks: XNLI TyDiQA-GoldP Spelling Correction with Context Word Search mC4 span corruption (bits-per-byte)

Metrics: bits-per-byte accuracy exact match F1 sequence-level accuracy sequence length reduction inference runtime decrease

Baselines: ByT5 random deletion fixed deletion boundary predictor pooling convolutional pooling (CANINE-style)

Builds on: ByT5 mT5 Hourglass Transformer softmax1

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy