Which Parameters to Update? An Instance-Specific Adaptation Framework for Real-World Pansharpening

Jin-Liang Xiao, Liang-Jian Deng, Yu-Xuan Zhang, Hua Meng, Zhengchun ZhouarXiv 2026

TL;DR

Earth-observing satellites face an optical trade-off: they can snap sharp grayscale photos or blurry color ones, relying on algorithms to fuse them into crisp, vivid images—a process called pansharpening. Deep neural networks excel at this until they encounter real-world sensor quirks or lighting conditions they weren't trained on. Rather than retraining an entire neural network on the fly, this paper introduces a surgical test-time adaptation framework that identifies and updates only the single most impactful subset of parameters for the exact image sitting in front of it, boosting quality in a fraction of a second.

What Problem Does This Paper Address?

Because of physical bandwidth and photon constraints, satellites typically capture two simultaneous views of the Earth: a high-resolution panchromatic (PAN, essentially grayscale) image rich in spatial geometry, and a low-resolution multispectral (LRMS) image rich in color and non-visible spectral bands. Pansharpening fuses this pair into a single High-Resolution Multispectral (HRMS) image.

Deep learning models dominate pansharpening on paper, but stumble in the wild due to distribution shifts—variations in atmospheric conditions, terrain, or deploying a model trained on one satellite's hardware onto another's. Existing "test-time adaptation" methods try to fix this by adapting the model using only the single test image pair at hand. However, they either optimize the entire network from scratch (painfully slow) or bolt on generic adapter modules at predetermined layers. Both approaches ignore a crucial nuance: different layers of a pretrained network contribute very unequally to fixing a specific test image.

Figure 1. Motivation for instance-specific parameter selection. Given a test PAN–LRMS image pair, the pretrained network pro- duces a limited HRMS image with an HQNR of 0.890. We evalu- ate the reconstruction performance obtained by adapting different parameter groups individually. The resulting HQNR values vary across groups, indicating that different parameter groups have un- equal effects on the quality of the current test image. This obser- vation motivates the selective adaptation of the most beneficial pa- rameters rather than indiscriminately updating the entire network.

Methods

Instead of guessing which layers to tweak or updating everything, the authors propose a two-stage framework that asks: Which specific parameters will generalize best across this exact image?

Figure 2. Illustration of the whole process of the proposed instance-specific adaptation framework that includes parameter selection and test-time adaptation.
  1. Parameter Selection via Cross-Scoring (New): Since there is no high-resolution ground truth at test time, the authors rely on Wald’s protocol (a standard remote-sensing trick): they blur and downsample the input pair so the original LRMS image can act as a pseudo-ground-truth. They slice the image into four quadrants, grouping opposite diagonals into Class A and Class B. Rather than slowly training every candidate parameter group (each given an equal parameter budget), they take a single virtual optimization step on Class A and use a first-order Taylor expansion to estimate how much that step reduces error on Class B (and vice versa). Requiring just two backward passes total, this cross-score identifies the parameter group whose updates genuinely transfer across different regions of the scene.
  2. Test-Time Adaptation (Standard + New): Freezing the rest of the network, they update only the winning parameter group on the full-resolution image using two self-supervised losses (with early stopping on held-out patches to prevent overfitting):
  3. Spectral Consistency (Standard): Blurring and downsampling the fused output must match the original LRMS colors.
  4. Calibrated Spatial Consistency (New): Forcing multispectral bands to blindly copy grayscale PAN edges causes severe spectral distortion. Instead, the authors calibrate the PAN image's spatial gradients band-by-band using the statistical standard deviation of the pretrained network's initial cached prediction.

Datasets

The authors evaluate their framework on real-world, full-resolution satellite imagery from the PanCollection benchmark—specifically GaoFen-2 (GF-2), QuickBird (QB), WorldView-2 (WV-2), and WorldView-3 (WV-3) (20 image pairs per sensor). Because real-world full-resolution HRMS ground truth does not exist, quality is measured via HQNR (Hybrid Quality with No Reference; closer to 1.0 is better), which penalizes both spectral ($D_\lambda$) and spatial ($D_s$) distortions. No new datasets were introduced.

Key Insights and Ideas

  • Optimal layers depend on both architecture and the image: Ablation studies revealed that fixing updates to middle layers worked best on average for one backbone (FusionNet), while late layers worked best for another (U2Net). Dynamic cross-scoring beat every fixed-layer strategy on both architectures.
  • Local gradients lie; cross-region transfer tells the truth: Updating parameters with the largest local gradients can simply memorize a patch's quirks. Scoring parameters by whether an update on top-left/bottom-right patches helps top-right/bottom-left patches ensures spatially consistent improvements.
  • Spatial edges need spectral context: Using spatial gradient loss alone catastrophically tanks quality (dropping HQNR from ~0.94 to 0.50). Anchoring PAN edge magnitudes to the pretrained network's band-specific statistics injects crisp structural detail without ruining colors.

Key Results

Tested on two standard backbones (FusionNet and U2Net), the framework consistently boosted performance in both in-sensor (same satellite) and cross-sensor (unseen satellite) scenarios:

  • Cross-Sensor Recovery: When FusionNet trained on QuickBird was deployed directly on GaoFen-2, its HQNR languished at 0.8241. Instance-specific adaptation vaulted it to 0.9577—beating all compared state-of-the-art methods. Similarly, U2Net jumping from WV-3 to WV-2 improved from 0.8687 to 0.9450.
  • In-Sensor Polish: Even without sensor shift, WV-3 HQNR on FusionNet climbed from 0.9414 to 0.9661.
  • Massive Speedups over Zero-Shot Optimization: While full test-time optimization methods like PSDip and UCL take 110s and 258s per image respectively, Ours_FusionNet finishes selection and adaptation in ~0.42 seconds (with cross-scoring taking just ~22 milliseconds).
Figure 5. The cross-sensor visual comparisons on GF-2 and WV-2 datasets. The upper row shows the predicted HRMS images of different methods, and the bottom row displays the corresponding HQNR maps.

Limitations and Future Work

  • Manual Candidate Pools: Applying this framework to a brand-new neural architecture currently requires a human to manually partition the network's weights into equal-budget candidate groups.
  • Black-Box Dynamics: While cross-scoring reliably picks winning parameters empirically, the theoretical relationship between specific pretrained representations and test-time adaptability remains unclear—a question the authors flag for future exploration.

Summary updated

Abstract

Pansharpening aims to fuse a single observed image pair, comprising a low-resolution multispectral (LRMS) image and a panchromatic (PAN) image, to obtain a high-resolution multispectral (HRMS) image. Recently, deep learning-based methods have achieved significant performance due to their strong capability of extracting nonlinear features. However, distribution shifts between training data and test images can degrade the performance of pretrained pansharpening networks, limiting their generalization in real-world scenarios. In this work, we propose an instance-specific test-time adaptation framework that uses the observed PAN-LRMS pair to select and update only a subset of the pretrained network's parameters. Specifically, the framework uses cross-scoring to identify parameter groups whose updates improve reconstruction across image patches. It then updates the selected groups by minimizing a loss that combines a spectral consistency term with a newly designed spatial consistency term. Experiments show that the adapted networks perform better than their pretrained counterparts and outperform representative state-of-the-art pansharpening methods on GaoFen-2, QuickBird, and WorldView series datasets.
BibTeX
@misc{xiao2026which,
  author = {Jin-Liang Xiao and Liang-Jian Deng and Yu-Xuan Zhang and Hua Meng and Zhengchun Zhou},
  title = {{Which Parameters to Update? An Instance-Specific Adaptation Framework for Real-World Pansharpening}},
  year = {2026},
  eprint = {2611.32450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32450},
}
Figure