LegközelebbKövetkező útmutató
YaRN és Context Length Extension
Műszaki
Nyelvi AI ÚTMUTATÓ
Position Interpolation compresses the positional coordinates used by a pretrained RoPE-based model when extending its context.
Hallgassa meg ezt az útmutatótAI-narrált · ~2 min
The original study adapts models to longer windows with additional training, without establishing universal accuracy or eliminating long-sequence costs.
RoPE applies position-dependent rotations to query and key dimension pairs. Simply using much longer sequences can expose the model to positional and attention conditions beyond those learned during training. Basic Position Interpolation rescales m to m divided by s, where s is the ratio of new context length to the original length. This compresses the coordinate span rather than continuing unmodified positions into a much longer range. The model still sees a changed sequence and denser position spacing, so adaptation and evaluation matter. The original paper reports successful extensions in its experiments with additional fine-tuning. Uniform compression affects all frequencies together; methods such as YaRN treat frequency bands differently to address local-detail and range tradeoffs.
Evaluating a pretrained RoPE model at a longer target length after positional rescaling and adaptation.
Comparing interpolation with unmodified positional extrapolation in the same model.
Studying frequency-aware methods such as YaRN against uniform position compression.
Measuring task performance and resource use across the extended window.
Context-extension research compares positional schemes, training budgets, and long-context evaluations. A nominally supported length is not proof of consistent retrieval or reasoning quality throughout the window. Assess the intended tasks, model adaptation, memory, and latency rather than treating rescaling as free long-context capability.
Ingyenes hírlevél
Minden hétköznap reggel három ellenőrzött AI történet, egyszerű angol nyelven. Örökké ingyen, hirdetések nélkül.
Minden hétköznap egy e-mail. Egy kattintással lemondhat. Soha nem értékesítjük vagy osztjuk meg az Ön címét.
Teszteld magad
Azonnali visszajelzés minden válaszra, és megosztható tanúsítvány egy ellenőrizhető azonosítóval, miután sikeresen teljesít egy kurzust.
Támogassa az ingyenes AI oktatást. AI Understanding egy 501(c)(3) nonprofit – nincs hirdetés, nincs fizetőfal, soha. Tegyen adományt
Position Interpolation compresses the positional coordinates used by a pretrained RoPE-based model when extending its context. The original study adapts models to longer windows with additional training, without establishing universal accuracy or eliminating long-sequence costs.
A PI elosztja a pozícióindexeket a kiterjesztési tényezővel, visszaképezve a hosszabb sorozatot a már megtanult modell eloszlási tartományába.
Az átskálázott koordináták belépnek a RoPE elforgatási szög számításába.
Az edzésen kívüli pozíciós viselkedés befolyásolhatja a figyelmet; a megfigyelt hatások a modelltől és a kiterjesztéstől függenek.
A PI leképezi m-t m-re osztva az s = L'/L tényezővel, és a hosszabb tartományt az eredeti betanított intervallumba tömöríti.
A YaRN megőrzi a nagyfrekvenciás helyi dimenziókat, és interpolálja az alacsonyabb frekvenciájú dimenziókat a sávok közötti átmenettel.
Tanulj tovább
További útmutatók készültek ehhez a témához
LegközelebbKövetkező útmutató
YaRN és Context Length Extension
Műszaki