Skip to content

A Better Start for Language Models: Domain-Conditional Position Offsets

Jul 2026 · arXiv.org · Vol abs/2607.18302 · 0 citations · 20 references
Computer Science

TL;DR

A domain-conditional position offset is shown to improve retrieval reranking and domain classification when decisions depend on early in-domain tokens, and to be a lightweight, hot switchable tool for short in-domain scoring and calibration.

Abstract

Autoregressive language models are least accurate at the beginning of a sequence, where little context forces reliance on a generic pretraining prior. We show that this cold-start penalty is domain dependent and reduce it with a domain-conditional position offset: a single learned vector added to the embedding activation at the first sequence positions while all model weights remain frozen. The offset trains in minutes on roughly one hundred documents, switches between domains without added sequence state, and has no measurable latency overhead. Across eight Mamba, GPT-NeoX, and Llama models spanning 410M to 8B parameters, it reduces held-out in-domain perplexity by up to 27%; the effect persists at 70B, and one position captures most of the benefit. A matched, converged direct logit-bias correction reaches at most only 7.9% and leaves later-token loss unchanged, showing that the offset propagates through model state rather than merely recalibrating the output prior. A tuned LoRA reaches lower perplexity but uses two to three orders of magnitude more parameters and an active low-rank weight path, while soft prompts add sequence positions. With wrong-domain controls, offsets improve retrieval reranking and domain classification when decisions depend on early in-domain tokens, For the few-shot reasoning whose signal occurs later, the results maintains unchanged. Position-aware prefill application also help generation tasks, whereas naive application at every cached decoding step causes repetition. The offset is therefore not the strongest adapter, but a lightweight, hot switchable tool for short in-domain scoring and calibration.

View source

Similar papers

Preprint Jul 2026

How Much is Left? LLMs Linearly Encode Their Remaining Output Length

Training minimal-capacity linear probes on frozen hidden states of three open-weight 7-8B models across seven completion-style datasets finds three converging pieces of evidence that LLMs maintain a plan-like internal representation of output length, interpreted as evidence that LLMs maintain a plan-like internal repre...

Mohamed Amine Merzouk, Dmitri Carpov, Mirko Bronzi et al. · 1 citation
Preprint Aug 2026

Architecture-Dependent Causal Transfer of Activation States Across Large Language Models

End-to-end activation-state transfer between LLMs, as currently implemented, is architecture-dependent rather than universal, and it is concluded that end-to-end activation-state transfer between LLMs is architecture-dependent rather than universal.

Fernando Cardenas Piepereit · 3 citations
Preprint Jul 2026

A Unified Framework for In-Context Learning with Causal and Masked Language Models

Experiments on controlled function-learning tasks show that the Masked Pair Encoder can achieve performance comparable to GPT-2-style causal Transformers, suggesting that ICL behavior is not specific to causal language models.

Chenrui Liu, Chuanlong Xie, Falong Tan et al. · 0 citations
Preprint Aug 2026

Interpreting Language Model Hidden States at Scale

OmniLens is presented, which applies a single lens family to any model-width activation, whether residual stream, attention, or MLP, and combines two independent scaling techniques, which reproduces key published results at substantially lower cost.

Jordan Pettyjohn, Mansi Sakarvadia, Nathaniel Hudson et al. · 0 citations
Preprint Aug 2026

Improving Few-Step Language Flows with Untied Self-Conditioning

It is shown that the mismatch degrades both the self-conditioning input and the solver update, and derive a correction for each from the model's own structure, and the resulting sampler, Untied Self-Conditioning, requires no retraining and uses one evaluation per step.

Bocheng Li, Linli Xu · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.