Position interpolation (PI) extends the usable context length of a pretrained language model that uses RoPE from to by shrinking the position indices by a factor of before rotating. It was proposed by Chen et al. at Meta in 2023. Without changing the model architecture and with only brief fine-tuning (about 1000 steps), it extended the context length of LLaMA from 2048 to as much as 32768.
Large language models are pretrained on inputs up to a fixed length (2048 tokens for LLaMA). Feeding a longer input directly into a RoPE model produces large rotation angles never seen in training, and perplexity breaks down to over 1000. Fine-tuning directly on long inputs barely extends the context that is actually usable (in the paper, from 2048 to only 2560 after 10,000 steps).
Position interpolation squeezes the positions of a long input into the range seen in training before passing them to RoPE. Rather than going beyond that range (extrapolating), it places positions between the integer positions seen in training (interpolating), so values unfamiliar to the model are less likely to appear. Think of compressing a rubber ruler so that a long text fits within the same range of tick marks used in training.
The left side of the figure at the top of the article shows where position information is injected. It uses the same layout as the figure in the RoPE article; the only difference is that the rotation angles are shrunk. The upper right shows how the position indices are shrunk, and the lower right shows the rotation speed for each dimension pair, both computed from the formulas.

