ELVIA analysis of: DocVXQA: Context-Aware Visual Explanations for Document Question Answering — Problem 1: Reference answers enter validation-mask construction
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: Fig2/Sec3.1 pp. 3-4;Sec4.1 p. 6;data.py126-177;train.py164-222,247-261; Sec4.2 p. 6 ColPali answer-conditioned baseline
Question: What does the recorded analysis establish about “Reference answers enter validation-mask construction”?
Bounded finding:
The demo notebook first generates a full-image answer and then tokenizes that prediction to construct the mask (code cells 11 and 13). It supplies an intended annotation-free route and demonstrates that reference conditioning is not unavoidable. If a prediction equals the reference, the token sequences can coincide; no strict score inflation on every example is claimed. Explaining an explicitly supplied answer is also a legitimate conditional task, but its results must be identified as such rather than substituted for question/document-only performance.
Section 4.2 (p. 6) explicitly feeds ColPali a concatenated question and answer. It does not identify that answer here as ground truth or a first-pass prediction. This is material counterevidence to treating every evaluated explanation as necessarily answer-free. The static data dependency is established, but a stronger accusation that all answer conditioning violates the intended task is unsupported. The public validation implementation therefore does not by itself establish annotation-free masked-answer sufficiency. No archived run configuration or checkpoint-to-table mapping establishes that Table 1 used these exact bytes. Re-evaluation with generated first-pass answers, retained raw outputs, and a bound historical version is necessary to resolve that question. Replacing reference decoder inputs with generated ones is a candidate repair; no empirical repair has been verified.
Validation evaluates maskM(X,Q,\(Y_{\rm ref}\)), distinct from annotation-free deployment route. Minor evaluator/protocol mismatch under an annotation-free reading. The static reference dependency is established; a blanket task-violation or score-inflation claim is not. Intended conditioning and historical table mapping need evidence.
Recorded check:
Assessment: Minor for the evaluator/protocol mismatch under an annotation-free reading; the intended conditioning and historical impact need evidence. Figure 2 and Section 3.1 (pp. 3–4) describe a question/document input that produces a mask and then an answer. Section 4.1 (p. 6) describes comparing the subsequent predicted answer with ground truth. The pinned validation route instead admits ground truth before constructing the mask.
In `data.py:126-134`, the dataset’s reference answer is assigned to `text`; lines 174–177 tokenize it into `labels`. In `train.py:164-218`, `eval_masked_doc` shifts those labels into decoder input IDs, obtains cross attentions, aggregates them into mask-head features, thresholds the mask, and only then generates a masked-image answer. The evaluator is called after each epoch and its ANLS selects the best checkpoint (lines 247–260).
Thus the validation mask is a function \(M_\theta(X,Q,Y_{\rm ref})\), whereas an annotation-free deployment mask must be obtainable from \(X,Q\) and model-generated information. For a multi-token reference, the shifted decoder input contains reference tokens after the start symbol. The aggregation includes those later positions whenever its selected length exceeds one; reference-conditioned decoder features can therefore affect the mask. This is a traced dependency, not a measured estimate of score inflation.
The standalone `evaluate.py:49-120` has the same reference-conditioned route, but also a misspelled `attention_m884ask` keyword. We do not claim that file executes unchanged. The training evaluator uses the correctly spelled keyword, so the dataflow finding does not depend on repairing the standalone typo.
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: p1
Source report index: 1
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-1
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.
Analysis citation:
Minhao Liu. ELVIA analysis of: DocVXQA: Context-Aware Visual Explanations for Document Question Answering — Problem 1: Reference answers enter validation-mask construction. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0244-docvxqa-context-aware-visual-explanations-for-document-question-an.html#problem-1
Case icml2025-0244-docvxqa-context-aware-visual-explanations-for-document-question-an; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned 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
Inspection subject recorded in the report:
Static source trace from dataset answers through labels/shift_right/cross_attention/mask to masked-image generation; parent independently read paths.
Pinned public commit d1545b35220fb928a207166aacbcf7e35d20ab1e. Pix2Struct enc_dec_attn validation. Multi-token answer aggregation can include reference-conditioned positions.
Full finding analysis:
Assessment: Minor for the evaluator/protocol mismatch under an annotation-free reading; the intended conditioning and historical impact need evidence. Figure 2 and Section 3.1 (pp. 3–4) describe a question/document input that produces a mask and then an answer. Section 4.1 (p. 6) describes comparing the subsequent predicted answer with ground truth. The pinned validation route instead admits ground truth before constructing the mask.
In `data.py:126-134`, the dataset’s reference answer is assigned to `text`; lines 174–177 tokenize it into `labels`. In `train.py:164-218`, `eval_masked_doc` shifts those labels into decoder input IDs, obtains cross attentions, aggregates them into mask-head features, thresholds the mask, and only then generates a masked-image answer. The evaluator is called after each epoch and its ANLS selects the best checkpoint (lines 247–260).
Thus the validation mask is a function \(M_\theta(X,Q,Y_{\rm ref})\), whereas an annotation-free deployment mask must be obtainable from \(X,Q\) and model-generated information. For a multi-token reference, the shifted decoder input contains reference tokens after the start symbol. The aggregation includes those later positions whenever its selected length exceeds one; reference-conditioned decoder features can therefore affect the mask. This is a traced dependency, not a measured estimate of score inflation.
The standalone `evaluate.py:49-120` has the same reference-conditioned route, but also a misspelled `attention_m884ask` keyword. We do not claim that file executes unchanged. The training evaluator uses the correctly spelled keyword, so the dataflow finding does not depend on repairing the standalone typo.
Finding and scope:
The demo notebook first generates a full-image answer and then tokenizes that prediction to construct the mask (code cells 11 and 13). It supplies an intended annotation-free route and demonstrates that reference conditioning is not unavoidable. If a prediction equals the reference, the token sequences can coincide; no strict score inflation on every example is claimed. Explaining an explicitly supplied answer is also a legitimate conditional task, but its results must be identified as such rather than substituted for question/document-only performance.
Section 4.2 (p. 6) explicitly feeds ColPali a concatenated question and answer. It does not identify that answer here as ground truth or a first-pass prediction. This is material counterevidence to treating every evaluated explanation as necessarily answer-free. The static data dependency is established, but a stronger accusation that all answer conditioning violates the intended task is unsupported. The public validation implementation therefore does not by itself establish annotation-free masked-answer sufficiency. No archived run configuration or checkpoint-to-table mapping establishes that Table 1 used these exact bytes. Re-evaluation with generated first-pass answers, retained raw outputs, and a bound historical version is necessary to resolve that question. Replacing reference decoder inputs with generated ones is a candidate repair; no empirical repair has been verified.
Validation evaluates maskM(X,Q,\(Y_{\rm ref}\)), distinct from annotation-free deployment route. Minor evaluator/protocol mismatch under an annotation-free reading. The static reference dependency is established; a blanket task-violation or score-inflation claim is not. Intended conditioning and historical table mapping need evidence.
Recorded correction and verification scope:
Identify the intended answer-conditioning protocol; compare reference-conditioned and generated-answer routes and bind historical runs.
Displayed problem statement:
Static source trace from dataset answers through labels/shift_right/cross_attention/mask to masked-image generation; parent independently read paths.
Pinned public commit d1545b35220fb928a207166aacbcf7e35d20ab1e. Pix2Struct enc_dec_attn validation. Multi-token answer aggregation can include reference-conditioned positions.
Complete retained report:
Abstract: The practical information-bottleneck-inspired objective is presented as a heuristic, not a proved mutual-information identity. No substantive error was established in that mathematical interpretation or the displayed preference-count arithmetic. Three implementation/specification concerns are established in the pinned public source: reference answers enter validation-mask construction, training never clears accumulated gradients, and matrix norms implement different penalties from entrywise sparsity and anisotropic total variation. The reference-conditioned route must be distinguished from annotation-free evaluation; the paper also explicitly uses an answer-conditioned ColPali baseline. The demonstrated optimizer and regularizer discrepancies are local to these heuristic choices. These findings are assessed as Minor in that bounded scope; the intended evaluation protocol and historical table correspondence remain Needs Evidence.
Author: Assigned review 0244 / I25-43613
Date: Initial review; scientific adjudication pending
Title: Initial Scientific Review of
DocVXQA: Context-Aware Visual Explanations for Document Question Answering
# Paper, source version, and scope
The original is Souibgui, Choi, Barsky, Jung, Valveny, and Karatzas, ICML 2025, PMLR 267, pp. 56549–56569 [paper]. Its 21 PDF pages include Appendices A–B; PDF and printed page numbers coincide. All 27 preserved file hashes match the supplied source manifest. The public source audited is commit `d1545b35220fb928a207166aacbcf7e35d20ab1e` of `dali92002/DocVXQA`, distinct from an authenticated historical run.
The independent check inspected the original method and evaluation text, principal tables, Appendix A implementation, Appendix B result descriptions, and the relevant source dataflow and training paths. Original p. 8 was rendered to check the ablation table and human-study description. No author code, training, weights, dataset or participant-level raw data was executed or acquired. Qualitative figure captions were read, but the full set of image explanations was not independently reproduced or exhaustively visually judged.
# Checked reasoning and necessary interpretation
Let \(T=X\odot M\). Equation (2), p. 4, uses \(I(T;Y)=H(Y)-H(Y\mid T)\) with fixed target distribution. For a predictor \(q_\theta\), \[\mathbb E[-\log q_\theta(Y\mid T)]
=H(Y\mid T)+\mathbb E_T D_{\mathrm{KL}}(p(Y\mid T)\Vert q_\theta(Y\mid T)).\] Cross entropy is therefore an upper surrogate, with a model/optimization gap. The paper uses an approximation sign. Section 3.3 explicitly says the attempted direct mutual-information estimator did not work as expected and substitutes L1 plus continuity regularization. It would be incorrect to attribute to the paper an exact equality between that penalty and \(I(X;T)\).
These losses encourage compact masks and predictive utility; they do not prove global minimal sufficiency or causal faithfulness. Section 4.1 measures the answer model’s performance on masked images. The authors themselves recognize (p. 8) that retaining a number can permit an answer while omitting the context identifying it as the requested total. Human ratings add a separate perceptual criterion. This bounded interpretation is supported; a theorem of faithful recovery of internal reasoning is not supplied.
# Problem 1: Validation masks receive reference-answer information
Assessment: Minor for the evaluator/protocol mismatch under an annotation-free reading; the intended conditioning and historical impact need evidence. Figure 2 and Section 3.1 (pp. 3–4) describe a question/document input that produces a mask and then an answer. Section 4.1 (p. 6) describes comparing the subsequent predicted answer with ground truth. The pinned validation route instead admits ground truth before constructing the mask.
## Static evidence and dependency
In `data.py:126-134`, the dataset’s reference answer is assigned to `text`; lines 174–177 tokenize it into `labels`. In `train.py:164-218`, `eval_masked_doc` shifts those labels into decoder input IDs, obtains cross attentions, aggregates them into mask-head features, thresholds the mask, and only then generates a masked-image answer. The evaluator is called after each epoch and its ANLS selects the best checkpoint (lines 247–260).
Thus the validation mask is a function \(M_\theta(X,Q,Y_{\rm ref})\), whereas an annotation-free deployment mask must be obtainable from \(X,Q\) and model-generated information. For a multi-token reference, the shifted decoder input contains reference tokens after the start symbol. The aggregation includes those later positions whenever its selected length exceeds one; reference-conditioned decoder features can therefore affect the mask. This is a traced dependency, not a measured estimate of score inflation.
The standalone `evaluate.py:49-120` has the same reference-conditioned route, but also a misspelled `attention_m884ask` keyword. We do not claim that file executes unchanged. The training evaluator uses the correctly spelled keyword, so the dataflow finding does not depend on repairing the standalone typo.
## Counterevidence and impact
The demo notebook first generates a full-image answer and then tokenizes that prediction to construct the mask (code cells 11 and 13). It supplies an intended annotation-free route and demonstrates that reference conditioning is not unavoidable. If a prediction equals the reference, the token sequences can coincide; no strict score inflation on every example is claimed. Explaining an explicitly supplied answer is also a legitimate conditional task, but its results must be identified as such rather than substituted for question/document-only performance.
Section 4.2 (p. 6) explicitly feeds ColPali a concatenated question and answer. It does not identify that answer here as ground truth or a first-pass prediction. This is material counterevidence to treating every evaluated explanation as necessarily answer-free. The static data dependency is established, but a stronger accusation that all answer conditioning violates the intended task is unsupported. The public validation implementation therefore does not by itself establish annotation-free masked-answer sufficiency. No archived run configuration or checkpoint-to-table mapping establishes that Table 1 used these exact bytes. Re-evaluation with generated first-pass answers, retained raw outputs, and a bound historical version is necessary to resolve that question. Replacing reference decoder inputs with generated ones is a candidate repair; no empirical repair has been verified.
# Problem 2: Training accumulates stale gradients across optimizer steps
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.
# Problem 3: The released minimality loss uses induced matrix norms
Assessment: Minor; released objective implementation. Section 3.3 (p. 5) describes mask sparsity and anisotropic total variation: entrywise absolute mask values and horizontal/vertical differences. But `utils.py:182-183` calls `torch.linalg.norm` with `ord=1,dim=(1,2)`, and line 199 applies `ord=1` to a two-dimensional token-by-batch matrix. These are induced matrix 1-norms, namely maximum absolute column sums [norm].
For a fully valid batch with \(B\) masks and \(N\) unpadded tokens, the sparsity term is \[L_{\rm released}=\frac{10}{BN}\max_b\sum_{n=1}^{N}|M_{bn}|,
\qquad
L_{\rm entrywise}=\frac{10}{BN}\sum_b\sum_n|M_{bn}|.\] Use \(B=N=2\), with masks \((0.8,0.8)\) and \((0.1,0.1)\). All entries are strictly inside the sigmoid range. The released term is 4, versus 4.5 for the scaled entrywise mean. Since the first sample uniquely maximizes the sum, the released sparsity gradient for both coordinates of the second sample is zero, versus 2.5 for each under the entrywise expression.
Likewise, take a batch of \(B=2\) identical, fully valid, unpadded \(2\times3\) masks, each equal to \[M=\begin{pmatrix}0.1&0.9&0.1\\0.1&0.9&0.1\end{pmatrix},\] horizontal absolute differences have entrywise sum 3.2 but maximum column sum 1.6; vertical differences vanish. With the code’s common denominator \(6-1\), the per-mask terms and their batch means are 0.64 and 0.32 respectively. Taking two masks is necessary here: the implementation’s unqualified `squeeze()` would remove the batch axis for \(B=1\), so this witness uses \(B=2\) to retain the required three-dimensional tensor. The discrepancy does not depend on padding or a boundary mask value.
Both losses can still encourage some regularity; this is not proof of failed learning. A deliberately chosen matrix norm is a possible alternative regularizer, but is not the described entrywise penalty, and it changes which samples/edges receive gradients. Explicit absolute sums with a documented normalization would implement that intended penalty. Only the identities and finite examples were verified; no repaired training run or historical-table effect is established.
# Empirical checks, overall impact, and state
The 42-participant study uses ten images and shows ground-truth answers before ratings (pp. 8–9). It measures perceived context and clarity with answers disclosed; it does not directly measure unaided answering or a causal change in calibrated trust. The separate preference study reports \(163/252=64.6825\%\), consistent with 64.7%. Under independent Bernoulli trials, the two-sided exact binomial value is \(3.65\times10^{-6}\); under independent participants, all 12 favoring the method gives a sign-test value \(2/2^{12}=0.0004883\). These are conditional diagnostics, not a validation of independence. The participant-by-item response matrix and interval construction are unavailable, so uncertainty under repeated judgments remains Needs Evidence.
Table 1 openly shows a PFL-DocVQA unmasked accuracy change from 0.80 to 0.57: 23 percentage points, or 28.75% relative. This should accompany the prose description of a slight decrease. On DocVQA the proposed masked setting and ColPali baseline tie at accuracy 0.38 and pixel ratio 0.23, with ANLS 0.54 versus 0.50. No hidden arithmetic contradiction or universal strict dominance is established. Appendix A says postprocessing is applied to all compared methods.
The supported overall assessment is Minor. The established results are a conditional evaluator/protocol mismatch and local discrepancies in heuristic optimizer and regularizer definitions; no invalid core derivation or material failure of the paper’s core explanation claim is demonstrated by these checks. This scope, rather than a requirement to measure benchmark loss or authenticate a historical commit, determines the severity. The intended answer-conditioning protocol and historical empirical impact remain unresolved.
Item | Assessment | Repair check | Author adoption | Remaining work
P1 | Minor | Not rerun | Unknown | Generated-answer evaluation and historical run binding
P2 | Minor | Local update only | Unknown | Clear gradients; retrain with recorded settings
P3 | Minor | Norm identities | Unknown | Correct intended penalty; retrain and compare
Tables | Needs Evidence | Not applicable | Not applicable | Bind actual runs; obtain repeated-rating raw data
Scientific adjudication remains pending; human reviews are empty. The focused acceptance corrections retain pending scientific adjudication.
# Supporting checks
.
Relevant member hashes and independent numerical results are in . The reviewer-owned uses standard-library arithmetic and AST parsing, not author-code execution. It records the exact binomial sum, Wilson diagnostic, Adam recurrence and matrix-norm examples. binds preserved input hashes; and record coverage and per-claim evidence.
No human endorsement is asserted.
9 M. A. Souibgui et al. DocVXQA: Context-Aware Visual Explanations for Document Question Answering. PMLR 267 (2025), 56549–56569. https://proceedings.mlr.press/v267/souibgui25a.html. Authors’ DocVXQA repository, pinned commit identified above. https://github.com/dali92002/DocVXQA. PyTorch. Zeroing out gradients in PyTorch. Official recipe, updated 28 April 2025, consulted for gradient-buffer semantics. https://docs.pytorch.org/tutorials/recipes/recipes/zeroing_out_gradients.html. PyTorch. `torch.linalg.norm`. Official documentation, consulted for vector versus matrix norm semantics. https://docs.pytorch.org/docs/2.14/generated/torch.linalg.norm.html.
Source PDF SHA-256: 60688a39376fcb1b8f9936a0929f96d6d4b0a2d491b5346b800680c9c974a7b7
Repair verification: pending
Author adoption: not_requested