atlas

Research map / Large language models / Instruction and fine-tuning

PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Training

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 2 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 PoSE, a fine-tuning method that extends LLM context windows by simulating long inputs within a fixed 2k window via skipping position-index biases per chunk, reaching 128k for LLaMA with far lower training cost than full-length fine-tuning.

Problem

Extending the context window of pre-trained RoPE-based LLMs normally requires fine-tuning on inputs at the full target length, whose memory and time cost grows quadratically with length.

Approach

Split the original context window into chunks and add a randomly sampled skipping bias to each chunk's position indices (re-sampled per example), so the model sees relative positions spanning the target length while training only at the original length; within-chunk positions stay continuous to resemble pre-training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PoSE with a 2k training window instead of full-length fine-tuningLLaMA-7B · GovReport, 16k evaluationperplexity: 4.59 -> 4.60No clear effect
Use PoSE with a 2k training window instead of full-length fine-tuningLLaMA-7B · Proof-pile, 16k evaluationperplexity: 2.53 -> 2.60No clear effect
Train with PoSE instead of RandPosLLaMA-7B · GovReport, 16k evaluation; 16k targetperplexity: 15.16 -> 4.60Helped
Train with PoSE instead of RandPosLLaMA-7B · Proof-pile, 16k evaluation; 16k targetperplexity: 7.73 -> 2.60Helped
Use YaRN interpolation rather than Linear interpolationPoSE-128k · PG-19, 128k evaluationperplexity: 31.18 -> 11.33Helped
Use YaRN interpolation rather than Linear interpolationPoSE-128k · Books3, 128k evaluationperplexity: 70.87 -> 13.81Helped
Set chunk content offset v_i=0 instead of sampling v_i (ablation)PoSE · GovReport, 16k evaluationperplexity: 4.60 -> 4.68No clear effect
Set chunk content offset v_i=0 instead of sampling v_i (ablation)PoSE · Proof-pile, 16k evaluationperplexity: 2.60 -> 2.61No clear effect
Set chunk content offset v_i=u_i instead of sampling v_i (ablation)PoSE · GovReport, 16k evaluationperplexity: 4.60 -> 4.60No clear effect
Set chunk content offset v_i=u_i instead of sampling v_i (ablation)PoSE · Proof-pile, 16k evaluationperplexity: 2.60 -> 2.56No clear effect
Increase chunk number from 2 to 3 (ablation)PoSE · Proof-pile, 16k evaluationperplexity: 2.60 -> 2.59Helped
Increase chunk number from 2 to 2048 (ablation)PoSE · Proof-pile, 16k evaluationperplexity: 2.60 -> 7.73Hurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile GovReport Proof-pile Books3 PG-19

Benchmarks: GovReport Proof-pile PG-19 Books3 passkey retrieval BoolQ PIQA WinoGrande TruthfulQA ARC-C HellaSwag

Metrics: perplexity retrieval accuracy accuracy mc2 normalized accuracy

Baselines: Full-length fine-tuning RandPos PI-only Original LLaMA

Builds on: Position Interpolation RandPos NTK-aware interpolation YaRN 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