paper-with-me

Papers

Local and Global Decoding in Text Generation

2024-10-14 · Daniel Gareev, Thomas Hofmann, Ezhilmathi Krishnasamy, Tiago Pimentel

Text generation, a key component in applications such as dialogue systems, relies on decoding algorithms that sample strings from a language model distribution. Traditional methods, such as top-$k$ and top-$\pi$, apply local normalisation to the model's output distribution, which can distort it. In this paper, we investigate the effect of this distortion by introducing globally-normalised versions of these decoding methods. Additionally, we propose an independent Metropolis-Hastings algorithm to approximate sampling from globally-normalised distributions without explicitly computing them. Our empirical analysis compares the performance of local and global normalisation across two decoding algorithms (top-$k$ and top-$\pi$) with various hyperparameters, using Pythia language models. Results show that, in most configurations, global decoding performs worse than the local decoding version of the same algorithms -- despite preserving the distribution's integrity. Our results suggest that distortion is an important feature of local decoding algorithms.

📄 PDF Abstract BibTeX arXiv:2410.10810

Code (1)

lowlypalace/global-decoding 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingText Generation

Methods 이 논문이 사용한 방법론

Pythia Pythia is a suite of decoder-only autoregressive language models all trained on public data seen in the exact same order and ranging in size from 70M to 12B parameters. The…

Similar Papers 제목 키워드 기반

ElasticDiffusion: Training-free Arbitrary Size Image Generation through Global-Local Content Separation

2023-11-30 · CVPR 2024 1 · Moayed Haji-Ali, Guha Balakrishnan, Vicente Ordonez

Diffusion models have revolutionized image generation in recent years, yet they are still limited to a few sizes and aspect ratios. We propose ElasticDiffusion, a novel training-free decoding method that enables pretrain…

Image Generation

GUARD: Glocal Uncertainty-Aware Robust Decoding for Effective and Efficient Open-Ended Text Generation

2025-08-28 · Yuanhao Ding, Esteban Garces Arias, Meimingwei Li, Julian Rodemann 외 arxiv

Open-ended text generation faces a critical challenge: balancing coherence with diversity in LLM outputs. While contrastive search-based decoding strategies have emerged to address this trade-off, their practical utility…

Text Generation

Focus on the Core: Empowering Diffusion Large Language Models by Self-Contrast

2026-05-02 · Jinyuan Feng, Xin Yu, Yiqun Chen, Xiaochi Wei 외 arxiv

The iterative denoising paradigm of Diffusion Large Language Models (DLMs) endows them with a distinct advantage in global context modeling. However, current decoding strategies fail to leverage this capability, typicall…

Logical Reasoning

HALC: Object Hallucination Reduction via Adaptive Focal-Contrast Decoding

2024-03-01 · Zhaorun Chen, Zhuokai Zhao, Hongyin Luo, Huaxiu Yao 외

While large vision-language models (LVLMs) have demonstrated impressive capabilities in interpreting multi-modal contexts, they invariably suffer from object hallucinations (OH). We introduce HALC, a novel decoding algor…

HallucinationObjectObject HallucinationText Generation

Investigating Label Bias in Beam Search for Open-ended Text Generation

2020-05-22 · Liang Wang, Jinlong Liu, Jingming Liu

Beam search is an effective and widely used decoding algorithm in many sequence-to-sequence (seq2seq) text generation tasks. However, in open-ended text generation, beam search is often found to produce repetitive and ge…

Response GenerationText Generation