
===== PDF PAGE 1 =====
         Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation


        Tianyi Zhang * 1 2 Junda Su * 1 Aditya Desai 3 Oscar Wu 2 Zhaozhuo Xu 4 Anshumali Shrivastava 1 2 5 6


                          Abstract                                       1. Introduction
        Adapting pre-trained large language models                       Recent advancements in Large Language Models (LLMs)
        (LLMs) is crucial but challenging due to their                   have demonstrated their potential to drive significant
        enormous size. Parameter-efficient fine-tuning                   progress in various fields, including natural language pro-
        (PEFT) techniques typically employ additive                      cessing (Min et al., 2023), reasoning (Wei et al., 2022), and
        adapters applied to frozen model weights. To fur-                problem-solving (Kojima et al., 2022). These pre-trained
        ther reduce memory usage, model weights are                      LLMs can tackle a wide range of challenges thanks to the
        often compressed through quantization. How-                      extensive knowledge acquired during pre-training, but they
        ever, existing PEFT methods often yield subop-                   still require fine-tuning for optimal performance on specific
        timal model quality because they rely on restric-                downstream tasks (Longpre et al., 2023). Unfortunately,
        tive assumptions, such as low-rank constraints                   fine-tuning LLMs can be prohibitively resource-intensive
        on adapters to limit the number of trainable pa-                 due to their large size. Many existing works address this is-
        rameters. We find that sketching, a popular data                 sue by adding a small set of additional trainable parameters
        compression technique, can serve as an efficient                 while fixing the pre-trained parameters (Han et al., 2024).
        LLM adaptation strategy while avoiding the low-
        rank assumption. We introduce SketchTune, a                      Restrictive Linear Algebraic Assumptions in LLM
        compressive adaptation strategy that compresses                  Adapters. Parameter-efficient fine-tuning (PEFT) methods
        LLM weights into compact fine-tunable sketches,                  aim to reduce the number of trainable parameters by impos-
        integrating compression and adaptation into a                    ing specific linear algebraic assumptions on LLM weight
        unified framework. This integration eliminates                   updates. For instance, sparsity-based approaches assume
        the need for complex two-path computation in                     that only a small subset of weights undergo updates (Sung
        existing PEFT techniques, enabling faster and                    et al., 2021; Yang et al., 2024b), while the more popular
        more memory-efficient training and inference.                    low-rank adapter-based methods (Hu et al., 2022; Liu et al.,
        SketchTune is supported by mathematical insights                 2024b) enforce the restrictive assumption that weight up-
        into matrix classes that are better approximated                 dates are inherently low rank. However, recent studies (Liu
        using sketching rather than low-rank methods.                    et al., 2024a) challenge this assumption, showing that fully
        Our extensive evaluations with Llama and Mis-                    fine-tuned weight updates can exhibit high-rank patterns.
        tral models demonstrate that SketchTune outper-                  Our empirical findings further support this, revealing that
        forms leading PEFT methods across diverse tasks                  low-rank representations may not be optimal for capturing
        while using substantially smaller base models and                weight updates, as illustrated in Figure 1. Additionally,
        comparable trainable parameters. As a highlight,                 compressing weight updates alone may not be sufficient for
        SketchTune outperforms LoRA, DoRA, and S2 FT                     fine-tuning LLMs under resource constraints. To address
        on commonsense and math benchmarks using 2.6-                    this, existing methods incorporate weight quantization to
        3.5× smaller base models and exceeds LoftQ in                    further lower memory for fine-tuning (Dettmers et al., 2023;
        accuracy by 14.48% on GSM8K with 7.3× fewer                      Yin et al., 2023; Li et al., 2023b).
        trainable parameters.                                            Quantized Fine-Tuning Produces Sub-Optimal Results.
                                                                         To reduce the memory usage for adapting full LLM pa-
    *
    Equal contribution 1 Rice University, Houston, TX 2 xMAD.ai          rameters, quantized fine-tuning methods freeze the low-
3
 University of California, Berkeley, Berkeley, CA 4 Stevens Insti-       bit quantized base weights and update additional low-rank
tute of Technology, Hoboken, NJ 5 ThirdAI Corp. 6 Ken Kennedy            adapters (Dettmers et al., 2023; Yin et al., 2023). How-
Institute. Correspondence to: Tianyi Zhang <tz21@rice.edu>,
Anshumali Shrivastava <anshumali@rice.edu>.                              ever, this combination of the low-rank adapter assumption
                                                                         and quantized weights results in sub-optimal performance
Proceedings of the 42 nd International Conference on Machine             compared to PEFT methods using full base models (Li
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025              et al., 2023b; Yin et al., 2023). Additionally, since quan-
by the author(s).

                                                                     1


===== PDF PAGE 2 =====
                           Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

tized model weights and trainable adapters use different                                        Rank Required to Explain Variance in
bit widths, input tensors must pass through two unmerge-                            Llama-3-8B, OpenChat fine-tuned               Qwen2.5-7B, Code fine-tuned
                                                                                                                           3000
                                                                                 3000
able computation paths during a forward pass, leading to                                                                   2500
increased latency and lower throughput.                                          2000                                      2000




                                                                        Rank
                                                                                                                           1500
SketchTune: Fine-Tunable Sketches for Unified Com-                               1000                                      1000
                                                                                                                            500
pression and Adaptation. We introduce SketchTune, a                                 0                                         0
method that unifies compression and adaptation of LLMs                                   25       50         75     9095          25        50         75     9095
                                                                                                             % of Variance Explained in
with sketching. SketchTune uses a learned sketching al-
gorithm to compress the LLM into a small set of shared
                                                                                                          Error of Approximating
                                                                                    Llama-3-8B, OpenChat fine-tuned Llama-3-8B, OpenChat fine-tuned
sketched parameters. These sketched parameters are fully                                  256 × compression                64 × compression
                                                                                   1.0                                      1.0
differentiable, allowing us to directly update them for adap-
                                                                                   0.8                                      0.8
tation. The original parameters can be approximately recon-




                                                                            ||F
                                                                      || ||F
structed from the shared sketched parameters via a mapping                         0.6                                      0.6




                                                                      ||
matrix that projects each original parameter to a shared one.                                 Low Rank Matrices (rank=8)               Low Rank Matrices (rank=32)
                                                                                   0.4        Sketching (GPR=1)             0.4        Sketching (GPR=4)
By leveraging a carefully designed, learned sketching pro-
cedure, SketchTune preserves the pre-trained capabilities of                             Qwen2.5-7B, Code fine-tuned      Qwen2.5-7B, Code fine-tuned
                                                                                             256 × compression       1.00
                                                                                                                              64 × compression
the full model while drastically reducing the model size by                       1.00

3–8×. Furthermore, SketchTune goes beyond the restrictive                         0.95                                     0.95




                                                                           ||F
low-rank or sparse assumption on weight updates. We pro-                          0.90                                     0.90



                                                                     || ||F
vide mathematical insights into the scenarios where weight                        0.85                                     0.85
                                                                     ||           0.80
                                                                                              Low Rank Matrices (rank=8)   0.80        Low Rank Matrices (rank=32)
updates are better approximated by sketching, as well as em-                                  Sketching (GPR=1)                        Sketching (GPR=4)
pirical evidence for why sketching can approximate weight
                                                                                          Att
                                                                                          Att ntion
                                                                                          Att ntion uer
                                                                                          Att ntion ey
                                                                                          ML ntion alue
                                                                                          ML ate ut
                                                                                          ML -Up



                                                                                                                                   Att
                                                                                                                                   Att ntion
                                                                                                                                   Att ntion uer
                                                                                                                                   Att ntion ey
                                                                                                                                   ML ntion alue
                                                                                                                                   ML ate ut
                                                                                                                                   ML -Up
                                                                                             P-G -O
                                                                                             P
                                                                                             P-D




                                                                                                                                      P-G -O
                                                                                                                                      P
                                                                                                                                      P-D
updates with lower errors.
                                                                                              e
                                                                                              e -Q
                                                                                              e -K y
                                                                                              e -V




                                                                                                                                       e
                                                                                                                                       e -Q
                                                                                                                                       e -K y
                                                                                                                                       e -V
                                                                                                 ow




                                                                                                                                          ow
                                                                                                    n




                                                                                                                                             n
Through extensive experiments, we show that SketchTune
models achieve higher average accuracy on commonsense
and math reasoning benchmarks compared to competitive               Figure 1. (Top 2) Minimum rank required by low-rank matrices to
PEFT baselines, while utilizing sketched models that are            explain varying percentages of variance in fine-tuned LLM weight
2.6–3.6× smaller than the full base models used by these            updates. (Bottom 4) Optimal approximation errors for sketching
baselines. When compared to competitive quantized fine-             and low-rank matrices under different compression ratios.
tuning methods at the 2-bit region, SketchTune achieves
14.48% better accuracy while using 7.4× fewer trainable
parameters. By leveraging dedicated CUDA kernels, Sketch-           2.1. Weight Updates Are Far from Low-Rank:
Tune demonstrates better training and inference efficiency               Sketching Provides a Superior Alternative
than PEFT and quantized fine-tuning methods. Our code
and model checkpoints are available publicly1 .                     In this section, we provide empirical evidence that weight
                                                                    updates resulting from full fine-tuning of LLMs are high-
                                                                    rank, which limits the effectiveness of low-rank approxima-
2. SketchTune: Fine-Tunable Sketches for                            tions for capturing these updates. We further demonstrate
   LLM Adaptation                                                   that our proposed sketching-based compression technique
Fine-tuning LLMs presents significant computational and             achieves substantially lower approximation errors than con-
memory challenges. To address this, we propose Sketch-              ventional low-rank methods when representing the weight
Tune, a novel approach that compresses LLM weights into             updates.
memory-efficient sketches and fine-tunes these sketches di-         Let W represent the original model weights and W′ rep-
rectly to adapt to downstream tasks. We begin by motivating         resent the fine-tuned weights. The weight update, defined
the use of sketching for compressing model weight updates           as ∆ ≜ W′ − W, typically requires as much storage as
through empirical evidence. We then describe our method             the original weights. LoRA (Hu et al., 2022), a prevalent
for learned sketching of LLM weights and the techniques             PEFT method, compresses weight updates by representing
for fine-tuning sketched models efficiently on GPUs.                them as a product of two low-rank matrices. To evaluate the
   1
       https://github.com/LeanModels/SketchTune
                                                                    effectiveness of this approach, we examine the capacity of
                                                                    low-rank matrices to approximate weight updates from two
                                                                    fine-tuned LLMs: Llama-3-8B (Dubey et al., 2024), fine-
                                                                    tuned on OpenChat (Wang et al., 2024), and Qwen2.5-7B,
                                                                    fine-tuned on source code (Yang et al., 2024a).

                                                                2


===== PDF PAGE 3 =====
                                      Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

                                                                                        projection (Raskutti & Mahoney, 2016), but these stochas-
                                                                     Layer Input        tic methods can corrupt the pre-trained knowledge embed-
                         Sketching Matrix                                               ded in LLM weights. To prevent such degradation, we
                                         Kept in GPU Memory
                                      During Training & Inference
                                                                                        introduce a learned sketching approach that preserves the
      w                                                                                 model’s pre-trained capabilities. The core idea is to com-
                                                    Trainable,
                        -0.1    0.2   -0.7   0.3    Sketched
                                                                                        press each weight matrix W ∈ Rr×c into a sketched matrix
 Weight Matrix
                                                   Parameters       Reconstructed       Wsketched ∈ Rr×k , where k ≪ c, without significantly af-
                                                                    Weight Matrix
                                                                                        fecting the loss of the model. During inference, we recover
                   10   00     10     ...    11    01   11
                                                                                        an approximate weight matrix Ŵ ∈ Rr×c from Wsketched
                  Integer, Parameter-mapping Codes                                      on-the-fly for matrix multiplications.
    : Trainable
    : Fixed
                                                                                        For learning sketched matrices, our goal is to keep the loss
                                                                                        of the sketched model as close as possible to that of the
Figure 2. An illustration of SketchTune’s process of sketching for                      original network. Let WN and ŴN denote the tensors
model compression and fine-tuning.                                                      representing the weights of network N and its recovered
                                                                                        weights from sketches, respectively. The learning objective
                                                                                        for the sketched weights is to minimize L(ŴN ) − L(WN ),
                                                                                        where L(WN ) represents the loss evaluated at WN . To
We perform singular value decomposition (SVD) on each                                   make the learning tractable, we employ an approximation
weight update matrix ∆ to determine the matrix rank re-                                 proposed by Nagel et al. (2020):
quired to capture a specified percentage of variance. Figure 1                                                          X
illustrates the rank (and its standard deviation) necessary to                                 L(ŴN ) − L(WN ) ≈           ∥WX − ŴX∥2F (1)
account for different levels of variance in ∆. The results                                                            W∈N
show that an average rank exceeding 1000 is required to ex-
plain merely 75% of the variance. This finding suggests that                            where W denotes a weight matrix in the network, and X
standard low-rank approaches, typically employing ranks                                 represents its corresponding input matrix. This approxi-
ranging from 4 to 64, may inadequately capture the com-                                 mation offers two key advantages: 1. it decomposes the
plexity of fine-tuned weight updates.                                                   learning into a layer-wise convex problem, making it com-
                                                                                        putationally feasible, 2. it enables layer-by-layer learning,
In contrast, we propose SketchTune, a novel approach that                               allowing large models to be processed on a single GPU.
uses sketching to compress and represent weight updates.                                Furthermore, since ∥WX − ŴX∥2F can be expressed as a
Unlike traditional PEFT methods that rely on adapters or                                sum over the products of all row vectors of W and X, the
additional parameters added to frozen weights, SketchTune                               learning process can be further decomposed into row-wise
directly compresses the entire model through a set of fine-                             independent problems. This leads to the learning objective:
tunable sketched parameters. Specifically, the sketched
model utilizes shared parameters along with a mapping                                                     arg min∥wX − ŵX∥22                    (2)
matrix that associates each original parameter with these                                                    ŵ

shared parameters.                                                                      where w and ŵ represent a row in the original weight ma-
We compare the quality of SketchTune and low-rank matri-                                trix and its corresponding approximation recovered from
ces in approximating the weight updates on the previously                               row sketches, respectively. We learn the sketched weights
mentioned Llama and Qwen models. We measure the ap-                                     by minimizing output distortions introduced by the recon-
proximation quality using the normalized approximation                                  structed weights, using a small sample drawn from the em-
error defined as ∥∆−
                      ˆ F
                     ∆∥           ˆ                                                     pirical distribution of X.
                   ∥∆∥F , where ∆ represents the approxi-
mated weight update (see Appendix B). Figure 1 shows that
SketchTune achieves lower approximation errors than low-                                2.3. A Row-Wise Learning Strategy
rank matrices across most layers, suggesting its superior                               For each weight matrix W ∈ Rr×c in the LLM, we inde-
effectiveness in capturing weight updates.                                              pendently compress each row vector w ∈ R1×c using a
                                                                                        learned sketching process. The process involves learning
2.2. Formulation: Learning to Sketch LLM Weights                                        two matrices: a sketching matrix S for compression and a
                                                                                        mapping matrix M for reconstruction.
Sketching is a data compression technique that preserves
essential properties of the original data while substan-                                The sketching matrix S ∈ Rc×k projects w into a lower-
tially reducing memory requirements. Conventional ma-                                   dimensional space, producing a sketched row wsketched ∈
trix sketching techniques employ randomized algorithms                                  R1×k . The mapping matrix M ∈ {0, 1}k×c , a column-
such as column/row sampling (Liberty, 2013) and random                                  wise one-hot binary matrix, recovers an approximation ŵ ∈

                                                                                    3


===== PDF PAGE 4 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation
                                                                               s                     s
R1×c of the original row for use in matrix multiplications.               1
                                                                                     ,...,        1
                                                                                                             , produced by the weighted k-means
                                                                         H−1                     H−1
                                                                                                  c,c
Formally, this process is defined as:                                     1,1
                                                                     algorithm. Then, the i-th row and j-th column of the sketch-
          wsketched = wS,        ŵ = wsketched M.        (3)        ing matrix S is given as follows:
                                                                                                 s
                                                                                              1
                                                                                                      wi
                                                                                        H−1
                                                                                       
                                                                                              i,i
After sketching, the original row w and the sketching ma-                                            s  if ai = j
                                                                               Si,j =             1
                                                                                                                              (5)
                                                                                         P
                                                                                                  −1
trix S are no longer required. Only the sketched weights                               
                                                                                       
                                                                                            l   H
                                                                                                  l,l

wsketched and the mapping matrix M need to be stored in                                
                                                                                         0                otherwise
GPU memory during training and inference, leading to re-
source efficiency.                                                   The final learning procedure for model sketching proceeds
To learn the mapping matrix M for parameter reconstruc-              as follows: we first learn the sketching matrix S through
tion, we apply the iterative quantization strategy proposed by       weighted k-means, and obtain the sketched parameters
Frantar et al. (2022b) and Frantar & Alistarh (2022) to pre-         wsketched as wS. We then initialize the mapping matrix
serve model quality. Each column of M is a binary one-hot            M to be empty, and iteratively learn the columns of M.
vector that maps an original parameter (from a row of size c)        In each learning step, we fix the next column of M to
to one of the k entries in the sketched parameters wsketched ,       map the next parameter to its nearest sketched parameter in
where k ≪ c. This mapping inevitably introduces some                 wsketched , and apply an update to the unmapped parameters
error in the model output. To minimize this error, we learn          to compensate for the errors. During the iterative process,
the columns of M sequentially and iteratively update the             the error in the weight update can accumulate, degrading
remaining unmapped parameters to compensate for the in-              sketched model quality. To address this, we apply the strat-
troduced error after each step. Concretely, for each original        egy proposed by Frantar et al. (2022b) to use the Cholesky
parameter, we identify the entry in wsketched that is closest        reformulation for inverse Hessian calculations and apply the
to it and assign the corresponding one-hot value to M. After         weight updates in a block-wise manner. Specifically, we di-
fixing this column of M, we apply an update δ (Equation 13           vide the weights into blocks of B = 128 columns and keep
in the Appendix) to the remaining unmapped parameters                weight updates contained to those columns. Once all param-
to absorb the approximation error. This process is repeated          eters within the block have been mapped, we apply a global
until all columns of M are assigned.                                 weight update to the rest of the unmapped parameters.

For learning the sketched parameters wsketched , a straight-         2.4. Scaling Up Number of Trainable Parameters
forward method is to perform clustering on the c original
parameters to obtain a set of k centers as the sketched pa-          To scale up the learning capacity of the sketched models, we
rameters. To minimize the impact on model quality, we                need to increase the count of trainable parameters. Unlike
prioritize preserving the precision of parameters with large,        adapter-based methods, the number of trainable parameters
outlying inverse Hessian diagonals H1−1 , where H is the             in SketchTune models is fixed after model sketching. Hence,
                                          i,i                        to allow more flexibility in the amount of sketched parame-
second-order derivative of Equation 2. We achieve this
                                                                     ters, we propose to divide each row into multiple sub-rows,
by adopting the learning objective proposed by Zhang &
                                                                     and sketch each sub-row independently. Specifically, we
Shrivastava, which emphasizes the preservation of more
                                                                     divide each row w ∈ R1×c into g non-overlapping,         con-
influential parameters:                                                                                      c
                                                                     tiguous groups of sub-rows w′ ∈ R1× g . With g groups per
               X  1 s                              2               row, we are increasing the number of trainable parameters
    arg min          −1    RTN(wi , wsketched ) − wi                 g-fold compared to row-wise sketching. We use the nota-
  wsketched ∈Rk i  Hi,i
                                                     (4)             tion SketchTuneGPR=g to represent a sketched model with
                                                                     g groups per row (GPR). With everything put together, the
where RTN(wi , wsketched ) (round-to-nearest operator)               final algorithm for weight sketching is given in Algorithm 1.
rounds the value of wi to its nearest sketched parameter             We present a quality comparison between the sketched mod-
in wsketched , and s is a hyperparameter controlling the em-         els and the original models in Appendix G.
phasis on preserving outliers of H1−1 , which we set s = 3.
                                    i,i
More details on the mathematical derivations are presented           2.5. Fine-Tuning Sketches
in Appendix D.
                                                                     Once the model weights have been sketched, the original
Using Equation 4 as objective, we learn wsketched by lever-          weights w and the sketching matrix S are no longer needed
aging the weighted k-means (Lloyd, 1982; Zhang & Amini,              for training or inference. During training and inference,
2021) algorithm. Consequently, we learn the sketching                we use the sketched weights wsketched and the mapping
matrix S as follows. Let a1 , . . . , ac ∈ {1, . . . , k} be         matrix M to reconstruct weights ŵ as wsketched M. Thus,
the cluster indices of parameters w1 , . . . , wc weighted by        with X being the layer input, the forward pass computes

                                                                 4


===== PDF PAGE 5 =====
                                    Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

Algorithm 1 Learning to Sketch LLM Weights                                          2.6. Custom CUDA Kernel for Efficient Training and
 1: Function LearnSketchingMatrix(w, X)                                                  Inference
    Input: sub-row weights w′ , layer input X                                       We develop dedicated CUDA kernels for efficient training
    Output: sketching matrix S                                                      and inference of sketched models on GPUs by leveraging
 2: a1 , . . . , ac ← WeightedKMeansCluster(
                                                                                    the shared memory (see Appendix E for details). In Sec-
        [w1′ , . . . , w′c ], [( H1−1 )s , . . . , ( H−1
                                                       1
                                                             )s ], k)               tion 4.2, we perform a comprehensive evaluation of the
                         G         1,1                 c , c
                                                s G G
                                                                                    efficiency of SketchTune during training and inference and
                                   
                                           1
                                          −1       wi
                                         H
                                                                                    compare it against competitive methods. To ensure efficient
                                   
                                    i,i s
                   c                                          if ai = j
 3: let S ∈ R G ,k , Si,j ←                     1
                                       P
                                        l   H
                                                −1
                                                l,l
                                                                                    storage, we store the mapping matrix M ∈ {0, 1}k×c , a
                                                                                    column-wise one-hot binary matrix, as an integer matrix.
                                   
                                       0                     otherwise
                                   
 4: return S                                                                        Due to its one-hot nature, each column of M can be com-
                                                                                    pactly represented with the index of its one-hot entry using
 5: Function LearnToSketch(w, X, G)                                                 a ⌈log2 k⌉-bit integer. To leverage the full bit widths, we
    Input: row weights w, layer input X, groups per row                             take k ∈ {16, 8, 4} to use the data types INT4, INT3, and
    G                                                                               INT2, respectively.
    Output:          sketched weights of all G group
      0                   G−1
    wsketched  , . . . , wsketched , the mapping matrix M                           3. Theoretical Analysis
              k×c
 6: M ← 0                              ▷ initialize mapping matrix
 7: ŵ ← 01×c                  ▷ initialize reconstructed weights                   The properties of the true update matrix ∆, i.e. the update
 8: e ← 01×B                              ▷ initialize weight errors               matrix obtained after full fine-tuning, determine a good as-
 9: H−1 ← cholesky [2XX⊤ ]−1                                                        sumption for compression of weight update. However, the
10: for g ← 0, . . . , G − 1 do                                                     true ∆ is not known apriori. In this section, we analyze
11:    w′ ← wg Gc :(g+1) Gc                    ▷ get current sub-row                characteristics of ∆ and the effect of sketching-based meth-
12:    S ← LearnSketchingMatrix(w′ , X)                                             ods such as SketchTune, especially against popular low-rank
         g
13:    wsketched     ← w′ S                                                         approximation alternatives. Since ∆ and the mappings Ms
14:                  c
       for i ← g G , g Gc + B, g Gc + 2B, . . . , (g + 1) Gc do                     for each row derived from W can be unrelated, it is safe
15:      for j ← i, . . . , i + B − 1 do                                            to assume {M} is random w.r.t ∆. For ease of exposition,
16:          m ← arg minl [wsketched  g
                                                ] l − wj                            we assume that {M}s belong to a specific kind of random
                                                                                    sketching matrices derived from random-fold hashing (De-
17:          Mm,j ← 1 ▷ set the current mapping column
                           g                                                        sai & Shrivastava, 2023). Our result is presented below:
18:          ŵj ← [wsketched       ]m
19:          ej−i ← H
                          wj −ŵj                                                   Theorem 3.1. Consider a matrix ∆ : n × n with sorted
                             −1
                              j,j                                                   (descending) singular values {ρi }ni=1 , squares of which are
20:         wj:(i+B) ← wj:(i+B) − ej−i H−1         j,j:(i+B)                        drawn from power law i−η parameterized by coefficient η.
21:      end for                                                                    Under the compression factor α (i.e. using n2 /α parame-
22:      w(i+B): ← w(i+B): − eH−1         i:(i+B),(i+B):                            ters), let low-rank approximation and sketch approximation
23:    end for                                                                      be ∆l and ∆s respectively. Then, the low-rank error is
24: end for
                                 G−1                                                                                         n/2k
             0
25: return [wsketched , . . . , wsketched ], M                                                                               X
                                                                                                 ||∆ − ∆l ||2F = ||∆||2F −          ρ2i      (7)
                                                                                                                             i=1

                                                                                    The expected error of random-fold sketching approximation
                                                                                    is,
y = wsketched MX. For adaptation, we freeze M and                                                                              n
                                                                                                                                     !
perform back-propagation to update the sketched parameters                                                                1   X
                                                                                           E(||∆ − ∆l ||2F ) = ||∆||2F −          ρ2       (8)
wsketched . The gradients of the sketched parameters are                                                                  α i=1 i
given as:                                                                           For large enough n, the expected sketching approximation
                                                                                    error is smaller than low-rank approximation error if
                         ∂L             ∂L
                                                                                                                          
                                    =      MX
                                              ⊤
                                                                          (6)                                       log(α)
                    ∂wsketched          ∂y                                                             η ∈ 0, 1 −                         (9)
                                                                                                                   log(2α)

                                                                                    The proof of the theorem is presented in Appendix F. The
We present an illustration of the sketching and fine-tuning                         above theorem characterizes matrices that are well approxi-
process of SketchTune in Figure 2.                                                  mated by sketching instead of low-rank decomposition. It

                                                                                5


===== PDF PAGE 6 =====
                             Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation


Table 1. Accuracy of SketchTune compared to competitive PEFT methods for fine-tuning Llama models on math datasets. Baseline results
are taken from Yang et al. (2024b). SketchTune achieves better or comparable accuracy while using sketched models that are 2.6–3.6×
smaller than the full base models used by other PEFT methods.
                                 Base Model Trainable
 Model         Method                                    MultiArith GSM8K AddSub AQuA SingleEq SVAMP MAWPS Avg. ↑
                                    (GB)      Param (M)
 GPT-3.5      -                      -           -          83.8         56.4     85.3     38.9    88.1     69.9      87.4    72.8
              Full FT              13.48      6,738.4       98.8         43.1     91.1     20.9    94.3     60.6      88.2    71.0
          LoRA                     13.48       55.9         98.0         40.0     91.2     21.7    93.1     56.7      85.3    69.7
          DoRA                     13.48       56.6         97.3         38.9     89.6     22.4    93.9     58.4      85.3    69.4
 LLaMA-7B S2 FT                    13.48       54.6         98.8         41.3     91.4     21.3    93.5     58.4      86.1    70.1
          SketchTuneGPR=1           3.89        21.8        97.8         36.5     89.9     25.2    90.7     55.7      86.6    68.9
          SketchTuneGPR=2           3.93        43.5        96.8         39.0     92.2     20.1    92.7     55.5      86.6    69.0
          SketchTuneGPR=4           4.02        87.0        98.3         39.7     90.9     22.0    93.5     58.0      87.4    70.0
          SketchTuneGPR=8           4.19       174.1        98.3         40.6     91.9     19.7    95.1     57.5      88.7    70.3
              Full FT              26.03      13,015.9      98.3         47.6     92.9     26.0    95.1     65.7      88.7    73.5
           LoRA                    26.03       87.2         97.5         47.8     89.9     20.5    94.3     61.2      87.4    71.2
           DoRA                    26.03       88.5         97.2         48.1     90.6     20.9    93.9     63.8      88.2    71.8
 LLaMA-13B S2 FT                   26.03       84.6         97.7         48.4     90.4     22.8    95.5     63.9      87.8    72.4
           SketchTuneGPR=1          7.14        34.1        97.2         44.0     88.6     26.0    91.7     64.9      85.7    71.2
           SketchTuneGPR=2          7.21        68.2        98.2         46.9     91.1     27.2    93.9     61.8      86.6    72.2
           SketchTuneGPR=4          7.36       136.3        98.5         47.8     91.9     24.0    95.9     64.2      89.1    73.1
           SketchTuneGPR=8          7.67       272.6        98.8         47.6     92.2     25.2    95.5     66.8      87.4    73.4
              Full FT              13.48      6,738.4       99.3         47.5     91.1     24.4    96.7     62.5      89.1    72.9
           LoRA                    13.48       55.9         97.5         44.0     91.2     20.9    94.1     59.2      85.7    70.4
           DoRA                    13.48       56.6         98.2         43.8     90.1     24.4    94.5     59.1      89.1    71.3
 LLaMA2-7B S2 FT                   13.48       54.6         98.5         44.3     91.1     25.2    94.7     61.8      88.2    72.0
           SketchTuneGPR=1          3.92        21.8        98.0         41.4     89.6     26.4    92.9     59.3      89.1    71.0
           SketchTuneGPR=2          3.97        43.5        98.8         43.5     92.2     20.5    95.3     59.9      89.1    71.3
           SketchTuneGPR=4          4.05        87.0        99.3         46.5     91.1     23.2    94.5     59.8      88.2    71.8
           SketchTuneGPR=8          4.23       174.1        98.7         46.5     93.9     24.0    96.7     61.7      90.3    73.1
              Full FT              16.06      8,030.3       99.2         62.0     93.9     26.8    96.7     74.0      91.2    77.7
           LoRA                    16.06       56.2         99.5         61.6     92.7     25.6    96.3     73.8      90.8    77.2
           DoRA                    16.06       57.0         98.8         62.7     92.2     26.8    96.9     74.0      91.2    77.5
 LLaMA3-8B S2 FT                   16.06       56.2         99.7         65.8     93.7     31.5    97.8     76.0      92.4    79.6
           SketchTuneGPR=1          5.77        22.0        97.8         66.3     90.1     26.8    95.5     79.8      90.8    78.2
           SketchTuneGPR=2          5.81        44.0        98.3         69.4     90.6     29.5    94.3     76.8      91.2    78.6
           SketchTuneGPR=4          5.92        88.1        99.2         68.2     91.4     30.7    97.0     76.2      92.4    79.3
           SketchTuneGPR=8          6.10       176.2        99.7         68.8     92.7     29.1    98.6     77.5      92.9    79.9



implies if the update-matrix ∆ is close to full-rank, i.e. η is        Models and Benchmarks. We fine-tune and evaluate the
closer to 0, then SketchTune is well suited to approximate             following models: 1. Llama-7B, 2. Llama-13B (Touvron
∆, whereas η closer to 1 would make low-rank a superior                et al., 2023a), 3. Llama-2-7B, 4. Llama-2-13B (Touvron
alternative. Clearly, as we can see from Figure 1, that ∆ is           et al., 2023b), 5. Llama-3-8B (Dubey et al., 2024), 6. Mis-
far from being low rank, which indicates the superiority of            tral-7B (Jiang et al., 2023). For math problem-solving, we
SketchTune over low-rank approximations.                               fine-tune these models on the Math10K dataset and evaluate
                                                                       on 7 different math reasoning datasets (Hu et al., 2023).
4. Experiments                                                         For commonsense reasoning, we fine-tune on the Common-
                                                                       sense170K dataset and evaluate on 8 different commonsense
We conduct comprehensive experiments to evaluate the                   reasoning datasets (Hu et al., 2023). For instruction fine-
adaptation capabilities of SketchTune against competitive              tuning, we fine-tune Mistral-7B (Jiang et al., 2023) on the
baselines across diverse tasks, including math problem solv-           Alpaca-GPT4 dataset (Peng et al., 2023) for one epoch and
ing, commonsense reasoning, and instruction following.                 evaluate it on MT-Bench (Zheng et al., 2023) using GPT-4o
Below, we introduce the datasets, models, and baselines                as a judge. Detailed descriptions of the datasets are provided
used for evaluation, as well as the software and hardware              in Appendix H. To compare SketchTune against efficient
for conducting the experiments.                                        quantized model fine-tuning methods, we follow the settings
                                                                       in Li et al. (2023b) to fine-tune and test Llama-2 models

                                                                   6


===== PDF PAGE 7 =====
                             Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation


Table 2. Accuracy of SketchTune compared to competitive PEFT methods for fine-tuning Llama models on commonsense reasoning
datasets. Baseline results are taken from Yang et al. (2024b). SketchTune achieves better or comparable accuracy while using sketched
models that are 2.7–3.5× smaller than the full base models used by other PEFT methods.
                                  Base Model Trainable
Model         Method                                   BoolQ PIQA SIQA HellaSwag Wino ARC-e ARC-c OBQA Avg.↑
                                     (GB)    Param (M)
ChatGPT       -                       -               -          73.1       85.4   68.5    78.5     66.1    89.8      79.9     74.8   77.0
              Full FT               13.48          6,738.4       70.3       84.2   80.1    92.3     85.4    86.6      72.8     83.4   81.9
              LoRA                  13.48           55.9         69.2       81.7   78.4    83.4     80.8    79.0      62.4     78.4   76.7
              DoRA                  13.48            56.6        68.5       82.9   79.6    84.8     80.8    81.4      65.8     81.0   78.1
              Galore                13.48           55.9         68.6       79.0   78.5    84.7     80.1    80.3      62.1     77.3   76.3
Llama-7B      LoReFT                13.48             2.0        69.3       84.4   80.3    93.1     84.2    83.2      68.2     78.9   80.2
              LISA                  13.48           667.8        70.4       82.1   78.7    92.4     82.9    84.9      70.2     78.4   80.0
              S2 FT                 13.48           54.6         72.7       83.7   79.6    93.4     83.5    86.1      72.2     83.4   81.8
              SketchTuneGPR=4       4.02            87.0         72.1       85.6   80.2    93.7     84.6    86.2      71.0     84.8   82.3
              Full FT               26.03          13,015.9      74.5       86.3   81.3    94.4     86.9    89.7      77.9     88.8   85.0
          LoRA                      26.03            87.2        72.1       83.5   80.5    90.5     83.7    82.8      68.3     82.4   80.5
          DoRA                      26.03            88.5        72.4       84.9   81.5    92.4     84.2    84.2      69.6     82.8   81.5
Llama-13B LoReFT                    26.03             3.9        72.1       86.3   81.8    95.1     87.2    86.2      73.7     84.2   83.3
          S2 FT                     26.03            84.6        74.2       85.7   80.7    94.9     86.4    88.4      76.3     87.8   84.3
          SketchTuneGPR=4           7.36            136.3        73.9       87.4   82.5    95.6     86.1    90.3      75.7     89.4   85.1
              Full FT               13.48          6,738.4       74.7       84.9   78.7    93.7     84.1    87.5      75.2     85.0   83.0

Llama-2-7B LoRA                     13.48           55.9         69.8       79.9   79.5    83.6     82.6    79.8      64.7     81.0   77.6
           DoRA                     13.48           56.6         71.8       83.7   76.0    89.1     82.6    83.7      68.2     82.4   79.7
           S2 FT                    13.48           54.6         72.9       86.1   80.2    94.3     85.5    87.2      74.6     83.4   83.0
           SketchTuneGPR=4          4.05            87.0         73.3       86.2   81.2    94.1     85.4    87.6      75.2     85.8   83.6
              Full FT               16.06          8,030.3       73.9       86.2   79.1    93.1     85.8    88.1      78.2     84.0   83.6

Llama-3-8B LoRA                     16.06           56.2         70.8       85.2   79.7    92.5     84.9    88.9      78.7     84.4   82.5
           DoRA                     16.06           57.0         74.6       89.3   79.9    95.5     85.6    90.5      80.4     85.8   85.2
           S2 FT                    16.06           56.2         75.0       89.0   80.7    96.5     88.0    92.5      83.4     87.8   86.6
           SketchTuneGPR=4          5.92            88.1         75.0       90.2   82.7    95.9     88.2    92.6      82.1     89.4   87.0


Table 3. MT-Bench scores for Mistral-7B fine-tuned on the Alpaca-GPT4 training set. The baseline results are taken from Yang et al.
(2024b). Despite using a 3.1× smaller base model, SketchTune achieves a better average score than baselines.
 Method             Base Model (GB) Writing Roleplay Reasoning Code Math Extraction STEM Humanities Avg.
 Full FT                  14.48             5.50          4.45          5.45        2.50   3.25     5.78       4.75          5.45     4.64
 S2 FT                    14.48             6.95          4.40          5.50        2.70   3.55     5.95       6.35          6.75     5.27
 SketchTuneGPR=4          4.66              4.60          5.20          9.23        3.05   4.80     7.45       8.13          8.45     6.36


on the language modeling dataset WikiText-2 (Merity et al.,                  ods that fine-tune quantized models, we use 1. QLoRA
2022) and the math reasoning dataset GSM8K (Cobbe et al.,                    (Dettmers et al., 2023), 2. LoftQ (Li et al., 2023b) and com-
2021). Additional instruction following evaluations against                  pare with SketchTune at different bit widths. We optimize
quantized model fine-tuning methods are presented in Ap-                     SketchTune’s hyper-parameters, including learning rate and
pendix K.                                                                    batch size, through a parameter sweep, and we report the
                                                                             hyper-parameters for training in Appendix I.
Baselines. We compare SketchTune against the following
PEFT baselines: 1. Galore (Zhao et al., 2024), 2. LoReFT                     Software and Hardware. We implement SketchTune using
(Wu et al., 2024), 3. LISA (Pan et al., 2024), 4. LoRA                       PyTorch (Paszke et al., 2019) and the Transformers library
(Hu et al., 2022), 5. DoRA (Liu et al., 2024b), 6. S2 FT                     (Wolf et al., 2020). We develop custom CUDA kernels op-
(Yang et al., 2024b). We also report the results of full fine-               timized for the specific operations required in SketchTune,
tuning, GPT-3.5 (text-Davinci-003), and ChatGPT                              ensuring high-performance execution on modern GPU ar-
(gpt-3.5-turbo) from Hu et al. (2023). For Sketch-                           chitectures. We sketch each model using a single Quadro
Tune, we use sketched models compressed with the INT4                        RTX 8000-48GB GPU. For model training, we train each
data type and compare them against baselines that use the                    model using a single NVIDIA A100-40GB GPU.
original weights as the base model. For baseline meth-


                                                                        7


===== PDF PAGE 8 =====
                                                                              Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

Table 4. Perplexity and accuracy of SketchTune compared to QLoRA and LoftQ, two efficient fine-tuning methods for quantized models,
at various bit-widths. Baseline results are taken from Li et al. (2023b). N.A denotes that the model failed to converge. SketchTune
achieves better or comparable perplexity and accuracy while using 1.8–29.4× less trainable parameters than baseline methods.
                                                                                                          WikiText-2                                                                                                                                        GSM8K
                                                       Data                      Llama-2-7B                                   Llama-2-13B                                                             Data                   Llama-2-7B                                          Llama-2-13B
       Method                                                                                                                                                  Method
                                                       Type                                                                                                                                           Type
                                                                           Trainable        Trainable                                                                                                                    Trainable       Trainable
                                                                                     PPL ↓            PPL ↓                                                                                                                        ACC↑            ACC↑
                                                                          Param (M)        Param (M)                                                                                                                    Param (M)       Param (M)
       LoRArank=64      FP16                                                   159.91                     5.08              250.35              5.12           LoRArank=64      FP16                                      159.91                        36.90                    250.35            43.10
       LoRArank=64 +Reg FP16                                                   159.91                       -               250.35                -            LoRArank=64 +Reg FP16                                      159.91                        34.40                    250.35            45.30
       QLoRArank=64     NF4                                                    159.91                     5.70              250.35              5.22           QLoRArank=64     NF4                                       159.91                        35.10                    250.35            39.90
       LoftQrank=64     NF4                                                    159.91                     5.24              250.35              5.16           LoftQrank=64     NF4                                       159.91                        35.00                    250.35            45.00
       SketchTuneGPR=1 INT4                                                    21.76                      5.32               34.08              4.81           SketchTuneGPR=4 INT4                                       87.03                         39.73                    136.31            50.34
       QLoRArank=64     NF3                                                    159.91                     5.73              250.35              5.22           QLoRArank=64     NF3                                       159.91                        32.10                    250.35            40.70
       LoftQrank=64     NF3                                                    159.91                     5.63              250.35              5.13           LoftQrank=64     NF3                                       159.91                        32.90                    250.35            44.40
       SketchTuneGPR=1 INT3                                                    10.90                      5.63               17.04              5.05           SketchTuneGPR=4 INT3                                       43.50                         37.15                     68.16            47.54
       QLoRArank=64     NF2                                                    159.91                     N.A               250.35              N.A. QLoRArank=64     NF2                                                 159.91                        N.A.                     250.35            N.A.
       LoftQrank=64     NF2                                                    159.91                     7.85              250.35              7.69 LoftQrank=64     NF2                                                 159.91                        20.90                    250.35            25.40
       SketchTuneGPR=1 INT2                                                     5.44                      7.40               8.52               6.22 SketchTuneGPR=4 INT2                                                 21.75                         29.95                     34.08            39.88

                                     Time to First Token                                                       Per-token Decoding Latency                                            Training Time Per Batch                                                    Peak GPU Memory Usage
                                       (batch size=1)                                                            (context length=2000)                                                    (batch size=1)                                                             (batch size=1)
               700                                            676                                                                      87                                                                               327.47                                                         22.9

               600                                                                                   80                                                               300             291.52                                                             20.1
                                                                                                               75                                                                                                                                  20




                                                                                                                                                                                                                                 GPU Memory (GB)
                                                                                                                                                                                                               250.18
               500                                      480                                                                                                           250   240.17
                                                                                                     60
Latency (ms)




                                                                                      Latency (ms)




                                                                                                          57                      57                                                           212.89 217.25                                       15                                     14.413.713.813.814.0
                                                                                                                                                          Time (ms)




               400                                                                                                  49 50 48 49             49 51 50 51               200
                            348
                                                                                                                                                                                                                                                            10.8
               300                                                                                   40                                                               150                                                                          10
                      238                                                                                                                                                                                                                                                        8.3
                                                                    202 204 209 220                                                                                                                                                                                7.4 7.6 7.8
               200                                                                                                                                                    100
                                                                                                     20                                                                                                                                             5
                                  101 103 108 119                                                                                                                      50
               100
                 0                                                                                    0                                                                 0                                                                           0
                     context length=4000 context length=8000                                                   batch size=1            batch size=8                                      context length=512                                                   Training              Inference
                                                                                                                                                                                                                                                        (context length=512) (context length=10000)
                                                    LoRArank = 32                     QLoRArank = 32                          SketchTuneGPR = 1                        SketchTuneGPR = 2                       SketchTuneGPR = 4                                SketchTuneGPR = 8

                                              Figure 3. A comparison on the training and inference efficiency of SketchTune, LoRA, and QLoRA.

4.1. Results                                                                                                                                                          efficiency and final performance, all SketchTune models use
                                                                                                                                                                      the INT4 representation and GPR=4 for model sketching,
4.1.1. C OMPARISON WITH PEFT M ETHODS
                                                                                                                                                                      while the baseline methods employ the original weights as
Math Problem-Solving. Table 1 presents the accuracy                                                                                                                   the base. Despite using 2.7-3.5× smaller base model size,
results of models fine-tuned on the Math10K dataset (Hu                                                                                                               SketchTune consistently outperforms competitive PEFT
et al., 2023). SketchTune models are compressed to use                                                                                                                methods and even full fine-tuning in the average accuracy
INT4 representation for weights, while baselines use full                                                                                                             across benchmarks.
models for fine-tuning. We explore the effectiveness of                                                                                                               Instruction Fine-tuning Table 3 shows the MT-Bench
SketchTune at different compression rates by varying groups                                                                                                           scores, judged by GPT-4o, for SketchTune, S2 FT, and fully
per row (GPR) in the sketched models. We highlight that                                                                                                               fine-tuned models. SketchTune outperforms both baselines
SketchTuneGPR=8 consistently achieves the best accuracy                                                                                                               on most tasks, while using 67.8% smaller base model.
compared to PEFT baselines despite using 2.6-3.4× smaller
models, and is on par with full fine-tuning and GPT-3.5.                                                                                                              4.1.2. C OMPARISON WITH C OMPRESSIVE F INE -T UNING
Regarding parameter efficiency, SketchTuneGPR=2 performs
better or on par with LoRA and DoRA, despite using fewer                                                                                                              Table 4 reports the perplexity on WikiText-2 and accuracy
trainable parameters. We also conclude that scaling up the                                                                                                            on GSM8K for models fine-tuned with QLoRA, LoftQ,
number of parameters by increasing GPR leads to a consis-                                                                                                             and SketchTune at different bit widths. QLoRA and
tent improvement in the average accuracy across datasets.                                                                                                             LoftQ use 4/3/2-bit NormalFloat (NF4/NF3/NF2) (Dettmers
                                                                                                                                                                      et al., 2023), while SketchTune uses 4/3/2-bit integers
Commonsense Reasoning. Table 2 presents the accuracy
                                                                                                                                                                      (INT4/INT3/INT2). SketchTune achieves lower perplex-
results of models fine-tuned on the Commonsense170K
                                                                                                                                                                      ity on WikiText-2 in most cases and higher accuracy on
dataset. To maintain a practical trade-off between memory
                                                                                                                                                                      GSM8K across all bit widths. Notably, it outperforms LoftQ

                                                                                                                                                          8


===== PDF PAGE 9 =====
                             Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

by 4.73 and 5.34 points on GSM8K (4-bit) with 1.8× fewer                have been explored as effective methods for compressing
trainable parameters and by 9.05 and 14.48 points (2-bit)               neural networks (Xu, 2025), aiming to reduce computa-
with 7.3× fewer parameters. Moreover, SketchTune sur-                   tional and storage requirements while maintaining perfor-
passes LoftQ on WikiText-2 (2-bit) while using 29.4× fewer              mance. Random sketching for model compression has been
trainable parameters. Details on calculating SketchTune’s               explored recently in a variety of settings, including embed-
number of trainable parameters can be found in Appendix C.              ding compression (Chen et al., 2015; Desai et al., 2022;
                                                                        Desai & Shrivastava, 2022) and general model compression
4.2. Efficiency Analysis                                                (Desai et al., 2023; Desai & Shrivastava, 2023). However,
                                                                        these methods are not suitable for compressing models after
In Figure 3, we report the training and inference efficiency            training; they are most effective for training compressed
of SketchTune. Moreover we compare SketchTune with                      models from scratch. SketchTune is among the first to ex-
LoRA and QLoRA. All experiments are performed on an                     plore sketching techniques for post-training model compres-
NVIDIA A100-40GB GPU. The results are averaged over                     sion. Other techniques include multi-hashing (Eban et al.,
10 runs, each with 10 warmup steps. LoRA and QLoRA-                     2020), tensor sketching (Kasiviswanathan et al., 2017), ran-
based methods keep base and adapter weights separately,                 dom projection (Ravi, 2019), linear sketches (Daniely et al.,
which requires two matrix multiplications for each layer,               2016), and higher-order count sketch (Shi & Anandkumar,
leading to inefficiencies and difficulties in implementation.           2020).
SketchTune is free of adapters and requires a single ma-
trix multiplication for each layer. SketchTune demonstrates
2.0-2.4× lower time to first token (TTFT) than LoRA, and                6. Conclusion
2.9-3.3× lower TTFT than QLoRA. For decoding latency,                   In this work, we introduced SketchTune, a novel approach
SketchTune is consistently faster than LoRA and QLoRA.                  that unifies model compression and adaptation through
For training time, SketchTune is lower or on par with base-             weight sketching. Our method addresses the fundamental
lines. Regarding GPU memory usage, SketchTune con-                      limitations of existing PEFT approaches by eliminating low-
sumes 1.6-2.7× less memory than LoRA during training                    rank constraints and avoiding the computational overhead
and inference due to the smaller size of sketched models.               of separate adapter paths. Through theoretical analysis and
                                                                        comprehensive empirical evaluation across diverse tasks,
5. Related Works                                                        we demonstrated that SketchTune achieves superior perfor-
                                                                        mance while using significantly smaller base models than
Resource-Efficient Fine-Tuning of LLMs. As fine-tuning                  competitive baselines. These results establish SketchTune
LLMs is resource intensive, existing works reduce the                   as a promising direction for efficient adaptation of LLMs.
computational and memory resources demands through
parameter-efficient adapters, optimizer state compression,
base model quantization, and more (Han et al., 2024).                   Acknowledgements
Adapter-based methods attempt to reduce the parameters for              This work was supported by National Science Foundation
capturing model weight updates through low-rank methods                 SHF-2211815 and Ken Kennedy Institute Cluster Grants.
(Hu et al., 2022; Liu et al., 2024b), vector-based random
matrix adaptation (Kopiczko et al., 2024), sparsity (Guo
et al., 2021; Yang et al., 2024b), orthogonal fine-tuning (Qiu          Impact Statement
et al., 2023; Liu et al., 2024c), etc. Optimizer states typ-            This paper presents work whose goal is to advance the field
ically consume twice the amount of memory as trainable                  of Machine Learning. There are many potential societal
parameters (Loshchilov & Hutter, 2019), and existing works              consequences of our work, none which we feel must be
reduce this overhead through low-rank approximation (Zhao               specifically highlighted here.
et al., 2024) and quantization (Dettmers et al., 2022; Li et al.,
2023a). To reduce the memory demand for the base model,
existing works (Dettmers et al., 2023; Li et al., 2023b; Qin            References
et al., 2024; Yin et al., 2023) quantize the full model to inte-        Ansell, A., Vulić, I., Sterz, H., Korhonen, A., and Ponti,
gers and fine-tune full-precision adapters added on top. To               E. M. Scaling sparse fine-tuning to large language mod-
make LLMs more memory efficient, existing works apply                     els, 2024. URL https://arxiv.org/abs/2401.
compression to the model weights (Frantar et al., 2022a;                 16405.
Zhang et al., 2025), activations (Xiao et al., 2023), and KV
cache (Zhang et al., 2024a;b), while maintaining model
accuracy.                                                               Bisk, Y., Zellers, R., Gao, J., Choi, Y., et al. Piqa: Reasoning
                                                                          about physical commonsense in natural language. In Pro-
Sketching for Model Compression. Sketching techniques                     ceedings of the AAAI conference on artificial intelligence,

                                                                    9


===== PDF PAGE 10 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

  volume 34, pp. 7432–7439, 2020.                                    Dodge, J., Sap, M., Marasović, A., Agnew, W., Ilharco, G.,
                                                                       Groeneveld, D., Mitchell, M., and Gardner, M. Docu-
Chen, W., Wilson, J., Tyree, S., Weinberger, K., and Chen, Y.          menting large webtext corpora: A case study on the colos-
  Compressing neural networks with the hashing trick. In               sal clean crawled corpus. In Proceedings of the 2021
  International conference on machine learning, pp. 2285–             Conference on Empirical Methods in Natural Language
  2294. PMLR, 2015.                                                   Processing, pp. 1286–1305, 2021.

Clark, C., Lee, K., Chang, M.-W., Kwiatkowski, T., Collins,          Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle,
  M., and Toutanova, K. Boolq: Exploring the surprising               A., Letman, A., Mathur, A., Schelten, A., Yang, A., Fan,
  difficulty of natural yes/no questions, 2019. URL https:            A., et al. The llama 3 herd of models. arXiv preprint
  //arxiv.org/abs/1905.10044.                                          arXiv:2407.21783, 2024.
                                                                     Eban, E., Movshovitz-Attias, Y., Wu, H., Sandler, M., Poon,
Clark, P., Cowhey, I., Etzioni, O., Khot, T., Sabharwal,               A., Idelbayev, Y., and Carreira-Perpinán, M. A. Struc-
  A., Schoenick, C., and Tafjord, O. Think you have                    tured multi-hashing for model compression. In Proceed-
  solved question answering? try arc, the ai2 reasoning                ings of the IEEE/CVF Conference on Computer Vision
  challenge, 2018. URL https://arxiv.org/abs/                          and Pattern Recognition, pp. 11903–11912, 2020.
  1803.05457.
                                                                     Frantar, E. and Alistarh, D. Optimal brain compression:
Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H.,              A framework for accurate post-training quantization and
  Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano,            pruning. Advances in Neural Information Processing
  R., et al. Training verifiers to solve math word problems.           Systems, 35:4475–4488, 2022.
  arXiv preprint arXiv:2110.14168, 2021.
                                                                     Frantar, E., Ashkboos, S., Hoefler, T., and Alistarh, D. Gptq:
Daniely, A., Lazic, N., Singer, Y., and Talwar, K. Sketching           Accurate post-training quantization for generative pre-
  and neural networks. arXiv preprint arXiv:1604.05753,                trained transformers. arXiv preprint arXiv:2210.17323,
  2016.                                                                2022a.
                                                                     Frantar, E., Ashkboos, S., Hoefler, T., and Alistarh, D. Optq:
Desai, A. and Shrivastava, A. The trade-offs of model size in          Accurate quantization for generative pre-trained trans-
  large recommendation models: 100gb to 10mb criteo-tb                 formers. In The Eleventh International Conference on
  dlrm model. Advances in Neural Information Processing                Learning Representations, 2022b.
  Systems, 35:33961–33972, 2022.
                                                                     Guo, D., Rush, A., and Kim, Y. Parameter-efficient transfer
Desai, A. and Shrivastava, A. In defense of param-                     learning with diff pruning. In Zong, C., Xia, F., Li, W.,
  eter sharing for model-compression. arXiv preprint                   and Navigli, R. (eds.), Proceedings of the 59th Annual
  arXiv:2310.11611, 2023.                                             Meeting of the Association for Computational Linguistics
                                                                       and the 11th International Joint Conference on Natu-
Desai, A., Chou, L., and Shrivastava, A. Random offset                 ral Language Processing (Volume 1: Long Papers), pp.
  block embedding (robe) for compressed embedding tables               4884–4896, Online, August 2021. Association for Com-
  in deep learning recommendation systems. Proceedings                 putational Linguistics. doi: 10.18653/v1/2021.acl-long.
  of Machine Learning and Systems, 4:762–778, 2022.                    378. URL https://aclanthology.org/2021.
                                                                       acl-long.378/.
Desai, A., Zhou, K., and Shrivastava, A. Hardware-aware
  compression with random operation access specific tile             Han, Z., Gao, C., Liu, J., Zhang, J., and Zhang, S. Q.
  (roast) hashing. In International Conference on Machine              Parameter-efficient fine-tuning for large models: A com-
  Learning, pp. 7732–7749. PMLR, 2023.                                 prehensive survey, 2024. URL https://arxiv.
                                                                       org/abs/2403.14608.
Dettmers, T., Lewis, M., Shleifer, S., and Zettlemoyer,              He, H., Li, J. B., Jiang, X., and Miller, H. Sparse matrix in
  L. 8-bit optimizers via block-wise quantization. In                  large language model fine-tuning, 2025. URL https:
  International Conference on Learning Representations,               //arxiv.org/abs/2405.15525.
  2022. URL https://openreview.net/forum?
  id=shpkpVXzo3h.                                                    Hosseini, M. J., Hajishirzi, H., Etzioni, O., and Kushman,
                                                                       N. Learning to solve arithmetic word problems with verb
Dettmers, T., Pagnoni, A., Holtzman, A., and Zettlemoyer,              categorization. In Proceedings of the 2014 Conference
  L. Qlora: Efficient finetuning of quantized llms, 2023.              on Empirical Methods in Natural Language Processing
  URL https://arxiv.org/abs/2305.14314.                               (EMNLP), pp. 523–533, 2014.

                                                                10


===== PDF PAGE 11 =====
                           Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang,        Liberty, E. Simple and deterministic matrix sketching. In
  S., Wang, L., and Chen, W. LoRA: Low-rank adaptation                 Proceedings of the 19th ACM SIGKDD international con-
  of large language models. In International Conference                ference on Knowledge discovery and data mining, pp.
  on Learning Representations, 2022. URL https://                      581–588, 2013.
  openreview.net/forum?id=nZeVKeeFYf9.
                                                                     Ling, W., Yogatama, D., Dyer, C., and Blunsom, P. Program
Hu, Z., Wang, L., Lan, Y., Xu, W., Lim, E.-P., Bing, L.,               induction by rationale generation: Learning to solve and
 Xu, X., Poria, S., and Lee, R. Llm-adapters: An adapter               explain algebraic word problems. In Proceedings of the
  family for parameter-efficient fine-tuning of large lan-             55th Annual Meeting of the Association for Computa-
  guage models. In Proceedings of the 2023 Conference on               tional Linguistics (Volume 1: Long Papers), pp. 158–167,
 Empirical Methods in Natural Language Processing, pp.                 2017.
  5254–5276, 2023.
                                                                     Liu, J., Xiao, G., Li, K., Lee, J. D., Han, S., Dao, T., and
Jiang, A. Q., Sablayrolles, A., Mensch, A., Bamford, C.,               Cai, T. Bitdelta: Your fine-tune may only be worth one
   Chaplot, D. S., de las Casas, D., Bressand, F., Lengyel,            bit, 2024a. URL https://arxiv.org/abs/2402.
   G., Lample, G., Saulnier, L., Lavaud, L. R., Lachaux, M.-           10193.
   A., Stock, P., Scao, T. L., Lavril, T., Wang, T., Lacroix,        Liu, S.-Y., Wang, C.-Y., Yin, H., Molchanov, P., Wang,
   T., and Sayed, W. E. Mistral 7b, 2023. URL https:                   Y.-C. F., Cheng, K.-T., and Chen, M.-H.        Dora:
   //arxiv.org/abs/2310.06825.                                         Weight-decomposed low-rank adaptation. arXiv preprint
                                                                       arXiv:2402.09353, 2024b.
Kasiviswanathan, S. P., Narodytska, N., and Jin, H. Deep
  neural network approximation using tensor sketching.               Liu, W., Qiu, Z., Feng, Y., Xiu, Y., Xue, Y., Yu, L., Feng,
  arXiv preprint arXiv:1710.07850, 2017.                               H., Liu, Z., Heo, J., Peng, S., Wen, Y., Black, M. J.,
                                                                       Weller, A., and Schölkopf, B. Parameter-efficient orthog-
Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., and Iwasawa,              onal finetuning via butterfly factorization. In The Twelfth
 Y. Large language models are zero-shot reasoners. Ad-                 International Conference on Learning Representations,
  vances in neural information processing systems, 35:                 2024c. URL https://openreview.net/forum?
  22199–22213, 2022.                                                   id=7NzgkEdGyr.

Koncel-Kedziorski, R., Hajishirzi, H., Sabharwal, A., Et-            Lloyd, S. Least squares quantization in pcm. IEEE transac-
  zioni, O., and Ang, S. D. Parsing algebraic word prob-               tions on information theory, 28(2):129–137, 1982.
  lems into equations. Transactions of the Association for
  Computational Linguistics, 3:585–597, 2015.                        Longpre, S., Hou, L., Vu, T., Webson, A., Chung, H. W.,
                                                                       Tay, Y., Zhou, D., Le, Q. V., Zoph, B., Wei, J., et al. The
Koncel-Kedziorski, R., Roy, S., Amini, A., Kushman, N.,                flan collection: Designing data and methods for effec-
  and Hajishirzi, H. Mawps: A math word problem reposi-                tive instruction tuning. In International Conference on
  tory. In Proceedings of the 2016 conference of the north             Machine Learning, pp. 22631–22648. PMLR, 2023.
  american chapter of the association for computational lin-
                                                                     Loshchilov, I. and Hutter, F. Decoupled weight decay reg-
  guistics: human language technologies, pp. 1152–1157,
                                                                       ularization. In International Conference on Learning
  2016.
                                                                       Representations, 2019. URL https://openreview.
Kopiczko, D. J., Blankevoort, T., and Asano, Y. M. VeRA:               net/forum?id=Bkg6RiCqY7.
  Vector-based random matrix adaptation. In The Twelfth              Marcus, M. P., Santorini, B., and Marcinkiewicz, M. A.
  International Conference on Learning Representations,               Building a large annotated corpus of English: The
  2024. URL https://openreview.net/forum?                             Penn Treebank. Computational Linguistics, 19(2):313–
  id=NjNfLdxr3A.                                                      330, 1993. URL https://aclanthology.org/
                                                                      J93-2004/.
Li, B., Chen, J., and Zhu, J. Memory efficient optimiz-
  ers with 4-bit states. Advances in Neural Information              Merity, S., Xiong, C., Bradbury, J., and Socher, R. Pointer
  Processing Systems, 36:15136–15171, 2023a.                          sentinel mixture models, 2016. URL https://arxiv.
                                                                      org/abs/1609.07843.
Li, Y., Yu, Y., Liang, C., He, P., Karampatziakis, N.,
  Chen, W., and Zhao, T. Loftq: Lora-fine-tuning-aware               Merity, S., Xiong, C., Bradbury, J., and Socher, R. Pointer
  quantization for large language models, 2023b. URL                  sentinel mixture models. In International Conference on
  https://arxiv.org/abs/2310.08659.                                   Learning Representations, 2022.

                                                                11


===== PDF PAGE 12 =====
                           Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

Mihaylov, T., Clark, P., Khot, T., and Sabharwal, A. Can a           Ravi, S. Efficient on-device models using neural projections.
 suit of armor conduct electricity? a new dataset for open             In Chaudhuri, K. and Salakhutdinov, R. (eds.), Proceed-
 book question answering. In EMNLP, 2018.                              ings of the 36th International Conference on Machine
                                                                       Learning, volume 97 of Proceedings of Machine Learn-
Min, B., Ross, H., Sulem, E., Veyseh, A. P. B., Nguyen,                ing Research, pp. 5370–5379. PMLR, 09–15 Jun 2019.
 T. H., Sainz, O., Agirre, E., Heintz, I., and Roth, D.                URL https://proceedings.mlr.press/v97/
 Recent advances in natural language processing via large              ravi19a.html.
 pre-trained language models: A survey. ACM Computing
 Surveys, 56(2):1–40, 2023.                                          Roy, S. and Roth, D. Solving general arithmetic word
                                                                       problems. arXiv preprint arXiv:1608.01413, 2016.
Nagel, M., Amjad, R. A., Van Baalen, M., Louizos, C., and
                                                                     Sakaguchi, K., Bras, R. L., Bhagavatula, C., and Choi, Y.
  Blankevoort, T. Up or down? Adaptive rounding for
                                                                       Winogrande: An adversarial winograd schema challenge
  post-training quantization. In III, H. D. and Singh, A.
                                                                       at scale, 2019. URL https://arxiv.org/abs/
  (eds.), Proceedings of the 37th International Conference
                                                                       1907.10641.
  on Machine Learning, volume 119 of Proceedings of
  Machine Learning Research, pp. 7197–7206. PMLR, 13–                Sap, M., Rashkin, H., Chen, D., Le Bras, R., and Choi,
 18 Jul 2020. URL https://proceedings.mlr.                             Y. Social iqa: Commonsense reasoning about social
  press/v119/nagel20a.html.                                            interactions. In Proceedings of the 2019 Conference
                                                                       on Empirical Methods in Natural Language Processing
Pan, R., Liu, X., Diao, S., Pi, R., Zhang, J., Han, C., and            and the 9th International Joint Conference on Natural
  Zhang, T. Lisa: Layerwise importance sampling for                    Language Processing (EMNLP-IJCNLP), pp. 4463–4473,
  memory-efficient large language model fine-tuning, 2024.             2019.
  URL https://arxiv.org/abs/2403.17919.
                                                                     Shi, Y. and Anandkumar, A. Higher-order count sketch:
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J.,             Dimensionality reduction that retains efficient tensor op-
  Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga,            erations. In 2020 Data Compression Conference (DCC),
  L., et al. Pytorch: An imperative style, high-performance            pp. 394–394. IEEE, 2020.
  deep learning library. Advances in neural information
  processing systems, 32, 2019.                                      Sung, Y.-L., Nair, V., and Raffel, C. A. Training neural
                                                                       networks with fixed sparse masks. Advances in Neural
Patel, A., Bhattamishra, S., and Goyal, N. Are nlp models              Information Processing Systems, 34:24193–24205, 2021.
  really able to solve simple math word problems? In Pro-            Taori, R., Gulrajani, I., Zhang, T., Dubois, Y., Li,
  ceedings of the 2021 Conference of the North American                X., Guestrin, C., Liang, P., and Hashimoto, T. B.
  Chapter of the Association for Computational Linguistics:            Stanford alpaca: An instruction-following llama
  Human Language Technologies, pp. 2080–2094, 2021.                    model.      https://github.com/tatsu-lab/
                                                                       stanford_alpaca, 2023.
Peng, B., Li, C., He, P., Galley, M., and Gao, J. Instruc-
  tion tuning with gpt-4. arXiv preprint arXiv:2304.03277,           Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux,
  2023.                                                                M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E.,
                                                                       Azhar, F., Rodriguez, A., Joulin, A., Grave, E., and Lam-
Qin, H., Ma, X., Zheng, X., Li, X., Zhang, Y., Liu, S.,                ple, G. Llama: Open and efficient foundation language
  Luo, J., Liu, X., and Magno, M. Accurate lora-finetuning             models, 2023a. URL https://arxiv.org/abs/
  quantization of llms via information retention, 2024. URL            2302.13971.
  https://arxiv.org/abs/2402.05445.
                                                                     Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi,
Qiu, Z., Liu, W., Feng, H., Xue, Y., Feng, Y., Liu, Z.,                A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P.,
  Zhang, D., Weller, A., and Schölkopf, B. Controlling text-          Bhosale, S., Bikel, D., Blecher, L., Ferrer, C. C., Chen,
  to-image diffusion by orthogonal finetuning. Advances                M., Cucurull, G., Esiobu, D., Fernandes, J., Fu, J., Fu, W.,
  in Neural Information Processing Systems, 36:79320–                  Fuller, B., Gao, C., Goswami, V., Goyal, N., Hartshorn,
  79362, 2023.                                                         A., Hosseini, S., Hou, R., Inan, H., Kardas, M., Kerkez,
                                                                       V., Khabsa, M., Kloumann, I., Korenev, A., Koura, P. S.,
Raskutti, G. and Mahoney, M. W. A statistical perspec-                 Lachaux, M.-A., Lavril, T., Lee, J., Liskovich, D., Lu, Y.,
  tive on randomized sketching for ordinary least-squares.             Mao, Y., Martinet, X., Mihaylov, T., Mishra, P., Molybog,
  Journal of Machine Learning Research, 17(213):1–31,                  I., Nie, Y., Poulton, A., Reizenstein, J., Rungta, R., Saladi,
  2016.                                                                K., Schelten, A., Silva, R., Smith, E. M., Subramanian, R.,

                                                                12


===== PDF PAGE 13 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

  Tan, X. E., Tang, B., Taylor, R., Williams, A., Kuan, J. X.,        Zhang, L. and Amini, A. Label consistency in overfitted
  Xu, P., Yan, Z., Zarov, I., Zhang, Y., Fan, A., Kambadur,             generalized k-means. Advances in Neural Information
  M., Narang, S., Rodriguez, A., Stojnic, R., Edunov, S.,               Processing Systems, 34:7965–7977, 2021.
  and Scialom, T. Llama 2: Open foundation and fine-tuned
  chat models, 2023b. URL https://arxiv.org/                          Zhang, T. and Shrivastava, A. Leanquant: Accurate and scal-
  abs/2307.09288.                                                       able large language model quantization with loss-error-
                                                                        aware grid. In The Thirteenth International Conference
Wang, G., Cheng, S., Zhan, X., Li, X., Song, S., and Liu, Y.            on Learning Representations.
 Openchat: Advancing open-source language models with
 mixed-quality data. In The Twelfth International Confer-             Zhang, T., Yi, J., Xu, Z., and Shrivastava, A. Kv cache
 ence on Learning Representations, 2024. URL https:                     is 1 bit per channel: Efficient large language model in-
 //openreview.net/forum?id=AOJyfhWYHf.                                  ference with coupled quantization. Advances in Neural
                                                                        Information Processing Systems, 37:3304–3331, 2024a.
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Xia, F., Chi,
 E., Le, Q. V., Zhou, D., et al. Chain-of-thought prompting           Zhang, T., Yi, J., Yao, B., Xu, Z., and Shrivastava, A.
 elicits reasoning in large language models. Advances in                Nomad-attention: Efficient llm inference on cpus through
 neural information processing systems, 35:24824–24837,                 multiply-add-free attention. Advances in Neural Informa-
 2022.                                                                  tion Processing Systems, 37:112706–112730, 2024b.

Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C.,            Zhang, T., Sui, Y., Zhong, S., Chaudhary, V., Hu, X., and
 Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M.,               Shrivastava, A. 70% size, 100% accuracy: Lossless
 et al. Transformers: State-of-the-art natural language                 llm compression for efficient gpu inference via dynamic-
 processing. EMNLP 2020, pp. 38, 2020.                                  length float. arXiv preprint arXiv:2504.11651, 2025.

Wu, Z., Arora, A., Wang, Z., Geiger, A., Jurafsky, D.,                Zhao, J., Zhang, Z., Chen, B., Wang, Z., Anandkumar,
 Manning, C. D., and Potts, C. Reft: Representation                     A., and Tian, Y. Galore: Memory-efficient llm training
 finetuning for language models, 2024. URL https:                       by gradient low-rank projection, 2024. URL https:
 //arxiv.org/abs/2404.03592.                                            //arxiv.org/abs/2403.03507.

Xiao, G., Lin, J., Seznec, M., Wu, H., Demouth, J., and Han,          Zheng, L., Chiang, W.-L., Sheng, Y., Zhuang, S., Wu, Z.,
  S. Smoothquant: Accurate and efficient post-training                  Zhuang, Y., Lin, Z., Li, Z., Li, D., Xing, E. P., Zhang,
  quantization for large language models. In International              H., Gonzalez, J. E., and Stoica, I. Judging llm-as-a-judge
  Conference on Machine Learning, pp. 38087–38099.                      with mt-bench and chatbot arena, 2023. URL https:
  PMLR, 2023.                                                           //arxiv.org/abs/2306.05685.

Xu, Z. Compression-aware computing for scalable and
  sustainable ai. In Proceedings of the AAAI Conference
  on Artificial Intelligence, volume 39, pp. 28733–28733,
  2025.
Yang, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Li,
  C., Liu, D., Huang, F., Wei, H., et al. Qwen2. 5 technical
  report. arXiv preprint arXiv:2412.15115, 2024a.
Yang, X., Leng, J., Guo, G., Zhao, J., Nakada, R., Zhang,
  L., Yao, H., and Chen, B. S2 ft: Efficient, scalable and
  generalizable llm fine-tuning by structured sparsity. arXiv
  preprint arXiv:2412.06289, 2024b.
Yin, J., Dong, J., Wang, Y., De Sa, C., and Kuleshov,
  V. Modulora: Finetuning 3-bit llms on consumer gpus
  by integrating with modular quantizers. arXiv preprint
  arXiv:2309.16119, 2023.
Zellers, R., Holtzman, A., Bisk, Y., Farhadi, A., and
  Choi, Y. Hellaswag: Can a machine really finish your
  sentence?, 2019. URL https://arxiv.org/abs/
  1905.07830.

                                                                 13


===== PDF PAGE 14 =====
                           Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation


Appendix
A. Mathematical Notations
A summary of the mathematical notations used in the paper is presented in Table 5.


                                             Table 5. Notations used in the paper.
        Notation              Type        Explanations
                              +    +
         r, c               Z ,Z          The number of rows and columns in a weight matrix
          k                   Z+          The number of compressed columns in sketches
       W, w                 r×c
                          R , R1×c        A weight matrix, a row of the weight matrix
 Wsketched , wsketched    Rr×k , R1×k     The sketched parameters of a weight matrix, the sketched parameters of a row
       Ŵ, ŵ             Rr×c , R1×c     The reconstructed weight matrix and row from sketched parameters
          S                  Rc×k         The sketching matrix for compression, where wS = wsketched
         M                 {0, 1}k×c      The mapping matrix for reconstruction, where ŵ = wsketched M


B. Calculating Errors of Weight Update Approximation
In this section, we describe the details for calculating the approximation errors of weight updates using low-rank matrices
and sketching. We use the update ∆ of two fully fine-tuned models: 1. openchat/openchat-3.5-1210 (Wang et al.,
2024) from the base model meta-llama/Meta-Llama-3-8B (Dubey et al., 2024), 2. Qwen/Qwen2.5-Coder-7B
from the base model Qwen/Qwen2.5-7B (Yang et al., 2024a).
                                                         ˆ F
We use the metric of normalized approximation error ∥∆−  ∆∥           ˆ
                                                       ∥∆∥F , where ∆ is the best approximation of ∆ achievable using
                                                                    ˆ using the first r dominant entries of singular value
low-rank matrices or sketching. For low-rank matrices, we calculate ∆
decomposition (SVD), where r is the rank of the low rank matrices. For sketching, we first sketch the models using the
SketchTune algorithm to derive the row-wise mapping matrix M. Then, we calculate a row of the optimal approximation δ̂
as
                                              δ̂ = M(M⊤ M)−1 M⊤ δ                                                     (10)

C. Calculating Total Number of Sketched Parameters
In this section, we detail the method for calculating the number of trainable parameters in a SketchTune model. Our approach
involves sketching all linear projection layers within a LLM, excluding the token embedding layer and the final prediction
head layer.
Each row of the weight matrix in these projection layers is divided into g sketching groups, where g represents the Groups
Per Row (GPR) configured prior to sketching. Utilizing an n-bit weight representation, each parameter within a sketching
group is encoded using an n-bit integer, allowing for 2n distinct values. Consequently, the number of trainable parameters
for each linear projection layer is calculated as:

                                     Trainable Parameters = Number of Rows × g × 2n

To illustrate, consider sketching the LLaMA-2-7B model with GPR = 4 and INT4 weight representation. Each transformer
layer in the LLaMA-2-7B model includes key, query, value, and output projection layers with dimensions 4096 × 4096, as
well as Multi-Layer Perceptron (MLP) layers sized 4096 × 11008 (down), 11008 × 4096 (up), and 11008 × 4096 (gate).
For all 32 transformer layers, the total number of trainable parameters is:

              Total Trainable Parameters = 32 × 4 × 24 × (4096 × 4 + 4096 + 11008 × 2) = 87, 031, 808

Given that the full model comprises 6,738 million parameters, this results in a compression ratio of approximately 77×.

                                                             14


===== PDF PAGE 15 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

D. Details of Row-Wise Sketch Learning
We denote the weight reconstruction error δ and the loss error ϵ, where

                                           δ ≜ ŵ − w,      ϵ ≜ L(w + δ) − L(w).                                         (11)

Our objective is to solve for the optimal weight update δ to apply to the weights w such that the loss error ϵ is minimized.
The learning process then proceeds as follows: we sequentially learn and fix the i-th column of the mapping matrix, denoted
as M:,i , during the i-th step. At each step, based on the loss error ϵi introduced by the current mapping, we solve for the
optimal weight update δ i that minimizes ϵi , and apply the update to the unmapped original weights. This process is repeated
until all columns of M have been fixed.
To simplify solving for δ, we use a second-order Taylor expansion to approximate the loss error ϵ (Nagel et al., 2020):

                                        ∂L ⊤     1                      ∂2L
                                     ϵ≈(    ) δ + δ ⊤ Hδ, where H =         ,
                                        ∂w       2                      ∂w2
                                       1              ∂L
                                      ≈ δ ⊤ Hδ, since    ≈ 0 in a pre-trained LLM.                                       (12)
                                       2              ∂w

For the Hessian H, we approximate it by leveraging the second-order derivative of Equation 2, where H = 2XX⊤ . In
practice, we compute X using a small calibration dataset consisting of 128 sequences of 2048 tokens sampled from the C4
dataset (Dodge et al., 2021). Equation 12 can now be solved with a Lagrangian (Frantar & Alistarh, 2022), which yields the
following solutions for δ i and ϵi :

                                     wsketched M:,i − wi −1         1 (wsketched M:,i − wi )2
                              δi =             −1       H:,i , ϵi =                           .                          (13)
                                            Hi,i                    2          H−1
                                                                                 i,i


where H−1     −1
       i,i , H:,i , is the i-th diagonal entry, and the i-th column of the Hessian, respectively.

From the solution of ϵi , we gain two key insights towards minimizing the loss error:
                                                                                   1
                                        ϵi ∝ (wsketched M:,i − wi )2 ,     ϵi ∝        .                                 (14)
                                                                                  H−1
                                                                                   i,i

These two facts lead to two takeaways: 1. Since the loss error is proportional to the squared difference between the sketched
parameter and the original parameter, a column of M should always be set to map an original parameter to its nearest
sketched parameter. 2. As the loss error is proportional to the inverse Hessian diagonals, the sketched parameters should be
optimized to prioritize preserving the precision of weights with larger inverse Hessian diagonals. Therefore, to learn the set
of k sketched parameters, we perform clustering to derive k centers from the c original parameters. We further leverage
the learning objective proposed by Zhang & Shrivastava to emphasize preserving parameters with outlier inverse Hessian
diagonals:
                                               X  1 s                                   2
                                    arg min           −1      RTN(wi , wsketched ) − wi ,                                 (15)
                                  wsketched ∈Rk i   Hi,i

where RTN(wi , wsketched ) (round-to-nearest operator) maps the parameter wi to the nearest sketched parameter in
wsketched , and s is a hyperparameter controlling the emphasis on preserving outliers in the inverse Hessian diagonals. In our
experiments, we set s = 3.

E. CUDA Kernel Implementation Details
We develop custom CUDA kernels for efficient training and inference of SketchTune. Specifically, we develop two dedicated
CUDA kernels: 1. A kernel for weight reconstruction, which computes Ŵ from Wsketched . 2. A kernel for gradient
computation of the sketched parameters, which calculates ∂W∂Lsketched        Ŵ
                                                                      from ∂∂L  .
During training, the approximate weights Ŵ are only reconstructed when needed and not kept in memory to save memory
usage. For the weight reconstruction kernel, each thread block is responsible for reconstructing a single row of weights by
computing ŵ = wsketched M. The mapping matrix M is stored in a packed integer format. Each thread block allocates

                                                              15


===== PDF PAGE 16 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

sufficient shared memory to cache wsketched (utilizing only 32 bytes for k = 16). It then reads the integer indices from M
to perform low-latency lookups from wsketched in shared memory and writes the retrieved entries of ŵ to global memory.

For the gradient computation kernel, each thread block handles the computation of the gradient for a single row
of sketched parameters, specifically calculating
                                                         ∂L            ∂L ⊤
                                                                   =        M .
                                                     ∂wsketched        ∂ ŵ
                                                          ∂L
Each thread block allocates enough memory to cache ∂wsketched     t times, where t is the number of threads in each thread
block. Threads within the same thread block reads different entries of ∂∂L
                                                                         ŵ and accumulates the values into its own copy of
   ∂L
∂wsketched . Since each thread maintains its own accumulator, atomic operations are unnecessary for ensuring consistency.
Finally, an aggregation step combines the intermediate results from all threads to produce the final gradient.

F. Theory
For the sake of analysis, consider a square matrix Ŵ : n × n of post-quantized weights, where c = r = n. Let the true
update under full-scale fine-tuning be ∆. Let ∆l be the low-rank approximation learned via Low-rank methods. Let ∆s be
the sketch-based adaptation learned via methods such as SketchTune. Let the compression factor be α. For simplicity, we
assume that α ∈ N and α|n.

Errors with low-rank approximation Under the learning, the best approximation of the ∆ under low-rank methods can
be given by Eckart-Young-Mirsky theorem,
                                                           n                          n/2k
                                                           X                          X
                                       ||∆ − ∆l ||2F =              ρ2i = ||∆||2F −          ρ2i                      (16)
                                                         i=n/2k+1                     i=1


where ρi is the ith largest singular value.

Errors with SketchTune Consider a single row of the matrix w : 1 × n, the sketched matrix wsketched : 1 × k, the
mapping discovered M : k × n. Consider how SketchTune approximates the true corresponding row in ∆, say δ. It tries to
learn the best possible solution inside the row-subspace(M). To analyze the errors, we will make the following assumptions,

   • For ease of exposition, we assume the mapping M is a balanced mapping where each parameter in wsketched is used
     equal number of times.
   • Since δ is not known apriori, we assume that mapping M is a random w.r.t δ with the distribution over M being the
     random-fold mapping defined in (Desai & Shrivastava, 2023).

Under these assumptions, we can analyze the error incurred by SketchTune while approximating ∆i . The load of each
parameter in wsketched is α = n/k. The approximation error can be written as follows.

                                                                       P                       !2
                                                                        j,h(i)=h(j)) g(j)δj
                                                     X
                                    ||δs − δ||22 =        δi − g(i)                                                   (17)
                                                     i
                                                                               α
                                                                                                    
                                                 X (α − 1)2       1                   X
                                E ||δs − δ||22 =            δi2 + 2                                δj2 
                                              
                                                   
                                                        2
                                                                                                                      (18)
                                                 i
                                                      α          α
                                                                                  j̸=i,h(j)=h(i)


The δj appears in α − 1 other terms. So aggregating,

                                                                   (α − 1)2 2 α − 1 2
                                                                                              
                                                     X
                                      E ||δs − δ||22 =                     δi +    δ                                  (19)
                                                           i
                                                                      α2        α2 i

                                                               16


===== PDF PAGE 17 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

                                                                           X  (α − 1)                
                                                  ||δs − δ||22                                  δi2
                                                                 
                                              E                      =                                                    (20)
                                                                               i
                                                                                          α

                                                                 (α − 1)
                                                  E ||δs − δ||22 =        ||δ||22                                         (21)
                                                                     α
Considering all the rows together and linearity of expectations,

                                                              (α − 1)
                                               E ||∆s − ∆||22 =        ||∆||22                                            (22)
                                                                  α

It is important to note that depending on the ∆, one of the approximations will be better than the other. For instance, if ∆ is
indeed low-rank, then LoRA will be the best approximation to use. We will show that if ∆ is near full rank, then Sketching
dominates LoRA-based approximations. We quantify this observation below,
Let the squared singular values, indexed by i and sorted in the descending order, be represented by power-law i−η
parameterized by coefficient η. If η = 0, then all the singular values are 1, and as η increases, the ∆ becomes more low-rank.
η = 1 implies logarithmic sparsity. So we assume η ∈ [0, 1)


                                                          ρ2i = ρ2 (i) = i−η                                              (23)

Since ρi is monotonically decreasing, it can be bounded as follows,

                                       Z n+1                  n
                                                              X                           Z n
                                                  2
                                               ρ (x)dx ≤                   ρ2i ≤ 1 +             ρ2 (x)dx                 (24)
                                        x=1                      i=1                       x=1


                                                   n+1 X n             1−η n
                                              x1−η
                                          
                                                                        x
                                                       <     ρ2i < 1 +                                                    (25)
                                              1−η 1      i=1
                                                                        1 −η 1

                                                      n
                                 1                 X               1
                                    (n + 1)1−η − 1 <     ρ2i < 1 +     n1−η − 1
                                                                               
                                                                                                                          (26)
                                1−η                  i=1
                                                                   1−η

                                                      n
                                 1                 X               1
                                    (n + 1)1−η − 1 <     ρ2i < 1 +     n1−η − 1 = R(n)
                                                                               
                      L(n) =                                                                                              (27)
                                1−η                  i=1
                                                                   1−η

Let us quantify the η for which Sketching dominates Low-rank. Under the budget k for each row, α = n/k. Sketching is
superior in expectation if,


                                               E ||∆s − ∆||2F < ||∆l − ∆||2F
                                                             
                                                                                                                          (28)
which requires,

                                                                                   n/2α
                                                            n
                                                                           !
                                                      1     X                      X
                                                                     ρ2i       >          ρ2i                             (29)
                                                      α     i=1                    i=1


Using the bounds defined above,
                                                          1
                                                            L(n) > R(n/2α)                                                (30)
                                                          α

For large n, we can approximate the ratio as

                                                                       17


===== PDF PAGE 18 =====
                             Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation




Figure 4. Depending on the power-law coefficient in the singular values (a soft proxy for rank) of the unknown ∆ matrix, one method
dominates the other. We show this classification for a sample case of n = 1024 and k = 2



                                                         1          1−η
                                                                           
                                             1
                                             α L(n)   1 1−η (n + 1)     −1
                                                    =                                                                       (31)
                                            R(n/2α)   α1+ 1      n1−η
                                                                    1−η − 1
                                                                    1−η      (2α)


                                                    1                        1
                                                    α L(n)         1     1−η
                                                               =      1     1                                                 (32)
                                                  R(n/2α)          α 1−η (2α)1−η


                                                      1
                                                      α L(n)            1    1
                                                                   =                                                          (33)
                                                     R(n/2α)            α (2α)11−η

This fraction is equal to 1 when
                                                          α = (2α)1−η                                                         (34)
Thus,
                                                                     log(α)
                                                        η =1−                                                                 (35)
                                                                    log(2α)
                                                                                h               i
                                                                                         log(α)
Thus Sketching dominates the low-rank approximation on average in the region η ∈ 0, 1 − log(2α)   . An example of the
bounds is shown in figure 4
Theorem F.1. Consider a matrix ∆ : n × n with sorted (descending) singular values {ρi }ni=1 , squares of which are drawn
from power law i−η parameterized by coefficient η. Under the compression factor α (i.e. using n2 /α parameters), let
low-rank approximation and sketch approximation be ∆l and ∆s respectively. Then, the low-rank error is

                                                                                 n/2k
                                                                                 X
                                                ||∆ − ∆l ||2F = ||∆||2F −               ρ2i                                   (36)
                                                                                 i=1

                                                                   18


===== PDF PAGE 19 =====
                             Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

The expected error of random-fold sketching approximation is ,
                                                                                 n
                                                                                             !
                                                                         1       X
                                           E(||∆ − ∆l ||2F ) = ||∆||2F −               ρ2i                                       (37)
                                                                         α       i=1

For large enough n, the expected sketching approximation error is smaller than the low-rank approximation error if
                                                                    
                                                              log(α)
                                                η ∈ 0, 1 −                                                         (38)
                                                             log(2α)

G. Model Sketching Details

Table 6. Perplexity of SketchTune, without fine-tuning, on WikiText-2, PTB, and C4 compared to full model. We also report the overhead
of sketching time.
                                                    Model Size     Sketching Time
              Model          Data Type     GPR                                           WikiText-2 ↓    PTB ↓    C4 ↓
                                                      (GB)           (minutes)
                                FP16          -          -                 -                     5.68    41.15    7.34
                                INT2         4          3.89             34.93                   12.37   199.47   15.10
                                INT3         4          3.93             37.86                   6.29    48.92    8.11
              Llama-7B
                                INT4         1          3.89             35.03                   5.82    44.22    7.53
                                INT4         2          3.93             40.06                   5.81    43.49    7.51
                                INT4         4          4.02             49.58                   5.82    43.44    7.51
                                INT4         8          4.19            106.28                   5.77    43.12    7.50
                                FP16          -          -                 -                     5.09    28.10    6.80
                                INT2         4          7.14             60.58                   9.23    63.68    11.08
                                INT3         4          7.21             64.18                   5.55    30.15    7.30
              Llama-13B
                                INT4         1          7.14             62.70                   5.20    27.67    6.91
                                INT4         2          7.21             71.28                   5.20    28.34    6.91
                                INT4         4          7.36             88.97                   5.18    28.51    6.90
                                INT4         8          7.67            112.43                   5.20    28.04    6.90
                                FP16          -          -                 -                     5.47    37.91    7.26
                                INT2         4          3.92            35.20                    15.91   166.08   18.48
                                INT3         4          3.97            38.13                    6.14    42.46    8.13
              Llama-2-7B
                                INT4         1          3.92            33.24                    5.67    52.39    7.46
                                INT4         2          3.97            38.91                    5.62    47.09    7.45
                                INT4         4          4.05            48.10                    5.61    43.07    7.43
                                INT4         8          4.23            66.91                    5.62    38.93    7.44
                                BF16          -          -                 -                     6.14    11.18    9.45
                                INT2         4          5.77             74.63                   28.52   36.04    30.79
                                INT3         4          5.81             78.83                   7.73    12.87    12.09
              Llama-3-8B
                                INT4         1          5.77             69.56                   6.59    11.59    10.18
                                INT4         2          5.81             79.00                   6.54    11.63    10.12
                                INT4         4          5.92             88.83                   6.52    11.52    10.09
                                INT4         8          6.10            106.28                   6.47    11.49    10.00


We performed model sketching using C4 (Dodge et al., 2021) as calibration dataset (for computing the Hessian H for model
sketching), consisting of 128 sample sequences each with 2048 tokens.
All model are sketched using a single Nvidia Quadro RTX8000 GPU. In Table 6, we provide details on model sketching
overhead (sketching time), as well as perplexity comparisons against the original models on WikiText-2 (Merity et al., 2022),
PTB (Marcus et al., 1993), and C4 (Dodge et al., 2021) dataset, using 128 sequences of 2048 tokens each.
While SketchTune introduces an additional sketching step before fine-tuning, this preprocessing is fast, resource-efficient,
and one-time per base model. In Table 7, we report additional end-to-end sketching time and memory usage (INT4, GPR=4)
for different sized models, using a single A100-40GB GPU and the aforementioned calibration setup.

                                                                 19


===== PDF PAGE 20 =====
                            Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation


Table 7. End to end sketching time (using INT4, GPR=4 setup) for different sized models on a single A100-40GB GPU. Thanks to our
layer-wise optimization objective (equation (1)), the sketching process scales efficiently to large models (70B).
    Model              Original Size (GB)      Sketched Size (GB)       Max GPU Mem (GB)           Sketching Time (min)
    Llama-3.2-3B               6.43                     3.18                     9.92                       20.70
    Llama-3.1-8B              16.07                     5.92                     18.37                      41.62
    Llama-3.1-70B             141.12                   40.15                     28.05                     266.87



H. Dataset Information
Math Problem-Solving To fine-tune and evaluate on math problem solving tasks, we fine-tuned our models on the Math10K
dataset (Hu et al., 2023), which includes the training set from GSM8K (Cobbe et al., 2021), AQuA (Ling et al., 2017), and
MAWPS (Koncel-Kedziorski et al., 2016) and agumented with language model generated chain-of-thoughts steps. We
performed evaluation on 7 math datasets: MultiArith (Roy & Roth, 2016), GSM8K (Cobbe et al., 2021), AddSub (Hosseini
et al., 2014), AQuA (Ling et al., 2017), SingleEQ (Koncel-Kedziorski et al., 2015), SVAMP (Patel et al., 2021), and
MAWPS (Koncel-Kedziorski et al., 2016). For each test sample, the model performs generation. And a final answer is
extracted to calculate model’s response accuracy.

Commonsense Reasoning The commonsense reasoning tasks consists of questions from 8 different datasets:
BoolQ (Clark et al., 2019), PIQA (Bisk et al., 2020), SIQA (Sap et al., 2019), HellaSwag (Zellers et al., 2019),
WinoGrande (Sakaguchi et al., 2019), Arc-e, Arc-c (Clark et al., 2018), and OBQA (Mihaylov et al., 2018). The training set
consists of training data from all 8 datasets, formatted using a consistent pre-defined template (Hu et al., 2023), resulting in
170K samples. The test set from each dataset is then used individually to evaluate the fine-tuned model’s performance.

WikiText-2 The WikiText-2 dataset (Merity et al., 2016) consists of 44.8k training data, consisting of 36.7K
training data, 3.76K validatiaon data, and 4.36K test data. Following LoftQ (Li et al., 2023b), we used the training set to
perform fine-tuning, and the validataion set to evaluate fine-tuned model’s performance.

MT-Bench The MT-Bench dataset (Zheng et al., 2023) is a set of 80 challenging multi-turn open-ended ques-
tions across 8 categories: writing, humanities, STEM, extraction, coding, math, reasoning, and roleplay.

Alpaca We used the Alpaca dataset (Taori et al., 2023) to evaluate SketchTune’s performance on language gener-
ation tasks. The Alpaca dataset consist of 52K training samples, with no test or validation split. The responses are generated
with the text-davinci-003 engine. Alpaca-GPT4 (Peng et al., 2023) is a similar dataset, which contains outputs generated by
GPT-4 using the same prompts as the original Alpaca dataset. We adopted the FastChat framework from Zheng et al. (2023)
to perform pair-wise compitition, using GPT-4o as a judge for model generation quality.

I. Experimental Settings
In this section, we provide a comprehensive overview of the training and evaluation settings employed in our experiments
and benchmarks. We begin by detailing the hyperparameter configurations used for each experiment. Following this, we
describe the training and generation settings utilized to profile the training and inference efficiency of SketchTune.

I.1. Hyperparameter Selection
I.1.1. C OMPARISON WITH PEFT M ETHODS
We followed experimental settings described in S2 FT (Yang et al., 2024b). We used AdamW (Loshchilov & Hutter, 2019)
optimizer for all our experiments. The optimal hyperparamters chosen to produce the final results are provided in Table 8.

I.1.2. C OMPARISON WITH C OMPRESSIVE F INE -T UNING
For comparing with QLoRA and LoftQ, we followed the experimental settings described in LoftQ (Li et al., 2023b). We
used AdamW (Loshchilov & Hutter, 2019) optimizer for all our experiments. The optimal hyperparameters chosen to

                                                               20


===== PDF PAGE 21 =====
                              Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation


        Table 8. Hyperparameter selections for fine-tuning SketchTune on math reasoning and commonsense reasoning tasks.
        Task              Model             LR      Optimizer      Batch Size    Epochs       LR Scheduler            Warmup Steps
                          Llama-7B
        Math              Llama-13B      8×10-5      AdamW             16             4               linear               100
        Reasoning         Llama-2-7B
                          Llama-3-8B     3×10-5      AdamW             16             4               linear               100
                          Llama-7B
        Commonsense       Llama-13B      8×10-5      AdamW             64             2               linear               100
        Reasoning         Llama-2-7B
                          Llama-3-8B     2×10-5      AdamW             64             2               linear               100


produce the final results are provided in Table 9.


                 Table 9. Hyperparameter selections for fine-tuning SketchTune on WikiText-2 and GSM8K tasks.
               Task           Model               LR        Optimizer       Batch Size       Epochs            LR Scheduler
                              Llama-2-7B
               WikiText-2                        3×10-5      AdamW               4                4               cosine
                              Llama-2-13B
                              Llama-2-7B
               GSM8k                             8×10-5      AdamW               16               4               cosine
                              Llama-2-13B


I.1.3. I NSTRUCTION F INE -T UNING
For instruction fine-tuning tasks on Mistral-7B, we trained on the Alpaca-GPT4 dataset for one epoch. We employed a
learning rate of 8 × 10−6 , AdamW (Loshchilov & Hutter, 2019) for optimizer, linear LR scheduler, and a batch size of 16
with 100 warmup steps.

I.2. Efficiency Evaluation Settings
Details on memory and speed efficiency evaluation settings are provided in Table 10.


                                  Table 10. Efficiency evaluation settings for inference and training
                      Stage        Metric                       Context Length            Batch Size       Warmup
                                                                       4000                   1                  10
                                   Time to First Token
                                                                       8000                   1                  10
                      Inference                                        2000                   1                  10
                                   Decoding Latency
                                                                       2000                   8                  10
                                   Peak Memory                         10000                  1                  10
                                   Training Latency                     512                   1                  10
                      Training
                                   Training Peak Memory                 512                   1                  10



J. Comparison against Sparse Adapters
Table 11 presents additional accuracy results of fine-tuned Llama models on the commonsense reasoning tasks using
SketchTune and sparsity based PEFT methods, including SpIEL (Ansell et al., 2024) and SMT (He et al., 2025). For
SketchTune, we use the INT4 data representation and GPR=4 for model sketching, while baseline methods use the original
weights. SketchTune is able to achieve better or comparable accuracy consistently across different tasks while using

                                                                  21


===== PDF PAGE 22 =====
                               Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation

2.71 − 3.54× smaller base models.

Table 11. Accuracy of SketchTune compared to sprasity-based PEFT methods for fine-tuning Llama models on commonsense reasoning
datasets. Baseline results are taken from He et al. (2025). SketchTune achieve better or comparable accuracy while using sketched models
that are smaller than the full base models used by baseline methods.
                                   Base Model Trainable
 Model          Method                                  BoolQ PIQA SIQA HellaSwag Wino ARC-e ARC-c OBQA Avg.
                                      (GB)    Param(M)
                SpIEL                 13.48         56.6      67.7     81.2   78.6           84      80.2   78.3     62.8   78.8   76.5
 LLaMA-7B       SMT(Best)             13.48        330.9       72      82.9   80.7          93.3     82.4   86.1     70.6    83    81.4
                SketchTuneGPR=4       4.02         87.0       72.1     85.6   80.2          93.7     84.6   86.2     71.0   84.8   82.3
           SpIEL                      26.03         45.8      73.2     84.3   81.4          91.2     84.1   83.1     68.8   82.8   81.1
 LLaMA-13B SMT(Best)                  26.03        330.9      72.6     86.1   81.9           95      86.1   88.2     77.1   87.4   84.3
           SketchTuneGPR=4            7.36         136.3      73.9     87.4   82.5          95.6     86.1   90.3     75.7   89.4   85.1
            SpIEL                     13.48         55.9      70.5     80.6   80.8          85.8     83.4   81.2     65.8   81.8   78.3
 LLaMA-2-7B SMT(Best)                 13.48        330.9      72.6     85.2    82           94.4     85.7   87.8     74.5    85    83.4
            SketchTuneGPR=4           4.05         87.0       73.3     86.2   81.2          94.1     85.4   87.6     75.2   85.8   83.6
            SpIEL                     16.06         47.2      72.1     83.6    80           91.8     85.4   91.2     76.8   80.8   82.7
 LLaMA-3-8B SMT(Best)                 16.06        202.8      75.1     89.9   82.4          96.3     88.8   92.6     82.8   89.6   87.2
            SketchTuneGPR=4           5.92         88.1       75.0     90.2   82.7          95.9     88.2   92.6     82.1   89.4   87.0




K. LLM-as-a-judge Comparison with LoftQ

                                 Table 12. LLM-as-a-judge evaluation between SketchTune and LoftQ
                Method                 Data Type       Win     Loss     Tie    Win Rate            Loss Rate   Tie Rate
                LoftQrank=64               NF4          93      147      60          0.31            0.49          0.39
                SketchTuneGPR=8           INT4         147      93       60          0.49            0.31          0.61

In this section, we evaluate the performance of SketchTune in comparison to LoftQ on language generation tasks using
the LLM-as-a-judge framework (Zheng et al., 2023). Both methods were fine-tuned on the Llama-3-8B model (Dubey
et al., 2024) using 4,096 randomly selected inputs from the Alpaca dataset (Taori et al., 2023). The fine-tuned models then
generated responses on 300 distinct test inputs, which were also randomly sampled from the same dataset. GPT-4o was used
as a judge to evaluate the models’ generation quality. As illustrated in Table 12, SketchTune achieved a win-loss ratio of
0.61 against LoftQ, demonstrating superior language generation capabilities.

L. Math Evaluations: Regular Expression Matching vs. LLM-Based Judging
For the experimental results in Table 1, we adopt the evaluation approach used in prior works (Hu et al., 2023; Yang et al.,
2024b), where the last number in an LLM’s response is extracted via regular expression matching and treated as the predicted
answer. For instance, if an LLM outputs “Thus, Alice would need 570 tiles to cover 36 sqft area.”, the method extracts 36 as
the answer. However, this extraction is incorrect, as the intended answer is 570, but the regex-based approach mistakenly
identifies 36.
To address this issue, we propose a more reliable evaluation method using an LLM as the answer extractor. Specifically, we
use o3-mini to extract the final answer from each response. We observe that this LLM-based judging improves accuracy
on math datasets by several percentage points compared to regular expression matching. Table 13 presents a detailed
comparison of results for LoRA, DoRA, and our proposed method, SketchTune.




                                                                  22


===== PDF PAGE 23 =====
                        Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation




             Table 13. Accuracy score comparison between LLM-based judgement and regex-based extraction.
                                                                                                   Sketch-   Sketch-
Dataset Eval Method LoRAr=2 LoRAr=4 LoRAr=8 LoRAr=16 DoRAr=2 DoRAr=4 DoRAr=8 DoRAr=16
                                                                                                  TuneGPR=4 TuneGPR=8
        Regex          28.3     28.7     25.2      24.4        25.6    26.8     26.0      25.6       28.7     29.1
AQuA
        o3-mini        39.8     34.6     39.0      38.6        35.0    35.4     38.2      37.4       37.0     39.0
        Regex          66.9     66.3     69.2      68.8        66.3    67.2     68.8      69.4       68.2     68.8
GMS8K
        o3-mini        68.8     69.4     71.0      71.0        68.3    69.4     70.9      72.0       71.6     71.4




                                                          23
