Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMs

Jaydip Sen, Saptarshi Sengupta, Subhasis Dasgupta
6/3/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

This chapter explores advancements in decoding strategies for large language models (LLMs), focusing on enhancing the Locally Typical Sampling (LTS) algorithm. Traditional decoding methods, such as top-k and nucleus sampling, often struggle to balance fluency, diversity, and coherence in text generation. To address these challenges, Adaptive Semantic-Aware Typicality Sampling (ASTS) is proposed as an improved version of LTS, incorporating dynamic entropy thresholding, multi-objective scoring, and reward-penalty adjustments. ASTS ensures contextually coherent and diverse text generation while maintaining computational efficiency. Its performance is evaluated across multiple benchmarks, including story generation and abstractive summarization, using metrics such as perplexity, MAUVE, and diversity scores. Experimental results demonstrate that ASTS outperforms existing sampling techniques by reducing repetition, enhancing semantic alignment, and improving fluency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sen2025advancing,
  title  = {Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMs},
  author = {Jaydip Sen and Saptarshi Sengupta and Subhasis Dasgupta},
  year   = {2025},
  eprint = {2506.05387},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05387v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.05387.svg)](https://codeofpaper.com/paper/2506.05387)

Discussion