Gradient Spectra at the Pretrained Point as One-Round Federated Adapter Search

When many devices fine-tune a shared pretrained model without pooling their data, a setting called federated learning, someone still has to decide where the small trainable add-on modules go and how large each one is. These modules, called adapters, are usually low-rank matrices (LoRA) attached to selected layers. Current federated architecture search answers that question at great cost. FedNAS, FedorAS and SuperFedNAS train a weight-sharing "supernet" from random weights over hundreds of rounds before any search happens. PerFIT prunes adapters iteratively across many rounds. Most systems in practice skip the question and attach the same adapter to every layer on every device.

We propose to answer it with one backward pass per client and a single upload. At pretrained weights, unlike at random initialization, the gradient of a client's loss with respect to each weight matrix says which direction that client's task wants the layer to move. The singular value spectrum of that gradient says how much a rank-$r$ update at that layer could reduce the loss, to first order. Comparing the spectrum of the summed gradient across clients with the clients' individual gradients shows, layer by layer, whether clients agree. Where they agree, adapter capacity should be shared. Where they disagree, it should be kept private. The proposal is to turn these quantities into a budgeted, hardware-tiered adapter architecture chosen in one communication round, and to test whether this cheap score actually ranks configurations by their final accuracy.

Core Claim

Zero-cost proxies are scores computed from one forward and backward pass on an untrained network. They were designed to measure the trainability of a topology at random initialization, as in Zero-Cost Proxies for Lightweight NAS, EZNAS and NAS-Bench-Suite-Zero. In federated transfer learning, the topology is fixed by the pretrained backbone. The open choice is where to add capacity and how much. We claim that a task-aware score evaluated at the pretrained point predicts the final federated accuracy of adapter configurations far better than classical proxies do. We further claim that its cross-client version yields a placement, rank, and shared/private split matching or beating multi-round adapter search at a small fraction of the search cost.

The score has a simple justification. Let $G_\ell$ be the gradient of the loss with respect to layer $\ell$'s weight matrix at the pretrained weights, with singular values $\sigma_1 \ge \sigma_2 \ge \dots$. Among all rank-$r$ updates $\Delta W$ with Frobenius norm $\eta$, the largest first-order loss decrease is

$$ \max_{\mathrm{rank}(\Delta W)\le r,\ \|\Delta W\|_F=\eta} \langle G_\ell, \Delta W\rangle = \eta \sqrt{\textstyle\sum_{i\le r} \sigma_i(G_\ell)^2}, $$

which follows from the best rank-$r$ approximation of $G_\ell$. The score $s_\ell(r)=\sum_{i\le r}\sigma_i(G_\ell)^2$ therefore prices each candidate (layer, rank) pair.

For $K$ clients with local gradients $G_\ell^k$, we define a per-layer agreement ratio

$$ \rho_\ell = \frac{\|\tfrac{1}{K}\sum_k G_\ell^k\|_F^2}{\tfrac{1}{K}\sum_k \|G_\ell^k\|_F^2}. $$

This is the inverse of the gradient diversity that Where to Begin? On the Impact of Pre-Training and Initialization in Federated Learning showed pre-training reduces. That paper measured diversity globally to explain why plain FedAvg works after pre-training. We localize the measurement to individual layers and use it as a design decision. High-$\rho_\ell$ layers get shared adapters scored on the summed gradient. Low-$\rho_\ell$ layers get private adapters scored on each client's own gradient.

Research Program

Client computation. Each client computes $G_\ell^k$ on a few local mini-batches at the pretrained weights, with no training. It then uploads two things for each layer. The first is a scalar $\|G_\ell^k\|_F^2$. The second is a randomized sketch $G_\ell^k\Omega_\ell$, where $\Omega_\ell$ is a shared random Gaussian matrix with $p$ columns ($p\approx 16$). The sketch has the size of one rank-$p$ LoRA factor. Summed under secure aggregation, the sketches give $(\sum_k G_\ell^k)\Omega_\ell$, whose singular values approximate the top-$p$ spectrum of the aggregate gradient by standard randomized low-rank approximation. The server never sees an individual gradient. Clients keep their private spectra locally.

Allocation and tiering. The server ranks (layer, rank-increment) units by marginal score per parameter. It then allocates greedily up to each hardware tier's budget, which can be expressed as adapter parameters, activation memory, or latency from a simple per-layer cost table. Greedy allocation over a single ordering produces nested configurations: a small tier's adapter set is a subset of a large tier's. As a result, shared adapters can still be averaged element-wise across tiers without the generative distillation of FedZKT or a trained supernet. Private units are chosen by each client using its own spectrum within whatever budget remains.

Training. The chosen architecture is then trained with standard FedAdam for a fixed number of rounds. We also report a variant that uses one-shot training in the style of YOCO. YOCO initializes LoRA from an SVD of the pretrained weights and communicates once, but fixes rank and placement by hand, and its authors leave automated selection open. Our method supplies that selection. YOCO supplies a possible training stage.

How this differs from adjacent work. Adaptable Adapters learns layer selection with Gumbel-Softmax switches through full centralized training. It found that adapters in deeper layers matter most and that about half the layers can be skipped. That finding motivates placement search, but its method needs full gradient-based training and has no federated aggregation. PerFIT is the closest federated competitor. It searches sparse per-client LoRA masks by first-order Taylor pruning over multiple rounds, and it notes that zero-initialized LoRA gives vanishing scores at step 0. Our score avoids that problem because it is computed on the full weight gradient, not the adapter parameters. It also chooses placement and rank, and finishes in one round.

What constrains the design. The federated NAS systems FedNAS, FedorAS and SuperFedNAS all start from random weights. Their multi-round supernet cost is exactly what pre-training should let us skip. Two results limit what we can promise. EZNAS reports that zero-cost proxies discriminate poorly among the top decile of architectures. And Zero-Cost Proxies for Lightweight NAS found that metrics like jacob_cov break across heterogeneous topologies. We therefore evaluate top-decile ranking explicitly rather than reporting only global correlation.

Baselines

Naive reference: uniform adapters. The do-nothing reference is uniform LoRA at the same rank on every layer, trained with FedAdam. This is the configuration that Where to Begin? suggests is already competitive once training starts from pretrained weights. For each tier it is run at a matched trainable-parameter budget by choosing the uniform rank closest to that budget. It uses the same data splits, the same number of rounds and the same learning-rate sweep as our method. Beating it means higher mean and worst-client accuracy at equal parameters and equal total communication, including our search upload.

Placement heuristic. A second baseline is a "top-$k$ layers" heuristic: adapters only in the deepest layers, as the Adaptable Adapters finding implies. Its budget is matched in the same way.

Strongest existing method: PerFIT. PerFIT is the strongest existing method because it is the only federated method that searches adapter structure on a pretrained model. On Databricks-dolly-15k under pathological non-IID splits, it reports a 23% perplexity reduction over standard federated instruction tuning on Alpaca-7B, and roughly a 3% relative gain on Vicuna-7B-v1.5. We will rerun PerFIT with its released settings on our splits, at its parameter budget. We give it the same total client compute, so its multi-round search costs rounds we would otherwise spend on training. Beating it means matching its perplexity within noise while using one search round instead of its multi-round search, or improving perplexity at equal rounds.

Centralized reference. As an upper-bound reference for low-data GLUE, Adaptable Adapters reports a centralized average of 51.28 versus 44.87 for standard adapters on BERT-large with 100 training examples. Our federated GLUE results will be read against that gap.

Proxy baselines. For proxy quality we compare against grad_norm, snip, grasp, fisher, synflow, jacob_cov and nwot. Each is computed both at random initialization and at the pretrained point, using the NAS-Bench-Suite-Zero implementations. Published ranking numbers exist only for random-initialization cell spaces: Spearman 0.82 for the synflow+jacob_cov+snip vote on NAS-Bench-201, and Kendall tau 0.65 for EZNAS-A on NAS-Bench-201 CIFAR-10. I found no reported result on Lacuna for any zero-cost proxy ranking adapter configurations on pretrained models, so the ranking study below creates that reference.

Ablations. Three ablations isolate the key ingredients. The first drops the agreement ratio and uses only the summed spectrum (all adapters shared). The second uses only local spectra (all adapters private). The third replaces the spectrum with its first singular value or with the plain Frobenius norm, to test whether rank information matters.

Why not just…?

Why not just use uniform LoRA on every layer? This is the real threat. Pre-training already suppresses client drift, and placement may matter little once the backbone is good. The evidence against it is indirect. Adaptable Adapters halved adapter parameters while improving low-data accuracy, but only in a centralized setting. PerFIT's gains came from searching the structure rather than fixing it. Neither settles the federated, budget-matched question. Our matched-budget comparison does settle it, and we will report a negative result if the gap is within seed noise on most tasks.

Why not just put adapters in the top layers? If Adaptable Adapters' depth preference is universal, a fixed rule captures most of the benefit for free. The proposal only earns its place if the gradient spectrum picks different layers across tasks, modalities or tiers, and if those differences translate into accuracy. We will report how often the chosen layer sets differ from top-$k$, and the accuracy gap when they do.

Why not just search once centrally on public proxy data? That requires a proxy dataset aligned with client data. Where to Begin? identifies such data as often unavailable in specialized domains. Centralized search also ignores which layers clients disagree on. We include this baseline by computing the same spectral allocation on a public dataset (for example, GLUE training data from a different task than the client task) and measuring the accuracy lost relative to client-computed scores.

Why not just run a federated supernet method? FedorAS and SuperFedNAS train from random weights, so they solve a harder problem: discovering a backbone. When a good pretrained backbone exists, their supernet training is the cost we aim to remove. We will report their reported search costs only as context. FedNAS reports under 5 hours on 16 GPUs for its CIFAR-10 search, reaching 81.24% against 77.78% for FedAvg. We will not claim a head-to-head comparison in a setting they were not designed for.

Proposed Experiments

Step 1: the ranking study. On RoBERTa-base with four GLUE tasks (SST-2, MNLI, QNLI, RTE), split across 20 clients with Dirichlet label skew at two concentration levels, we sample about 150 adapter configurations per task. Configurations vary placement and per-layer rank under three budgets. Each is trained with FedAdam to a fixed round count over three seeds. We then measure Kendall tau and top-decile Kendall tau between each proxy and final accuracy, at random initialization and at the pretrained point. The decisive check is whether the spectral score beats every classical proxy at the pretrained point in top-decile ranking. If the classical proxies saturate or invert once evaluated on pretrained weights, that is a publishable finding in its own right.

Step 2: end-to-end GLUE comparison. On the same GLUE splits with BERT-large, we compare our method with all baselines across three hardware tiers defined by adapter-parameter budgets. We report mean accuracy, worst-decile client accuracy, total upload bytes, and client FLOPs spent on search.

Step 3: instruction tuning against PerFIT. On Databricks-dolly-15k with Alpaca-7B under PerFIT's pathological and Dirichlet splits, we report perplexity against PerFIT and uniform LoRA.

Step 4: vision and heterogeneous hardware. On CIFAR-100 with a pretrained ViT under latent Dirichlet allocation splits, we add latency budgets from a per-layer cost table. This tests whether nested tier configurations aggregate without accuracy loss for the smallest tier, compared with training that tier in isolation.

Step 5: privacy stress test. We apply DP noise to the sketches and measure how much ranking quality degrades. Following Where to Begin?, we expect gradients at pretrained weights to tolerate noise better than gradients at random initialization.

Stopping rule. The project is judged to have failed on its central claim if Step 1 shows no proxy advantage at the pretrained point, or if Step 2 shows no budget-matched gain over uniform LoRA.