Papers
Topics
Authors
Recent
Search
2000 character limit reached

Post-Hoc Slimmability in RS FMs

Updated 6 February 2026
  • Post-hoc slimmability is the ability to adapt pretrained remote sensing foundation models by proportionally reducing channel widths at inference time without retraining, leveraging inherent redundancy.
  • The method uniformly scales multi-head self-attention and feedforward layers, creating a continuum of subnetworks that efficiently trade off FLOPs and accuracy.
  • Empirical results show RS FMs retain over 71% relative accuracy at extremely slimmed widths, with some subnets even outperforming the full model under constrained compute.

Post-hoc slimmability refers to the ability to adapt pretrained transformer architectures—specifically, foundation models (FMs) for remote sensing (RS)—by uniformly reducing channel width at inference time, requiring no retraining or architectural modification. This procedure leverages representational redundancy in overparameterized models and enables deployment across a range of computational budgets, most notably in resource-constrained environments. Hackel et al. (2026) provide the definitive technical formalization and empirical analysis of this phenomenon in RS FMs, contrasting findings with established computer vision (CV) models and challenging prevailing scaling paradigms (Hackel et al., 30 Jan 2026).

1. Mathematical Formulation and Definitions

A transformer FM pretrained for RS includes feedforward network (FFN) layers with hidden size dhd_h and multi-head self-attention (MHSA) modules with per-head dimension dkd_k. For any width multiplier s(0,1]s\in(0,1], post-hoc slimmability reduces the width of all layers proportionally: dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.

  • In FFN blocks:

h=Act(W1[:dh,:]x+b1[:dh]),y=W2[:,:dh]h+b2\mathbf h = \mathrm{Act}\left(\mathbf W_1[:d_h',:]\mathbf x + \mathbf b_1[:d_h']\right),\quad \mathbf y = \mathbf W_2[:,:d_h']\mathbf h + \mathbf b_2

  • In MHSA blocks for each head hh with index set Ih=[hdk,hdk+dk)\mathcal I_h=[h\,d_k,\,h\,d_k+d_k'):

Qh=xWQ[Ih,:],  Kh=xWK[Ih,:],  Vh=xWV[Ih,:]\mathbf Q_h = \mathbf x\,\mathbf W_Q[\mathcal I_h,:],\; \mathbf K_h = \mathbf x\,\mathbf W_K[\mathcal I_h,:],\; \mathbf V_h = \mathbf x\,\mathbf W_V[\mathcal I_h,:]

No update or retraining is performed. The original weights are sliced, yielding a continuum of subnetworks parameterized by ss. At s=1s=1 the model is unchanged; as dkd_k0, both parameter count and computation are reduced.

2. Measuring Redundancy and Evaluation Protocol

Redundancy is assessed by systematically sampling slimmed widths and benchmarking both computational savings and retention of downstream accuracy.

  • FLOP Ratio: For the full model requiring dkd_k1 operations per forward pass, the slimmable variant at width dkd_k2 requires

dkd_k3

The normalized compute is dkd_k4.

  • Relative Accuracy: For a downstream task,

dkd_k5

  • Empirical Protocol: The method is applied to 31 uniformly sampled dkd_k6. At each scale, the model is sliced, dkd_k7 computed, frozen features extracted on four RS classification tasks (using KNN or linear probe), and dkd_k8 recorded.

This protocol is applied to six state-of-the-art RS FMs (parameter counts: 86M–631M; pretraining compute: 100–58K GPU hours).

3. Empirical Results: RS FMs vs CV Counterparts

Key quantitative findings:

  • At dkd_k9 FLOP (s(0,1]s\in(0,1]0), RS FMs retain s(0,1]s\in(0,1]1 (over 71% of accuracy at full width).
  • By contrast, a ViT-MAE pretrained on ImageNet-1K evaluated on ImageNet-100 retains less than 10% of baseline accuracy at the same FLOP level.
  • This sevenfold discrepancy indicates that RS FMs harbor significantly more representational redundancy at small widths than their CV analogues.
  • Non-monotonic behavior: Multiple RS FMs achieve maximum downstream accuracy at intermediate widths (s(0,1]s\in(0,1]2–s(0,1]s\in(0,1]3), with some slimmed models slightly outperforming the full-width model, suggesting an implicit regularization effect from slimmability.

4. Mechanistic Explanations: Variance and Correlation Analyses

The origins of slimmability are investigated through two complementary metrics:

  • Explained Variance Ratio (EVR):

    • Given feature matrix s(0,1]s\in(0,1]4 with singular values s(0,1]s\in(0,1]5, the fraction of variance explained by the top s(0,1]s\in(0,1]6 components is

    s(0,1]s\in(0,1]7

    The effective rank is s(0,1]s\in(0,1]8. - RS FMs are found to concentrate most variance in a handful of top principal components, even for highly slimmed models (small s(0,1]s\in(0,1]9). This variance spreads more slowly with increasing feature dimension compared to CV MAE models. Model-specific scaling behavior is observed: monotonic for DOFA, U-shaped for Prithvi-EO, and stable for TerraMind.

  • Mean Absolute Pairwise Feature Correlation:

    • For features dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.0, the mean absolute inter-feature correlation is

    dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.1 - DOFA FMs show strong correlation at low dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.2, decaying with width; TerraMind features retain moderate correlation across dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.3; Prithvi-EO exhibits non-monotonic correlation, reflecting scale-dependent task decomposition.

These analyses support the interpretation that RS FMs encode task-relevant information in a distributed and redundant fashion.

5. Learned Slimmable Training Regimes

The post-hoc nature of slimmability is contrasted with learned slimmable training, wherein the model is explicitly regularized to perform well at multiple channel widths during pretraining. Hackel et al. implement this via a multi-scale loss for two SSL paradigms (MoCo, MAE):

  • For each batch, sample widths: dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.4, dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.5 decreasing with epoch, and dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.6.
  • For each scale, compute the task loss dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.7, augmented by a distillation loss for dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.8:

dh=sdh,dk=sdk.d_h' = \left\lfloor s\cdot d_h \right\rfloor,\quad d_k' = \left\lfloor s\cdot d_k \right\rfloor.9

The total loss per sample is h=Act(W1[:dh,:]x+b1[:dh]),y=W2[:,:dh]h+b2\mathbf h = \mathrm{Act}\left(\mathbf W_1[:d_h',:]\mathbf x + \mathbf b_1[:d_h']\right),\quad \mathbf y = \mathbf W_2[:,:d_h']\mathbf h + \mathbf b_20 with shared gradients.

  • Empirically, slimmable training with MoCo outperforms vanilla MoCo in the low-width regime and matches full-width performance; MAE slimmable training yields mixed outcomes, underperforming on multi-label tasks but showing improved performance on certain fine-grained single-label tasks. This reflects complex interactions between the slimmability objective and self-supervised reconstruction.

6. Deployment and Paradigm Implications

Post-hoc slimmability establishes a new operational regime for RS FMs:

  • Uniform slimming enables zero-cost adaptation of large RS models to extremely constrained compute environments (e.g., edge/onboard inference) with modest accuracy loss (less than 30%) at h=Act(W1[:dh,:]x+b1[:dh]),y=W2[:,:dh]h+b2\mathbf h = \mathrm{Act}\left(\mathbf W_1[:d_h',:]\mathbf x + \mathbf b_1[:d_h']\right),\quad \mathbf y = \mathbf W_2[:,:d_h']\mathbf h + \mathbf b_21 of original FLOPs.
  • Non-monotonic accuracy suggests practitioners should empirically sweep over h=Act(W1[:dh,:]x+b1[:dh]),y=W2[:,:dh]h+b2\mathbf h = \mathrm{Act}\left(\mathbf W_1[:d_h',:]\mathbf x + \mathbf b_1[:d_h']\right),\quad \mathbf y = \mathbf W_2[:,:d_h']\mathbf h + \mathbf b_22 to identify optimal subnets, which can sometimes outperform the original model while reducing compute by up to h=Act(W1[:dh,:]x+b1[:dh]),y=W2[:,:dh]h+b2\mathbf h = \mathrm{Act}\left(\mathbf W_1[:d_h',:]\mathbf x + \mathbf b_1[:d_h']\right),\quad \mathbf y = \mathbf W_2[:,:d_h']\mathbf h + \mathbf b_23.
  • A plausible implication is that learned slimmability can structure redundancy in future models to further promote robustness, directly challenging the established "always scale bigger" paradigm of CV-derived model scaling in RS domains (Hackel et al., 30 Jan 2026).
Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Post-Hoc Slimmability.