O - A: G L RA P - E F - : NE FOR LL Eneralized O FOR Arameter Fficient INE Tuning
O - A: G L RA P - E F - : NE FOR LL Eneralized O FOR Arameter Fficient INE Tuning
O - A: G L RA P - E F - : NE FOR LL Eneralized O FOR Arameter Fficient INE Tuning
A BSTRACT
arXiv:2306.07967v2 [cs.LG] 16 Oct 2023
1 I NTRODUCTION
Large-scale deep neural networks have revolutionized the field of artificial intelligence, demonstrat-
ing unprecedented performance across various tasks and domains. These highly complex models,
often with millions or even billions of parameters, have demonstrated remarkable capabilities in
areas such as computer vision (Dosovitskiy et al., 2021), natural language understanding (Vaswani
et al., 2017), and speech recognition (Radford et al., 2022). Typically, these colossal models are
pre-trained on general and large-scale datasets, such as ImageNet (Deng et al., 2009a) or Web Crawl
Text (Wenzek et al., 2019), and are subsequently adapted to downstream target scenarios through
fine-tuning or transfer learning. Given the immense computational resources required by large pre-
trained architectures, many parameter-efficient fine-tuning (PEFT) methods (Hu et al., 2021; Shen
et al., 2021; Jia et al., 2022; Zhang et al., 2022; Luo et al., 2023) have been proposed. For instance,
Low-Rank Adaptation (LoRA) (Hu et al., 2021) aims to reduce the number of trainable parame-
ters by exclusively learning pairs of rank-decomposition matrices whilst keeping the original model
parameter static. Adapter (Houlsby et al., 2019) implements bottleneck adapter modules and in-
corporates a modest number of task-specific parameters into a fixed pre-trained model. Similarly,
Visual Prompt Tuning (VPT) (Jia et al., 2022) introduces a minimal number of learnable parameters
to the input of the Transformer, leaving the entire backbone frozen during fine-tuning.
However, distinct downstream datasets often possess unique characteristics, such as natural, spe-
cialized, and structured data, which differ significantly in distribution and composition. A static
fine-tuning strategy may not sufficiently account for these disparities, thereby hindering its capac-
ity to adapt to diverse datasets. To rectify this, we propose a flexible, parameter-efficient fine-
tuning scheme in this work to manage the variations of multiple downstream datasets within a
consolidated formulation. Our approach presents a generalized version of LoRA from a unified
∗
Equal contribution. Project page: https://sites.google.com/view/generalized-lora.
1
parameter-efficient fine-tuning perspective, amplifying LoRA’s capability, scalability, and adaptabil-
ity by rescaling and shifting intermediate activations, in conjunction with implementing a structural
re-parameterization design, etc. It is challenging to devise a unified approach that integrates all
adjustable dimensions and possibilities when tuning a pre-trained network, especially in the case
of transformer architectures which contains various distinct modules, while our proposed approach
presents a practicable solution to navigate this complexity.
Specifically, our approach presents a unified framework that can achieve comprehensive fine-tuning
paradigms from a single formulation, i.e., a One-for-All fine-tuning architecture. It comprises a
supernet, which, when optimized cost-effectively through evolutionary search, yields results that
surpass those of prevailing fine-tuning methodologies necessitating expensive data-dependent hy-
perparameter search. The proposed approach exhibits the following advantages: (1) It concurrently
takes into account multiple dimensions to enhance capability and flexibility during fine-tuning, en-
compassing weights, features, and input tokens. (2) It conducts an implicit search devoid of any
manual hyperparameter tuning, thus justifying the increased training time. (3) It incurs no addi-
tional inference cost thanks to our structural re-parameterization architecture, whereby the extra
fine-tuning parameters will be fused to the proximate projection weights post-training.
We conduct comprehensive experiments on VTAB-1K (Zhai et al., 2020), ImageNet (Deng et al.,
2009a) and its variants (Recht et al., 2019; Wang et al., 2019; Hendrycks et al., 2021b;a), and Hug-
gingface leaderboard benchmarks (Edward Beeching, 2023) for evaluating on language domain.
The VTAB-1K dataset comprises 19 heterogeneous vision datasets, enveloping a broad spectrum
of visual domains that include natural objects and scenes, textures and shapes, satellite imagery,
among others. GLoRA surpasses all previous state-of-the-art PEFT methods by a substantial mar-
gin in terms of average accuracy. Additionally, we evaluate the model’s few-shot learning capacity
on five fine-grained visual recognition datasets, akin to prior works (Zhang et al., 2022; Jia et al.,
2022), along with its ability for domain generalization and robustness on ImageNet-V2 (Recht et al.,
2019), ImageNet-Sketch (Wang et al., 2019), ImageNet-A (Hendrycks et al., 2021b), and ImageNet-
R (Hendrycks et al., 2021a) datasets. GLoRA significantly outperforms previous methods across all
these benchmarks, without incurring any extra computational overhead during the inference phase.
Our contributions:
• We propose Generalized LoRA (GLoRA), a novel parameter-efficient fine-tuning frame-
work. GLoRA enhances the low-rank adaptation approach with a more generalized prompt
module design per layer, offering enhanced capability and flexibility in finetuning.
• GLoRA presents a unified framework that achieves universal fine-tuning paradigms from
a single formulation, i.e., a One-for-All 1 fine-tuning architecture. During inference, the
adapters yielded through GLoRA seamlessly integrate into the base network, resulting in
no additional model weights. Thus, it incurs no extra inference computational load.
• We conduct extensive experiments on large vision (ViT-B) and language models (LLaMA-
1 and 2) with downstream fine-tuning, few-shot learning, and domain generalization using
various datasets. Our experimental results demonstrate that GLoRA outperforms all pre-
vious methods on these benchmarks while requiring only a small number of extra tunable
parameters in training and no additional inference cost.
2 GL O RA
In this section, we start from providing a mathematical overview of existing state-of-the-art PEFT
methods and discuss the advantages and disadvantages for them. Then, we introduce a unified
formulation of integrating all existing state-of-the-art PEFT methods and elaborate our proposed
generalized LoRA in detail following this unified formulation perspective. After that, a structural
re-parameterization design is presented to show the inference efficiency without additional cost. An
evolutionary search for optimal layer-wise configurations is also introduced to achieve the goal of
generalized LoRA. We further give the theoretical analysis and discussion on the higher capability
of the proposed method.
1
One-for-All represents that one formulation can be transformed into various shapes of PEFT paradigms.
2
2.1 P REVIOUS S OLUTIONS WITH L IMITATIONS
Visual Prompt Tuning (Jia et al., 2022): VPT introduces a small amount of task-specific learnable
parameters into the input space while freezing the entire pre-trained Transformer backbone during
downstream fine-tuning. It proposes two strategies: VPT-Shallow, where only input space has the
trainable prompt:
[x1 , Z1 , E1 ] = L1 ([x0 , P, E0 ])
(1)
[xi , Zi , Ei ] = Li ([xi−1 , Zi−1 , Ei−1 ])
where P is a trainable prompt. x is the [CLS] token, E are the image patches. Prompts use <1%
trainable parameters as compared to the original model.
VPT-Deep, where every layer has the trainable prompt. The formulation is:
[xi , . . . , Ei ] = Li ([xi−1 , Pi−1 , Ei−1 ]) (2)
VTP-Deep outperforms full fine-tuning on many vision tasks and also has better accuracy in a low
data regime. However, VPT increases cost in the inference stage which is not negligible.
AdaptFormer (Chen et al., 2022): AdaptFormer introduces a parallel learnable branch of two linear
layers and ReLU over the MLP block, and updates only this path while freezing other parts.
x̃ℓ = ReLU (LN (x′ℓ ) · Wdown ) · Wup (3)
xℓ = MLP (LN (x′ℓ )) + s · x̃ℓ + x′ℓ (4)
x′ℓ
where are the tokens after MHSA at the ℓ-th layer. Wdown and Wup are weights corresponding
to a down-projection layer and an up-projection layer from the parallel branch, respectively. s is a
scale factor. AdaptFormer also increases the inference cost due to the presence of a parallel branch.
LoRA (Hu et al., 2021): LoRA proposes to freeze the pre-trained model weights and injects trainable
low-rank decomposition matrices into each layer. It learns only the residual from pre-trained weight.
Assuming W0 , b0 , x are pre-trained weights, bias and input, let f be a linear layer, thus f (x) =
W0 x + b0 . During fine-tuning, W0 and b0 are frozen, the learning process will be:
f (x) = W0 x + ∆Wx + b0 = WLoRA x + b0 (5)
where ∆W is the low-rank decomposition weights that are learnable.
Scaling & Shifting Features (SSF) (Lian et al., 2022): SSF module scales and shifts features after
every MLP, MHSA, Layernorm module during training, and performs re-parameterization during
inference as it is a linear structure.
y =γ⊙x+β (6)
where y is the output features. γ and β are the scale and shift factors, ⊙ is the dot product. This
method has no increase in inference but the capability is limited to feature adaptation.
FacT (Jie & Deng, 2022): FacT proposes to use a tensorization-decomposition method to store the
additional weight, the weights of the model are tensorized into a single 3D tensor, and their additions
are then decomposed into lightweight factors. In fine-tuning, only the factors will be updated and
stored.
f (x) = W0 x + b0 + UΣVx = (W0 + UΣV) x + b0 (7)
where ∆W in LoRA is decomposed into U, V and Σ. This is Tensor-Train in FacT.
f (x) = W0 x + b0 + UCPVx = (W0 + UCPV) x + b0 (8)
where ∆W in LoRA is decomposed into U, C, P and V. This is Tucker in FacT.
RepAdapter (Luo et al., 2023): RepAdapter inserts lightweight networks into the pre-trained mod-
els, and the additional parameters will be re-parameterized to the nearby projection weights after
training. Adding sequential (not parallel) adapter to both MHSA and MLP, adapter is linear thus
allowing for re-parameterization. It contains two layers: downsampling dense FC layer to down-
sample inputs; upsampling downsampled features that are divided into groups, and each group has
an upsampling layer. The group of upsampling layers can be merged into a single sparse upsampling
layer and can be re-parameterized directly into the original MLP/MHSA. The formulation can be:
f (x) = W0 (x + Wu (Wd x + bd ) + bu ) + b0
(9)
= (W0 + W0 Wu Wd ) x + W0 Wu bd + W0 bu + b0
3
where Wu , Wd , bu and bb are learnable weights and biases, respectively.
Limitations: In general, many existing PEFT methods such as (VPT, Adapter) increase the infer-
ence time since the proposed structure cannot be re-parameterized. Direct prompt tuning is also
hard to design as it brings in computational burden and requires hyper-parameter tuning i.e., how
and where to place prompts. LoRA can be re-parameterized at inference but it does not scale up for
larger matrices and the adaptation ability is constrained on weight space. SSF / Repadaptor cannot
learn the wieght change i.e., ∆W in weight space, whereas LoRA / FacT cannot efficiently learn
the scaling and shifting of feature change i.e., ∆H in features space. Both feature and weight spaces
need flexibility while performing transfer learning from a large model. Our proposed idea in this
work attempts at: ∆W tuning, ∆H tuning, along with W and H scale and shift learning.
4
2.3 S TRUCTURAL R E - PARAMETERIZATION D ESIGN AND I NFERENCE E FFICIENCY A NALYSIS
The fundamental factor enabling model re-parameterization (Ding et al., 2021; Hu et al., 2021) is
the elimination of non-linearity amidst adjacent transformations, thereby permitting the absorption
of supplementary parameters into the preceding ones. As mentioned in RepAdapter (Luo et al.,
2023), the removal of such non-linear layers does not detrimentally impact the performance of the
networks. The precise concept of GLoRA re-parameterization is explicated as follows:
f (x) = Wuni x + buni (12)
where Wuni and buni are our final unified trained weight and bias in GLoRA. They are re-
parameterized according to Eq. 10:
Wuni = W0 + W0 A + B (13)
buni = CW0 + Db0 + E + b0 (14)
As a result, the re-parameterization strategy we employ, which integrates learnable parameters into
the existing weight matrix offers a distinct advantage as it imposes no additional computational
burden during the inference phase. This is further discussed in Section 4 where we provide thorough
inference efficiency analysis of GLoRA compared to exisitng works.
Our design for a unified adaptor is implemented on a per-layer basis, thus allowing for heterogeneity
across different layers. To identify the optimal configuration for each layer, we employ the evolu-
tionary search method (Zhang et al., 2022; Shen et al., 2021), which offers a balance of efficiency
and effectiveness. Although the training time may increase due to this search process, it is important
to note that existing work (Zhang et al., 2022) necessitate an extensive hyperparameter search (such
as low-rank in LoRA and FacT, as well as position and size of adapter modules in Adapter (Houlsby
et al., 2019), dimension and structure configuration in RepAdapter (Luo et al., 2023), among others),
as presented in Appendix. Our unified support tensor design conducts an implicit search that elim-
inates the need for manual hyperparameter tuning. Therefore, any augmentation in training time is
reasonable and well-justified. More details regarding evolutionary search are in Appendix.
Model capacity refers to the capability of a model to approximate a diverse range of functions. A
method for regulating the capacity of a learning algorithm involves selecting an appropriate hy-
pothesis space, essentially a set of functions that the learning algorithm is permitted to consider
as potential solutions. The Vapnik-Chervonenkis Dimension (VC Dimension) (Vapnik & Chervo-
nenkis, 2015), a measure of the capacity and complexity of a statistical algorithm, can be leveraged
to provide a formal evidence for this assertion.
Theorem 1 Suppose dvc (H) is the VC dimension of any finite hypothesis H. If Hi ⊆ Huni ,
dvc (Huni ) − dvc (Hi ) ≥ ϵ s.t. ϵ ≥ 0
In the context of GLoRA, Hi denotes the hypothesis space of a randomly sampled subnet and Huni
denotes the hypothesis space of the complete supernet. The validity of this theorem stems from the
inherent property of our problem context, where the hypothesis space Hi is a subset of Huni in our
context. Huni encompasses all possible shattered scenarios of Hi . For the extreme case where the
VC dimension dvc (Ho ) (Ho is the difference set of Huni and Hi ) is 0, the error ϵ will be zero. As
per learning theory, a higher VC dimension implies greater model flexibility and capability of our
approach. Clearly, Theorem 1 holds for GLoRA and thus it experiences a greater model capacity.
3 E XPERIMENTS
Datasets. We thoroughly evaluate GLoRA on VTAB-1K (Zhai et al., 2020) benchmark for various
parameter budgets. VTAB-1K comprises 19 image classification tasks clustered into three domains:
(i) Natural images; (ii) Specialized tasks consisting of remote sensing and medical datasets; and
5
(iii) Structured tasks focusing on scene structure understanding. To examine the ability on few-shot
learning, we evaluate GLoRA on five fine-grained visual recognition few-shot datasets: Food101
(Bossard et al., 2014), OxfordFlowers102 (Nilsback & Zisserman, 2006), StandfordCars (Krause
et al., 2013), OxfordPets (Parkhi et al., 2012), and FGVCAircraft (Maji et al., 2013). Following
previous work (Jie & Deng, 2022), we evaluate 1, 2, 4, 8, and 16-shot settings. Next, to show
the domain generalization capabilities of GLoRA, we train it on ImageNet (Deng et al., 2009b)
for a 16-shot setting and test on four out-of-domain datasets including ImageNetV2 (Recht et al.,
2019), ImageNet-Sketch (Wang et al., 2019), ImageNet-A (Hendrycks et al., 2021b), and ImageNet-
R (Hendrycks et al., 2021a). Finally, we show the performance of GLoRA on the Open LLM
Leaderboard which consists of four datasets with varying prompt shots, namely AI2 Reasoning
Challenge (25-shot) (Clark et al., 2018), TruthfulQA (0-shot) (Lin et al., 2022), HellaSwag (10-
shot) (Zellers et al., 2019) and MMLU (5-shot) (Hendrycks et al., 2020).
Network Architecture and Implementation Details. For all the vision experiments, we utilize
ViT-B (Dosovitskiy et al., 2021), a model pre-trained on ImageNet-21K, as our foundational model.
For the language experiments, we consider two foundational base models: LLaMA-1-7B (Touvron
et al., 2023a) and LLaMA-2-7B (Touvron et al., 2023b).
Our supernets undergo a training process spanning 500 epochs and 15 epochs for vision and lan-
guage datasets respectively, operating with a constant batch size of 64 and a cosine learning rate
scheduler. It is crucial to highlight that this precise policy demonstrates robust efficacy across all
settings, regardless of the dataset in use. Post the training of supernet, we perform an evolutionary
search on the validation set to pinpoint the optimal task-specific subnet, finalized for implemen-
tation. Finally, we report the performance of the searched subnet on the test set. In Appendix, we
provide further insights into dataset-specific learning rates and specific settings for different datasets.
We train three different GLoRA supernet configurations to vary the number of trainable parameters.
The difference among them is only the LoRA dimensions in the search space which varies from 8
and 4 in the largest model, 4 and 2 in the intermediate model, and 2 in the smallest model. This
added parameter flexibility in our approach allows for user-defined trainable parameter count in the
final models. Results on the VTAB-1K benchmark are shown in Table 1. We push the state-of-the-
art in parameter-efficient transfer learning by up to 2.9%. Impressively, our smallest model already
surpasses all existing approaches by a significant margin. It is worth noting that GLoRA performs
competitively across datasets, in contrast, prior all existing works tend to fail on at least one, proving
GLoRA’s high generalization capabilities. GLoRA pushes the state of the art in as many as 14 out
of 19 datasets under VTAB-1K while maintaining commendable performance on the others.
Table 1: Full results on VTAB-1K benchmark. “# params” specifies the number of trainable pa-
rameters in backbones. Average accuracy and # params are averaged over group-wise mean values.
Natural Specialized Structured
Inference Cost
sNORB-Azim
Clevr-Count
# param (M)
sNORB-Ele
Retinopathy
KITTI-Dist
Caltech101
Flower102
Clevr-Dist
Camelyon
EuroSAT
Resisc45
dSpr-Loc
Cifar100
dSpr-Ori
DMLab
Average
Sun397
SVHN
DTD
Pets
Traditional Finetuning
Full 85.8 - 68.9 87.7 64.3 97.2 86.9 87.4 38.8 79.7 95.7 84.2 73.9 56.3 58.6 41.7 65.5 57.5 46.7 25.7 29.1 68.9
Linear 0 - 64.4 85.0 63.2 97.0 86.3 36.6 51.0 78.5 87.5 68.5 74.0 34.3 30.6 33.2 55.4 12.5 20.0 9.6 19.2 57.6
PEFT methods
BitFit 0.10 - 72.8 87.0 59.2 97.5 85.3 59.9 51.4 78.7 91.6 72.9 69.8 61.5 55.6 32.4 55.9 66.6 40.0 15.7 25.1 65.2
VPT-Shallow 0.06 ↑ 77.7 86.9 62.6 97.5 87.3 74.5 51.2 78.2 92.0 75.6 72.9 50.5 58.6 40.5 67.1 68.7 36.1 20.2 34.1 67.8
VPT-Deep 0.53 ↑ 78.8 90.8 65.8 98.0 88.3 78.1 49.6 81.8 96.1 83.4 68.4 68.5 60.0 46.5 72.8 73.6 47.9 32.9 37.8 72.0
Adapter 0.16 ↑ 69.2 90.1 68.0 98.8 89.9 82.8 54.3 84.0 94.9 81.9 75.5 80.9 65.3 48.6 78.3 74.8 48.5 29.9 41.6 73.9
AdaptFormer 0.16 ↑ 70.8 91.2 70.5 99.1 90.9 86.6 54.8 83.0 95.8 84.4 76.3 81.9 64.3 49.3 80.3 76.3 45.7 31.7 41.1 74.7
LoRA 0.29 - 67.1 91.4 69.4 98.8 90.4 85.3 54.0 84.9 95.3 84.4 73.6 82.9 69.2 49.8 78.5 75.7 47.1 31.0 44.0 74.5
NOAH 0.36 ↑ 69.6 92.7 70.2 99.1 90.4 86.1 53.7 84.4 95.4 83.9 75.8 82.8 68.9 49.9 81.7 81.8 48.3 32.8 44.2 75.5
FacT 0.07 - 70.6 90.6 70.8 99.1 90.7 88.6 54.1 84.8 96.2 84.5 75.7 82.6 68.2 49.8 80.7 80.8 47.4 33.2 43.0 75.6
SSF 0.24 - 69.0 92.6 75.1 99.4 91.8 90.2 52.9 87.4 95.9 87.4 75.5 75.9 62.3 53.3 80.6 77.3 54.9 29.5 37.9 75.7
RepAdapter 0.22 - 72.4 91.6 71.0 99.2 91.4 90.7 55.1 85.3 95.9 84.6 75.9 82.3 68.0 50.4 79.9 80.4 49.2 38.6 41.0 76.1
GLoRA 0.86 - 76.4 92.9 74.6 99.6 92.5 91.5 57.8 87.3 96.8 88.0 76.0 83.1 67.3 54.5 86.2 83.8 52.9 37.0 41.4 78.0
GLoRA 0.44 - 76.5 92.3 75.2 99.6 92.3 91.2 57.5 87.3 96.7 88.1 76.1 80.6 67.2 53.4 84.5 83.5 52.8 35.2 40.8 77.6
GLoRA 0.29 - 76.1 92.7 75.3 99.6 92.4 90.5 57.2 87.5 96.7 88.1 76.1 81.0 66.2 52.4 84.9 81.8 53.3 33.3 39.8 77.3
6
Average StanfordCars FGVCAircraft
80
70 50
70 60
40
50
Accuracy (%)
Accuracy (%)
Accuracy (%)
60
40 30
50
GLoRA(0.28M) 30 GLoRA(0.27M) GLoRA(0.27M)
NOAH(0.36M) NOAH(0.36M) 20 NOAH(0.36M)
40 VPT(0.64M) 20 VPT(0.64M) VPT(0.64M)
LoRA(0.29M) 10 LoRA(0.29M) 10 LoRA(0.29M)
30 Adapter(0.16M) Adapter(0.16M) Adapter(0.16M)
1 2 4 8 16 1 2 4 8 16 1 2 4 8 16
Number of training samples per class Number of training samples per class Number of training samples per class
OxfordPets Flowers102 Food101
Figure 2: Results on few-shot 100
learning datasets. The baseline methods include Adapter, LoRA,
90
VPT, NOAH. GLoRA consistently95performs better across five datasets 70 and a varying number of
85
training examples per class. More comparisons 90 are provided in Appendix H.
80 60
85
Accuracy (%)
Accuracy (%)
Accuracy (%)
3.2
75 R ESULTS ON L ARGE L ANGUAGE 80 M ODELS
50
70 75
Table 2: Performance GLoRA(0.29M)
of GLoRA on few-shot generative GLoRA(0.27M)
language tasks
40 with LLMs as backbones.GLoRA(0.28M)
65 NOAH(0.36M) 70 NOAH(0.36M) NOAH(0.36M)
Model VPT(0.64M) ARC (25-s)
Dataset
65
HellaSwag (10-s) VPT(0.64M)
MMLU (5-s) TruthfulQA (0-s) VPT(0.64M) Average
60 LoRA(0.29M) LoRA(0.29M) 30 LoRA(0.29M)
LLaMA-1-7B -Adapter(0.16M) 51.0 60 77.8 35.7
Adapter(0.16M) 34.3 49.7
Adapter(0.16M)
LoRA
1 2 4 8 Alpaca 16 53.5 1 2 4 77.3 8 33.8
16 1 2 4 34.8 8 49.8 16
Number of training Alpaca
GLoRA samples per class 52.9 Number of training
78.1 samples per class34.5 Number 37.8
of training samples per class
50.8
LoRA ShareGPT 51.7 77.9 36.1 39.2 51.2
GLoRA ShareGPT 53.2 77.4 36.2 43.9 52.7
LLaMA-2-7B - 53.1 78.5 46.9 38.8 54.3
GLoRA ShareGPT 53.7 78.5 46.5 45.1 56.1
We apply GLoRA for LLMs by solely tuning the attention layers. This contrasts with vision tasks
where all linear layers are adapted, to maintain a fair comparison with vanilla LoRA. We start
from the publicly available LLaMA-1-7B (Touvron et al., 2023a) and LLaMA-2-7B (Touvron et al.,
2023b) models and finetune them on the Alpaca (Taori et al., 2023) and ShareGPT dataset with only
GLoRA support tensors trainable. For the evolutionary search, we use 5% random data sampled
from the 4 given datasets for model validation during the evolutions. We finally report the searched
model’s performance on the standard Open LLM Leaderboard2 . GLoRA consistently outperforms
the pre-trained LLM and the corresponding LoRA fine-tuned variants. We maintain consistent hy-
perparameters between LoRA and GLoRA for a fair comparison, more details are in the Appendix.
To extend the evaluation of GLoRA under conditions of limited data availability, we present the per-
formance of GLoRA on fine-grained visual recognition datasets as the few-show learning, compar-
ing it with LoRA, Adapter, VPT, and NOAH. The results at 1, 2, 4, 8, and 16 shots are illustrated in
Figure 2 and Figure 6 of Appendix. GLoRA demonstrates superior performance across the majority
of the few-shot learning datasets, consistently outperforming the performance of existing methods
by a large margin with similar parameter counts. Interestingly, on the Flowers102 dataset, all meth-
ods yield similar accuracy levels, attributable to the already exceptional overall performance. On
the Food101 dataset, the average accuracy of GLoRA is on par with NOAH. From the first plot, we
can observe that the average performance boost becomes more pronounced at higher shot scenarios,
nevertheless, even at lower shot settings, the gains of our approach remain significant.
The capacity of out-of-domain generalization holds significant value for large-scale neural networks
(Zhou et al., 2021). Models fine-tuned via PEFT methods should exhibit enhanced domain gener-
alization aptitude, thereby making them more applicable in real-world scenarios. We demonstrate
the out-of-domain generalization capabilities of GLoRA in Table 3, where a single ImageNet-1K
2
https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard
7
Table 3: Results on domain generalization. GLoRA is significantly better than the existing works.
Source Target
ImageNet -Sketch -V2 -A -R
Adapter Houlsby et al. (2019) 70.5 16.4 59.1 5.5 22.1
VPT Jia et al. (2022) 70.5 18.3 58.0 4.6 23.2
LoRA Hu et al. (2021) 70.8 20.0 59.3 6.9 23.3
NOAH Zhang et al. (2022) 71.5 24.8 66.1 11.9 28.5
GLoRA (0.29M) 78.3 30.6 67.5 13.3 31.0
(Deng et al., 2009b) fine-tuned GLoRA model is subjected to testing on out-of-domain datasets.
Aligning with preceding research, we limit the number of training examples per class to 16 for
this experiment. It is noteworthy that the performance for the fully-scaled ImageNet-1K fine-tuned
model stands at 83.97% (Dosovitskiy et al., 2021), and our approach manages to narrow this perfor-
mance gap, even within a 16-shot setting (78.3%), thereby exhibiting superior few-shot learning on
ImageNet-level datasets. Furthermore, the out-of-domain performance also witnesses a substantial
boost in comparison to existing methods. When compared with LoRA, GLoRA enhances out-of-
domain performance by as much as 100% (ImageNet-A) and 50% (ImageNet-Sketch).
Computational Cost. We show the final inference throughput of various PEFT methods in Table 4,
computed on an NVIDIA 3090 GPU. The results highlight that GLoRA surpasses other competitive
methods in performance, as it does not require any extra parameters or FLOPs during the inference
stage. An additional advantage is its quicker adaptability in real-world scenarios, especially when
prior or foundational models are already deployed. The weights of GLoRA can be directly loaded
without necessitating any manual system modifications. As previously mentioned, GLoRA supports
VPT-Deep level prompts via the support tensor C, however, it does not impose any computational
overhead due to its completely structural re-parameterization design.
Visualizations of searched fine-tuning strat- 0.30
egy for each layer. Figure 3 visually shows the Natural
Specialized
Number of Parameters(M)
8
70
LoRA
vector
Number of Occurences (Total=72)
60
constant
50
40
30
20
10
0 A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE A B CDE
Layer Depth (Total=12)
Figure 4: Layerwise configuration of support tensors in GLoRA (0.86M) on VTAB-1K dataset.
none adaptations, whereas A and B demonstrate a higher number of adaptations, though without
a distinguishable pattern regarding the type of adaptation. It is important to underscore that even
a basic scalar can function effectively as a support tensor, enabling GLoRA to maintain superior
parameter efficiency despite adapting every linear layer.
5 R ELATED W ORK
Given the rapid expansion in model size, numerous methods for parameter-efficient fine-tuning
(PEFT) have been introduced in the field of NLP to streamline the optimization of large language
models (LLMs) (Liu et al., 2021a; Zhang et al.; Hu et al.; Liu et al., 2021b; Li & Liang, 2021; Lester
et al., 2021; Zaken et al., 2022; Houlsby et al., 2019). The effectiveness of parameter-efficient fine-
tuning has been proven in a wide range of natural language processing tasks (Fu et al., 2022; He
et al., 2021). In the vision domain, with the advent growth in the size of vision models (Dehghani
et al., 2023; Kolesnikov et al., 2020), methods specifically focused on image modality have also
been put forward (Jie & Deng, 2022; Lian et al., 2022; Chen et al., 2022; Luo et al., 2023; Zhang
et al., 2022; Jia et al., 2022; He et al., 2023). Among these methods, LoRA (Hu et al.) has proven to
transfer well across modalities and tasks. This is partly due to the simplistic design strategy of LoRA
which directly works over weight tensors, irrespective of model type or configuration. Additionally,
unlike Adapters (Houlsby et al., 2019; Chen et al., 2022) and Prompt tuning (Jia et al., 2022), LoRA
does not add any additional inference parameters or latency due to structural re-parameterization
(SR) design. RepAdapter (Luo et al., 2023) and SSF (Lian et al., 2022) also propose an SR design
for PEFT. However, RepAdapter is specific to model architectures and required manual designing
for different layer configurations. SSF provides a simple baseline but suffers from low flexibility
and capability due to adaptation limited in the activation space. FacT (Jie & Deng, 2022) further
decomposes LoRA matrices for better parameter efficiency, but we argue that <1M parameter scale
is fairly efficient for fine-tuning on a single GPU. Thus, due to the advantages of LoRA over other
related works, it is of importance to increase the flexibility, scalability and adaptability of LoRA.
6 C ONCLUSION
We have presented GLoRA, a generalized parameter-efficient fine-tuning approach that has suc-
cessfully demonstrated its effectiveness and adaptability in enhancing the fine-tuning and transfer
learning ability for the large-scale pre-trained models. By adopting a generalized low-rank adap-
tation and re-parameterization framework, GLoRA significantly reduces the number of parameters
and computation required for fine-tuning, making it a more resource-efficient and practical method
for real-world applications. The experiments conducted on a diverse range of tasks and datasets
have substantiated the superiority of GLoRA over existing PEFT techniques, showcasing its scala-
bility and adaptability. Moreover, the ablation studies have provided valuable insights into the inner
workings and the relative importance of different GLoRA components. This work not only con-
tributes to the improvement of the fine-tuning process for large-scale pre-trained vision or language
models but also opens up new avenues for future work, including further exploration of generalized
low-rank adaptation techniques, the development of hybrid approaches, and the refinement of search
and optimization algorithms. These areas of research may continue to expand the accessibility and
efficiency of transfer learning across a broader range of applications.
9
R EFERENCES
Lukas Bossard, Matthieu Guillaumin, and Luc Van Gool. Food-101 – mining discriminative com-
ponents with random forests. In European Conference on Computer Vision, 2014. 6
Minghao Chen, Houwen Peng, Jianlong Fu, and Haibin Ling. Autoformer: Searching transformers
for visual recognition. In Proceedings of the IEEE/CVF International Conference on Computer
Vision (ICCV), pp. 12270–12280, October 2021. 15
Shoufa Chen, Chongjian Ge, Zhan Tong, Jiangliu Wang, Yibing Song, Jue Wang, and Ping Luo.
Adaptformer: Adapting vision transformers for scalable visual recognition. arXiv preprint
arXiv:2205.13535, 2022. 3, 8, 9, 14
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and
Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge.
arXiv preprint arXiv:1803.05457, 2018. 6
Mostafa Dehghani, Josip Djolonga, Basil Mustafa, Piotr Padlewski, Jonathan Heek, Justin Gilmer,
Andreas Steiner, Mathilde Caron, Robert Geirhos, Ibrahim Alabdulmohsin, et al. Scaling vision
transformers to 22 billion parameters. arXiv preprint arXiv:2302.05442, 2023. 9, 14
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hier-
archical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition,
2009a. 1, 2
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale
hierarchical image database. In Proceedings of the IEEE/CVF Conference on Computer Vision
and Pattern Recognition (CVPR), pp. 248–255. Ieee, 2009b. 6, 8
Xiaohan Ding, Xiangyu Zhang, Ningning Ma, Jungong Han, Guiguang Ding, and Jian Sun. Repvgg:
Making vgg-style convnets great again. In Proceedings of the IEEE/CVF conference on computer
vision and pattern recognition, pp. 13733–13742, 2021. 5
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas
Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An im-
age is worth 16x16 words: Transformers for image recognition at scale. In International Confer-
ence on Learning Representations, 2021. 1, 6, 8
Nathan Habib Sheon Han Nathan Lambert Nazneen Rajani Omar Sanseviero Lewis Tunstall
Thomas Wolf Edward Beeching, Clémentine Fourrier. Open llm leaderboard. https://
huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard, 2023. 2
Zihao Fu, Haoran Yang, Anthony Man-Cho So, Wai Lam, Lidong Bing, and Nigel Collier. On the
effectiveness of parameter-efficient fine-tuning. arXiv preprint arXiv:2211.15583, 2022. 9
Haoyu He, Jianfei Cai, Jing Zhang, Dacheng Tao, and Bohan Zhuang. Sensitivity-aware vi-
sual parameter-efficient tuning, 2023. URL https://openreview.net/forum?id=
9GOjmbRQ2o. 9
Junxian He, Chunting Zhou, Xuezhe Ma, Taylor Berg-Kirkpatrick, and Graham Neubig. Towards a
unified view of parameter-efficient transfer learning. arXiv preprint arXiv:2110.04366, 2021. 9
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob
Steinhardt. Measuring massive multitask language understanding. In International Conference
on Learning Representations, 2020. 6
Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul
Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical
analysis of out-of-distribution generalization. In Proceedings of the IEEE/CVF International
Conference on Computer Vision (ICCV), pp. 8340–8349, 2021a. 2, 6
Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adver-
sarial examples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern
Recognition (CVPR), pp. 15262–15271, 2021b. 2, 6
10
Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, An-
drea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for nlp.
In International Conference on Machine Learning, pp. 2790–2799. PMLR, 2019. 1, 5, 8, 9
Edward J Hu, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen,
et al. Lora: Low-rank adaptation of large language models. In International Conference on
Learning Representations. 9, 16
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang,
and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint
arXiv:2106.09685, 2021. 1, 3, 5, 8
Menglin Jia, Luming Tang, Bor-Chun Chen, Claire Cardie, Serge Belongie, Bharath Hariharan, and
Ser-Nam Lim. Visual prompt tuning. In Computer Vision–ECCV 2022: 17th European Confer-
ence, Tel Aviv, Israel, October 23–27, 2022, Proceedings, Part XXXIII, pp. 709–727. Springer,
2022. 1, 2, 3, 8, 9
Shibo Jie and Zhi-Hong Deng. Fact: Factor-tuning for lightweight adaptation on vision transformer.
arXiv preprint arXiv:2212.03145, 2022. 3, 6, 9, 14, 16
Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly,
and Neil Houlsby. Big transfer (bit): General visual representation learning. In Computer Vision–
ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part
V 16, pp. 491–507. Springer, 2020. 9
Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained
categorization. In Proceedings of the IEEE international conference on computer vision work-
shops, pp. 554–561, 2013. 6
Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt
tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Pro-
cessing, pp. 3045–3059, 2021. 9
Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. In
Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the
11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers),
pp. 4582–4597, Online, August 2021. Association for Computational Linguistics. doi: 10.18653/
v1/2021.acl-long.353. URL https://aclanthology.org/2021.acl-long.353. 9
Dongze Lian, Daquan Zhou, Jiashi Feng, and Xinchao Wang. Scaling & shifting your features: A
new baseline for efficient model tuning. arXiv preprint arXiv:2210.08823, 2022. 3, 9
Stephanie Lin, Jacob Hilton, and Owain Evans. Truthfulqa: Measuring how models mimic human
falsehoods. pp. 3214–3252, 01 2022. doi: 10.18653/v1/2022.acl-long.229. 6
Xiao Liu, Kaixuan Ji, Yicheng Fu, Zhengxiao Du, Zhilin Yang, and Jie Tang. P-tuning v2:
Prompt tuning can be comparable to fine-tuning universally across scales and tasks. CoRR,
abs/2110.07602, 2021a. URL https://arxiv.org/abs/2110.07602. 9
Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. Gpt
understands, too, 2021b. 9
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Confer-
ence on Learning Representations. 14
Gen Luo, Minglang Huang, Yiyi Zhou, Xiaoshuai Sun, Guannan Jiang, Zhiyu Wang, and Ron-
grong Ji. Towards efficient visual adaption via structural re-parameterization. arXiv preprint
arXiv:2302.08106, 2023. 1, 3, 5, 9, 14
Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained
visual classification of aircraft. arXiv preprint arXiv:1306.5151, 2013. 6
11
M-E Nilsback and Andrew Zisserman. A visual vocabulary for flower classification. In Proceedings
of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), volume 2,
pp. 1447–1454. IEEE, 2006. 6
Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, and CV Jawahar. Cats and dogs. In Pro-
ceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp.
3498–3505. IEEE, 2012. 6
Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever.
Robust speech recognition via large-scale weak supervision. arXiv preprint arXiv:2212.04356,
2022. 1
Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers
generalize to imagenet? In International Conference on Machine Learning (ICML), pp. 5389–
5400. PMLR, 2019. 2, 6
Zhiqiang Shen, Zechun Liu, Jie Qin, Marios Savvides, and Kwang-Ting Cheng. Partial is better than
all: revisiting fine-tuning strategy for few-shot learning. In Proceedings of the AAAI Conference
on Artificial Intelligence, volume 35, pp. 9594–9602, 2021. 1, 5
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy
Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model.
https://github.com/tatsu-lab/stanford_alpaca, 2023. 7
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée
Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and
efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023a. 6, 7
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Niko-
lay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher,
Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy
Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn,
Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel
Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee,
Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra,
Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi,
Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh
Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen
Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic,
Sergey Edunov, and Thomas Scialom. Llama 2: Open foundation and fine-tuned chat models,
2023b. 6, 7
Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine
learning research, 9(11), 2008. 16
Vladimir N Vapnik and A Ya Chervonenkis. On the uniform convergence of relative frequencies
of events to their probabilities. Measures of complexity: festschrift for alexey chervonenkis, pp.
11–30, 2015. 5
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez,
Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural informa-
tion processing systems, 30, 2017. 1
Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representa-
tions by penalizing local predictive power. Advances in Neural Information Processing Systems
(NeuIPS), 32, 2019. 2, 6
Guillaume Wenzek, Marie-Anne Lachaux, Alexis Conneau, Vishrav Chaudhary, Francisco Guzmán,
Armand Joulin, and Edouard Grave. Ccnet: Extracting high quality monolingual datasets from
web crawl data. arXiv preprint arXiv:1911.00359, 2019. 1
Elad Ben Zaken, Yoav Goldberg, and Shauli Ravfogel. Bitfit: Simple parameter-efficient fine-tuning
for transformer-based masked language-models. In Proceedings of the 60th Annual Meeting of
the Association for Computational Linguistics (Volume 2: Short Papers), pp. 1–9, 2022. 9
12
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a ma-
chine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association
for Computational Linguistics, pp. 4791–4800, Florence, Italy, July 2019. Association for Com-
putational Linguistics. doi: 10.18653/v1/P19-1472. URL https://aclanthology.org/
P19-1472. 6
Xiaohua Zhai, Joan Puigcerver, Alexander Kolesnikov, Pierre Ruyssen, Carlos Riquelme, Mario
Lucic, Josip Djolonga, Andre Susano Pinto, Maxim Neumann, Alexey Dosovitskiy, Lucas Beyer,
Olivier Bachem, Michael Tschannen, Marcin Michalski, Olivier Bousquet, Sylvain Gelly, and
Neil Houlsby. The visual task adaptation benchmark, 2020. URL https://openreview.
net/forum?id=BJena3VtwS. 2, 5
Qingru Zhang, Minshuo Chen, Alexander Bukharin, Pengcheng He, Yu Cheng, Weizhu Chen, and
Tuo Zhao. Adaptive budget allocation for parameter-efficient fine-tuning. In The Eleventh Inter-
national Conference on Learning Representations. 9
Yuanhan Zhang, Kaiyang Zhou, and Ziwei Liu. Neural prompt search. arXiv preprint
arXiv:2206.04673, 2022. 1, 2, 4, 5, 8, 9, 14
Kaiyang Zhou, Ziwei Liu, Yu Qiao, Tao Xiang, and Chen Change Loy. Domain generalization in
vision: A survey. arXiv preprint arXiv:2103.02503, 2021. 7
13
A PPENDIX
A H YPERPARAMETERS
sNORB-Azim
Clevr-Count
Retinopathy
sNORB-Ele
Flowers102
KITTI-Dist
Caltech101
Clevr-Dist
Camelyon
dSpr-Loc
EuroSAT
Resisc45
Cifar100
dSpr-Ori
DMLab
Sun397
SVHN
DTD
Pets
Dataset
LR 5e−4 5e−4 5e−4 5e−4 5e−4 5e−4 5e−4 5e−4 5e−4 5e−4 1e−4 1e−4 1e−4 5e−4 5e−4 5e−4 5e−4 5e−4 1e−4
B E VOLUTIONARY S EARCH
Evolutionary search consists of reproduction, crossover, and mutation stages. In our scenario, first,
a population of support tensor strategies is embedded in vectors and initialized randomly. Each
individual strategy consists of a description of a single subnet. After supernet training, we start to
evaluate each individual subnet to obtain its accuracy on the validation set. Among these evaluated
subnets we select the top K as parents to produce posterity subnets. The next generation subnets are
made by mutation and crossover stages. By repeating this process in iterations, we can find the best
parameter-efficient fine-tuned subnet with the best validation performance.
We first randomly sample 50 subnets from the supernet and then perform an evolutionary search for
20 and 5 epochs on vision and language tasks, respectively. Each step of random pick / crossover /
mutation produces 50 new subnets. The probability for crossover and mutation is set to 0.2. Note
that we did not perform any hyperparameter search over the evolution hyperparameters, and hence
the performance might even improve after tuning the evolution hyperparameters.
C H IERARCHICAL T RANSFORMER
We show the performance of GLoRA on the Swin-B backbone in Table 6. We follow a dataset-
specific learning rate searching similar to ViT-B and also add GLoRA to the reduction linear layer in
Swin architecture to maintain uniformity and avoid architecture-specific tuning. GLoRA can adapt
to any layer irrespective of architecture configuration and perform well across tasks and datasets
which can be clearly seen in Table 6, where GLoRA outperforms all existing works by a fair margin.
14
Table 6: Performance on VTAB-1K benchmark with Swin-B model pre-trained on ImageNet-21K
as the backbone.
Method Natural Specialized Structured Average
Full 79.2 86.2 59.7 75.0
Linear 73.5 80.8 33.5 62.6
BitFit 74.2 80.1 42.4 65.6
VPT 76.8 84.5 53.4 71.6
FacT 82.7 87.5 62.0 77.4
RepAdapter 83.1 86.9 62.1 77.4
GLoRA 83.7 88.7 61.9 78.1
D T RAINING T IME
Our GLoRA, being a search-based approach for PEFT, naturally incurs increased training time due
to the requirements of supernet training and evolutionary search. However, it is critical to underscore
that all current methods necessitate a manual search for design choices, as evidenced in Table 7. This
necessity significantly inflates the total training time for a specific dataset, due to the broad search
within these design choices. GLoRA streamlines this process through an automated evolutionary
search mechanism, thus leveraging the benefit of an expansive search space.
E S EARCH S PACE
In this section, we analyze the computation of the possible number of subnets within our GLoRA-
adapted supernet. Each layer offers 4, 4, 3, 3, and 3 options for the support tensor A, B, C, D,
and E, respectively. This results in 432 possible configurations for a single linear layer. In our
implementation, we incorporate 48 such layers within ViT-B, yielding a total of 432 × 48 = 20, 736
subnets being explored within GLoRA. This figure can escalate if multiple LoRA ranks coexist
within the same search space. For instance, we allow ranks 8 and 4 in our largest GLoRA models,
leading to 82, 944 distinct subnets. Furthermore, owing to the phenomenon of weight entanglement
as per (Chen et al., 2021), comparable performance is maintained across all subnets, even if they are
not all explored during the training of the supernet.
F S UPPORT T ENSOR
In this section, we justify the choices of support tensors in our framework. Consider a linear layer
that facilitates the transformation of inputs from a d1 dimensional space to a d2 dimensional space,
with a corresponding weight matrix W0 ∈ Rd2 ×d1 . Given that A is tasked with scaling W0 ,
A could feasibly belong to Rd2 ×d1 , Rd2 ×1 , or R1×1 . These matrix dimensions are respectively
indicative of LoRA, vector, and scalar operations. It is pertinent to note that in scenarios where
A ∈ Rd2 ×d1 , LoRA is realized via corresponding matrices Ad ∈ Rd2 ×r and Au ∈ Rr×d1 . A
parallel scrutiny of other support tensors would result in determining the appropriate support tensor
choice, as elaborated in Section 2.2 of the main paper.
15
G F INE - TUNED E MBEDDING V ISUALIZATION
We present feature visualizations of the ViT-B model adapted via GLoRA and FacT (Jie & Deng,
2022) methods applied to the SVHN dataset. We select FacT as opposed to LoRA (Hu et al.), given
that FacT constitutes a direct mathematical enhancement over LoRA and presently represents the
state-of-the-art. A clear distinction can be discerned whereby GLoRA exhibits superiorly segregated
clusters in comparison to FacT. Further, the delineations are broader, and the clusters demonstrate
a higher degree of concentration, signaling the heightened discriminative capacity of the GLoRA-
adapted model features.
Figure 5: Visualization of features from SVHN dataset by t-SNE (Van der Maaten & Hinton, 2008).
Accuracy (%)
Accuracy (%)
60
40 30
50
GLoRA(0.28M) 30 GLoRA(0.27M) GLoRA(0.27M)
NOAH(0.36M) NOAH(0.36M) 20 NOAH(0.36M)
40 VPT(0.64M) 20 VPT(0.64M) VPT(0.64M)
LoRA(0.29M) 10 LoRA(0.29M) 10 LoRA(0.29M)
30 Adapter(0.16M) Adapter(0.16M) Adapter(0.16M)
1 2 4 8 16 1 2 4 8 16 1 2 4 8 16
Number of training samples per class Number of training samples per class Number of training samples per class
OxfordPets Flowers102 Food101
100
90
95 70
85
90
80 60
85
Accuracy (%)
Accuracy (%)
Accuracy (%)
75 80 50
70 75
GLoRA(0.29M) GLoRA(0.27M) 40 GLoRA(0.28M)
65 NOAH(0.36M) 70 NOAH(0.36M) NOAH(0.36M)
VPT(0.64M) 65 VPT(0.64M) VPT(0.64M)
60 LoRA(0.29M) LoRA(0.29M) 30 LoRA(0.29M)
Adapter(0.16M) 60 Adapter(0.16M) Adapter(0.16M)
1 2 4 8 16 1 2 4 8 16 1 2 4 8 16
Number of training samples per class Number of training samples per class Number of training samples per class
Figure 6: More results on few-shot learning datasets.
16