Paper · published 2024-03-04 · added 2026-08-24 · github.com

Ms-PoE (Multi-scale Positional Encoding)

What it is

Ms-PoE is a plug-and-play positional encoding technique designed to mitigate the 'lost-in-the-middle' phenomenon in LLMs. It works by rescaling position indices and assigning distinct scaling ratios to different attention heads to improve long-context information retrieval without requiring fine-tuning.

The problem it solves

The 'lost-in-the-middle' problem where LLMs struggle to identify relevant information in the middle of long context windows.

What you could use it for

LLMLong ContextRoPENatural Language ProcessPositional Encoding

Read the source ↗Back to the library →

Summary written by an AI model from the source; check the source before you rely on it.