atlas

Research map / Vision-language and multimodal / Human and embodied modeling

Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolation

ICML 2024 · Vision-language and multimodal › Human and embodied modeling · approach: Vision-language pretraining · 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.

Proposes Bilevel Positional Encoding (BiPE), which combines absolute intra-segment encoding with relative inter-segment encoding (RoPE or ALiBi over segment indices) to improve length extrapolation in Transformer language models.

Problem

Transformers with standard positional encodings fail to generalize to sequences longer than those seen in training; the paper argues that the number of segments (sentences), not raw token length, is the main quantity to extrapolate.

Approach

Decompose each token's position into an intra-segment absolute encoding (local position within a sentence/line, added to embeddings) and an inter-segment relative encoding (segment-index distance, applied via RoPE or ALiBi in attention), motivated by the observation that per-segment token counts stay bounded as sequences grow.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use BiPE-RoPE instead of RoPERoPE-based model · SCROLLS AverageAverage score: 18.38 -> 22.36Helped
Use BiPE-RoPE instead of RoPERoPE-based model · SCROLLSTask scoresMixed
Use BiPE-RoPE instead of RoPERoPE-based model · Normal-length benchmarksTask-specific scoreMixed
Remove the intra-segment encoding (ablation)BiPE-RoPE · PG19perplexityHurt
Remove the inter-segment encoding (ablation)BiPE-RoPE · PG19perplexityHurt
Use fixed segment lengths instead of natural segmentation (ablation)BiPE language model · PG19perplexityHurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile PG-19 ArXiv GitHub SCROLLS Arithmetic dataset RACE WinoGrande TruthfulQA PIQA HellaSwag MMLU

Benchmarks: PG-19 ArXiv GitHub SCROLLS Arithmetic RACE WinoGrande TruthfulQA PIQA HellaSwag MMLU

Metrics: perplexity accuracy F1 exact match Rgm normalized accuracy

Baselines: Sinusoidal PE RoPE ALiBi XPOS Randomized RoPE RoPE_yarn

Builds on: RoPE ALiBi YaRN XPOS Randomized RoPE

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