Zenaique

Choose the positional scheme that fails hardest when context quadruples at inference

MCQ·Medium·4.0 · 0·~1 min·Asked atInduced AiPerplexitySnap
Attempt it
TL;DR

Learned absolute embeddings are a lookup table with exactly `max_seq_len` rows. Position 4097 of a 4k model has no row at all.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine four ways of telling a chef where on the plate to put a garnish. Three of them are formulas: measure from the edge, count clockwise, or use a compass. Those work for any plate size. The fourth method is a stamp book with exactly one stamp per position on a 12-inch plate. Hand the chef a 48-inch plate and the stamp book is useless past the 12-inch mark. There is no entry. The other three formulas keep producing answers; they may not be perfectly tuned, but they extrapolate. That is exactly why frontier LLMs dropped the stamp book in favor of formulas.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

The question looks like a knowledge check on four positional schemes, but it is really a structural test: do you see that learned absolute is in a different category from the other three? One is a parameter table; three are functions of position. The implications for inference-time context extension are completely different.

This distinction explains why frontier LLMs converged on RoPE plus theta rescaling rather than any learned-absolute variant, and why long-context extension workflows simply do not exist for the learned-absolute branch.

Tables vs functions: the structural divide

A positional scheme provides each token with some signal of its position. The schemes split into two structural categories.

Parameter tables. Learned absolute embeddings store a (max_seq_len, d_model) matrix of parameters. Position p is looked up as row p of this table. The lookup is undefined for p >= max_seq_len. The table size is a hard cap baked into the model's parameter count.

Functions of position. Sinusoidal PE computes sin(pos / 10000^(2i/d)) and cos(...) from the position and the dimension index. RoPE computes rotation angles theta_m = m / 10000^(2i/d) and applies them to Q and K. ALiBi computes a per-head bias -m_h * |i - j| and adds it to attention logits. All three take pos (or pairs of positions) as input and produce output for any value.

The table approach has a hard failure at max_seq_len. The function approach degrades gradually past training length because the model has not seen those input values, but it still produces something. This is the only structural difference that matters for the question.

The mechanics of the learned-absolute failure
How the function-based schemes extend
Why this drove frontier convention
Putting numbers to it: 2026 frontier-model context
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Llama 3 used RoPE with theta = 500000, up from Llama 2's 10000, to support 128k context after long-sequence continued pretraining.
  • Llama 3.1 8B and 70B extended from an 8k base to 128k via theta rescaling plus long-context fine-tuning, exactly the workflow learned absolute cannot support.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhy did Llama 3 raise theta from 10000 to 500000 instead of using YaRN or PI?
A

Plain theta rescaling with sufficient long-context continued pretraining can match more elaborate recipes like YaRN at the cost of compute, and it is simpler to implement. The choice is partly a budget call.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Saying ALiBi fails because its bias is undefined past training length. It is defined for every distance and was designed precisely for extrapolation.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Define learned absolute, sinusoidal, RoPE, and ALiBi in one sentence each

  • Explain why a learned absolute table cannot produce a vector for position max_seq_len + 1

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Explain scaled dot product attention.
Short answer·Medium