Scan a page printed on thin stock and you get a faint grey copy of whatever is on the reverse side. Everyone who has ever scanned a paperback knows this. The usual advice is to "clean it up afterwards", and the usual assumption is that the problem gets worse the more you enlarge the file — that an 8× upscale of a scanned page must produce a ghost eight times as prominent as the original.
I put a light meter on that assumption. It is wrong, and the reason it is wrong tells you more about upscalers than any benchmark table will.
The short version: on a real scanned chapter page, the bleed-through sits 12.999 levels above clean paper at 1×, at 2×, at 4×, and at 8× — the same number to three decimals, four times in a row. A second page, a photograph printed on recycled stock, sits at 10.47 levels at all four factors. Upscaling changed the pixel count by a factor of 64 and changed the ghost by zero.
That is not a bug in the tool, and it is not a coincidence. It is arithmetic, and once you see the arithmetic you can predict the result yourself.
The measurement that should have produced a bigger ghost
The setup was deliberately boring. Two scans: a chapter page from a book printed on thin paper (where the reverse-side text is legible enough to read), and a photograph printed on recycled stock (where the reverse side is mostly a dark block). For each, I identified a region of clean paper, a region where reverse-side ink shows through, and the ink of the front side itself. Then I upscaled the whole page by 1×, 2×, 4×, and 8× in the same pipeline and re-measured the same three regions at the same physical position on the page.
The "ghost level" is the mean luminance of the ghost region minus the mean luminance of clean paper, in 0–255 code values. Higher means a darker, more visible ghost.
| Page | Pixels with reverse ink | Clean paper pixels | Ghost pixels | Ghost at 1× | 2× | 4× | 8× |
|---|---|---|---|---|---|---|---|
| Book chapter page | 22,950 | 388,442 | 26,221 | 12.999 | 12.999 | 12.999 | 12.999 |
| Photo on recycled stock | 56,492 | 235,675 | 75,214 | 10.47 | 10.47 | 10.47 | 10.47 |
Row one is the interesting one. Four measurements, four identical values, across a 64-fold increase in pixel count (8× linear). If the ghost were some kind of artefact that the upscaler was introducing or amplifying, it would have to change. It does not.
Expressed as a percentage of the ink contrast, the same page reads 5.098% at 1×, 2×, 4× and 8×, and the recycled stock page reads 4.684%, 4.688%, 4.685%, 4.684% — flat to within four thousandths of a percentage point. The tiny wobble on the second page is worth noticing, because it is the only place in this whole dataset where the scale factor does anything at all, and it is smaller than the noise floor of the measurement.
Why scale-invariance is arithmetic, not magic
Here is the part that makes the result obvious in hindsight. An upscaler is a resampling filter. Resampling is a linear operation on intensity: it computes each output pixel as a weighted average of input pixels. A weighted average has two properties that matter here — it preserves constants, and it scales linearly.
Before the upscale, the ghost region can be written as a clean-paper value minus a small darkening caused by the reverse-side ink. The upscale produces a weighted average of the clean paper and the darkened paper in exactly the same proportion as the original, because the weighting does not care which pixels are "ink" and which are "ghost". Both get averaged with the same weights. The darkening stays a darkening of the same size, in the same code values, because averaging does not change a uniform offset.
That is the whole explanation, and it is testable in one line: if a 12.999-level offset were being averaged with neighbouring paper that is also 12.999 levels darker, the average is still 12.999 levels darker. Scale changes how many pixels carry the offset, not how big the offset is.
Which is why the ghost is a contrast problem and not a resolution problem. The reverse-side ink was recorded by the scanner at full fidelity; it is in the file, at the same contrast as the real ink on the front. Enlarging the file enlarges both together, so their ratio is frozen. If you have ever upscaled a scanned page and thought the ghost "looked worse", what changed was that you were looking at a bigger image on the same screen — the ghost's relative contrast was identical the whole time.
The same argument explains the percentage column. 12.999 divided by 255.0 is 0.05098, which is 5.098%. The percentage is not an independent measurement; it is the ghost level divided by the front-side ink level, and the front-side ink measured 255.0 at all four scales (the control row C2_clean_ink, four entries, all 255.0). Two constants divided by each other are a constant. The flat percentage is a tautology, and the fact that it comes out flat is evidence that the measurement is wired up correctly rather than evidence of a physical law.
The naive estimator reports a negative ghost
There is a second number in that file that I want to put on the table, because it is the kind of mistake that produces confident wrong answers.
The obvious way to measure a ghost is "how much darker is the ghost region than clean paper". If you implement that carelessly — difference the image against a reference that has already been whitened — you get the entries in the file labelled naive_at_a0_pct: −0.166% for the chapter page and −0.07% for the recycled stock page.
Negative. A negative ghost means the "ghost" region came out lighter than clean paper, which is physically absurd. The number is not a subtle bias; it is a sign error with a magnitude on the order of 0.1% of full scale, which in code values is a quarter of a level. It is small enough to look like a rounding artefact and large enough to swamp any real effect you are trying to measure in the sub-1%-of-contrast range.
The control that catches it is the zero-signal case. In the synthetic sweep further down, injecting a ghost with amplitude a = 0 produces measured values of 0.0, 0.0, 0.0, 0.0 across all four blur widths — a genuine zero, not a value that wanders around zero. If your estimator cannot return exactly zero when there is exactly no ghost, it is measuring its own reference.
What the ghost actually is: a two-parameter model
If the phenomenon is a uniform darkening at a fixed contrast, then it is not one unknown, it is two: how dark the ghost is, and how blurred it is. Reverse-side ink has been diffused through paper, so it does not arrive as sharp letterforms — it arrives as letterforms convolved with a blur kernel.
I fitted a model with exactly those two parameters to the scanned page: a ghost of amplitude a convolved with a Gaussian of width σ, added to clean paper. Then I checked whether the fit recovers parameters I already know.
| Quantity | Book chapter page | Photo on recycled stock | Injected ground truth |
|---|---|---|---|
| Fit RMS residual (levels) | 0.1049 | 0.1644 | — |
| Recovered σ (px) | 2.0 | 2.0 | 2.0 |
| Recovered amplitude a | 0.05056 | 0.05006 | 0.05 |
| Ghost left after subtraction (levels) | 0.103 | 0.094 | 0 |
Read the last two columns together. The synthetic case was built with σ = 2 px and a = 0.05, and the estimator returned σ = 2.0 and a = 0.05056 — a 1.1% error in amplitude and an exact recovery of the blur width. The real pages return the same two numbers, to within 1% on amplitude and exactly on width, with RMS residuals of a tenth of a level and a sixth of a level respectively.
That agreement is the useful part. It means the ghost on a real scanned page is well described by "reverse-side ink, blurred by about two pixels of paper, at about five percent of the front ink's contrast". Two pixels of blur is much narrower than the blur you would guess from looking at a ghost — it looks soft at 100% because it is low contrast, not because it is wide.
The right panel is the sweep that produced the ground-truth column. Six injected opacities, from 0.5% to 8% of ink density, four blur widths from 1 to 8 pixels, plus the all-zero control. Every curve is close to a straight line through the origin, which is what "uniform darkening" predicts, and the vertical spread between the four blur widths is modest: at 8% opacity the σ = 1 px case reads 18.77 and the σ = 8 px case reads 14.81, a 21% difference. A wider ghost reads as less dark per pixel, because the same total ink is spread over more paper. That is the second-order effect, and it is small compared to the first-order one, which is opacity.
At the measured opacity of the real page — 5% — the synthetic sweep returns 12.1 for σ = 1 px and 12.06 for σ = 2 px. The real page measured 12.999. Given that the sweep is a synthetic construction and the page is a real scan with paper texture, a 7% disagreement between a model and reality is not a discrepancy, it is the model doing its job.
Removing it: the bigger the mask, the worse it gets
Knowing the model, the fix seems obvious: estimate the background, subtract it, whiten the paper. The interesting question is how large a region you should hand to the estimator.
The intuitive answer is "as large as possible, so it has plenty of clean paper to work with". That answer is wrong, and the measurement refutes it cleanly. The mask radius R here is how far around each pixel the background estimate looks.
| Mask radius R | Ghost residual left (%) | Front ink retained (%) |
|---|---|---|
| 2 px | 2.67 | 67.97 |
| 4 px | 9.88 | 100.0 |
| 8 px | 27.5 | 100.0 |
| 16 px | 48.52 | 100.0 |
| 32 px | 57.97 | 99.93 |
Two failures in opposite directions, and the trade-off is brutal at both ends.
At R = 2, the background estimate is so local that it can only see a small patch, and 2.67% ghost residual looks like a triumph — you removed 97% of the ghost. But ink retention collapses to 67.97%. A third of the front-side ink was classified as background and whitened away. The estimator cannot tell a soft-edged stroke from a ghost within two pixels, so it eats the edges of real letters. That is not a good trade at any price, and it is exactly the failure mode you get when you turn "remove background" up to maximum on a document scan.
At R = 4 and above, ink retention is perfect — 100.0% at 4, 8 and 16, and 99.93% at 32 — so the front side is safe. But the ghost residual climbs steadily: 9.88%, then 27.5%, then 48.52%, then 57.97%. By R = 32 you have removed less than half the ghost. The estimate is now averaging over a region so large that the true background level of the local patch is no longer represented; it has smoothed across the page's illumination gradient and dragged the ghost back in.
So the usable window is a single stop wide. R = 4 gives you full ink retention with 9.88% ghost residual — you removed about nine tenths of the ghost and broke nothing. R = 8 gives full ink retention with 27.5% residual, a weaker but still safe clean-up. Outside that range, you are either destroying the text or barely touching the ghost.
Blur filters do not separate ghost from ink
The other obvious idea is to blur out the ghost, on the theory that it is low-frequency and the text is high-frequency. This is the standard intuition for a median filter, and the median filter description on Wikipedia states it fairly: median filtering "preserves edges while removing noise", which is why it is a typical pre-processing step.
That is true of impulsive noise. A ghost is not impulsive noise. It is a smooth low-frequency darkening, which is precisely the class of signal a median filter is designed to pass through untouched.
| Filter | Ghost still there (%) | Front ink still there (%) |
|---|---|---|
| median 3×3 | 99.99 | 100.0 |
| median 5×5 | 99.95 | 100.0 |
| Gaussian σ = 1.0 | 99.41 | 100.0 |
| Gaussian σ = 2.0 | 95.95 | 99.18 |
A 3×3 median removes 0.01% of the ghost. A 5×5 removes 0.05%. Even a Gaussian with σ = 2.0 — a substantial blur that visibly softens a page — removes only 4.05% of the ghost while costing 0.82% of the ink. The right panel of the chart above makes the point visually: the red bars are the ghost, and they are all at or near the top of the axis across every filter arm.
The reason is structural. A filter that removes low-frequency content also removes the low-frequency content of the ink. There is no frequency band that contains the ghost and not the letters, because the ghost is a blurred copy of letters — the same shapes, at the same spatial frequencies, only fainter. Any filter that discriminates between them is not a filter; it is a segmentation model that knows what a letter looks like.
Order of operations: remove before you enlarge, or after?
If you are going to remove the ghost at all, when should you do it? Three orders were measured, and the answer depends on whether the removal kernel knows about the upscale factor.
| Order | Ghost left after removal (levels) | RMS vs. reference at 2× | RMS at 4× |
|---|---|---|---|
| A: remove ghost, then upscale | 0.999 | — | — |
| B: upscale, then remove with a kernel scaled by the factor | 0.286 | 0.2357 | 0.2151 |
| C: upscale, then remove with a fixed-size kernel | 0.25 | 0.2707 | 0.4293 |
Arm A is the one to copy: estimate and subtract the ghost before the upscale, then enlarge a clean page. It leaves 0.999 levels of ghost residual — not zero, because the model is fitted, not exact, but essentially invisible at a tenth of the ink contrast.
Arms B and C both remove more ghost in absolute terms (0.286 and 0.25 levels) and both cost you accuracy relative to A. C is the instructive one: with a fixed-size kernel applied after enlargement, the error grows with the scale factor — RMS 0.2707 at 2× rising to 0.4293 at 4×, a 59% increase. That is the classic mistake. A 5-pixel mask that fits the page at 1× covers a fifth of the page's feature size at 5×; it stops being a background estimator and starts being a blur. Arm B avoids this by scaling the kernel with the factor, and its error actually improves slightly from 2× to 4× (0.2357 to 0.2151) because there is more data to average over. But scaling the kernel requires knowing the factor, which means the operation is entangled with the upscale — and if you later re-run the upscale at a different factor, you have to redo the removal from the original.
Doing it first (arm A) sidesteps all of that. It is also the cheaper order, because every subsequent operation runs on an image whose ghost is already gone rather than on one where you are fighting it at 64× the pixel count.
When you should not remove show-through at all
Here is where I would push back on the automatic clean-up reflex.
If the ghost is under about 2% of ink contrast, leave it. The synthetic sweep shows a 0.5% ghost measuring 1.0 level at every blur width — indistinguishable from paper texture noise, and well below the point where a viewer notices. Spending a background-estimation pass to remove one code value risks the R = 2 failure mode, where a third of the ink disappears, in exchange for a change nobody can see.
If the page is the only copy of something and the ghost is from a different page's text, do not subtract — separate. A subtraction that removes a ghost also removes whatever genuine content happens to have similar contrast and frequency. On a document with handwritten marginalia in light pencil, a ghost-removal pass will happily eat the pencil. Crop, mask, or use the reverse side's own scan if you have it. Subtraction is for pages where the front side is the only content that matters.
If you are going to upscale anyway, remove first or not at all. Arm C above is the warning: ghost removal applied after enlargement, with a kernel that does not know the factor, is the worst of the three orders and gets worse as the factor rises.
And if you are scanning from scratch, fix it in hardware. A black backing sheet behind the page during capture removes bleed-through optically, for free, with no estimator and no risk to the ink. Every measurement in this article is a measurement of what it costs to fix in software something that a sheet of black card would have prevented.
The physical picture, in one paragraph
Paper is not opaque. The physics is unglamorous: opacity is the measure of impenetrability to light, and an opaque substance transmits none of it — while paper is thin enough to transmit a few percent, which is exactly what gives you a ghost at 5.098% of ink contrast. Light goes in, scatters through the sheet, reflects off the reverse-side ink, and comes back out as a faint copy of the back of the page. The scanner records that faithfully. It is real image data at a real, measurable contrast, which is why the upscaler preserves it and why filters keyed to noise do not touch it. The FADGI technical guidelines for digitizing cultural heritage materials exist because this class of capture artefact is a known, studied property of scanning rather than an accident.
Upscaling the page you already cleaned
If you have a scanned page whose ghost is already under control and you need more pixels — a small print, a crop you want to print larger — the upscale will preserve whatever contrast is left, exactly as measured above. That is a good property: it means the clean-up you did at 1× is not undone at 4×, and you do not need to re-run it.
I ran these measurements while working with UpgoLAB's browser upscaler, because its 2× and 4× output is the exact situation where the "will the ghost get worse" question becomes live. The answer, four times over, was no — and knowing that in advance is worth more than any post-processing pass, because it tells you to spend your effort on the ghost's contrast at 1× rather than on the upscale factor.
Here is what a 4× pass across five presets actually looks like on real data, if you are deciding whether the enlargement is worth it:
The checklist
- Measure the ghost as a percentage of front-ink contrast, not as a raw level. A raw level means nothing without the ink level next to it; the percentage is what stays constant.
- Do not expect an upscale to change it. It is flat by construction across 1×, 2×, 4× and 8×, and it will be flat at 16×.
- Check your estimator returns exactly zero on a zero-ghost control before you trust it on a real page. A naive differencing estimator returned −0.166% on a page with a real ghost.
- Fit two parameters, amplitude and blur width. Real pages fit σ ≈ 2 px and a ≈ 5% with a residual around a tenth of a level.
- Use a mask radius near 4–8 px. At 2 px you lose 32% of the ink; at 32 px you leave 58% of the ghost. The safe window is one stop wide.
- Never reach for a median or Gaussian filter. They keep 96–99.99% of the ghost, because the ghost is a blurred copy of exactly the signal you are trying to protect.
- Remove before you upscale. Removal after a fixed-kernel upscale is the worst order measured, and its error rises with the scale factor.
- Below 2% of ink contrast, do nothing. You are about to spend a pass to change one code value, with a real chance of eating the text.
None of this is about making an upscaler smarter. It is about knowing which of your problems live in the pixels and which live in the paper — and the ghost, at 5.098% and holding, lives in the paper.


Top comments (0)