paper-with-me

Papers

Tandem Transformers for Inference Efficient LLMs

2024-02-13 · Aishwarya P S, Pranav Ajit Nair, Yashas Samaga, Toby Boyd, Sanjiv Kumar, Prateek Jain, Praneeth Netrapalli

The autoregressive nature of conventional large language models (LLMs) inherently limits inference speed, as tokens are generated sequentially. While speculative and parallel decoding techniques attempt to mitigate this, they face limitations: either relying on less accurate smaller models for generation or failing to fully leverage the base LLM's representations. We introduce a novel architecture, Tandem transformers, to address these issues. This architecture uniquely combines (1) a small autoregressive model and (2) a large model operating in block mode (processing multiple tokens simultaneously). The small model's predictive accuracy is substantially enhanced by granting it attention to the large model's richer representations. On the PaLM2 pretraining dataset, a tandem of PaLM2-Bison and PaLM2-Gecko demonstrates a 3.3% improvement in next-token prediction accuracy over a standalone PaLM2-Gecko, offering a 1.16x speedup compared to a PaLM2-Otter model with comparable downstream performance. We further incorporate the tandem model within the speculative decoding (SPEED) framework where the large model validates tokens from the small model. This ensures that the Tandem of PaLM2-Bison and PaLM2-Gecko achieves substantial speedup (around 1.14x faster than using vanilla PaLM2-Gecko in SPEED) while maintaining identical downstream task accuracy.

📄 PDF Abstract BibTeX arXiv:2402.08644

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar Papers 제목 키워드 기반

Tandem: Riding Together with Large and Small Language Models for Efficient Reasoning

2026-04-26 · Zichuan Fu, Xian Wu, Guojing Li, Yejing Wang 외 arxiv

Recent advancements in large language models (LLMs) have catalyzed the rise of reasoning-intensive inference paradigms, where models perform explicit step-by-step reasoning before generating final answers. While such app…

Mathematical ReasoningCode Generation

A Tandem Learning Rule for Effective Training and Rapid Inference of Deep Spiking Neural Networks

2019-07-02 · Jibin Wu, Yansong Chua, Malu Zhang, Guoqi Li 외

Spiking neural networks (SNNs) represent the most prominent biologically inspired computing model for neuromorphic computing (NC) architectures. However, due to the non-differentiable nature of spiking neuronal functions…

Event-based vision

TANDEM: Bi-Level Data Mixture Optimization with Twin Networks

2026-06-03 · Jiaxing Wang, Deping Xiang, Jin Xu, Mingyang Yi 외 arxiv

The capabilities of large language models (LLMs) significantly depend on training data drawn from various domains. Optimizing domain-specific mixture ratios can be modeled as a bi-level optimization problem, which we sim…

MassFormer: Tandem Mass Spectrum Prediction for Small Molecules using Graph Transformers

2021-11-08 · Adamo Young, Bo wang, Hannes Röst

Tandem mass spectra capture fragmentation patterns that provide key structural information about a molecule. Although mass spectrometry is applied in many areas, the vast majority of small molecules lack experimental ref…

Drug Discovery

Computational frame analysis revisited: On LLMs for studying news coverage

2025-11-21 · Sharaj Kunjar, Alyssa Hasegawa Smith, Tyler R Mckenzie, Rushali Mohbe 외 arxiv

Computational approaches have previously shown various promises and pitfalls when it comes to the reliable identification of media frames. Generative LLMs like GPT and Claude are increasingly being used as content analyt…