potentialpaper

Leviathan: Decoupling Input and Output Representations in Language Models

Reza T. Batley, Sourav Saha

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Many language models use a single matrix for input embedding and output projection. This couples two distinct objectives: token representation and discrimination over a vocabulary. This work introduces Leviathan, a transformer architecture that replaces the input embedding matrix with learned embedding vectorization (LEV), a compact continuous mapping from token indices to embeddings. Leviathan's output head remains untied for a parameter increase of as low as 0.2%. Under controlled comparisons with identical transformer backbones, Leviathan consistently improves language modeling performance over standard tied-embedding baselines across a 200M-1.2B parameter regime on The Pile with gains that grow during training. At 1.2B scale, Leviathan reduces validation perplexity by 8.4%, requires 2.1×2.1\times fewer training tokens to reach the tied baseline's final loss, and improves on all six downstream benchmarks evaluated, including a 30% reduction in LAMBADA perplexity. Frequency-stratified analysis reveals gains to be concentrated in rare tokens, where continuous parameterization reduces perplexity by 81%, falling to near zero for the most frequent.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper introduces Leviathan, an architecture that decouples input and output representations in language models by replacing the discrete input embedding table with a compact learned embedding vectorization based on compositional digit indexing, shared codebooks, and a spline basis expansion, keeping the output head untied at negligible parameter cost, and it demonstrates consistent improvements over tied-embedding baselines across a range of model scales on a large corpus. Reviewers agreed that the work addresses an important and fundamental architectural question, namely the tension created by weight tying between smooth input representations and discriminative output projection, and they praised the elegant and surprisingly simple solution, the strong and controlled empirical evidence spanning multiple model sizes with lower validation loss, better sample efficiency, and across-the-board downstream gains, the clear frequency-stratified analysis showing that rare tokens benefit most because continuous parameterization shares gradient signal across structurally similar tokens, and the clean and readable presentation. The main concerns were that it remains unclear how the findings scale beyond the largest model studied, that the rationale for the somewhat intricate architecture and the necessity of each component, including the spline-based part, is not explained conceptually, that the paper lacks a proper related-work discussion and a comparison to prior digit or radix decomposition approaches, and that the evaluation is confined to a single model family.

Final justification

This paper introduces Leviathan, an architecture that decouples input and output representations by replacing the discrete input embedding table with a compact learned embedding vectorization built from compositional digit indexing, shared codebooks, and a spline basis expansion, while keeping the output head untied at negligible parameter cost, and it demonstrates consistent gains over tied-embedding baselines across a range of model scales on a large corpus. The reviewers agreed that the work addresses an important and fundamental architectural question, namely the tension that weight tying creates between smooth input representations and discriminative output projection, and they praised the elegant and surprisingly simple solution, the strong and carefully controlled empirical evidence spanning multiple model sizes with lower validation loss, improved sample efficiency, and broad downstream gains, the frequency-stratified analysis showing that rare tokens benefit most because continuous parameterization shares gradient signal across structurally similar tokens, and the clean and readable presentation. Their reservations were that it remains unclear how the findings extend beyond the largest model studied, that the conceptual rationale for the somewhat intricate architecture and the necessity of each component, including the spline-based part, is underexplained, that the paper lacks a thorough related-work discussion and a comparison to prior digit or radix decomposition approaches, and that the evaluation is confined to a single model family.

Area Chair 15Hx · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper introduces Leviathan, an architecture that decouples input and output representations in language models by replacing the discrete input embedding table with a compact learned embedding vectorization based on compositional digit indexing, shared codebooks, and a spline basis expansion, keeping the output head untied at negligible parameter cost, and it demonstrates consistent improvements over tied-embedding baselines across a range of model scales on a large corpus. Reviewers agreed that the work addresses an important and fundamental architectural question, namely the tension created by weight tying between smooth input representations and discriminative output projection, and they praised the elegant and surprisingly simple solution, the strong and controlled empirical evidence spanning multiple model sizes with lower validation loss, better sample efficiency, and across-the-board downstream gains, the clear frequency-stratified analysis showing that rare tokens benefit most because continuous parameterization shares gradient signal across structurally similar tokens, and the clean and readable presentation. The main concerns were that it remains unclear how the findings scale beyond the largest model studied, that the rationale for the somewhat intricate architecture and the necessity of each component, including the spline-based part, is not explained conceptually, that the paper lacks a proper related-work discussion and a comparison to prior digit or radix decomposition approaches, and that the evaluation is confined to a single model family.

Final justification

This paper introduces Leviathan, an architecture that decouples input and output representations by replacing the discrete input embedding table with a compact learned embedding vectorization built from compositional digit indexing, shared codebooks, and a spline basis expansion, while keeping the output head untied at negligible parameter cost, and it demonstrates consistent gains over tied-embedding baselines across a range of model scales on a large corpus. The reviewers agreed that the work addresses an important and fundamental architectural question, namely the tension that weight tying creates between smooth input representations and discriminative output projection, and they praised the elegant and surprisingly simple solution, the strong and carefully controlled empirical evidence spanning multiple model sizes with lower validation loss, improved sample efficiency, and broad downstream gains, the frequency-stratified analysis showing that rare tokens benefit most because continuous parameterization shares gradient signal across structurally similar tokens, and the clean and readable presentation. Their reservations were that it remains unclear how the findings extend beyond the largest model studied, that the conceptual rationale for the somewhat intricate architecture and the necessity of each component, including the spline-based part, is underexplained, that the paper lacks a thorough related-work discussion and a comparison to prior digit or radix decomposition approaches, and that the evaluation is confined to a single model family.

Reviewer 8okcOpenReview ↗
Rating
5/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This manuscript tackles the fundamental architectural choice of weight tying in language models, where a single matrix serves as both the input embedding table and the output projection head. The authors argue that this coupling forces a trade-off between two conflicting objectives: input embeddings benefit from smoothness (semantically similar tokens close in space), while the output head requires discriminative separation across the entire vocabulary. Simply untying the weights fails due to optimization difficulties and excessive parameter growth (~50% increase).

To address this, the authors propose Leviathan, which replaces the massive discrete input embedding lookup table with a compact Learned Embedding Vectorization (LEV) layer, a continuous, smooth function that maps token indices to embeddings via compositional indexing, shared codebooks, and a separable B‑spline basis expansion.

Experiments across 200M–1.2B models on The Pile show consistent gains, such as perplexity reduction, better sample efficiency, and across-the-board downstream improvements.

A frequency‑stratified analysis reveals the gains are overwhelmingly concentrated on rare tokens, where the continuous parameterisation shares gradient signals across structurally similar tokens, where discrete lookups fail.

Strengths and weaknesses

Elegant solution to a fundamental problem. The paper identifies an architectural tension in weight tying and proposes a surprisingly simple yet effective fix. The LEV layer replaces a massive table with a tiny continuous function while preserving (and even improving) representational power.

Exceptional parameter and sample efficiency. At 1.2B scale, Leviathan matches the tied baseline’s final loss with 2.1× fewer tokens and reduces validation perplexity by 9.2%.

Mechanistic insight is clearly demonstrated. The frequency‑bucket analysis provides interpretable evidence for why the method works. The monotonic improvement gradient from high‑ to low‑frequency tokens directly validates the hypothesis that continuous sharing helps where data is sparse.

Downstream transfer. Improvements are not just in‑distribution; zero‑shot transfer to WikiText‑103 and six diverse downstream benchmarks confirms generalisation benefits, with gains scaling with model size.

Questions

No

Limitations

Yes

Formatting concerns

No

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their encouraging assessment, as well as their clear and detailed summary of the paper's motivation, empirical results, efficiency gains and frequency-stratified analysis.

Reviewer NZTBOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Leviathan is an architectural enhancement used to untie embedding matrices in LMs -- hence decoupling their dual purpose, while paying very little in added parameters. The idea is to split each index to its digits in base-b, and then passed through a non-linear architecture named LEV, composed of one head per digit position. The new architecture is much more efficient than untying the embeddings and performs better than tied or untied embeddings, as well as other baselines (ALBERT and ablations of LEV). Through mechanistic examination, the paper shows that the tokens that benefit the most out of this is the rare tokens.

Strengths and weaknesses

In my opinion, this is a good paper.

Strengths:

  • The results show benefits for LEV across multiple model sizes (up to 1.2B), the progression during training, multiple downstream tasks. The paper also analyzes the source of the improvement.

  • They show that rare tokens benefit most from this decomposition, because it can benefit from gradient signal to other tokens. They analyze the mechanisms behind the success of the approach. They show that base-b decomposition is part of the reason this works, but that the specific architecture they use, that contains a somewhat convoluted spline-based component, is another driver of success.

  • The paper flows very cleanly and it is easy to follow and clear to follow.

  • In terms of significance, this seems like an easy win for new language models, especially in the "low" training budget regimen (where rare tokens are more rare). Seems quite useful if works.

Weaknesses:

  • A few points that could be improved about the presentation: The logic behind the entire architecture is not explained in the paper, not the benefits of splines (or what they are, for background) and not why every component is required, even conceptually, not even proving the necessity of each. Without this explanation, it is hard for me to understand why the design decision is so complicated.

  • The paper does not have a real "Related Work" section. Moreover, the idea of digit-based/radix decomposition is not entirely new, and it is interesting to understand how it compares with prior work. From a (very) quick check with AI, I didn't find an implementation of this approach in language model embedding matrices specifically. I am quite confident with some search, the authors can find some papers that are more related to their approach than the ones they cite.

  • The signal that rare tokens learns from other tokens are very generic, probably related to the Gaussian distribution that the tokens come from, since there is no structure to hamming distance in the base b decomposition.

Questions
  • As I said above, can you explain the rationale behind the architecture?

  • Suggestion: In line 82, you use ℓ\ell for head numbering, this is usually reserved for layers, you could use a different index.

  • As I stated above, please provide comparison with respect to existing literature. Both in terms of other places base b decomposition is used in AI (or square root decomposition), and also other alternatives to low embedding parameter counts.

  • Interesting to wonder, can we use a similar thing for the output matrix, or will it be too restrictive for an output matrix.

Limitations
  • The LLM architecture family explored is one specific family. They explore multiple sizes but not other design decisions (this is ok in my opinion, but worth noting).

  • i think that when the amount of data is much larger, it is possible that the rare tokens become common enough to move away from the rare domain that benefits most from this intervention.

Final justification

I maintain the existing score, as it is high and still represents my appreciation of the paper.

Formatting concerns

N/A

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed, thoughtful and encouraging feedback as well as the interesting suggestions. Addressing each point:

  1. Architectural logic/design choices

We thank the reviewer for raising this point and it warrants making the rationale in the manuscript clearer. The architecture is intended to introduce three properties: i) continuous input generation, ii) compositional parameter sharing, and iii) smooth and nonlinear expressivity. First, replacing the discrete lookup table with a function allows input representations to share statistical strength. Second, base-b decomposition makes this sharing computationally simple and efficient; different tokens reuse codebook components even when the complete token identities differ. Third, the separable B-spline expansion provides a flexible nonlinear mapping over bounded latent coordinates while preserving the compact, shared structure. B-splines, a choice largely inspired by numerical analysis literature (addressed more in point 2) ), were chosen to provide a combination of locality and high-order smoothness. We agree that this rationale could be better developed in the manuscript, and it would be worth comparing B-splines both to less smooth and less local functions; Fourier basis functions make an interesting choice. Whilst post-hoc rather than explaining design choices, the hierarchical ablation study does provide empirical evidence for each stage: (smooth, compositional, continuous LEV layer) improved upon the (compositional, continuous MLP) improved upon the (continuous MLP), which improved upon the tied-embedding matrix. We agree that better connecting this to the conceptual role of each component would elevate the presentation of the manuscript.

  1. Comparison to existing literature and presentation

We thank the reviewer for raising this point, and agree the discussion on related work could be expanded. Our current "Background" section positions Leviathan against other well-cited and similar approaches to reducing embedding costs, but could be improved by more directly situating the method within its lineage in digit and square-root decompositions, as well as other compositional embedding methods. Inclusion of the lineage that anchors the choice of the separable B-spline expansion will also strengthen the paper's motivation. The Background/related work section will be expanded to include these, as well as sharpening the novelty claim: the architectural contribution is the LEV layer combining the three properties raised above ( i) continuous input generation, ii) compositional parameter sharing, and iii) smooth and nonlinear expressivity), rather than any one alone. Additionally, changing from \ell for head numbering is beneficial for clarity, and we thank the reviewer for this suggestion.

  1. The nature of parameter sharing

We agree that Hamming proximity between token IDs is not inherently semantic, and that the mechanism is parameter reuse, with tokens sharing common codebook entries and downstream function parameters. The interpretation of the shared parameterization as a form of regularization, or perhaps statistical estimation, seems consistent with the frequency analysis. Whether this is eventually overcome with more data is an interesting avenue for future study, and we would be curious, in this regime, whether the benefit flattens out, or perhaps whether other mechanistic effects appear. It is worth noting, however, that in every experiment across all scales the performance gap only ever (roughly) grew throughout training rather than diminishing with additional data.

  1. Use of this technique in the output matrix

This is an excellent suggestion and, as it happens, we did attempt a similar parameterization in the output projection. This did not seem to induce the same performance gains. Aside from this, there is the motivating hypothesis of output projection benefitting from retaining token-specific capacity for discrimination. Nevertheless, our testing was only exploratory and at very small scales, and it would be interesting to test whether output-side factorization might end up proving useful at the scales tested in the manuscript, as well as beyond. This is another interesting avenue for future study.

Reviewer uyAPOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper delves into the question of the tied embeddings in the decoder-only Transformer models. They argue that input representations rely more on smoothness in continuous space, whereas output projections for classification suffer from anisotropic representations. To leverage this issue without significant overhead on model parameters, the authors propose using Leviathan, a method that decouples the representation of input and output embeddings by leveraging learned embedding vectorization. Their results on models with different parameter scales show that Leviathan achieves the lowest validation loss and reaches the highest accuracy across several benchmarks on larger-scale models.

Strengths and weaknesses

Strengths:

  • The paper studies an important question of embeddings decoupling. While tied embeddings are a common choice due to various reasons, having another method of restricting the number of parameters while keeping the model's quality is valuable for the community
  • Experimental results clearly support the authors' claims
  • Paper is well-written and easy to follow

Weaknesses:

(Note that they are mainly addressed in the Limitations section)

  • While comparison is made on the various model sizes, it's unclear how it scales further, since the 1.2b is considered to be on a smaller size. I have my concerns about how the scale will affect the findings.
Questions

Questions

  • Would it be possible to use Leviathan as an ad-hoc method for pre-trained LMs? Have you considered that or the model have to be strictly trained from scratch?
  • I couldn't find information on the number of heads for the LEV backbone. Have you studied how many heads are required to achieve the best trade-off between performance and parameter efficiency?

Misc

  • Please use a consistent style for references (either use the venue/publisher or not)
Limitations

Yes, limitations are adequately addressed.

Formatting concerns

n/a

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading, constructive questions and positive assessment. We address each point and question raised in turn:

  1. Scaling beyond 1.2B parameters.

We agree that our current experiments do not concretely establish behavior at substantially larger scales, and the question of how this approach scales beyond 1.2B parameters is both an interesting and exciting area for future work. The trend is positive, but real experimentation would be valuable here.

  1. Leviathan for pretrained LMs

We thank the reviewer for this question; this is another exciting direction and would help contextualize Leviathan's use cases beyond pretraining from scratch. It is also a current area we are investigating. There are a few potential avenues. There is, of course, logit-level distillation, as well as directly adapting a pretrained model. This could - hypothetically - be done by untying (or replacing) the input embedding matrix with a LEV layer and training the LEV directly with the transformer backbone frozen. One may then proceed most directly by unfreezing the backbone stage-by-stage, perhaps first some early decoder blocks and normalization layers.

  1. Number of heads

We thank the reviewer for this question; h = 8 heads were used throughout all reported experiments and we will make this more prominent. We did not perform a dedicated sweep. Rather, h = 8 was kept fixed as a practical balance between more independently projected components and the already small cost of the LEV layer. A systematic study of the performance-efficiency tradeoff as h varies - as well as a broader hyperparameter study - would be useful future work.

  1. Reference formatting

We thank the reviewer for this, and will make the reference formatting consistent.

Reviewer uyAP · CommentOpenReview ↗

Thank you for your reply. Keeping my score.

Thank you for addressing my questions. I genuinely enjoyed reading the paper and the discussions. I will keep my score as is.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…