Faster Language Models with Better Multi-Token Prediction Using Tensor Decomposition

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Basharin, Artem, Chertkov, Andrei, Oseledets, Ivan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912225079328768
author Basharin, Artem
Chertkov, Andrei
Oseledets, Ivan
author_facet Basharin, Artem
Chertkov, Andrei
Oseledets, Ivan
contents We propose a new model for multi-token prediction in transformers, aiming to enhance sampling efficiency without compromising accuracy. Motivated by recent work that predicts the probabilities of subsequent tokens using multiple heads, we connect this approach to rank-$1$ canonical tensor decomposition. By generalizing it to a rank-$r$ canonical probability decomposition, we develop an improved model that predicts multiple tokens simultaneously. This model can also be interpreted as a mixture of experts, allowing us to leverage successful techniques from that domain for efficient and robust training. Importantly, the overall overhead for training and sampling remains low. Our method demonstrates significant improvements in inference speed for both text and code generation tasks, proving particularly beneficial within the self-speculative decoding paradigm. It maintains its effectiveness across various model sizes and training epochs, highlighting its robustness and scalability.
format Preprint
id arxiv_https___arxiv_org_abs_2410_17765
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Faster Language Models with Better Multi-Token Prediction Using Tensor Decomposition
Basharin, Artem
Chertkov, Andrei
Oseledets, Ivan
Machine Learning
We propose a new model for multi-token prediction in transformers, aiming to enhance sampling efficiency without compromising accuracy. Motivated by recent work that predicts the probabilities of subsequent tokens using multiple heads, we connect this approach to rank-$1$ canonical tensor decomposition. By generalizing it to a rank-$r$ canonical probability decomposition, we develop an improved model that predicts multiple tokens simultaneously. This model can also be interpreted as a mixture of experts, allowing us to leverage successful techniques from that domain for efficient and robust training. Importantly, the overall overhead for training and sampling remains low. Our method demonstrates significant improvements in inference speed for both text and code generation tasks, proving particularly beneficial within the self-speculative decoding paradigm. It maintains its effectiveness across various model sizes and training epochs, highlighting its robustness and scalability.
title Faster Language Models with Better Multi-Token Prediction Using Tensor Decomposition
topic Machine Learning
url https://arxiv.org/abs/2410.17765