ELVIA analysis of: DocVXQA: Context-Aware Visual Explanations for Document Question Answering — Problem 2: Training never resets gradients
Original paper: Mohamed Ali Souibgui; Changkyu Choi; Andrey Barsky; Kangsoo Jung; Ernest Valveny; Dimosthenis Karatzas. DocVXQA: Context-Aware Visual Explanations for Document Question Answering. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/souibgui25a.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: train.py46,133-134,247-264;Eq3 and AppendixA3
Question: What does the recorded analysis establish about “Training never resets gradients”?
Bounded finding:
Second optimizer gradient0 vs-1; adaptive update/lr -0.6700582447 vs+0.0526315784. Local changed optimization semantics; no historical convergence or metric effect measured.
Recorded check:
Assessment: Minor; released training source. The method optimizes the combined loss in Eq. (3); Appendix A.3 specifies AdamW. In `train.py`, AdamW is constructed at line 46, and each minibatch calls `overall_loss.backward()` then `optimizer.step()` at lines 133–134. The loop and epoch driver never call `zero_grad`, assign cleared gradients, or invoke a clearing hook. The separate backbone fine-tuning script does clear gradients, but is not called by this training routine.
PyTorch backward adds to gradient buffers; optimizer stepping does not perform that reset [grad]. Consequently, after initially empty gradients, the second step receives \(g_1+g_2\) rather than \(g_2\), and subsequent buffers retain still older gradients evaluated at earlier parameter values. This is not ordinary deliberate accumulation over a fixed microbatch group with one later step: the code steps every minibatch and never resets.
For a scalar initialized at zero, take two minibatch losses \(L_1(w)=w\), \(L_2(w)=-w\). With Adam moments initially zero, \(\beta_1=0.9\), \(\beta_2=0.999\), and \(\epsilon=10^{-8}\), the independent calculation gives
Second step | Gradient supplied | Adaptive update / learning rate
Reset for each minibatch | \(-1 | +0.0526315784\)
Released no-reset pattern | \(0 | -0.6700582447\)
Both have the same first-step weight, so the second-step decoupled weight-decay contribution is identical and cannot remove the discrepancy. This diagnostic demonstrates a changed optimization update, not a prediction of DocVQA accuracy.
An undocumented intention to use cumulative gradients would define a different optimizer and require justification; none was found in the inspected route. Resetting at the intended accumulation boundary restores ordinary minibatch semantics locally. Historical use, retraining effects and repaired metrics remain unverified.
Case-wide limitations:
- P1 — Reference answers enter validation-mask construction — Counterevidence: demo.ipynb cells11/13 first generates answer then masks; conditional explanation of a supplied answer is valid; predicted/reference tokens may match. Standalone evaluator typo prevents asserting unchanged execution. Section4.2 explicitly concatenates question and answer for ColPali without identifying that answer here as reference or prediction; an interpretation forbidding all answer conditioning is unsupported.
- P2 — Training never resets gradients — Counterevidence: Separate backbone fine-tune clears gradients but is not invoked. Intentional cumulative-gradient algorithm not documented.
- P3 — Matrix norms differ from described sparsity and anisotropic TV — Counterevidence: Matrix norms still regularize; could be deliberate alternative but not stated entrywise penalty; no training effect inferred
- Limitations: No score inflation or historical experimental failure claimed
- Limitations: Generated-answer demo is material counterevidence
- Limitations: No author code execution
- Limitations: Published score effect of released implementation unestablished
- Limitations: No causal faithfulness or global minimal-sufficiency theorem verified
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p2
Source report index: 2
Original source excerpts (verbatim):
Minimality emphasizes presenting only the most pertinent information for understanding a model’s decision, while sufficiency ensures that explanations remain consistent and contribute decisively to predicting a correct answer.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 4
Source PDF SHA-256: 60688a39376fcb1b8f9936a0929f96d6d4b0a2d491b5346b800680c9c974a7b7
Review status: Independent review pending
Case: icml2025-0244-docvxqa-context-aware-visual-explanations-for-document-question-an
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0244-docvxqa-context-aware-visual-explanations-for-document-question-an.html#problem-2
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0244-docvxqa-context-aware-visual-explanations-for-document-question-an/records/icml2025-0244-docvxqa-context-aware-visual-explanations-for-document-question-an.r1.json
Canonical record SHA-256: b48f0c08d699bef264627f5b30d54b2f2eaf2f91e2d2a70ef8aa1e0a9db20ccd
The page follows the latest revision; the versioned record identifies this snapshot.