potentialpaper

HARP: Hierarchically Anchored Rotary Phases for Long and Structured Contexts

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:13 UTC · d0072d3ff90b ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "veTHWPvqy0"
- }
- ],
- "title": "HARP: Hierarchically Anchored Rotary Phases for Long and Structured Contexts",
- "authors": [],
- "abstract": "Rotary Position Embedding (RoPE) derives one fixed global phase schedule from\nthe raw token index. The raw index must therefore encode local order, long-range\ndistance, and structured layout at once. Recent analyses reveal the overload to\nlong-context retrieval failures, to frequency crowding, and to fragility under\nthe \\texttt{bfloat16} (BF16) format. We propose Hierarchically Anchored Rotary\nPhases (HARP), which factors the raw index into a coarse chunk index, a\nwithin-chunk offset, and optional ordered structure coordinates. Each coordinate\ngoverns its own band of learnable rotary phases, while a fraction of channels stay\nunrotated as a content bypass. The encoding comes in a general form (HARP-core) and a separated-band form\n(HARP-sb). We initialize both exactly on the RoPE submanifold, so training\ndeparts from RoPE only when the data rewards the departure. The factorization yields an attention kernel over relative hierarchical\ncoordinates rather than the raw gap alone. The resulting kernel recovers RoPE\nexactly and strictly enlarges the positional kernel class. Separating the bands further\nbounds the phase budget at $O(\\sqrt{L})$ rather than $O(L)$ in context length\n$L$. We evaluate HARP through deterministic experiments, synthetic probes,\nfrom-scratch pretraining at $160$M and $420$M parameters, a BF16 analysis, and\nablations. On structural tasks HARP separates equal-distance token pairs that every purely relative encoding maps to identical logits. Beyond that, the trained model concentrates attention inside the current chunk, carries non-redundant information in all three bands, and HARP-core raises scope resolution from\n$4.7\\%$ to $42.5\\%$. On length and precision at scale, by contrast, the advantage narrows from a clear win at $160$M to parity at $420$M. One reason is that training specializes the global band alone, which puts the bounded phase budget out of reach. HARP therefore encodes hierarchy where RoPE encodes\ndistance alone.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "9f7f3d8d-32ce-4998-a17a-46d441114474"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "HARP: Hierarchically Anchored Rotary Phases for Long and Structured Contexts",
+ "authors": [],
+ "abstract": "Rotary Position Embedding (RoPE) derives one fixed global phase schedule from\nthe raw token index. The raw index must therefore encode local order, long-range\ndistance, and structured layout at once. Recent analyses reveal the overload to\nlong-context retrieval failures, to frequency crowding, and to fragility under\nthe \\texttt{bfloat16} (BF16) format. We propose Hierarchically Anchored Rotary\nPhases (HARP), which factors the raw index into a coarse chunk index, a\nwithin-chunk offset, and optional ordered structure coordinates. Each coordinate\ngoverns its own band of learnable rotary phases, while a fraction of channels stay\nunrotated as a content bypass. The encoding comes in a general form (HARP-core) and a separated-band form\n(HARP-sb). We initialize both exactly on the RoPE submanifold, so training\ndeparts from RoPE only when the data rewards the departure. The factorization yields an attention kernel over relative hierarchical\ncoordinates rather than the raw gap alone. The resulting kernel recovers RoPE\nexactly and strictly enlarges the positional kernel class. Separating the bands further\nbounds the phase budget at $O(\\sqrt{L})$ rather than $O(L)$ in context length\n$L$. We evaluate HARP through deterministic experiments, synthetic probes,\nfrom-scratch pretraining at $160$M and $420$M parameters, a BF16 analysis, and\nablations. On structural tasks HARP separates equal-distance token pairs that every purely relative encoding maps to identical logits. Beyond that, the trained model concentrates attention inside the current chunk, carries non-redundant information in all three bands, and HARP-core raises scope resolution from\n$4.7\\%$ to $42.5\\%$. On length and precision at scale, by contrast, the advantage narrows from a clear win at $160$M to parity at $420$M. One reason is that training specializes the global band alone, which puts the bounded phase budget out of reach. HARP therefore encodes hierarchy where RoPE encodes\ndistance alone.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}