Do Language Models Need a Trainable Input Embedding Table? Fixed Minimal Token Codes at 1.7B-Class Scale
Abstract
Using fixed 16-bit identifiers and normalization instead of a learned input embedding table in a decoder-only Transformer achieves competitive language-model accuracy while using far fewer stored input values.
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.
Community
When we teach students about LLMs, explanations inherited from word2vec can leave the impression that tokens are inherently semantic units and that their input embeddings are where meaning resides. This work offers a concrete experiment for questioning that picture.
We replace the trainable input embedding table with fixed 16-dimensional binary vectors, deterministically repeated to model width, with no additional trainable input projection. This is a token-identity encoding, not weight quantization. At 1.7B-class scale, these models acquire substantial language-modeling capability, although the learned-input control performs better on several key benchmarks.
There is nothing linguistically special about sixteen dimensions: it is the minimum fixed-length binary width needed to distinguish the 49,152 tokens in our vocabulary. Wider binary vectors—for example, 32-dimensional ones—or suitably constructed, distinct sine/cosine-based token codes are plausible alternatives, but we do not test them here. Preserving token identity is a coding requirement; whether a network can learn effectively from a particular encoding is an empirical question.
The conceptual distinction is between identifying a token and learning to interpret and use token sequences in context. Tokenization defines the input units; it does not make each unit a self-contained piece of meaning.
Nor does removing the trainable input table establish that meaning simply moves into the first trainable layer. The experiment does not determine where semantic information is represented or how it is distributed across layers. Instead, fixing the input coordinates provides a controlled setting for investigating representation formation—without making the model automatically interpretable.
For students, the takeaway is that token identity, input representation, and meaning should not be conflated. Word-vector analogies can remain useful illustrations without becoming the lens through which all LLM computation is understood.
We report one training run per interface, and the output head remains trainable. Models and research artifacts: /collections/Bochkov/do-language-models-need-a-trainable-input-embedding-table
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- ReconSpan: Reconstruction-Guided Adaptive Latent Tokenization (2026)
- Squeezing More from Limited Data with Recursive Transformers (2026)
- Mixture of Training: Recombining Small-Scale Scaffolded Pretraining Runs into a Larger Language Model (2026)
- Byte Language Models: Scaling, Emergent Abstractions, and Information Allocation (2026)
- MoME: Mixture-of-Memory Embeddings for Context-Aware Sparse Lookup (2026)
- LOCUS: Task-Aware Low-Rank Post-Training for Token-Efficient Language Generation (2026)
- LatentPort: Beyond KV Cache - Cross-Model Transfer of Recurrent Memory in Hybrid Language Models: A 4B-to-9B Hybrid-State Handoff Without Target Prefix Replay (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2610.04002 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 3
Bochkov/ab_ext_binary16
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper