SLED: Self Logits Evolution Decoding for Improving Factuality in Large Language Models

Jianyi Zhang, Da-Cheng Juan, Cyrus Rashtchian, Chun-Sung Ferng, Heinrich Jiang, Yiran Chen

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities across various natural language tasks. However, they remain prone to "hallucinations"—the generation of text that is linguistically fluent but factually incorrect. This phenomenon often stems from the dilution of a model's latent knowledge—information acquired during pre-training—as the signal propagates through the transformer's deep architecture to the final output layer.

Existing strategies to mitigate hallucinations typically involve Retrieval-Augmented Generation (RAG) or supervised fine-tuning. While effective, RAG requires external databases and retrieval infrastructure, while fine-tuning is computationally intensive and may degrade general performance. Recent decoding-time interventions like DoLa attempt to address this by contrasting the final layer with a single "premature" layer. However, these methods are often fragile, as selecting the optimal contrastive layer is difficult and varies across different prompts and models. This paper introduces Self Logits Evolution Decoding (SLED), a training-free, robust framework that treats the progression of data through LLM layers as a continuous optimization process to unearth latent factual knowledge.

The SLED Framework

SLED operates on the principle of Logits Evolution. The authors posit that as data moves through the layers of a transformer, the model's internal representation of a fact undergoes a refinement process. By analyzing this evolution, SLED can identify the "direction" of truth and steer the final output toward it.

The SLED decoding process occurs in three distinct phases during inference:

  1. Estimation of Evolution Direction: For every preceding layer, SLED calculates the divergence between its logits and the final layer's logits. By using cosine similarity, the method identifies which tokens the model becomes increasingly certain about as it processes deeper into the network. This establishes a trajectory of knowledge refinement.
  2. Weighted Ensemble: Unlike previous methods that rely on a single early layer, SLED performs a weighted ensemble of signals from all preceding layers. Layers that demonstrate a stronger alignment with the overall evolution direction are assigned higher weights. This "soft estimation" (often involving squaring similarity scores) amplifies confident signals while dampening noise from layers that are still in a state of high entropy.
  3. Self-Evolution Update: SLED treats the ensembled signal as an approximate gradient. It performs a single-step "gradient descent" on the final output logits. This adjustment minimizes the divergence between the model's latent internal knowledge and the final probability distribution, effectively pushing the model toward its most factual internal state.

To maintain computational efficiency, SLED utilizes an Evolution Scale ($k$). The evolution calculations are only performed for the top-$k$ most likely tokens, ensuring that the latency overhead remains negligible compared to standard greedy decoding.

Experimental Evaluation

The researchers evaluated SLED across a diverse array of benchmarks and model architectures to ensure its generalizability:

  • Benchmarks: The study utilized TruthfulQA (MC1, MC2, and MC3 tasks) to test the avoidance of common human misconceptions, and FACTOR (Wiki) to measure factuality in long-form paragraph generation. Qualitative analysis was also conducted using GSM8K for chain-of-thought reasoning.
  • Models: The evaluation spanned several model families, including Gemma-3, Qwen-3, Mixtral (MoE), and GPT-OSS, with parameter counts ranging from 1B to 45B.

Results and Key Insights

SLED demonstrated consistent improvements in factual accuracy across all tested configurations:

  • Superior Performance: SLED consistently outperformed both vanilla greedy decoding and the DoLa baseline. On the FACTOR benchmark, SLED improved factual accuracy by 5-13% over the baselines.
  • Robustness Across Architectures: A significant finding was SLED's effectiveness on Mixture of Experts (MoE) architectures, such as Mixtral-8x7B. MoE models are notoriously difficult to calibrate at decoding time, yet SLED’s ensemble approach successfully captured the factual signal across their sparse layers.
  • Efficiency: By limiting calculations to the top-$k$ logits, the method introduces minimal latency, making it a viable candidate for real-time production environments.
  • The Gradient Analogy: The success of SLED validates the idea that layer-wise transitions can be viewed as a momentum-based optimization. If a model "knows" a fact, that fact typically gains clarity as it moves from early layers (e.g., layer 8) to deeper layers (e.g., layer 24).

Limitations and Future Work

While SLED is a powerful tool for unearthing latent knowledge, it is subject to the "Empty Well" problem: it cannot generate factual information that the model never learned during pre-training. SLED optimizes for the truth within the model, not an external ground truth. Additionally, while the method is more robust than its predecessors, it still requires the tuning of two hyperparameters: the Evolution Rate ($\alpha$) and the Evolution Scale ($k$).

Future research may explore the integration of SLED with external retrieval mechanisms (RAG) or its application during the supervised fine-tuning phase to create a more comprehensive defense against model hallucinations.

Summary updated

BibTeX
@inproceedings{zhang2024sled,
  author = {Jianyi Zhang and Da-Cheng Juan and Cyrus Rashtchian and Chun-Sung Ferng and Heinrich Jiang and Yiran Chen},
  title = {{SLED: Self Logits Evolution Decoding for Improving Factuality in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=t7wvJstsiV},
}
Figure