Closed-form weight edits for long context

A language model trained to 65,536 tokens is given the long-context ability of a sibling model trained to 262,144 tokens without gradients and without merging. The paper reports the method first: the context wall is treated as a dynamical system and solved from its source outward, one solved stage after another. It then gives the edits — the content-free position bias of every attention head, re-developed under a new RoPE base in closed form and written into the key projection as a fixed offset; a rank-1 direction and a norm-weight difference taken from the sibling — the per-layer ruler ladder behind the wall, position-gated Dual Chunk Attention, results up to one million tokens, and a paired baseline against the unmodified model. The work continues the weight-space programming of Takehi et al. (2026) at scale: 453 million weights of a 30-billion-parameter model are written without a gradient.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-24
DOI
https://doi.org/10.5281/zenodo.24492836
Primary Topic
Topic Modeling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Closed-form weight edits for long context

Hermann Hans Klie
1 links
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
preprint

Closed-form weight edits for long context

Hermann Hans Klie
preprint en

Abstract

A language model trained to 65,536 tokens is given the long-context ability of a sibling model trained to 262,144 tokens without gradients and without merging. The paper reports the method first: the context wall is treated as a dynamical system and solved from its source outward, one solved stage after another. It then gives the edits — the content-free position bias of every attention head, re-developed under a new RoPE base in closed form and written into the key projection as a fixed offset; a rank-1 direction and a norm-weight difference taken from the sibling — the per-layer ruler ladder behind the wall, position-gated Dual Chunk Attention, results up to one million tokens, and a paired baseline against the unmodified model. The work continues the weight-space programming of Takehi et al. (2026) at scale: 453 million weights of a 30-billion-parameter model are written without a gradient.

Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon