Beyond Truncation: Rethinking LLM Decoding as Ensemble Pruning

TL;DR

Introduces Mahalanobis-Ensemble Decoding to optimize LLM decoding via ensemble pruning, enhancing semantic diversity and generation quality.

cs.AI 🔴 Advanced 2026-09-16 14 views
Dunyao Xue Chengshuo Du Zhengbo Wang Wenlin Dai Cheng Meng
large language models decoding strategy ensemble pruning Mahalanobis distance semantic diversity

Key Findings

Methodology

The paper introduces Mahalanobis-Ensemble Decoding (ME-Decoding), a novel decoding framework that treats candidate token selection as an ensemble pruning problem. It uses a Mahalanobis distance-driven objective to dynamically discount redundant generation paths, leveraging an adaptive-bandwidth kernel to construct a token similarity matrix. An efficient greedy selection algorithm ensures near-linear complexity in candidate size.

Key Results

  • On the GSM8K dataset, ME-Decoding achieved an average accuracy of 72.66% across different temperatures, significantly outperforming other baseline methods.
  • On the GPQA dataset, ME-Decoding maintained an average accuracy of 32.96% across all temperatures, demonstrating outstanding performance.
  • In instruction-following and chat generation tasks, ME-Decoding achieved the best average ranking in AlpacaEval and MT-Bench evaluations.

Significance

This research introduces a geometry-aware decoding strategy that significantly enhances the performance of large language models in reasoning and generation tasks. By dynamically adjusting the candidate token set, ME-Decoding effectively addresses redundancy issues in traditional decoding methods, improving generation diversity and quality. This method holds significant theoretical value in academia and offers new insights for practical applications in industry.

Technical Contribution

ME-Decoding introduces the concept of Mahalanobis distance and ensemble pruning into the decoding process, offering a new perspective. Unlike existing probability-based methods, it enhances semantic diversity while maintaining high-probability candidates. The proposed greedy algorithm has theoretical guarantees on complexity, ensuring efficiency.

Novelty

ME-Decoding is the first to apply ensemble pruning to LLM decoding, optimizing candidate token selection through Mahalanobis distance. It offers significant advantages in computational efficiency and stability over existing geometry-aware methods.

Limitations

  • In complex semantic scenarios, ME-Decoding may not completely eliminate redundant candidates.
  • The method may require more computational resources on large-scale models.

Future Work

Future research could explore the application of ME-Decoding to other generation tasks, such as machine translation and dialogue systems. Further optimization of algorithmic efficiency and stability is also a key direction.

AI Executive Summary

In the decoding process of large language models, traditional methods often rely on probability truncation, ignoring the geometric semantic relationships between words, leading to candidate redundancy. This paper introduces a novel decoding framework called Mahalanobis-Ensemble Decoding (ME-Decoding), which treats candidate selection as an ensemble pruning problem, using a Mahalanobis distance-driven objective to dynamically discount redundant generation paths. Experimental results show that ME-Decoding performs excellently across various reasoning and generation tasks, significantly enhancing generation diversity and quality.

ME-Decoding constructs a token similarity matrix using an adaptive-bandwidth kernel, combined with an efficient greedy selection algorithm, ensuring near-linear complexity in candidate size. This method holds significant theoretical value in academia and offers new insights for practical applications in industry.

Despite its excellent performance in multiple tasks, ME-Decoding may not completely eliminate redundant candidates in complex semantic scenarios. Future research could explore its application to other generation tasks and further optimize algorithmic efficiency and stability.

Deep Analysis

Background

Large language models have excelled in text generation tasks, but their decoding strategies often rely on simple probability truncation, ignoring the geometric semantic relationships between words. This approach can lead to candidate redundancy, limiting generation diversity and quality. Recently, geometry-aware decoding methods have gained attention, but these methods often require complex optimization processes with high computational costs.

Core Problem

Traditional decoding methods primarily rely on probability truncation, ignoring semantic relationships between words, leading to candidate redundancy and limiting generation diversity and quality. Addressing the challenge of enhancing semantic diversity while maintaining high-probability candidates is a pressing issue.

Innovation

ME-Decoding introduces the concept of Mahalanobis distance and ensemble pruning, offering a new decoding perspective. It enhances semantic diversity while maintaining high-probability candidates. Unlike existing geometry-aware methods, ME-Decoding offers significant advantages in computational efficiency and stability.

Methodology

  • �� Uses a Mahalanobis distance-driven objective to dynamically discount redundant generation paths.
  • �� Constructs a token similarity matrix using an adaptive-bandwidth kernel.
  • �� Combines with an efficient greedy selection algorithm to ensure near-linear complexity in candidate size.

Experiments

Experiments were conducted on GSM8K and GPQA datasets to evaluate ME-Decoding's performance across different temperatures. Instruction-following and chat generation tasks were evaluated using AlpacaEval and MT-Bench. All experiments were conducted under the same prompts, temperature settings, maximum generation length, and stopping criteria.

Results

On the GSM8K dataset, ME-Decoding achieved an average accuracy of 72.66% across different temperatures, significantly outperforming other baseline methods. On the GPQA dataset, ME-Decoding maintained an average accuracy of 32.96%. In instruction-following and chat generation tasks, ME-Decoding achieved the best average ranking in AlpacaEval and MT-Bench evaluations.

Applications

ME-Decoding can be applied to various generation tasks, such as machine translation, dialogue systems, and text generation. Its enhanced semantic diversity and generation quality make it widely applicable in these fields.

Limitations & Outlook

Despite its excellent performance in multiple tasks, ME-Decoding may not completely eliminate redundant candidates in complex semantic scenarios. Additionally, the method may require more computational resources on large-scale models.

Plain Language Accessible to non-experts

Imagine you're in a large kitchen preparing a lavish dinner. You have many ingredients to choose from, but you can't use them all as it would lead to a chaotic flavor. Traditional methods are like choosing only the most common ingredients, ignoring their combinations. ME-Decoding is like a smart chef who considers not only the freshness of ingredients but also their combinations to select the best mix. This way, your dinner is not only delicious but also creative.

ELI14 Explained like you're 14

Imagine you're playing a game where you need to choose characters. Each character has different skills and attributes, but you can't choose them all. Traditional methods might just pick the strongest-looking characters, ignoring team balance. ME-Decoding is like a smart player who picks the best team based on the combination of skills. This way, your team is not only strong but also more flexible in facing different challenges.

Glossary

Mahalanobis Distance

A measure of distance between points in a multidimensional space, considering data correlation.

Used to construct token similarity matrix for optimizing candidate selection.

Ensemble Pruning

A method of selecting a subset from a set of candidates to optimize overall performance.

Used to optimize the decoding process of large language models.

Adaptive Bandwidth Kernel

A kernel function that dynamically adjusts bandwidth based on data distribution for similarity computation.

Used to construct token similarity matrix.

Greedy Algorithm

An algorithm that iteratively selects the locally optimal solution, often used for combinatorial optimization problems.

Used to select the best subset of candidate tokens.

Semantic Diversity

ME-Decoding enhances semantic diversity in generation.

Open Questions Unanswered questions from this research

  • 1 How to further optimize the computational efficiency of ME-Decoding, especially for large-scale models.
  • 2 How to further reduce redundant candidates in more complex semantic scenarios.

Applications

Immediate Applications

Machine Translation

Enhances translation quality and fluency by improving semantic diversity.

Dialogue Systems

Provides richer and more natural responses in dialogue generation.

Long-term Vision

Intelligent Text Generation

Offers higher quality and diverse outputs in various text generation tasks.

Abstract

We introduce Mahalanobis-Ensemble Decoding (ME-Decoding), a novel Large Language Model (LLM) decoding framework that frames candidate token selection as ensemble pruning. Existing selection strategies rely predominantly on scalar probabilities, ignoring geometric semantic relationships and causing candidate redundancy. Meanwhile, current geometry-aware methods often require complex optimization or directly reweighting the original token probabilities, leading to significant computational overhead or inference instability. To address this, we formulate decoding as a subset optimization problem using a Mahalanobis distance-driven objective to enhance semantic diversity while preserving high probabilities. Specifically, we dynamically discount redundant generation paths using a token similarity matrix, constructed via an adaptive-bandwidth kernel over token embeddings. We further devise an efficient greedy selection algorithm with near-linear complexity in the candidate size under early stopping, while establishing its theoretical approximation guarantees. This renders ME-Decoding a robust, plug-and-play module with negligible inference overhead. Extensive experiments across diverse reasoning and generation tasks demonstrate that our method consistently achieves strong performance.

cs.AI cs.LG