DAMO: Decoding by Accumulating Activations Momentum for Mitigating Hallucinations in Vision-Language Models

Kaishen Wang, Hengrui Gu, Meijun Gao, Kaixiong Zhou

TL;DR

DAMO (Decoding by Accumulating Activations Momentum) is a training-free decoding strategy designed to mitigate hallucinations in Large Vision-Language Models (LVLMs). It stabilizes the "overthinking" that occurs in final model layers by applying a momentum-based update to hidden states during the forward pass. This preserves correct visual information extracted in early layers, preventing it from being washed out by linguistic biases at the end of the network.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) are highly capable but prone to hallucinations—generating responses that sound fluent but are visually incorrect (e.g., stating there are three people in an image when there are only two).

The authors identify a specific phenomenon driving this issue, which they term "overthinking." Through layer-wise analysis, they discovered that LVLMs often correctly identify the ground-truth information in their middle layers. However, as the signal passes through the final few layers, the model's internal probability distribution shifts drastically. It often favors incorrect results driven by linguistic priors or statistical biases from pre-training. Essentially, the model "knows" the right answer halfway through its "thought process" but talks itself out of it by the time it reaches the output.

Illustration of LVLM hallucinations and the layer-wise 'overthinking' phenomenon.

Methods

To counteract this late-stage degradation, the researchers propose DAMO, a novel decoding mechanism inspired by the momentum analogy used in gradient descent optimizers.

Comparison of standard decoding vs. DAMO's momentum-based activation updates.
  1. Activation Momentum (AM): Standard decoding treats each layer's output as a discrete step. DAMO instead maintains a "momentum" variable that aggregates activation updates layer-by-layer. This ensures that the "direction" of the hidden state update remains consistent and isn't derailed by sudden, localized surges in the final layers.
  2. Adaptive Activation Refinement: The authors found that applying momentum too early can actually impair visual reasoning. DAMO uses an adaptive trigger: it monitors the cosine similarity between the current layer's update and the historical momentum. When this similarity drops below a threshold (signaling the onset of a "hallucination surge"), the model begins refining the activations using the accumulated momentum.
  3. Noise-Resistant Coefficient Adjustment: Once a surge is detected, the algorithm increases the momentum weight ($\beta$) to "lock in" the historical (and likely more accurate) information, making the decoding process more resistant to the noisy, hallucinatory signals appearing in the final layers.

This approach is training-free and occurs entirely during the forward pass, making it highly efficient compared to methods that require multiple forward passes or external memory.

Key Insights

  • The "Aha" Moment: The most striking finding is that in 75% of hallucinated cases, the model actually had the correct answer in its intermediate layers. This suggests that hallucinations aren't always a lack of knowledge, but a failure of the decoding trajectory.
  • Momentum as a Stabilizer: While momentum is a staple of optimization, using it as a decoding constraint is a clever shift. It treats the forward pass of a Transformer as a series of steps toward a "global optimum" (the correct token), using momentum to smooth out the path.
  • Localized Surges: Hallucinations aren't gradual; they manifest as "localized surges" in the final stages of the network. By identifying these surges via cosine similarity, the model can selectively apply corrections only when needed.

Datasets and Key Results

The authors evaluated DAMO across several rigorous benchmarks, including MME (perception and cognition), POPE (object hallucinations), LLaVA-Bench (complex reasoning), and standard LLM benchmarks (TruthfulQA, FACTOR, StrQA, GSM8K) to test transferability.

  • State-of-the-Art Performance: On the MME dataset, DAMO achieved a 100-point improvement over regular decoding when applied to the mPLUG-Owl2 model, outperforming established baselines like VCD and DoLA.
  • Object Hallucination Reduction: In POPE benchmarks, DAMO consistently improved Accuracy and F1 scores across LLaVA-1.5, INF-MLLM, and mPLUG-Owl2, particularly in "Adversarial" and "Popular" settings where models are most likely to fail.
  • Efficiency: Unlike methods like OPERA (which can require up to 50GB of memory for certain models), DAMO introduces negligible memory overhead because it doesn't need to store intermediate logits or perform multiple forward passes.
  • Cross-Modal Transferability: Even though it was designed for vision-language tasks, DAMO improved performance on pure-text LLMs (LLaMA2), particularly on the TruthfulQA and FACTOR (Wiki) datasets.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the authors provide optimal settings, the performance of DAMO relies on tuning the threshold ($\tau$) and momentum coefficients ($\beta_1, \beta_2$), which may vary slightly between different model architectures.
  • Decoding-Only Fix: As a decoding strategy, DAMO mitigates the symptoms of hallucinations but does not fix the underlying training biases that cause them.
  • Future Directions: The authors suggest that exploring different types of momentum (like Nesterov momentum) or integrating this logic directly into the training objective could further enhance model reliability.

Summary updated

BibTeX
@inproceedings{wang2025damo,
  author = {Kaishen Wang and Hengrui Gu and Meijun Gao and Kaixiong Zhou},
  title = {{DAMO: Decoding by Accumulating Activations Momentum for Mitigating Hallucinations in Vision-Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=JUr0YOMvZA},
}
Figure