Leviathan: Decoupling Input and Output Representations in Language Models
Reza T Batley, Sourav Saha
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Interpretability & Model Adaptation › Transformer Models · Type: new method · Keywords: decoupled embeddings, language modeling, parameter-efficient design, rare token performance, Transformer architecture
Summary
Leviathan decouples input and output representations in language models by using a compact continuous mapping (LEV) for inputs while keeping the output head untied, leading to improved language modeling and downstream performance.
Explained to a 5-year-old
Computers learn language by turning words into numbers. Usually the same numbers are used both to understand words and to guess the next word. This can make learning slower and less accurate, especially for rare words. A new idea uses two separate sets of numbers: one for understanding and one for guessing. This helps the computer learn faster and do better on tests.
Explained to a 5-year-old, longer
When a computer reads many words, it changes each word into a small number so it can work with them. These numbers are called embeddings, and they help the computer understand what each word means. In most language models, the same set of numbers is used both to understand words and to decide which word comes next. Using the same numbers for two different jobs can limit how well the model learns, especially for words that appear rarely. The new idea separates these two jobs by having two different sets of numbers: one just for understanding, and another just for predicting the next word. This separation lets the model focus its learning power on each task without interference. Because the new numbers are continuous and compact, they need very few extra storage spaces in the computer. The model can still use the same overall structure, like a big stack of processing layers, but with this small change. As a result, the model learns faster and reaches better performance with less training data. It also gets better at guessing rare words, which were previously hard for the model. The improvements show up in many different tests, like answering questions, completing sentences, and understanding stories. Overall, this simple change makes language models more accurate and efficient.
For a technical reader
The paper introduces a Transformer variant that separates token embeddings from the output vocabulary projection. By replacing the tied embedding matrix with a lightweight continuous mapping (LEV) and keeping the output head independent, the model adds only 0.2% extra parameters. Experiments across 200M-1.2B parameters on The Pile show consistent perplexity reductions, faster convergence, and improvements on six downstream benchmarks, especially for rare tokens. The design is straightforward to implement and can be applied to existing models with minimal overhead.
Problem
Current language models tie input embeddings and output projection matrices, coupling token representation and vocabulary discrimination. This coupling limits performance, especially for rare tokens, and can be inefficient.
Method
The approach replaces the traditional tied input embedding matrix with a learned embedding vectorization that maps token indices to continuous embeddings, while retaining an independent output projection head. This decoupling allows a minimal parameter increase and focuses capacity on rare tokens. The Transformer backbone remains unchanged, enabling direct comparison with tied baselines.
Results
The approach reduces validation perplexity by 9% at 1.2B parameters, needs 2.1× fewer training tokens to match the baseline loss, and improves all six downstream benchmarks, with up to 30% reduction in LAMBADA perplexity and 81% perplexity drop for rare tokens.
Contributions
The paper proposes decoupling input and output representations via a compact continuous embedding mapping, showing that this yields substantial gains for rare tokens and overall performance while adding negligible parameters. It also provides an empirical analysis across a wide model size range and multiple downstream tasks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction