Candidate Selection Using Numeric Confidence for Financial Document Image Restoration

Candidate Selection Using Numeric Confidence for Financial Document Image Restoration

Tiantian Zhang | Han Cao | Wenyang Liu* | Biao Guo*

School of Economics and Management, Anhui Xinhua University, Hefei 230088, China

Hefei Cigarette Factory, China Tobacco Anhui Industrial Co., Ltd., Hefei 230601, China

Corresponding Author Email: 
liuwenyang@axhu.edu.cn; guobiao@axhu.edu.cn
Page: 
2329-2343
|
DOI: 
https://doi.org/10.18280/ts.430518
Received: 
20 April 2026
|
Revised: 
17 September 2026
|
Accepted: 
5 October 2026
|
Available online: 
31 October 2026
| Citation

© 2026 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

Restoring financial document images requires suppressing imaging artifacts without losing small numeric symbols and punctuation. This study examines two strategies, evaluated separately, for improving numeric recovery and image fidelity: candidate selection and compact residual calibration. Five analytical candidates were generated using multiscale background correction, non-local means denoising and regularized Gaussian inverse filtering. A single complete candidate image was then chosen by summing optical character recognition confidence over digit-containing tokens, with no reference text used at inference. Separately, a bounded six-parameter residual model was fitted to DocRes outputs on 12 calibration tables, with reference numeric regions weighted more heavily, and then tested on 24 issuer-disjoint tables. On 100 financial tables from 63 issuer codes under three synthetic degradation levels, macro numeric-word exact match rose from 41.30% for the multiscale baseline to 47.26%, a gain of 5.96 percentage points with a 95% issuer-cluster bootstrap interval of 4.37–7.50 percentage points. On 33 structurally annotated tables, body-cell exact recall rose from 29.77% to 32.26%. On 20 original scanned receipts, numeric-region exact match improved from 64.20% to 68.55%. Residual calibration raised the peak signal-to-noise ratio (PSNR) of DocRes from 27.40 to 28.84 dB and its structural similarity from 0.9322 to 0.9345. Under the tested conditions, the results favor numeric-confidence selection for analytical restoration and compact calibration for raster fidelity. The study also offers a reproducible evaluation that links image restoration to numeric recovery and body-cell recognition.

Keywords: 

candidate selection, document image restoration, financial document, optical character recognition, regularized deconvolution, residual calibration

1. Introduction

Financial document analysis depends on recovering numerical values along with their textual and spatial context. A decimal point, minus sign or parenthesis may occupy only a few pixels, yet losing it can change the meaning of an amount. Financial reasoning tasks such as those in FinQA [1] show how much depends on reliable numerical evidence. For image-based documents, however, this evidence must first survive acquisition and preprocessing. Restoration should therefore be judged by its effect on numerical recognition, not by visual clarity alone.

Financial tables make this requirement especially demanding. Unlike continuous text, tables often use whitespace, indentation and narrow symbol columns to organize information. A small dark component may be a decimal point or punctuation mark, but it may equally be produced by noise or compression. Enhancement operations therefore pull in opposite directions: denoising can suppress artifacts while weakening faint symbols, whereas sharpening can recover narrow strokes while amplifying noise. Nonuniform illumination complicates matters further, since background correction alters both local contrast and noise amplitude. As a result, a processing configuration that helps one table may harm another that looks much the same.

These competing effects also complicate evaluation. Financial-table resources such as FinTabNet [2] and its corrected derivative, FinTabNet.c [3], supply content and annotations for studying recognition in this setting. PubTables-1M also shows why consistent structural annotation matters [4]. Still, image fidelity, text recognition and table recovery capture different aspects of a restored document. A small raster error does not guarantee a correct number, and a correctly recognized number may still land in the wrong cell. Matrix-based measures such as GriTS explicitly separate table topology, location and content [5]. Restoration experiments should keep these outcomes apart in the same way, rather than taking an image-level structural score as evidence of successful extraction.

For analytical restoration, the practical question is how to choose among operations that handle illumination, noise and blur differently. Background normalization can reduce low-frequency shading, but it says nothing about how much denoising or inverse filtering should follow. Applying one configuration to every image ignores differences in text size, degradation and table density. Choosing a configuration with the help of the correct transcript, on the other hand, is impossible in deployment. What is needed is a selection rule that draws on information produced by the recognition engine itself and requires no reference text or word locations at inference.

We study such a rule with a fixed bank of five restoration candidates. The bank combines multiscale background correction with alternative treatments of noise and detail, including non-local means denoising and three regularized Gaussian inverse filters. Each candidate is processed by the same optical character recognition (OCR) engine. The selector then sums confidence over predicted tokens containing digits and returns one complete candidate image. Unlike mean confidence, this score takes into account how many digit-containing predictions there are, not only how confident they are. We test whether this difference improves numerical recovery by direct comparison with mean-confidence selection and with the fixed candidate outputs.

A separate experiment looks at compact adaptation of a pretrained document restorer whose network weights are kept fixed. A bounded six-parameter residual model is fitted on a small calibration set to adjust detail bands, disagreement with the denoised input, gain and offset. Numeric-region weighting is compared with uniform weighting to see how it affects calibration. This experiment targets raster fidelity after learned restoration, whereas candidate selection is aimed mainly at numerical recognition. We evaluate the two strategies separately so that a gain on one endpoint is not credited to the other.

The study makes three contributions. First, it formulates numeric confidence-mass selection and tests the scoring rule against fixed preprocessing and other selection criteria. Second, it asks whether a compact residual model can improve the output of a fixed pretrained restorer without retraining the network. Third, it assesses both strategies at the image, numeric-word and body-cell levels, using issuer-disjoint financial-table cohorts, additional shadow and noise conditions, a second recognition backend and original scanned receipts. Controlled degradation supplies paired references for fidelity analysis, while the receipt experiment tests recognition with no synthetic degradation added. Taken together, the experiments show where the proposed processing choices improve recovery and how much those gains depend on the evaluation endpoint and the recognition backend.

2. Related Work

2.1 Analytical document enhancement

Document enhancement covers illumination correction, noise suppression and foreground extraction, and no single output is optimal for all of these tasks. Reviews of degradation-driven enhancement and binarization note that the appropriate representation depends on the condition of the document and its intended use [6-8]. Work on shadow removal further separates methods that estimate background intensity from those that model illumination or learn a direct restoration mapping [9]. The distinction matters for financial tables, because keeping a readable grayscale image and recovering a reliable foreground mask place different demands on processing.

Adaptive binarization is a well-established answer to spatially varying document quality. Gatos et al. [10] combined background estimation with adaptive degraded-document processing, while Sauvola and Pietikäinen [11] used local mean and variance to determine thresholds. Lu et al. [12] incorporated background estimation and stroke-edge information. Despite their different formulations, these methods share the insight that foreground recovery depends on separating the spatial scale of printed content from that of background variation. In financial tables, narrow punctuation, ruling lines and shaded cells make this separation especially important.

Global and local contrast operations offer simpler points of reference. Otsu’s [13] histogram-based criterion determines a single threshold without explicitly representing spatial illumination variation. Contrast limited adaptive histogram equalization instead modifies local intensity distributions while limiting contrast amplification [14]. These operations can improve visibility, but their effect on recognition depends on which small components they preserve or amplify. Preprocessing should therefore be judged by the content it recovers as well as by its appearance.

2.2 Learned restoration and refinement

Learned restoration models estimate image corrections from training data. Residual learning for denoising established a general approach to predicting such corrections [15], and DE-GAN applied conditional adversarial learning to document enhancement [16]. BEDSR-Net introduced document-specific background estimation into a shadow-removal network [17]. These methods show that learned mappings can draw on information beyond the local statistics used in conventional enhancement.

Later architectures differ in how they model restoration and refinement. DocDiff used residual diffusion to refine an initial document estimate [18]. Restormer developed a transformer architecture for high-resolution image restoration [19], while DocRes unified several document-restoration tasks within a generalist model [20]. Related foreground-recovery approaches include gated convolutions in GDB [21] and a nonlinear diffusion system that couples restoration with binarization [22]. These approaches tackle overlapping degradation problems but differ in their output representations and training objectives.

Data generation and illumination modeling offer complementary routes to handling document shadows. Matsuo and Aoki [23] generated synthetic document images with diverse shadows to support learned removal. Gao et al. [24] investigated illumination correction, while LDH-Net combined luminance information with hybrid processing [25]. More recent work explored score-based gradient-guided generation [26] and wavelet-based predict-and-refine diffusion in DocWaveDiff [27]. This body of work establishes background correction and detail recovery as standard components of document restoration. The present study focuses instead on selection among fixed analytical outputs and on compact calibration of a pretrained restoration estimate.

2.3 Recognition-oriented selection and evaluation

How these alternatives should be compared depends on what the restored document will be used for. An OCR engine such as Tesseract produces text and spatial predictions [28], whereas the structural similarity index (SSIM) assesses local luminance, contrast and structural similarity [29]. Close agreement with a reference raster does not show that a number has been transcribed correctly or placed in the right cell. Resampling methods offer a general basis for estimating uncertainty in measured differences [30]; here, a paired issuer-cluster procedure is used to account for dependence among tables from the same issuer.

The same evaluation requirements bear on candidate selection. Non-local means is an established way to suppress noise while keeping repeated image structure [31], but its output is not necessarily the best choice for every degraded table. Bui et al. [32] addressed variation between document images by learning to select preprocessing combinations for OCR. Our approach instead runs the recognition engine on a fixed candidate bank and sums confidence over digit-containing predictions. Comparing this score with mean confidence isolates the effect of summing digit-token confidence within the same bank.

External recognition data offer an additional check on conclusions drawn from controlled degradation. SROIE supplies original scanned receipts with text-region annotations and financial key fields [33]. Because its annotation unit differs from the word-level annotations used for financial tables, receipt-region and table-word recognition have to be reported separately. Our evaluation accordingly keeps raster fidelity, numeric recognition and body-cell recovery apart, so that each claimed improvement can be tied to the endpoint that supports it.

3. Materials and Methods

Two restoration strategies with different objectives were evaluated. The first chose an analytical restoration candidate on the basis of numeric recognition confidence. The second calibrated the output of a fixed pretrained restorer using a small supervised dataset. Both strategies used the same image degradation and recognition settings within their respective comparisons. Data allocation, processing steps and parameter estimation for each are described below.

3.1 Data sources and cohort construction

Financial table images and word annotations were obtained from the public FinTabNet.c Structure archive [2, 3]. The acquired pool consisted of the first 1,920 JPEG images in archive order and their word annotations. Source identifiers, image dimensions, archive membership and SHA-256 hashes were recorded in the accompanying reproducibility material. The dataset release declares the CDLA Permissive 2.0 license and retains the provenance of the original FinTabNet material.

Cohorts were built deterministically from archive-prefix membership, table identifiers and issuer-code exclusions. The analytical test cohort comprised 100 tables from 63 issuer codes absent from the first 640 acquired images. Each table was evaluated at three degradation levels, giving 300 degraded inputs. Twelve tables from this cohort, covering 11 issuer codes, were later used to fit the residual-calibration and ranking models. A separate neural test cohort contained 24 tables from 22 other issuer codes, excluding the codes represented in the preceding cohorts. To keep CPU inference tractable, neural calibration and testing were limited to crops of at most 150,000 source pixels.

The calibration subset was thus nested within the analytical cohort while remaining issuer-disjoint from the neural test cohort. Issuer grouping was based on ticker codes rather than independently reconciled corporate ownership. The resulting cohorts were deterministic convenience samples, and no selected image was removed on the basis of restoration or recognition performance. Table 1 summarizes the primary cohorts and the subsets used for downstream and robustness analyses.

Table 1. Data allocation and evaluation roles

Cohort

Source Documents

Groups

Input Observations

Role

Analytical test

100 tables

63 issuer codes

300

Comparison of 11 analytical methods

Neural calibration

12 tables

11 issuer codes

36

Parameter fitting

Neural test

24 tables

22 issuer codes

72

Evaluation of DocRes-based variants

Analytical parsing

33 tables

17 issuer codes

99

Structurally annotated analytical subset

Shadow stress

20 tables

16 issuer codes

120

Additional shadow and noise conditions

OCR transfer

20 tables

16 issuer codes

60

Transfer of Tesseract-selected images

Engine-matched OCR

12 tables

11 issuer codes

36

Selection using the receiving OCR engine

Scanned receipts

20 receipts

15 merchants

20

External recognition evaluation

Input observations include degradation levels or repeated realizations; they do not represent additional independent source documents.

External recognition was evaluated on the first 20 records of a fixed SROIE test-set mirror [33]. These receipts contained 320 annotated numeric-only text regions. No synthetic degradation was added. Images whose longest side exceeded 1,400 pixels were downsampled to that limit, and annotation coordinates were scaled accordingly. The receipt experiment therefore measured recognition on original scans, whereas the financial-table experiment provided paired reference rasters for controlled restoration analysis.

Financial tables were processed as grayscale images at their source resolution. Reference texts and word boxes were used for evaluation. Within the 12-table calibration set, they were also used for numeric-region weighting and for computing supervised candidate-ranking targets. Candidate selection at inference used only the observed image and OCR predictions.

3.2 Controlled degradation model

Let $X \in[0,1]$ denote a source financial-table image. A degraded eight-bit observation was generated as

$Y=Q_q\left(U_8\left[\operatorname{clip}\left(L_a\left(G_\sigma * X\right)+N_v, 0,1\right)\right]\right)$        (1)

Here, $G_\sigma$ is an isotropic Gaussian kernel with standard deviation $\sigma$ in source pixels, and $*$ denotes convolution. The illumination field $L_a$ modulates the blurred image, while $N_v$ is independent zero-mean Gaussian noise with standard deviation $v$. The operator $U_8$ scales the clipped intensity to eight-bit units and converts it to an unsigned integer raster. The operator $Q_q$ performs JPEG encoding and decoding at quality q.

For normalized horizontal and vertical coordinates $u, v \in[0,1]$, illumination was defined by

$\begin{aligned} & L_a(u, v)  =1 -a\left[0.55 u+0.45 \exp \left(-\frac{(u-0.35)^2+(v-0.55)^2}{0.09}\right)\right]\end{aligned}$        (2)

This field combines a directional gradient with localized smooth attenuation. Three compound settings, listed in Table 2, raised illumination attenuation, blur, noise and compression together. These settings represent controlled stress conditions, not a fitted model of any particular acquisition device.

Noise standard deviation is expressed in normalized intensity units.

For each table, the random seed was obtained from the first eight hexadecimal digits of the SHA-256 hash of its identifier, interpreted as an integer, with the zero-based degradation-level index added. Each primary table–level combination thus had a single reproducible noise realization, and every method received the same decoded observation for that combination.

Table 2. Parameters of the primary synthetic degradation model

Level

Illumination Attenuation a

Blur SD $\sigma$, Pixels

Noise SD $v$

JPEG Quality q

Mild

0.20

0.35

0.005

85

Moderate

0.40

0.65

0.012

60

Severe

0.60

0.95

0.022

35

Figure 1 shows the first analytical test table, in identifier order, under moderate degradation. The same region is displayed for the source, degraded and restored images. Additional shadow forms and repeated noise realizations were evaluated separately under the protocol described in Section 4.

Figure 1. Visual comparison of financial table restoration under moderate degradation

3.3 Analytical candidate generation

The candidate bank was designed to offer different treatments of background variation, noise and attenuated detail. All five candidates were generated from the same degraded observation. They shared a background-normalization stage and differed only in the denoising and detail recovery that followed.

3.3.1 Text scale and background normalization

To adapt the background supports to each image, a characteristic text height was first estimated. Pixels below the twenty-fifth intensity percentile formed a provisional foreground mask. Connected components were retained when their height was at least four pixels but less than one fifth of the image height, their width was at least two pixels but less than four times their height, and their area was at least eight pixels. The median retained height was clipped to [6, 32] pixels and truncated to an integer. If no component met these criteria, the height was set to 12 pixels.

For the resulting height h, three elliptical morphological supports were defined using multipliers $s \in\{1,2,4\}$. Each support had diameter $2\lfloor s h\rfloor+1$. Closing followed by Gaussian smoothing produced a background estimate at each scale:

$B_s=G_{\max (1, h / 4)} * \operatorname{Close}_{2\lfloor s h\rfloor+1}\left(\frac{Y}{255}\right)$        (3)

The local variation remaining in each estimate was measured by:

$E_s=G_h *\left|B_s-G_h * B_s\right|$        (4)

The estimates were combined using normalized exponential weights:

$w_s=\frac{\exp \left(-30 E_s\right)}{\sum_t \exp \left(-30 E_t\right)}, B=\sum_s w_s B_s$        (5)

This weighting gave less weight to estimates with greater variation at the characteristic text scale. The observation was then normalized by the fused background:

$Z=\operatorname{clip}\left(\frac{Y / 255}{\max (B, 0.15)}, 0,1\right)$        (6)

The denominator floor limited amplification in dark regions. For a local observation $y=\ell r+n$, division by an estimated background $b>0$ gives

$\frac{y}{b}-r=\frac{n}{b}+r \frac{\ell-b}{b}$        (7)

The two terms separate amplified noise from illumination-estimation error. For this reason, background normalization was followed by alternative noise and detail treatments rather than by one fixed sharpening operation.

3.3.2 Denoising and detail alternatives

The first candidate applied gated detail recovery to Z. Let $J=G_{0.7} * Z$ be a smoothed image. The foreground gate and restored output were:

$\begin{gathered}A=\operatorname{clip}\left(\frac{1-J}{0.35}, 0,1\right) \\ R=\operatorname{clip}\left(Z^{\prime}+{ }^{\prime} \alpha A(Z-J) 01\right)\end{gathered}$        (8)

with $\alpha=0.25$. The gate concentrated detail amplification near darker content and reduced it over bright background regions.

The second candidate omitted gated detail recovery and applied fast non-local means denoising [31] to the eight-bit representation of Z. Denoising strength, template width and search width were fixed at 8, 7 and 21, respectively. The normalized denoised output is denoted by D.

Three further candidates were obtained by applying regularized Gaussian inverse filters to D. For frequency coordinates $f_x, f_y$ in cycles per pixel,

$\begin{gathered}H_\rho\left(f_x, f_y\right)=\exp \left[-2 \pi^2 \rho^2\left(f_x^2+f_y^2\right)\right], \\ K_\rho=\frac{(1+\lambda) H_\rho}{H_\rho^2+\lambda}, \lambda=0.025\end{gathered}$        (9)

The assumed blur widths were $\rho \in\{0.6,0.9,1.2\}$ pixels. These values set alternative inverse-filter strengths; they were not estimates of the true blur in any test image. The factor $1+\lambda$ preserved unit gain at zero frequency.

Before Fourier filtering, each image was reflection-padded by 32 pixels on every side; the same margin was removed afterward. Outputs were clipped to [0,1], multiplied by 255 and rounded to eight-bit intensities. The resulting bank contained the gated multiscale output, the denoised output and the three inverse-filtered outputs, in that order.

3.4 Selection using numeric recognition confidence

Each candidate was processed by the same OCR engine. Let $\mathcal{N}_j$ denote the predicted tokens containing at least one digit in candidate j, and let $c_i$ be the OCR confidence of token i on a 0–100 scale. The candidate score and selection rule were:

$M_j=\underset{i \in \mathcal{N}_j}\sum \frac{\max \left(c_i, 0\right)}{100}, j^*=\underset{j}{\arg \max } M_j$        (10)

The selected output was the complete raster of candidate $j^*$. Ties were resolved by candidate order, and candidates without digit-containing predictions received a score of zero. Mixed tokens containing digits were included in the scoring set, which was not limited to tokens matching a financial-number format.

Summing confidence rewarded both the number of digit-containing predictions and their confidence. To test this choice, two alternative scores were evaluated on the same candidate bank. With,

$n_j=\left|\mathcal{N}_j\right|, m=\max \left\{1, \operatorname{median}_j\left(n_j\right)\right\}$

mean-confidence selection used:

$\frac{M_j}{\max \left(n_j, 1\right)}$

whereas count-penalized selection used:

$\frac{M_j}{1+\left|n_j-m\right| / m}$

The fixed-candidate results served as a further point of comparison.

All three scores were computed from digit-containing predictions and their recognition confidence. Reference transcripts, reference word boxes and correct financial values were not used to select a candidate. OCR configuration and reference-based evaluation are specified in Section 4.

3.5 Residual calibration of a fixed pretrained restorer

The second strategy tested whether a small residual model could calibrate the output of a pretrained restorer without updating its network weights. DocRes [20] received the background-normalized, denoised image D; the baseline and calibrated variants shared this preprocessing.

For inference, the grayscale input was replicated to three channels and reflection-padded on the top and left to dimensions divisible by eight. Horizontal and vertical Sobel derivatives were converted to absolute eight-bit maps, clipped to [0,255], and averaged with equal weights. The resulting grayscale prompt was replicated to three channels and concatenated with the image to form the six-channel deblurring input. Inference used CPU float32 with fixed network weights. The prediction was clipped to [0,1], scaled to eight-bit intensity and converted to grayscale, with padding removed. Code revisions and checkpoint hashes were retained in the reproducibility material.

Let N denote the resulting DocRes image normalized to [0,1]. The denoised input D was expressed on the same scale. Six residual features were defined at each pixel p:

$\phi(p)=\left[\begin{array}{c}N(p)-\left(G_{0.5} * N\right)(p) \\ N(p)-\left(G_{0.9} * N\right)(p) \\ N(p)-\left(G_{1.4} * N\right)(p) \\ D(p)-N(p) \\ N(p)-1 \\ 1\end{array}\right]$        (11)

The calibrated output was:

$\hat{X}(p)=\operatorname{clip}\left[N(p)+\phi(p)^{\top} \theta, 0,1\right]$        (12)

The first three coefficients adjusted high-frequency residuals, the fourth admitted a contribution from the denoised input, and the last two controlled gain and offset. Their respective bounds were [-1,1] for each detail coefficient, [0,0.5] for the input coefficient, [-0.3,0.3] for gain and [-0.03,0.03] for offset.

The coefficients were fitted using 36 degraded observations from the 12 calibration tables. For T = 36, the objective was:

$\begin{gathered}\mathcal{L}(\theta)=\frac{1}{T} \sum_{t=1}^T \frac{\sum_p w_t(p)\left[N_t(p)+\phi_t(p)^{\top} \theta-X_t(p)\right]^2}{2 \sum_p w_t(p)} +\frac{0.0003}{2}\|\theta\|_2^2 .\end{gathered}$        (13)

Normalization within each image prevented larger crops from dominating parameter estimation. Two weighting schemes were fitted. Uniform calibration used $w_t(p)=1$. Numeric calibration used:

$w_t(p)=1+4 \Omega_t(p)\left[1+2 \operatorname{clip}\left(\frac{g_t(p)}{0.2}, 0,1\right)\right]$

where, $\Omega_t$ marked numeric-only reference-word boxes expanded by two pixels. The gradient magnitude $g_t$ was computed from unscaled $3 \times 3$ Sobel derivatives of the normalized reference raster. The mask and reference gradients were used only during calibration.

Image-normalized Gram matrices and residual cross-products were averaged before bounded optimization with L-BFGS-B. The fitted coefficients were then fixed for evaluation on the 24-table neural test cohort. Neither calibration masks nor reference images were needed at inference.

3.6 Learned ranking comparator

A learned ranking model was included so that confidence-mass selection could be compared with supervised candidate preferences. Its six-candidate bank added the fixed DocRes output to the five analytical candidates. The model was trained on the same 12 calibration tables used for residual calibration and evaluated on the separate neural test cohort.

Eight features described each candidate: mean numeric confidence; confidence mass divided by the median candidate count; numeric-token count divided by that median; cross-candidate text agreement; financial-character validity; median token length divided by ten; an indicator for the DocRes candidate; and the interaction of that indicator with mean confidence. The median count had a lower bound of one.

Text agreement required identical normalized predictions and a Manhattan distance between token centers below 0.75 times the target token height, with height floored at four pixels. Agreement was averaged across the other candidates and the target candidate’s digit-containing tokens. Financial-character validity measured the fraction of digit-containing predictions composed only of the permitted financial characters.

Features were standardized using calibration-set means and standard deviations, with standard deviations floored at 0.1. Pairwise logistic ranking weighted each candidate pair by its absolute difference in calibration numeric-word exact match (NEM; Section 4.2.1); pairs differing by no more than 0.005 were omitted. The ridge coefficient was fixed at 0.01. At inference, the candidate with the highest linear score was selected.

Two further variants probed the ranking design. One model was refitted without the agreement feature, and an untrained comparator applied confidence-mass selection to the same six-candidate bank. Both used the same candidate images and recognition settings, so the ranking rule could be compared while the available restoration outputs stayed unchanged.

4. Experimental Protocol and Evaluation

4.1 Comparative design and inference controls

The experimental comparisons mirrored the two objectives set out in Section 3: selecting analytical restoration candidates for numeric recognition and calibrating a pretrained restoration model for image fidelity. Each comparison used identical degraded observations, recognition settings and reference annotations across methods. Restoration kept the source crop dimensions and coordinate system, so recognition and structural evaluation could share the same spatial references.

The analytical comparison included 11 methods evaluated on all 300 observations: the degraded input, fixed-support background correction, stroke-adaptive single-scale correction, the multiscale baseline, denoising alone, three fixed inverse-filter strengths, and the three selection rules based on confidence mass, mean confidence and count-penalized confidence. The fixed-support comparator used a 41-pixel morphological closing to estimate the background. The single-scale comparator used a support multiplier of two and the same gated detail correction as the multiscale method. With these baselines, the effects of scale adaptation, noise suppression, inverse filtering and candidate selection could be told apart.

The learned-model comparison included six configurations: DocRes with common preprocessing, DocRes with uniform residual calibration, DocRes with numeric-weighted residual calibration, calibrated candidate ranking, ranking without the agreement feature, and confidence-mass selection from the six-candidate bank. All DocRes outputs were generated using the same pretrained checkpoint, preprocessing and prompt construction. This control meant that residual calibration and candidate ranking were each assessed against a matched DocRes baseline. Because this cohort differed from the analytical cohort in both source images and size eligibility, absolute scores were compared only within each cohort.

DocRes inference was performed on the CPU in float32 precision using two PyTorch threads. OpenCV used one thread, and each Tesseract process used one OpenMP thread. Software versions, checkpoint hashes and inference settings were recorded in the reproducibility materials. Analytical candidate selection required five OCR evaluations per observation. The experiments were run in parallel, and elapsed batch-processing time was not taken as per-image deployment latency.

4.2 Numeric recognition endpoints

4.2.1 Financial-table word recognition

Tesseract 5.3.4 [28] provided the primary recognition backend. Each image was enlarged twofold using bicubic interpolation and processed with page-segmentation mode 6. Predicted word boxes were then mapped to the source coordinates. The same settings were applied to every restoration method. Because this segmentation mode assumes a single uniform block of text, absolute recognition accuracy should be read as conditional on that layout setting.

Reference and predicted text were normalized by removing whitespace and converting letters to lowercase. Decimal points, commas, parentheses, signs, currency symbols and percent signs were retained. Because these characters can change how an amount is read, they were part of the exact-match criterion.

Predicted tokens were assigned to reference word boxes when their centers fell inside a box expanded by two pixels on each side. If more than one reference box qualified, the token was assigned to the box with the nearest center. Tokens assigned to the same reference word were ordered horizontally and concatenated.

Let $\mathcal{R}_{\text {num }}$ denote the set of reference words containing at least one digit and otherwise consisting only of digits or the permitted financial punctuation. Numeric-word exact match was defined as

$\mathrm{NEM}=\frac{1}{\left|\mathcal{R}_{\text {num }}\right|} \sum_{r \in \mathcal{R}_{\text {num }}} \mathbf{1}\left[\operatorname{norm}\left(\hat{t}_r\right)=\operatorname{norm}\left(t_r\right)\right]$        (14)

where, $t_r$ is the reference text, $\hat{t}_r$ is the concatenated prediction assigned to its box, and $\mathbf{1}[\cdot]$ is the indicator function. An omitted digit, misplaced decimal point or missing parenthesis therefore caused an exact-match failure.

NEM measured the recovery of reference numeric words. Because predicted tokens outside the reference regions did not enter its denominator, it was not a measure of numeric precision. Reference-box character errors and unmatched predicted-character counts were retained in the raw records to support error inspection.

Scores were first calculated for each observation and then averaged equally across source tables and degradation levels. Macro averaging in this way kept tables with many numeric words from dominating the reported result.

4.2.2 Recognition on original receipt scans

The SROIE evaluation used the same normalization and spatial assignment rules, applied to numeric-only annotated text regions [33]. Because SROIE annotations represented regions rather than FinTabNet.c words, this endpoint was termed numeric-region exact match. All 20 receipts contained eligible numeric regions.

Receipt and financial-table scores were reported separately because their annotation units and document distributions differed. The receipt experiment evaluated recognition on original benchmark scans; raster fidelity was not calculated because corresponding clean reference images were unavailable.

4.2.3 Evaluation with a second optical character recognition backend

A second recognition backend was built on RapidOCR ONNX Runtime 1.4.4 with its packaged PP-OCRv4 detector and recognizer. Classification was disabled, word-box output was enabled, and images underwent the same twofold enlargement. Recognition confidence was converted to the 0–100 scale used by the selection rule. Model-file hashes and execution settings were recorded.

Backend dependence was examined in two experiments. In the direct-transfer experiment, PP-OCRv4 was applied to images that had already been selected using Tesseract. The engine-matched experiment that followed recomputed candidate scores from PP-OCRv4 outputs on the compact-table subset defined in Table 1. The former tested whether selected images transferred between recognition systems; the latter tested the selector when its confidence scores came from the receiving system. The two sets of results were therefore interpreted separately.

4.3 Raster fidelity and body-cell recovery

4.3.1 Raster fidelity

Peak signal-to-noise ratio (PSNR) and SSIM [29] were calculated against the unmodified source crops in the controlled-degradation experiments. All methods used the same eight-bit intensity range of 255 and the same scikit-image SSIM implementation.

PSNR measured intensity reconstruction error, whereas SSIM assessed local luminance, contrast and structural similarity. These complementary measures described raster restoration but gave no extra weight to financially significant characters, which is why recognition endpoints were evaluated alongside them. Ink overlap and occupancy-profile similarity were retained as descriptive image-level measurements and were not interpreted as table-structure accuracy.

4.3.2 Body-cell recovery

Downstream structural evaluation used a fixed Microsoft Table Transformer checkpoint trained for financial-table structure recognition. The image processor limited the longest side to 800 pixels, and row and column detections were retained at a confidence threshold of 0.5.

For each reference row and column, the predicted box with the highest intersection-over-union was selected and accepted when its overlap was at least 0.5. Each reference element was matched independently, without a one-to-one assignment constraint. The intersection of an accepted predicted row and column defined the inferred cell region. OCR words were assigned to that region by their centers, and the resulting cell text was compared with the complete normalized reference content.

Body-cell exact recall was the proportion of eligible nonempty reference body cells for which both structural matches were accepted and the complete predicted text matched exactly. Header regions and spanning cells were excluded. Row and column recalls were reported with this endpoint to separate structural detection failures from cell-content errors.

This evaluation assessed body-cell recovery rather than complete table topology or accounting consistency. Its scope differed from matrix-based metrics such as GriTS [5], particularly in the treatment of headers, spanning cells and matching constraints.

The analytical parsing subset contained 33 structurally annotated tables: 17 from the published validation directory and 16 from the published test directory. Four tables in the independent learned-model cohort had eligible structural annotations. Results from this smaller subset were treated as descriptive only.

4.4 Shadow stress tests and statistical analysis

4.4.1 Additional illumination conditions

The shadow stress test used the first 20 analytical test identifiers. Each table was subjected to three additional illumination fields—a diagonal sinusoidal gradient, localized radial attenuation and a sharp sigmoid transition—with two noise realizations per field. This gave six observations per table, or 120 in total.

Blur standard deviation was fixed at 0.65 source pixels, noise standard deviation at 0.012 in normalized intensity units, and JPEG quality at 60. Illumination was applied before blur in this secondary experiment, whereas the primary degradation model applied blur before illumination. The stress test thus varied both the shadow pattern and the degradation order.

Illumination parameters and seed rules were fixed before the outcomes were analyzed. These observations assessed robustness under specified synthetic perturbations; the statistical sampling unit remained the source table, with issuer-level clustering used for uncertainty estimation.

4.4.2 Paired estimation and clustered uncertainty

Method differences were calculated within each source table before uncertainty estimation. For the primary cohorts, results were averaged across the three degradation levels within a table. For the shadow stress test, the six realizations were averaged within a table.

Confidence intervals were estimated using 3,000 paired cluster-bootstrap replicates [30]. Issuer codes were sampled with replacement, and all tables belonging to a sampled code were retained together. The statistic was then recalculated as a macro average over the sampled tables. Issuer codes therefore contributed in proportion to their observed number of tables instead of receiving equal weight regardless of cohort size.

Receipt analyses used the normalized annotated merchant name as the clustering variable. These clusters reflected the available benchmark annotations rather than independently verified corporate identities.

Primary analytical contrasts were reported with 95% confidence intervals. The two prespecified learned-model recognition comparisons—calibrated ranking against DocRes and numeric-weighted residual calibration against DocRes—used 97.5% intervals to account conservatively for the two comparisons. Raster fidelity, alternative ranking rules, body-cell recovery and external evaluations were labeled separately by experimental role.

All tested methods were retained in the result tables and raw records. Confidence intervals described sampling variability within the defined cohorts; interpretation also took into account the deterministic archive-based sampling, the small size of some secondary subsets and the recognition backend used for selection.

4.5 Financial amount reconciliation

A secondary application analysis asked whether the recognition gains carried over to financial amounts used in arithmetic checks. The 33 structurally annotated analytical tables were screened using their source images and reference annotations. The first eligible vertical monetary sum or signed roll-forward in each table was retained, together with all eligible monetary columns. Relations required at least two nonzero components and a reported total; share counts, percentages, per-share measures and price ranges were excluded. Columns containing missing reference amounts or attached footnotes were also excluded. This reference-based screening yielded 48 column-specific relations across 17 tables from 13 issuer codes. Eligibility and numeric parsing rules were fixed before the additional OCR evaluation.

The degraded input, multiscale baseline and confidence-mass output were evaluated under the same three degradation levels, yielding 144 relation conditions per method. The archived candidate choices were retained, and the original Tesseract configuration was used. OCR predictions were assembled at reference cell locations using the word-assignment rule in Section 4.2.1. Currency symbols and grouping commas were removed after format validation; decimal points and signs were retained, parentheses indicated negative amounts, and explicit dashes represented zero. Empty or unparseable predictions counted as failures. Neither reference values nor arithmetic constraints were used to correct predictions or select restoration candidates.

Four endpoints were calculated: amount-value accuracy, complete numeric availability, arithmetic consistency and complete value recovery. They respectively required a correct individual amount, parseable values for every amount in a relation, agreement between the predicted component sum and total, and correct values for every amount in the relation. The arithmetic tolerance was the sum of half a displayed least-significant unit for each reference component and the total. All percentages were macro-averaged with equal weights over tables and degradation levels; failures remained in the denominators. Exploratory paired 95% intervals used 3,000 issuer-cluster bootstrap replicates, following Section 4.4.2. Because reference locations and manually identified relations were used, this was a recognition-focused application check, not an evaluation of automatic reconciliation discovery.

5. Experimental Results

5.1 Numeric recovery on financial tables

Among the 11 analytical methods, confidence-mass selection gave the highest numeric-word exact match, 47.26% on the 100-table test cohort (Table 3). This exceeded the multiscale baseline by 5.96 percentage points, denoising alone by 3.84 points, and mean-confidence selection by 1.97 points. The margin over mean confidence is the most telling, because both selectors worked on the same candidate images with the same OCR backend; the difference can therefore be attributed to the selection criterion rather than to any change in restoration operations.

Table 3. Analytical restoration and selection results on 100 financial tables under three degradation levels

Method

NEM (%)

SSIM

PSNR (dB)

Degraded input

38.73

0.8196

15.98

Fixed-support closing

40.37

0.8357

23.85

Stroke-adaptive single scale

41.27

0.8430

24.40

Multiscale baseline

41.30

0.8444

24.43

Denoising alone

43.43

0.8730

24.27

Denoising + inverse filtering, ρ = 0.6

38.72

0.8680

22.16

Denoising + inverse filtering, ρ = 0.9

40.60

0.8587

21.73

Denoising + inverse filtering, ρ = 1.2

36.61

0.8395

20.79

Mean-confidence selection

45.29

0.8772

24.37

Count-penalized selection

47.03

0.8780

24.40

Confidence-mass selection

47.26

0.8792

24.41

Notes: Each method was evaluated on the same 300 observations. NEM denotes macro numeric-word exact match. The parameter $\rho$ specifies the assumed blur scale in the inverse filter. Bold values indicate the highest score in each column.

The fixed restoration methods involved different tradeoffs. Denoising improved NEM from 41.30% for the multiscale baseline to 43.43%, whereas the three inverse-filter candidates achieved between 36.61% and 40.60%. No fixed inverse strength matched the selector’s aggregate recognition score. Aggregate scores alone, however, do not show whether a given candidate helps on particular images; the selector judged the candidate outputs separately for each observation.

Among the selection rules, count penalization achieved 47.03% NEM, compared with 47.26% for confidence mass. Adding the count penalty therefore brought no aggregate gain in this experiment. Confidence mass also beat mean confidence, which is in line with the idea of rewarding the recovery of more digit-containing tokens instead of relying only on their average confidence.

The main recognition differences were supported by paired issuer-cluster bootstrap intervals (Table 4 and Figure 2). The gain over the multiscale baseline was 5.96 percentage points, with a 95% interval of 4.37–7.50 points. Corresponding intervals were 2.70–5.00 points against denoising alone and 1.06–3.01 points against mean-confidence selection.

The recognition gains came with higher structural similarity. SSIM increased from 0.8444 for the multiscale baseline to 0.8792 for confidence-mass selection, with a paired difference of 0.0348 and a 95% interval of 0.0306–0.0389. PSNR stayed close to the baseline (24.41 versus 24.43 dB). Its paired difference was approximately −0.025 dB, with an interval spanning zero. The main improvement thus lay in numeric recovery, accompanied by higher SSIM but not by lower squared intensity error.

Table 4. Paired differences between confidence-mass selection and the principal analytical comparators

Comparator

Endpoint

Difference

95% Confidence Interval

Degraded input

NEM (percentage points)

8.530

[6.809, 10.338]

Multiscale baseline

NEM (percentage points)

5.959

[4.366, 7.498]

Denoising alone

NEM (percentage points)

3.837

[2.704, 5.002]

Mean-confidence selection

NEM (percentage points)

1.971

[1.064, 3.007]

Multiscale baseline

SSIM

0.0348

[0.0306, 0.0389]

Notes: Positive differences favor confidence-mass selection. Intervals were estimated from 3,000 paired issuer-cluster bootstrap replicates. Differences were calculated from unrounded scores.

Figure 2. Paired differences in numeric-word exact match between confidence-mass selection and analytical comparators

5.2 Performance across degradation conditions

The recognition gain held at all three primary degradation levels (Figure 3). Confidence-mass selection achieved 77.36% NEM under mild degradation, 51.46% under moderate degradation and 12.96% under severe degradation. The corresponding multiscale baseline scores were 73.50%, 42.23% and 8.19%, yielding improvements of 3.86, 9.23 and 4.77 percentage points, respectively.

The largest absolute gain occurred under moderate degradation, where candidate selection recovered substantially more numeric words than the fixed correction. Under severe degradation the selector still held an advantage, although absolute accuracy fell sharply for both methods. Because illumination variation, blur, noise and compression changed together, these results describe performance under compound degradation rather than the isolated effect of any single factor.

The additional shadow experiment checked whether the improvement held beyond the illumination field used in the primary evaluation. Across three alternative shadow forms and two noise realizations per form, confidence-mass selection achieved 58.30% NEM, compared with 48.69% for the multiscale baseline and 32.13% for the degraded input. The paired gain over the baseline was 9.60 percentage points, with a 95% issuer-cluster interval of 4.15–15.02 points.

Figure 4 breaks the results down by illumination field. The pooled result indicates that the selector remains useful under these additional synthetic conditions. The larger gain than in the primary experiment should be read in the context of this stress-test cohort, since both the tables and the degradation order were different.

Figure 3. Numeric-word exact match across three degradation levels

Figure 4. Numeric-word exact match under different illumination fields

5.3 Recovery of table body cells

Better numeric recognition also led to higher body-cell exact recall on the 33 structurally annotated analytical tables. Confidence-mass selection achieved 32.26%, compared with 29.77% for the multiscale baseline and 27.56% for the degraded input (Table 5 and Figure 5). The paired improvement over the baseline was 2.49 percentage points, with a 95% issuer-cluster interval of 0.82–4.38 points.

Structural detection improved along with cell-content recovery. Row recall increased from 94.09% for the baseline to 96.84%, while column recall increased from 99.60% to 100.00%. Body-cell exact recall remained lower than these structural recalls because a successful cell required both accepted row–column localization and an exact match of its complete nonempty text. Detecting cell boundaries alone was not enough.

Table 5. Body-cell exact recall and row and column recall on the structurally annotated subsets

Cohort

Method

Body-Cell Exact Recall (%)

Row Recall (%)

Column Recall (%)

Analytical, 33 tables

Degraded input

27.56

93.65

99.80

Analytical, 33 tables

Multiscale baseline

29.77

94.09

99.60

Analytical, 33 tables

Confidence-mass selection

32.26

96.84

100.00

Learned-model, 4 tables

DocRes with common preprocessing

24.27

96.88

100.00

Learned-model, 4 tables

Uniform residual calibration

25.02

96.88

100.00

Learned-model, 4 tables

Numeric-weighted residual calibration

25.02

96.88

100.00

Learned-model, 4 tables

Calibrated ranking

23.51

96.88

100.00

Notes: Body-cell exact recall used nonempty reference body cells, excluding header regions and spanning cells. The analytical and learned-model subsets contained different source tables and were evaluated separately. Results from the four-table learned-model subset are descriptive.

Figure 5. Comparison of body-cell exact recall across analytical methods

The learned-model parsing subset contained four eligible tables. Both residual calibrations achieved 25.02% body-cell exact recall, compared with 24.27% for DocRes with common preprocessing, while calibrated ranking achieved 23.51%. Aggregate row and column recalls were the same for all these configurations, although this does not mean that their predicted boxes were identical. The main evidence for downstream body-cell improvement therefore comes from the 33-table analytical comparison.

5.4 External recognition and optical character recognition-backend dependence

5.4.1 Recognition on original receipt scans

Confidence-mass selection also improved numeric-region recognition on the 20 original SROIE scans. It achieved 68.55% exact match, compared with 64.20% for the input and 65.13% for the multiscale baseline (Table 6). The gain over the input was 4.35 percentage points, with a 95% merchant-cluster interval of 0.66–8.39 points.

This evaluation carried the analysis from synthetically degraded financial tables over to original benchmark scans. Because the result concerned numeric text regions under SROIE’s annotation scheme, it was reported separately from financial-table word recognition.

Adding the original image as an identity candidate yielded 67.51% exact match. This fell below the aggregate score of the five-candidate selector, and its interval against the input spanned zero. Enlarging the candidate bank with the input image thus showed no advantage on these receipts.

Table 6. Recognition on original receipt scans and evaluations using PP-OCRv4

Experiment

Evaluation Unit

Method

Exact Match (%)

SROIE, 20 receipts

Numeric regions

Original input

64.20

SROIE, 20 receipts

Numeric regions

Multiscale baseline

65.13

SROIE, 20 receipts

Numeric regions

Confidence mass with identity candidate

67.51

SROIE, 20 receipts

Numeric regions

Confidence-mass selection

68.55

PP-OCRv4 direct transfer, 20 tables

Numeric words

Degraded input

50.12

PP-OCRv4 direct transfer, 20 tables

Numeric words

Multiscale baseline

50.11

PP-OCRv4 direct transfer, 20 tables

Numeric words

Tesseract-selected confidence mass

45.18

PP-OCRv4 engine-matched selection, 12 tables

Numeric words

Degraded input

44.96

PP-OCRv4 engine-matched selection, 12 tables

Numeric words

Multiscale baseline

45.68

PP-OCRv4 engine-matched selection, 12 tables

Numeric words

Tesseract-selected confidence mass

44.50

PP-OCRv4 engine-matched selection, 12 tables

Numeric words

PP-OCRv4 mean-confidence selection

45.69

PP-OCRv4 engine-matched selection, 12 tables

Numeric words

PP-OCRv4 confidence-mass selection

47.41

Notes: Direct transfer evaluated images selected using Tesseract without repeating selection with PP-OCRv4. Engine-matched selection calculated candidate scores using PP-OCRv4 itself. Receipt-region and financial-table word scores have different annotation units and were not pooled. The two PP-OCRv4 experiments used different cohorts.

5.4.2 Direct transfer and engine-matched selection

The direct-transfer experiment showed that the benefit of selection depended on the recognition backend. When PP-OCRv4 evaluated images selected using Tesseract, NEM was 45.18%, compared with 50.11% for the multiscale baseline and 50.12% for the degraded input. The paired difference against the baseline was −4.94 percentage points, with a 95% issuer-cluster interval of −9.21 to −0.46 points. A candidate preferred by Tesseract could, in other words, lower recognition accuracy when passed to a different engine.

The engine-matched follow-up tested whether the same rule stayed useful when candidate confidence was taken from PP-OCRv4. On the 12-table compact subset, PP-OCRv4 confidence-mass selection achieved 47.41% NEM, compared with 45.68% for the multiscale baseline, 45.69% for PP-OCRv4 mean-confidence selection and 44.50% for transferred Tesseract selection.

The paired gain over the multiscale baseline was 1.73 percentage points, with a 95% issuer-cluster interval of 0.20–3.58 points. The interval against the degraded input spanned zero. These findings argue for computing selection scores with the intended recognition backend, although the smaller follow-up cohort offers weaker evidence than the primary analytical comparison. No filter strengths or score parameters were retuned for PP-OCRv4.

5.5 Independent evaluation of residual calibration

The independent learned-model experiment tested whether a compact residual correction improved DocRes outputs on 24 tables excluded from calibration. Numeric-weighted calibration increased PSNR from 27.40 to 28.84 dB and SSIM from 0.9322 to 0.9345 (Table 7 and Figure 6). The paired PSNR gain was 1.44 dB, with a 97.5% interval of 1.00–1.79 dB. The corresponding SSIM gain was 0.00231, with an interval of 0.00146–0.00305.

Uniform calibration produced similar fidelity scores: 28.80 dB PSNR and 0.9342 SSIM. Both fits thus improved raster fidelity over the common-preprocessed DocRes baseline, and numeric weighting added only a small further difference to the aggregate scores.

The fidelity improvement was not matched by an established recognition gain (Figure 7). NEM increased from 57.35% for DocRes to 57.42% for numeric-weighted calibration, a paired difference of 0.074 percentage points with a 97.5% interval of −1.73 to 1.73 points. This interval established neither superiority nor equivalence in numeric recognition; the benefit of residual calibration that the data support is its gain in raster fidelity.

Candidate ranking also behaved differently from analytical-only selection. Calibrated ranking achieved 56.71% NEM, and removing the agreement feature produced the same aggregate scores. Six-candidate confidence-mass selection achieved 55.60% NEM, compared with 57.35% for DocRes on the same independent 24-table cohort.

Table 7. Independent learned-model evaluation on 24 financial tables under three degradation levels

Method

NEM (%)

SSIM

PSNR (dB)

DocRes with common preprocessing

57.35

0.9322

27.40

Uniform residual calibration

57.14

0.9342

28.80

Numeric-weighted residual calibration

57.42

0.9345

28.84

Calibrated ranking

56.71

0.9238

27.07

Ranking without agreement

56.71

0.9238

27.07

Six-candidate confidence-mass selection

55.60

0.9186

26.00

Notes: Each method was evaluated on the same 72 observations. Residual calibrations used the same DocRes outputs. Ranking and six-candidate confidence mass selected from a bank containing the five analytical candidates and DocRes. Bold values indicate the highest aggregate score in each column; uncertainty in the recognition differences is reported in the text.

Figure 6. Comparison of DocRes fidelity with and without residual calibration

Figure 7. Numeric-word exact match across six learned-model configurations

5.6 Financial amount recovery and reconciliation

On the 17-table financial reconciliation subset, macro amount-value accuracy was 35.48% for the degraded input, 38.45% for the multiscale baseline and 43.30% for confidence-mass selection. The paired gain over the input was 7.81 percentage points, with a 95% issuer-cluster interval of 4.41–11.73 points. The gain over the multiscale baseline was 4.84 points, with an interval of −0.83 to 9.77 points. In this secondary analysis, then, the clearest evidence concerned amount recovery relative to the degraded input.

Complete numeric availability was 23.07%, 22.35% and 25.95% for the input, multiscale baseline and confidence-mass selection, respectively. Arithmetic consistency was 13.40%, 15.03% and 16.99%, while complete value recovery was 11.44%, 14.05% and 15.03%. Although confidence-mass selection had the highest macro scores, its paired intervals for arithmetic consistency and complete value recovery crossed zero against both comparators. These relation-level differences are therefore descriptive, not established improvements.

Arithmetic agreement is also not the same as correct transcription. Across the 144 relation conditions, two confidence-mass outputs satisfied the rounding-tolerant sum while containing at least one incorrect amount. These cases came to light only because complete value recovery was reported alongside arithmetic consistency. The application check thus tied restoration to the recovery of financially meaningful amounts, while showing that a balanced sum alone cannot verify the extracted values.

6. Discussion

6.1 Restoration guided by numeric recognition

Confidence-mass selection improved numeric recognition over the multiscale baseline and denoising alone. Its advantage over mean-confidence selection was obtained with identical candidate images and OCR outputs, which isolates the effect of the scoring rule. Within this bank, summing confidence over digit-containing predictions worked better than averaging it.

This also helps explain why recognition and raster metrics did not improve in step. Confidence-mass selection increased NEM and SSIM while leaving PSNR close to the multiscale baseline. Small changes around decimal points, parentheses or digit strokes can affect exact recognition without substantially reducing image-wide intensity error. A recognition-guided selector may therefore prefer an image that is more useful for extraction even if it is not the closest pixelwise reconstruction. Document restoration is best evaluated with both raster and task-specific endpoints.

The candidate bank provided alternative treatments of noise and attenuated detail, but no fixed inverse-filter strength matched the selector’s aggregate recognition performance. This supports per-observation selection within the tested bank, but it does not by itself establish what each candidate contributes; that would require removing candidates and repeating the comparison. What has been demonstrated is the performance of the specified bank and the confidence-mass rule taken together.

6.2 Compact calibration of pretrained restoration

Residual calibration served a different purpose: reducing the reconstruction error left by a fixed pretrained model. The six-parameter correction improved DocRes PSNR and SSIM on tables excluded from calibration, showing that a small supervised fit could adjust its outputs without retraining the backbone. Because the correction used image-derived features at inference, reference images and numeric-region annotations were required only during fitting.

The similar performance of uniform and numeric-weighted calibration is informative. Both produced similar fidelity improvements, suggesting that much of the benefit arose from correcting a systematic mismatch between the pretrained output and the target raster distribution. The experiment provides stronger evidence for compact output calibration than for a distinct advantage of numeric-region weighting. Nor does it show which residual features were essential, since the fitted model included intensity and offset terms alongside detail features.

Higher fidelity did not yield an established improvement in numeric recognition. This distinction is consistent with the analytical results: pixel reconstruction and exact text recovery respond to different image properties. The evidence therefore supports residual calibration as a way to improve the pretrained raster estimate, while the main recognition gain within the analytical bank comes from confidence-mass selection.

The learned-ranking comparison adds a caveat about combining the two strategies. Within the evaluated six-candidate bank, neither calibrated ranking nor confidence-mass selection exceeded DocRes in aggregate NEM. It is safer to treat analytical selection and residual calibration as separately validated options than to assume that a larger bank or a serial combination will inherit both benefits.

6.3 Relevance to extraction and deployment

The body-cell evaluation links the recognition gain to a downstream extraction task. A recovered amount is useful only if it stays attached to the right row and column. The increase in body-cell exact recall shows that the analytical selector’s benefit extended beyond isolated numeric words under the specified parsing protocol. Because this endpoint required complete cell text as well as accepted row and column matches, it imposed a stricter condition than word recognition alone.

That evidence, however, is limited to the recovery of nonempty body cells. Header regions and spanning cells were excluded, and row and column matching did not enforce a one-to-one assignment. The result thus supports improved body-cell recovery under the implemented protocol, not complete table reconstruction or verification of the relationships among financial amounts.

The supplementary reconciliation check puts this distinction in financial terms. More accurate amount extraction can provide better inputs for reviewing borrowing subtotals, tax adjustments, cash-flow reconciliations and asset totals. In the tested subset, the strongest evidence was improved amount recovery relative to the degraded input. Agreement between extracted components and totals remained a separate check: incorrect amounts could still produce a balanced sum. Arithmetic screening should therefore complement value verification, not replace it.

The receipt experiment adds evidence from original scans whose degradation did not come from the synthetic model. Its positive result indicates that the selector’s usefulness was not confined to the primary simulated conditions. However, receipts differ from corporate tables in layout, content and annotation granularity. Reporting numeric-region recognition separately keeps the meaning of this external test intact and avoids merging unlike annotation units into a single accuracy measure.

Dependence on the OCR backend is another practical concern. Confidence reflects the behavior of a particular detector, recognizer and segmentation configuration; it is not an engine-independent measure of image quality. The direct-transfer result demonstrated this dependence, while the engine-matched follow-up showed that the same scoring rule could improve over the multiscale baseline when recalculated using PP-OCRv4. In practice, candidate selection should be tied to the OCR system that will process the selected image, and that system’s configuration should be recorded along with the restoration parameters.

This coupling comes at a computational cost, since the five-candidate selector needs five recognition calls. The experiments show quality gains under fixed settings but do not demonstrate any throughput advantage. Deployment decisions should therefore weigh the measured recovery benefit against the cost of candidate generation and recognition.

Finally, the experiments used deterministic, archive-based cohorts and controlled degradation settings. Issuer-cluster intervals accounted for dependence within the sampled issuer groups, but cannot remove cohort-selection effects. The findings apply most directly to the English financial-table crops and scanned receipts evaluated here; the independent calibration cohort and the secondary tests provide complementary checks on them.

7. Conclusions

This study evaluated two approaches to improving financial-document image restoration: numeric-confidence selection and compact residual calibration. Selecting among five analytical candidates by digit-token confidence mass increased numeric-word exact match from 41.30% to 47.26% on 100 financial tables from 63 issuer codes. It also raised body-cell exact recall from 29.77% to 32.26% on the 33-table annotated subset. Additional shadow tests and original receipt scans extended the recognition evidence beyond the primary degradation setting; on the receipts, numeric-region exact match increased from 64.20% to 68.55%.

Separately, bounded six-parameter calibration increased the PSNR of common-preprocessed DocRes outputs from 27.40 to 28.84 dB and SSIM from 0.9322 to 0.9345 on 24 independent tables. These gains confirm improved raster fidelity, although the recognition comparison did not show superiority over DocRes.

Overall, the restoration objective should be matched to its intended use: numeric-confidence selection improves recognition within the tested analytical bank, and compact calibration improves pretrained raster reconstruction. The backend experiments further indicate that candidate confidence should be computed with the OCR system that will actually be used. The accompanying code, cohort manifests, model identifiers and raw evaluations allow these comparisons to be reproduced.

Acknowledgments

This paper was supported by the 2025 Anhui Xinhua University University-Level Quality Engineering Project: Intermediate Financial Accounting (Grant No.: 2025kcszx07), the 2025 Provincial Quality Engineering Project of Higher Education Institutions: Auditing Major Quality Improvement and Transformation Project (Grant No.: 2025zytsct097), and the 2024 Anhui Xinhua University University-Level Research Project: Internal Audit Support Countermeasures for Promoting the Development of New Quality Productive Forces (Grant No.: 2024rw013).

  References

[1] Chen, Z., Chen, W., Smiley, C., et al. (2021). FinQA: A dataset of numerical reasoning over financial data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Online and Punta Cana, Dominican Republic, pp. 3697-3711. https://doi.org/10.18653/v1/2021.emnlp-main.300

[2] Zheng, X., Burdick, D., Popa, L., Zhong, X., Wang, N.X.R. (2021). Global table extractor (GTE): A framework for joint table identification and cell structure recognition using visual context. In 2021 IEEE Winter Conference on Applications of Computer Vision (WACV), Waikoloa, HI, USA, pp. 697-706. https://doi.org/10.1109/WACV48630.2021.00074

[3] Smock, B., Pesala, R., Abraham, R. (2023). Aligning benchmark datasets for table structure recognition. In Document Analysis and Recognition - ICDAR 2023, San José, CA, USA, pp. 371-386. https://doi.org/10.1007/978-3-031-41734-4_23

[4] Smock, B., Pesala, R., Abraham, R. (2022). PubTables-1M: Towards comprehensive table extraction from unstructured documents. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, pp. 4624-4632. https://doi.org/10.1109/CVPR52688.2022.00459

[5] Smock, B., Pesala, R., Abraham, R. (2023). GriTS: Grid table similarity metric for table structure recognition. In Document Analysis and Recognition - ICDAR 2023, San José, CA, USA, pp. 535-549. https://doi.org/10.1007/978-3-031-41734-4_33

[6] Zhou, Y., Zuo, S., Yang, Z., He, J., Shi, J., Zhang, R. (2023). A review of document image enhancement based on document degradation problem. Applied Sciences, 13(13): 7855. https://doi.org/10.3390/app13137855

[7] Yang, Z., Zuo, S., Zhou, Y., He, J., Shi, J. (2024). A review of document binarization: Main techniques, new challenges, and trends. Electronics, 13(7): 1394. https://doi.org/10.3390/electronics13071394

[8] Bataineh, B., Tounsi, M., Zamzami, N., et al. (2025). A comprehensive review on document image binarization. Journal of Imaging, 11(5): 133. https://doi.org/10.3390/jimaging11050133

[9] Wang, B., Li, C., Zou, W., Zhang, Y., Chen, X., Chen, C.L.P. (2025). A comprehensive survey on shadow removal from document images: Datasets, methods, and opportunities. Vicinagearth, 2(1): 1. https://doi.org/10.1007/s44336-024-00010-9

[10] Gatos, B., Pratikakis, I., Perantonis, S.J. (2006). Adaptive degraded document image binarization. Pattern Recognition, 39(3): 317-327. https://doi.org/10.1016/j.patcog.2005.09.010

[11] Sauvola, J., Pietikäinen, M. (2000). Adaptive document image binarization. Pattern Recognition, 33(2): 225-236. https://doi.org/10.1016/S0031-3203(99)00055-2

[12] Lu, S., Su, B., Tan, C.L. (2010). Document image binarization using background estimation and stroke edges. International Journal on Document Analysis and Recognition (IJDAR), 13(4): 303-314. https://doi.org/10.1007/s10032-010-0130-8

[13] Otsu, N. (1979). A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1): 62-66. https://doi.org/10.1109/TSMC.1979.4310076

[14] Zuiderveld, K. (1994). Contrast limited adaptive histogram equalization. In Heckbert, P.S. (ed.), Graphics Gems IV, Academic Press, Boston, pp. 474-485. https://doi.org/10.1016/B978-0-12-336156-1.50061-6

[15] Zhang, K., Zuo, W., Chen, Y., Meng, D., Zhang, L. (2017). Beyond a Gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Transactions on Image Processing, 26(7): 3142-3155. https://doi.org/10.1109/TIP.2017.2662206

[16] Souibgui, M.A., Kessentini, Y. (2022). DE-GAN: A conditional generative adversarial network for document enhancement. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(3): 1180-1191. https://doi.org/10.1109/TPAMI.2020.3022406

[17] Lin, Y.H., Chen, W.C., Chuang, Y.Y. (2020). BEDSR-Net: A deep shadow removal network from a single document image. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, pp. 12902-12911. https://doi.org/10.1109/CVPR42600.2020.01292

[18] Yang, Z., Liu, B., Xiong, Y., et al. (2023). DocDiff: Document enhancement via residual diffusion models. In Proceedings of the 31st ACM International Conference on Multimedia, Ottawa, ON, Canada, pp. 2795-2806. https://doi.org/10.1145/3581783.3611730

[19] Zamir, S.W., Arora, A., Khan, S., Hayat, M., Khan, F.S., Yang, M.H. (2022). Restormer: Efficient transformer for high-resolution image restoration. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, pp. 5718-5729. https://doi.org/10.1109/CVPR52688.2022.00564

[20] Zhang, J., Peng, D., Liu, C., Zhang, P., Jin, L. (2024). DocRes: A generalist model toward unifying document image restoration tasks. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, pp. 15654-15664. https://doi.org/10.1109/CVPR52733.2024.01482

[21] Yang, Z., Liu, B., Xiong, Y., Wu, G. (2024). GDB: Gated convolutions-based document binarization. Pattern Recognition, 146: 109989. https://doi.org/10.1016/j.patcog.2023.109989

[22] Du, Z., He, C. (2024). Nonlinear diffusion system for simultaneous restoration and binarization of degraded document images. Computers & Mathematics with Applications, 153: 237-248. https://doi.org/10.1016/j.camwa.2023.11.033

[23] Matsuo, Y., Aoki, Y. (2024). Synthetic document images with diverse shadows for deep shadow removal networks. Sensors, 24(2): 654. https://doi.org/10.3390/s24020654

[24] Gao, D., Liu, W., Chen, S., Qiu, J., Mei, X., Wang, B. (2025). Document image shadow removal based on illumination correction method. Algorithms, 18(8): 468. https://doi.org/10.3390/a18080468

[25] Yang, F., Li, K., Jiang, N., Wu, Y., Li, Z., Wang, D.H. (2025). LDH-Net: Luminance-based deep hybrid network for document image de-shadowing. Image and Vision Computing, 162: 105705. https://doi.org/10.1016/j.imavis.2025.105705

[26] Yang, Y., Luo, S., Zeng, L. (2026). Document image shadow removal via score-based gradient-guided generative model. Expert Systems with Applications, 307: 131070. https://doi.org/10.1016/j.eswa.2025.131070

[27] Marulli, M., Bertini, M. (2026). DocWaveDiff: A predict-and-refine approach for document image enhancement with wavelet U-Nets and diffusion models. In 2026 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Tucson, AZ, USA, pp. 8511-8520. https://doi.org/10.1109/WACV61042.2026.00821

[28] Smith, R. (2007). An overview of the Tesseract OCR engine. In Ninth International Conference on Document Analysis and Recognition (ICDAR 2007), Curitiba, Parana, Brazil, pp. 629-633. https://doi.org/10.1109/ICDAR.2007.4376991

[29] Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P. (2004). Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13(4): 600-612. https://doi.org/10.1109/TIP.2003.819861

[30] Efron, B. (1982). The Jackknife, the Bootstrap and Other Resampling Plans. Society for Industrial and Applied Mathematics, Philadelphia. https://doi.org/10.1137/1.9781611970319

[31] Buades, A., Coll, B., Morel, J.M. (2005). A non-local algorithm for image denoising. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), San Diego, CA, USA, pp. 60-65. https://doi.org/10.1109/CVPR.2005.38

[32] Bui, Q.A., Mollard, D., Tabbone, S. (2017). Selecting automatically pre-processing methods to improve OCR performances. In 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), Kyoto, Japan, pp. 169-174. https://doi.org/10.1109/ICDAR.2017.36

[33] Huang, Z., Chen, K., He, J., et al. (2019). ICDAR2019 competition on scanned receipt OCR and information extraction. In 2019 International Conference on Document Analysis and Recognition (ICDAR), Sydney, Australia, pp. 1516-1520. https://doi.org/10.1109/ICDAR.2019.00244