paper-with-me

Papers

Post-Routing Arithmetic in Llama-3: Last-Token Result Writing and Rotation-Structured Digit Directions

2026-02-22 · Yao Yan arxiv

We study three-digit addition in Meta-Llama-3-8B (base) under a one-token readout to characterize how arithmetic answers are finalized after cross-token routing becomes causally irrelevant. Causal residual patching and cumulative attention ablations localize a sharp boundary near layer~17: beyond it, the decoded sum is controlled almost entirely by the last input token and late-layer self-attention is largely dispensable. In this post-routing regime, digit(-sum) direction dictionaries vary with a next-higher-digit context but are well-related by an approximately orthogonal map inside a shared low-rank subspace (low-rank Procrustes alignment). Causal digit editing matches this geometry: naive cross-context transfer fails, while rotating directions through the learned map restores strict counterfactual edits; negative controls do not recover.

📄 PDF Abstract BibTeX arXiv:2602.19109

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Flextron: Many-in-One Flexible Large Language Model

2024-06-11 · Ruisi Cai, Saurav Muralidharan, Greg Heinrich, Hongxu Yin 외

Training modern LLMs is extremely resource intensive, and customizing them for various deployment scenarios characterized by limited compute and memory resources through repeated training is impractical. In this paper, w…

Language ModelingLanguage ModellingLarge Language Modelmodel+1

ElastiFormer: Learned Redundancy Reduction in Transformer via Self-Distillation

2024-11-22 · Junzhang Liu, Tingkai Liu, Yueyuan Sui, Stephen Xia

We introduce ElastiFormer, a post-training technique that adapts pretrained Transformer models into an elastic counterpart with variable inference time compute. ElastiFormer introduces small routing modules (as low as .0…

Causal Language ModelingLanguage ModelingLanguage Modelling

Sub-Token Routing for KV Cache Compression

2026-04-23 · Wei Jiang, Wei Wang arxiv

Transformer inference often requires a large KV cache, especially for long-context language modeling and multimodal generation. Existing compression methods usually reduce cache cost by selecting, evicting, quantizing, o…

multimodal generation

Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Tasks

2023-05-23 · Tiedong Liu, Bryan Kian Hsiang Low

We introduce Goat, a fine-tuned LLaMA model that significantly outperforms GPT-4 on a range of arithmetic tasks. Fine-tuned on a synthetically generated dataset, Goat achieves state-of-the-art performance on BIG-bench ar…

AttributeDataset GenerationGPU

Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks

2024-06-04 · Andrew Gambardella, Yusuke Iwasawa, Yutaka Matsuo

The ability (and inability) of large language models (LLMs) to perform arithmetic tasks has been the subject of much theoretical and practical debate. We show that LLMs are frequently able to correctly and confidently pr…