NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Recovering What Matters, Transferring Only What Is Reliable: Toward Precise Reference-Based Super-Resolution

Sihan Ji, Wenxin Chen, Yue Shi, Jiezhang CaoarXiv 2026

TL;DR

Modern AI image upscalers are fantastic at hallucinating convincing textures, even when given a clean reference photo—meaning they’ll happily turn your blurry business card into sharp, confident gibberish. PreciseRef fixes this by letting the degraded image and reference photo talk directly inside a unified attention space, recovering exact text, scannable barcodes, and true facial identities. Better yet, it uses a clever parameter-free gating trick to ignore misleading references, so it won't accidentally paste a stranger's face or the wrong digits onto your photo.

What Problem Does This Paper Address?

Imagine trying to restore a blurry, low-quality (LQ) photo of a storefront or a friend's face. Standard super-resolution models guess the missing pixels using generative priors, which works great for grass or brick, but fails miserably when the missing detail is specific—like tiny text, a QR code, or someone's exact likeness.

Reference-based Super-Resolution (RefSR) tries to solve this by handing the model a separate, high-quality reference image of the same subject. However, existing RefSR methods hit a double bind:

  1. Plausibility $\neq$ Fidelity: Current models pass reference images through separate feature extractors or side-branches. This bottleneck muddies fine details, resulting in outputs that look sharp from afar, but fail to recover readable characters or scannable codes.
  2. Blind Copying: If you make a model really good at copying from a reference, it will also faithfully copy wrong things. If you accidentally feed it a photo of the wrong person, or a similar product with a different barcode, naive transfer will corrupt your image.

Methods

The authors build PreciseRef on top of FLUX.1-Fill (a pretrained diffusion transformer) using LoRA adapters and distill it into a fast 3-step (and optional 1-step) sampler. Instead of inventing complex warping networks to align images, they introduce two core mechanisms:

  • Asymmetric Twin-Attention (ATA): Rather than squeezing the reference through a separate network branch, ATA drops the target image tokens and reference image tokens into the exact same sequence across all 57 transformer blocks. FLUX’s native joint attention acts as the pixel-level matching engine. Crucially, it’s asymmetric: the reference keeps its original aspect ratio instead of being awkwardly cropped or squashed, sitting right next to the target in rotary position coordinates.
Direct joint attention in PreciseRef accurately links blurry text queries to the exact letters in the reference, attaining 48/48 matches across two cards.
  • Dual-Scale Reference Gating (DRG): To stop bad references from ruining the output—without adding learned parameters or training on mismatched pairs—DRG installs two mathematical "bouncers":
  • Semantic Relevance Gating (SRG) works globally. It checks if the target and reference actually depict similar scenes using centered SigLIP embeddings. If they don't match, it shuts off global semantic injection.
  • Bidirectional Consistency Gating (BCG) works locally at the token level. Using a classic computer vision intuition, it checks if attention goes both ways: if blurry patch $A$ wants to copy from reference patch $B$, does patch $B$ also think it looks like patch $A$? If $B$'s strongest reverse match points somewhere else (common with repetitive patterns or mismatched barcode digits), BCG penalizes the connection.

Datasets

  • Training: Adapted using LSDIR and FFHQ for general single-image restoration, followed by MegaScenes (multi-view scenes), CelebRef-HQ (facial identities), and synthetic LSDIR pairs for reference conditioning.
  • Standard Evaluation: Evaluated on general RefSR benchmarks CUFED5 and WR-SR.
  • VeriRef (New Benchmark): Because traditional metrics like PSNR or FID reward "pretty" hallucinations without checking if text is actually readable, the authors built VeriRef. It contains 280 degraded targets (100 text scenes from SMVS, 80 1D barcodes/QR codes, and 100 faces). Every target comes with both a correct reference and a wrong (distractor) reference, testing both exact content recovery (via OCR, code scanners, and ArcFace) and resistance to impostors.

Key Insights and Ideas

  • The interaction pathway is the bottleneck: In a controlled test using the exact same FLUX backbone and data, a frozen reference extractor decoded only 6.3% of barcodes/QR codes. Switching to direct joint attention jumped decoding to 71.3%—and learned faster during training—proving that pretrained diffusion attention already knows how to match features if you just get out of its way.
  • Global relevance doesn't guarantee local safety: You might have a globally relevant reference (e.g., a similar product box) that has locally misleading details (different serial numbers). Combining global (SRG) and local (BCG) gating cuts wrong barcode digit copying in half (from 21.8% to 10.9%) and eliminates ~65% of the perceptual error caused by mismatched references.

Key Results

PreciseRef dominates both exact content recovery and general perceptual quality:

  • Reading the Unreadable: On VeriRef, PreciseRef hits 85.6% OCR character accuracy and decodes 76.3% of barcodes/QR codes to their exact payload. The best existing RefSR baseline (Ada-RefSR) manages just 17.4% character accuracy and decodes 0% of the codes.
Visual comparison showing PreciseRef recovering crisp, readable text, scannable QR codes, accurate facial identities, and sharper scene details compared to Ada-RefSR.
  • Resisting Distractors: On faces, PreciseRef matches specialized face restorers when given the right reference (0.668 ArcFace similarity), while cleanly beating them when handed a wrong reference—retaining the highest similarity to the true person (0.389) and lowest leakage from the distractor.
Quantitative radar charts across benchmarks and a scatter plot showing PreciseRef uniquely achieves high facial identity recovery with correct references while resisting wrong references.
  • General Scenes & Speed: On CUFED5 and WR-SR, it achieves state-of-the-art perceptual scores, slashing FID from 128.0 to 80.4 (CUFED5) and 53.4 to 37.5 (WR-SR). Human evaluators preferred PreciseRef 84.2% of the time. Meanwhile, the 3-step model runs in 1.22s per $512 \times 512$ image, and the 1-step distilled variant runs in 0.30s while still decoding 72.5% of codes.

Limitations and Future Work

While not placed in a dedicated section, the authors note a few trade-offs in their ablations:

  • Speed vs. Fine Detail: Distilling the model down to a 1-step sampler (0.30s) causes OCR text accuracy to dip from 85.6% to 75.2%, as ultra-fine character strokes are mostly refined during later, low-noise diffusion steps.
  • Sequence Length vs. Small References: Enlarging small reference images boosts text accuracy even further (to 89.9%), but increases token sequence length and compute cost; the default model caps reference scale to keep sequences manageable.
  • Conservative Gating: Turning on Bidirectional Consistency Gating slightly trades off aggressiveness for safety, costing two decoded codes out of 80 when using correct references.

Summary updated

BibTeX
@misc{ji2026recovering,
  author = {Sihan Ji and Wenxin Chen and Yue Shi and Jiezhang Cao},
  title = {{Recovering What Matters, Transferring Only What Is Reliable: Toward Precise Reference-Based Super-Resolution}},
  year = {2026},
  eprint = {2611.33455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33455},
}
Figure