Skip to content

Do Language Models Need a Trainable Input Embedding Table? Fixed Minimal Token Codes at 1.7B-Class Scale

A. Bochkov

cs.CL

Abstract

A token must be identifiable before a language model can learn how to use it. Must its input coordinates also be learned? We replace the trainable input table of a decoder-only Transformer with a predetermined 16-bit identifier for each of 49,152 tokens. Repetition lifts the code to width 2048 without a learned projection. We train five models from scratch to 100B prediction targets each: a learned-input control and four fixed-input variants using canonical codes, an invertible recoding, an extra Transformer block, or row-normalized codes. At the endpoint, the four fixed-input models attain 51.44-53.34% HellaSwag normalized accuracy, 70.46-71.49% PIQA accuracy, and 42.29-44.52% LAMBADA accuracy. The normalized model attains the upper endpoint on all three; the learned control scores 57.79%, 72.69%, and 47.72%, respectively. At unchanged depth and parameter count, the normalized model's LAMBADA advantage over canonical codes is 1.80 percentage points at 48.44B targets and 1.77 points at 100B. A complementary smaller-scale study observes successful fixed-code learning across three training seeds per interface. At matched backbone depth, the compact input buffer stores 128 times fewer scalar values than the untied learned input table. The construction separates symbol identification from learned lexical coordinates and provides a working model family in which to study how shared computation builds representations from immutable inputs.

Create a lesson