Pith. sign in

REVIEW 2 cited by

N-Grammer: Augmenting Transformers with latent n-grams

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2207.06366 v1 pith:CJ47NYSE submitted 2022-07-13 cs.CL cs.LG

N-Grammer: Augmenting Transformers with latent n-grams

classification cs.CL cs.LG
keywords languagemodelstransformermodelaugmentingdata-setlatentmodeling
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Transformer models have recently emerged as one of the foundational models in natural language processing, and as a byproduct, there is significant recent interest and investment in scaling these models. However, the training and inference costs of these large Transformer language models are prohibitive, thus necessitating more research in identifying more efficient variants. In this work, we propose a simple yet effective modification to the Transformer architecture inspired by the literature in statistical language modeling, by augmenting the model with n-grams that are constructed from a discrete latent representation of the text sequence. We evaluate our model, the N-Grammer on language modeling on the C4 data-set as well as text classification on the SuperGLUE data-set, and find that it outperforms several strong baselines such as the Transformer and the Primer. We open-source our model for reproducibility purposes in Jax.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation

    cs.CL 2026-04 unverdicted novelty 6.0

    Byte-level simulations show subword tokenization improves LLM training mainly via increased throughput and boundary priors.

  2. Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation

    cs.CL 2026-04 unverdicted novelty 5.0

    Subword tokenization's main benefits arise from higher sample throughput and the use of subword boundaries as explicit priors or inductive biases, isolated via controlled byte-level simulations.