Research map / Large language models / Language, safety and interpretability
HiRoPE: Length Extrapolation for Code Models Using Hierarchical Position
Kechi Zhang, Ge Li, Huangzhao Zhang, Zhi Jin
Peking University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
7improved
1no clear effect
3hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply HiRoPE (hierarchical RoPE) vs Self-Extend | LLaMA-2-7B · CodeParrot-valid (8192-16384) | perplexity: 2.0103 -> 1.9780 | Improved |
| apply HiRoPE vs ReRoPE | TinyLlama-1.1B · ReRoPE-eval (last 2048) | perplexity: 6.327 -> 5.9474 | Improved |
| apply HiRoPE vs ReRoPE | LLaMA-2-7B · Code Symbol Understanding | recall: 0.0837 -> 0.0911 | Improved |
| apply HiRoPE vs ReRoPE | ShearedLLaMA-1.3B · LCC (>8k) | edit similarity: 36.91 -> 46.33 | Improved |
| apply HiRoPE vs ReRoPE | TinyLLaMA-1.1B · LCC (0-4k) | edit similarity: 49.22 -> 35.17 | Hurt |
| apply HiRoPE vs ReRoPE | Vicuna-7B · RepoBench (0-4k) | edit similarity: 42.78 -> 37.10 | Hurt |
| apply HiRoPE vs ReRoPE | LLaMA-2-7B · RepoBench (4k-8k) | edit similarity: 47.85 -> 53.30 | Improved |
| apply HiRoPE window mechanism (keeps short-code performance) (ablation) | LLaMA-2-7B · CodeParrot-valid (0-2048) | perplexity: 2.3583 -> 2.3598 | No clear effect |
| apply NTK scaling | LLaMA-2-7B · CodeParrot-valid (0-2048) | perplexity: 2.3583 -> 3.0365 | Hurt |
| increase window length (ablation) | LLaMA-2-7B · CodeParrot (0-2k) | perplexity | Improved |
| split hierarchy at function level rather than statement or n-token segments (ablation) | HiRoPE · CodeParrot | perplexity | Improved |
| split dimension ratio between 0.6 and 0.7 (ablation) | HiRoPE · CodeParrot (4k-8k) | perplexity | Mixed |
Open problems in LLM pruning and scaling data
Do pruning, unlearning and data-scaling methods still work at larger scale and beyond English?
- Experiments are small and larger models or corpora are untested. · 34 papers state it
- The method adds training or compute overhead over the baseline. · 20 papers state it
- Most evaluation uses English or a few high-resource languages. · 13 papers state it
Closest papers by meaning
- Base of RoPE Bounds Context Length (NeurIPS 2024 · similarity 0.88)
- YaRN: Efficient Context Window Extension of Large Language Models (ICLR 2024 · similarity 0.88)
- LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens (ICML 2024 · similarity 0.87)
- Mesa-Extrapolation: A Weave Position Encoding Method for Enhanced Extrapolation in LLMs (NeurIPS 2024 · similarity 0.87)
- Rope to Nope and Back Again: A New Hybrid Attention Strategy (NeurIPS 2025 · similarity 0.87)
- SelfCodeAlign: Self-Alignment for Code Generation (NeurIPS 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.