paper-with-me

Papers

Improving Next Tokens via Second-Last Predictions with Generate and Refine

2024-11-23 · Johannes Schneider

Autoregressive language models like GPT aim at predicting next tokens, while autoencoding models such as BERT are trained on tasks such as predicting masked tokens. We train a decoder only architecture for predicting the second last token for a sequence of tokens. Our approach yields higher computational training efficiency than BERT-style models by employing a structured deterministic approach towards masking tokens. We use our model to improve the next token predictions of a standard GPT by combining both predictions in a `generate-then-refine'' approach. We show on different variants of GPT-2 and different datasets that (not unexpectedly) second last token predictions are much more accurate, i.e., more than 15\% higher accuracy than ordinary next token predictors. The `generate-then-refine'' approach also demonstrates notable improvements in next-token predictions, yielding smaller yet consistent and significant gains.

📄 PDF Abstract BibTeX arXiv:2411.15661

Code (0)

등록된 구현이 없습니다.

Tasks

Decoder

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Discriminative Fine-Tuning Discriminative Fine-Tuning is a fine-tuning strategy that is used for ULMFiT type models. Instead of using the same learning rate…
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Adam 설명 없음
Residual Connection 설명 없음
Weight Decay 설명 없음

Similar Papers 제목 키워드 기반

LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculation

2025-07-02 · Tianyu Liu, Qitan Lv, Hao Li, Xing Gao 외 arxiv

Speculative decoding (SD), where a small draft model is employed to propose draft tokens in advance and then the target model validates them in parallel, has emerged as a promising technique for LLM inference acceleratio…

Text Generation

Bridging the Training-Inference Gap in LLMs by Leveraging Self-Generated Tokens

2024-10-18 · Zhepeng Cen, Yao Liu, Siliang Zeng, Pratik Chaudhari 외

Language models are often trained to maximize the likelihood of the next token given past tokens in the training dataset. However, during inference time, they are utilized differently, generating text sequentially and au…

MathQuestion Answering

Short-Context Dominance: How Much Local Context Natural Language Actually Needs?

2025-12-08 · Vala Vakilian, Zimeng Wang, Ankit Singh Rawat, Christos Thrampoulidis arxiv

We investigate the short-context dominance hypothesis: that for most sequences, a small local prefix suffices to predict their next tokens. Using large language models as statistical oracles, we measure the minimum conte…

Not all tokens are created equal: Perplexity Attention Weighted Networks for AI generated text detection

2025-01-07 · Pablo Miralles-González, Javier Huertas-Tato, Alejandro Martín, David Camacho

The rapid advancement in large language models (LLMs) has significantly enhanced their ability to generate coherent and contextually relevant text, raising concerns about the misuse of AI-generated content and making it …

AllText Detection

Neural Predictive Text for Grammatical Error Prevention

2021-05-16 · ACL ARR May 2021 5 · Anonymous

In this paper we study the potential of two neural language models, an LSTM and an autoregressive language model GPT-2, to predict possible correction tokens in erroneous sentences and to predict the next token in random…

Grammatical Error CorrectionLanguage ModelingLanguage Modelling