arXiv:2610.35374cs.CVOct 2026

Manuscript Offprint

arXiv:2610.35374

GIFT: Representation Geometry Matters for Single-Domain Generalized Object Detection

Yin Zhang, Yaoyue Zheng, Yongqiang Zhang, Bogdan Raducanu, Dan Li

Abstract

Single-Domain Generalized Object Detection (S-DGOD) aims to generalize from a single source domain to unseen domains under distribution shifts. Existing efforts mainly focus on simulating unseen domains or suppressing domain-specific factors. However, they largely overlook the intrinsic generalization capability embedded in Vision Foundation Models (VFMs). In this work, we show that unconstrained fine-tuning disrupts the geometric structure of pre-trained representations, which encodes domain-invariant semantics. Motivated by this, we propose Geometric-Invariance Fine-Tuning (GIFT), a geometric-aware fine-tuning method for VFMs. Specifically, we introduce a series of learnable Householder reflections to the pre-trained weights to encourage geometry-consistent adaptation under domain shift. In addition, we propose a lightweight channel-wise scaling to facilitate effective task-specific adaptation. Extensive experiments demonstrate that GIFT outperforms state-of-the-art (SOTA) approaches on two S-DGOD benchmarks. Notably, by introducing fewer than 1% additional trainable parameters into the frozen backbone, the proposed method achieves improvements of +7.9% and +2.9% in mPC over the previous SOTA on the Cityscapes-C and Diverse Weather Dataset, respectively. This finding highlights that preserving representation geometry is crucial for robust domain generalization, establishing GIFT as a principled and efficient solution to domain shift. The code is available at https://github.com/zhangyin1996/GIFT.

1 Introduction

Single-Domain Generalized Object Detection (S-DGOD) [51] aims to learn from a single source domain while generalizing to diverse unseen target domains. Traditional CNN-based methods primarily attempt to simulate domain diversity within a single source domain [55] or explicitly disentangle domain-invariant and domain-specific features [51]. Despite their effectiveness, these methods are generally built on CNN backbones such as ResNet [18] and pre-trained on medium-scale datasets (e.g., ImageNet [11]). Such constraints may limit representation capacity and hinder generalization to diverse unseen domains.

Recently, leveraging powerful Vision Foundation Models (VFMs), such as DINO [4, 37, 44], EVA [15, 14], and SAM [28, 40, 3], has become an effective strategy to overcome performance bottlenecks.

∗^{*}Corresponding author.

Preprint.

Figure

(a) Pre-trained DINOv2

(b) Conventional PEFT

Fine-tune

Stable Intrinsic Geometry

Figure

Geometry Distorted

(c) GIFT (Ours)

Figure

Geometry Preserved

Figure

Poor

Figure

Figure

Figure

Figure

Robust

Figure

Figure 1: (a) The pre-trained VFM exhibits an intrinsically stable geometry, while (b) unconstrained fine-tuning [22] often disrupts this structure, degrading generalization. In contrast, (c) by preserving geometric structure during fine-tuning, GIFT effectively improves generalization across unseen domains (DF., DR., NR., and NS.) in the DWD dataset [51]. More results are provided in Section 4.4.

With large-scale pre-training and strong representation capacity, these models have significantly advanced various vision tasks [1, 59, 61]. A mainstream approach to exploiting these VFMs is Parameter-Efficient Fine-Tuning (PEFT) [17], which adapts the pre-trained model by updating only a small subset of parameters through lightweight modules such as prompts [25], adapters [6], or low-rank adaptations (LoRA) [20]. However, existing PEFT-based methods mainly focus on effectively adapting VFMs to downstream tasks. In the context of S-DGOD, the lack of multi-source data makes models prone to overfitting on source-specific statistics. Moreover, current PEFT-based S-DGOD methods largely follow conventional strategies from CNN-based methods, often overlooking the intrinsic generalization ability of VFMs, which is especially important under limited source diversity.

Motivation. We perform two experiments to show that unconstrained fine-tuning can disrupt the geometric structure of pre-trained representations, leading to degraded generalization on unseen target domains. By explicitly preserving this structure, our method improves cross-domain generalization.

Experiment 1: Attention Map Visualization. As shown in Fig. 1, we produce the mean CLS attention maps of the last layer [10, 24, 43] in DINOv2 for both the source and target domains of the DWD dataset [51], generated by (a) the pre-trained DINOv2, (b) an existing PEFT method [22], and (c) our fine-tuning method. Comparison of the two fine-tuning strategies highlights that preserving geometric invariance is essential for robust single-domain generalization. Beyond preserving the geometric structure of pre-trained representations, we further focus on adapting task-specific features to facilitate downstream object detection tasks. Building on the proposed fine-tuning strategy, we find that a lightweight scaling of the transformed weights can effectively emphasize stable, task-relevant features, further improving cross-domain generalization.

Experiment 2: Geometric Statistical Analysis. We conduct a geometric statistical analysis to further support our motivation. First, for each input from Cityscapes-C [35], we feed the image into the DINOv2 [37] backbone and obtain the CLS token from the final transformer layer as the global representation. Then, inspired by PAID [48], we analyze the geometric properties of the representation space from three perspectives: Magnitude (M), Absolute Angle (A), and Structural Correlation (S). Specifically, given the feature matrix F∈RN×DF \in \mathbb{R}^{N \times D}, where N represents the total number of image samples in the batch, and D denotes the feature dimension. The Magnitude (M) of each feature channel d is defined as:

M=∥F:,d∥2(1)M=\|F_{:,d}\|_{2} \tag{1}

Figure

ΔM\Delta M (Magnitude)

ΔA\Delta A (Absolute Angle)

ΔS\Delta S (Structure)

1.0

0.8

0.6

0.4

0.2

0.0

Figure 2: Geometric statistical analysis of DINov2.

Table 1: The differences before and after fine-tuning for each PEFT method. ‘↓’ indicates that lower values are better.

MethodsDM(↓)D_M(\downarrow)DA(↓)D_A(\downarrow)DS(↓)D_S(\downarrow)
LoRA [20]0.180.0850.11
Cauvis [30]0.250.130.11
Ours0.200.0510.081

For absolute angle, we first normalize each channel vector: F~:,d=F:,d/∥F:,d∥2\tilde{F}_{:,d} = F_{:,d} / \|F_{:,d}\|_2, and we compute the global direction τ=1D∑d=1DF~:,d\tau = \frac{1}{D}\sum_{d=1}^{D}\tilde{F}_{:,d}, the Absolute Angle (A) of each feature channel dd is:

A=arccos⁡(τ⊤F~:,d)(2)A = \arccos (\tau^ {\top} \tilde {F} _ {:, d}) \tag {2}

where τ\tau is L2L_{2}-normalized before computing the cosine angle. The Structural Correlation (SS) between channels is defined as:

S=F~⊤F~(3)S = \tilde {F} ^ {\top} \tilde {F} \tag {3}

To quantify the representation differences between corruption domains, we compute pairwise distances of the above geometric descriptors. For two domains ii and jj, we define three metrics: magnitude difference ΔM\Delta M, absolute angle difference ΔA\Delta A, and structural difference ΔS\Delta S. For fair visualization, all three geometric differences are independently normalized to [0,1] in Fig. 2.

In addition, we compare the geometric statistics of different PEFT methods before and after fine-tuning to provide stronger evidence. Specifically, using Eqs. (1)-(3), we compute the Magnitude (M)(M), Absolute Angle (A)(A), and Structural Correlation (S)(S) of the representations before and after fine-tuning for each PEFT method, denoted as (Mbefore,Abefore,Sbefore)(M_{\mathrm{before}}, A_{\mathrm{before}}, S_{\mathrm{before}}) and (Mafter,Aafter,Safter)(M_{\mathrm{after}}, A_{\mathrm{after}}, S_{\mathrm{after}}), respectively. Then, we quantify the relative changes in magnitude, absolute angle, and structural correlation before and after fine-tuning using normalized L2L_{2} distances for MM and AA, and the normalized Frobenius distance for SS, denoted as DMD_{M}, DAD_{A}, and DSD_{S}, respectively.

As shown in Fig. 2, the magnitude (ΔM)(\Delta M) and absolute angle (ΔA)(\Delta A) exhibit substantial variations across corruption domains, whereas the structural correlation (ΔS)(\Delta S) shows a more consistent pattern across different corruption pairs. Moreover, the results in Table 1 demonstrate that our method preserves representation geometry better than other PEFT methods after fine-tuning. This observation suggests that the structural relationships of DINov2 representations are relatively stable under corruption shifts. However, the unconstrained fine-tuning of conventional adapter-based PEFT methods may disrupt this intrinsic geometric structure. Therefore, this motivates us to preserve the intrinsic geometric structure during fine-tuning.

Contribution. Building on these insights, we propose Geometric-Invariance Fine-Tuning (GIFT) for S-DGOD, which incorporates two key innovations. First, we preserve the geometric structure of pre-trained representations by introducing a series of Householder reflections [58], which ensure that the parameter space is transformed without altering its geometry. Second, we introduce a lightweight channel-wise scaling to the transformed weights to adapt task-specific features. Built on the geometric-preserving fine-tuning, this simple scaling yields noticeable gains in downstream object detection tasks, further highlighting the importance of maintaining the pre-trained geometric structure during fine-tuning. In summary, the main contributions of this paper are as follows:

  • We are the first to investigate fine-tuning pre-trained VFMs for S-DGOD from a geometric perspective, revealing that unconstrained updates can distort representations and impair cross-domain generalization.

  • We propose GIFT, a geometric-invariance fine-tuning method that preserves the intrinsic geometry of pre-trained representations, improving cross-domain generalization and enabling effective task-specific adaptation.

  • Extensive experiments on two S-DGOD benchmarks demonstrate the effectiveness of GIFT, achieving +7.9%+7.9\% and +2.9%+2.9\% mPC improvements over the previous SOTA on Cityscapes-C and Diverse Weather, respectively.

References (60)