betaFeedback

WorksComputer Science

Optimal Hydra: Model Heterogeneous Federated Learning for LLMs using Data-Informed Hydra-Nets

Abstract

Large language models (LLMs) trained on vast amounts of data have demonstrated impressive performance over a range of tasks, but future performance gains will require increasing amounts of data and compute. Federated Learning (FL) facilitates training on decentralized private data, but client resource limitations can make training impractical, particularly as model sizes continue to expand. These resource constraints make the assumption of a shared server-client architecture impractical. Model heterogeneous FL offers a promising alternative by adapting model size to client capabilities; however, previous work is limited to the pre-training setting, and conclusions on sub-network selection do not necessarily hold for fine-tuning. Furthermore, prior approaches create client sub-networks without considering their unique data distributions, thereby overlooking the opportunity to tailor sub-network architecture to local data. Motivated by evidence that attention heads exhibit task dependency within layer defined feature spaces, we propose Optimal Hydra, a transformer based heterogeneous FL framework for fine-tuning that combines global layer selection with client specific attention head selection, aligned with local data distributions. Optimal Hydra makes explicit use of client data to produce client-specific sub-networks we call Hydra-nets. To our knowledge, this is the first model heterogeneous FL approach tailored to LLM fine-tuning. Experiments on three datasets show significant improvements over baseline methods while also reducing local resource demands.

Introduction

Foundation models have demonstrated advanced abilities on diverse tasks and have been widely adopted in domains including healthcare, education and autonomous vehicles ([7, 8, 17] (Thirunavukarasu et al. 2023)). Established scaling laws indicate that continued performance gains will require increasingly large amounts of data ([19]), a requirement at odds with the growing awareness of digital privacy. Federated learning (FL) ([25]) offers a privacy preserving alternative that may create a greater willingness to share data Sani et al. [29]; however, the application of FL to foundation models is challenging due to large parameter counts that considerably exceed the capabilities of a typical edge device ((Yao et al., 2024)). Previous attempts to bridge this gap have largely relied on Parameter-Efficient Fine-Tuning (PEFT) ([4, 6] (Tian et al. 2024)), but these methods can struggle to match the performance of full fine-tuning and are prone to overfitting when parameters are strictly limited ([10]). Furthermore, these methods still require homogeneous model architectures, so client nodes must have adequate resources to store and train the entire large model, which is often not the case ((Yao et al., 2024)). This creates a dilemma: either we limit model complexity to accommodate the most under resourced client or we exclude low resource clients from training. Neither of these options is ideal, since limiting model complexity eliminates our ability to train large SoTA models and excluding low resource clients from training creates a bias towards the data of those with better resources ([18]).

Model heterogeneous FL relaxes the assumption that server and client model architectures must be identical, it allows federated training with heterogeneous models better suited to unique client capabilities. Early work used static [13, 16] or random (Wen et al., 2022) sub-networks that trained model parameters unequally, making them susceptible to client drift [20]. Subsequent work improved stability by training model parameters more equally [3, 23]; however, all of these approaches overlook the fact that optimal sub-networks are intrinsically linked to the data they encounter [14]. For FL in particular, client data distributions are often highly heterogeneous and tailoring sub-network architectures to local data presents an important opportunity to capture distribution-specific features. Notably, while prior work focuses exclusively on the pre-training setting, our work addresses fine-tuning and we will show that previous conclusions regarding strictly equal parameter training in the pre-training setting do not necessarily hold in the context of fine-tuning.

We propose Optimal Hydra, a method that adapts model-heterogeneous FL for LLM fine-tuning. Prior research has focused exclusively on pre-training [3, 13, 23, 16] (Wen et al. 2022); we address this gap in the literature by being the first to investigate model-heterogeneous FL in the fine-tuning setting, a setting that has become increasingly relevant as large foundation models become the norm. We also take the opportunity to improve upon the random sub-network selection used in previous works by creating data-informed sub-networks we call Hydra-Nets that are tailored to local client data to better capture distribution-specific features. Figure 1 provides a high level overview of our Hydra-Net selection method that proceeds in two steps; common layer selection and individual head selection. Common layer selection is motivated by the fact that transformer layers govern macro level feature transformations (Voita et al., 2019) and that in FL a lack of consensus amongst client sub-networks can negatively affect global model convergence [13, 16, 5]. We adapt a metric used to determine the relative importance of transformer layers by He et al. [15] to enable clients to collaboratively identify a small subset of “important” layers, establishing a shared structural backbone across clients from which no attention heads may be removed. Subsequently, each individual client will select a unique subset of attention heads to keep from each “unimportant” layer via a gradient based scoring metric, the rest will be discarded. Ultimately, Hydra-Net selection is motivated by the task dependent nature of attention heads to create targeted sub-networks, informed by each client’s unique local data distributions.

Hydra-Net selection algorithm

Figure 1. Each model is represented as a set of horizontal rectangles denoting transformer layers. The segregation of each layer represents attention heads present in the layer. Note: for simplicity, attention heads are the only architectural components depicted. Hydra-Net selection algorithm: Clients first collaboratively select a subset of common layers from which no attention heads may be removed; these layers are highlighted in orange to indicate the protected status of their attention heads during the individual head selection process. Next, clients individually select a subset of heads in each unimportant layer via a gradient based scoring mechanism. Heads that were not selected by clients in the individual selection process are grey to indicate their removal from the sub-network. The end result is a unique, data aligned Hydra-Net for each client that is subsequently used in the model heterogeneous FL framework, Optimal Hydra.

Our key contributions are as follows:

  • We propose Optimal Hydra for model heterogeneous federated fine-tuning using data-informed LLM sub-networks. As the first model-heterogeneous FL method to tailor sub-network architectures to local client data, Optimal Hydra achieves up to a 42.5% improvement over the best performing baseline in challenging model heterogeneous conditions and achieves reductions in computational and memory resource utilization up to 32.0% and 29.3%, respectively.

  • We demonstrate that assumptions from the pre-training about evenly distributing parameters can be relaxed in the fine-tuning regime due to the strong initial representations provided by the pre-trained model.

  • Based on representation dynamics and prior work suggesting that attention heads may be linked to specific tasks within layer feature spaces, we combine common layer selection to create Hydra-Nets, data-informed sub-networks that are better able to capture distribution specific features.

Background and Related Work

Federated learning (FL) [25] is a privacy preserving, distributed, machine learning paradigm that allows collaborative model training without data sharing. Resource limitations on federated edge devices can make FL challenging to execute using current SotA foundation models, examples in the literature [4, 6] (Tian et al. 2024; Wu et al. 2024) have relied heavily on parameter efficient fine-tuning (PEFT) which significantly reduces communication costs but remains highly burdensome in terms of local computation and memory requirements. While communication constraints have historically been considered the most significant federated resource bottleneck [25, 18], the large parameter counts of modern foundation models have increased the significance of memory and computational resource bottlenecks [29] (Yao et al. 2024) since the common assumption in FL, including the aforementioned PEFT methods, is that server and client models possess the same architecture. This underlying assumption either limits the choice of global model so that the most resource limited client is able to participate; or selects a more complex global model and excludes resource limited clients altogether. A natural solution is to distribute sub-networks according to client capabilities, but stable aggregation of heterogeneous local architectures into a single global model is challenging and requires careful consideration of base and sub-network model architectures in order to be successful [3].

HeteroFL [13], widely regarded as the first example of model heterogeneous FL in the literature, creates static sub-models that train model parameters unequally. FedDrop (Wen et al., 2022) randomly drops a fraction of neurons in each layer, which can lead to inconsistent updates and convergence instability, particularly when data are not independently and identically distributed (i.i.d.). FedRolex [3] and FedBRB [23] improve upon these methods by iterating through model parameters so they are all trained evenly, yet these approaches fail to consider the quality of the sub-models and how differences in local data distributions can affect the suitability of the selected sub-network from round to round. These approaches are designed for pre-training, use relatively small models and focus primarily on computer vision tasks. Due to the learning differences that exist between federated pre-training and fine-tuning [27, 22], we cannot assume their suitability for large model fine-tuning. Additionally, pervious model heterogeneous FL experiments have used convolutional neural networks (CNNs), none of them have been adapted for the transformer architecture, ubiquitous in modern machine learning.

The opacity of an LLMs internal mechanisms makes improving the efficiency of supervised fine-tuning (SFT) methods challenging. Previous attention head focused interpretability studies suggest that they exhibit a high degree of task specificity (Zhao et al., 2024; Yin et al., 2024) and redundancy [26, 13] during the SFT process. Zhao et al. (2024) observe rapid task adaptation of attention heads during SFT, they also show task dependence by targeting specific heads, which consistently provides better performance. LoFiT (Yin et al. (2024)) trains small localized adapters to fine tune attention heads. The authors find that identifying and targeting task heads most important for a task is more effective than standard fine-tuning, random head selection or targeting specific layers identified by probing. Michel et al. [26] find that while many heads are task dependent, some are universally important regardless of task.

Optimal Hydra

Optimal Hydra adapts model heterogeneous FL for transformer models using heterogeneous client sub-networks called Hydra-Nets, clients train their Hydra-Nets locally and send updates back to the server for aggregation. While aggregating updates from heterogeneous local sub-networks into a single global model has presented a significant challenge for model heterogeneous FL, our approach overcomes this difficulty through direct index-mapping. During the aggregation phase, local updates are mapped back to their original coordinates in the global transformer architecture and parameter averaging is scaled by the total number of data samples residing in clients contributing to the update of a given parameter instead of the typical FL approach of scaling updates according to the number of data samples residing in all clients participating in the federated round (McMahan et al. [25]). This approach lets the global model accumulate specialized, data-informed gradients from specific heads without the gradient interference present from full parameter federated averaging.

Problem Formation

In FL, distributed optimization occurs over CC clients where each client c∈{1,...,C}c \in\{1, ..., C\} possesses data Xc,Yc\mathbf{X}_c, \mathbf{Y}_c containing ncn_c samples drawn from distribution DcD_c. We define the total number of samples across all clients as n=∑c=1Cncn = \sum_{c=1}^{C} n_c. The data Xc\mathbf{X}_c at each node may be drawn from different distributions and/or may be unbalanced with some clients possessing more training samples than others. The typical objective function for federated optimization is given by Eq. (1) (McMahan et al. [25]) where θ∈Rd\theta\in\mathbb{R}^{d} are the model weights and L\mathcal{L} is the objective function.

θ∗∈arg⁡min⁡θ∑c=1CncnL(f(θ,Xc))(1)\theta^{*} \in\underset{\theta}{\arg\min} \sum_{c=1}^{C} \frac{n_c}{n} \mathcal{L}(f(\theta,\mathbf{X}_c)) \tag*{(1)}

We undertake federated fine-tuning of a server-side LLM by a set of resource heterogeneous client nodes. Federated clients typically possess relatively small datasets and might not require an LLMs full capability for performance on unrelated domains. We define θc∈Rsd\theta_c \in\mathbb{R}^{sd} as an sdsd-dimensional set of Hydra-Net parameters for client c∈Cc \in C where ∀c∈C sdc⊊d\forall c \in C\ s_{d_c} \subsetneq d and modify Eq. (1) as follows.

θ∗∈arg⁡min⁡θ∑c=1CncnL(f(θc,Xc))(2)\theta^{*} \in\underset{\theta}{\arg\min} \sum_{c=1}^{C} \frac{n_c}{n} \mathcal{L}(f(\theta_c,\mathbf{X}_c)) \tag*{(2)}

The relationship between Hydra-Nets for two clients c1 and c2 where c1≠c2c1 \ne c2 is that they share at least the set of globally common layers, and can share all, none or some of the individually selected heads in the remaining layers.

Hydra-Net selection applies to multi-head attention, decoder only, transformer architecture with a set of heads, HH and layers, LL. In what follows, we will use Hℓ(c)H_{\ell}^{(c)} to indicate the set of heads in layer ℓ∈L\ell\in L, belonging to client c∈Cc \in C, the absence of a superscript denotes the server model. Multi-head attention involves the concatenation of multiple self-attention blocks computed using query, key and value matrices Wqh\mathbf{W}_{qh}, Wkh\mathbf{W}_{kh} and Wvh\mathbf{W}_{vh} for each head h∈Hh \in H (Vaswani et al. (2017)).

Hydra-Net Selection

Model heterogeneity creates particular challenges for model aggregation in FL and these systems are particularly sensitive to client drift (Karimireddy et al. [20]) because of their un-equal parameter training [3]. One of our key contributions is the use of data-informed sub-networks to stabilize aggregation and improve training outcomes. To this end, we combine a number of previous insights to optimize our Hydra-Net selection. Attention heads have been shown to exhibit a high degree of task specificity (Zhao et al., 2024; Yin et al., 2024) and certain attention heads exhibit universal importance across domains Michel et al. [26]. Because these critical heads concentrate within key functional layers that drive core feature transformations (Voita et al., 2019) we establish a two stage Hydra-Net selection strategy: common layer selection and individual head selection. As shown in Figure 1, clients first work collaboratively to select a small number of layers from which no attention heads are dropped. They subsequently select attention heads with high sensitivity to their own local data distributions, which they keep from the remaining layers while dropping the rest. In what follows, we present a detailed discussion of the procedures for common and individual head selection.

Common Layer Selection

Algorithm 1  SelectCommonLayers
Require: Client set $\mathcal{C}$, local data $\{X_c\}_{c\in\mathcal{C}}$, pre-trained params $\theta = \{\theta_\ell\}_{\ell=1}^{L}$
1: for all $c \in \mathcal{C}$ do
2:     $H_0^{(c)} \leftarrow X_c$
3: end for
4: for $\ell = 1$ to $L$ do
5:     for all $c \in \mathcal{C}$ do
6:         $H_\ell^{(c)} \leftarrow f(\theta_\ell, H_{\ell-1}^{(c)})$
7:         $cs_{c,\ell} \leftarrow \operatorname{cosine\_similarity}(H_{\ell-1}^{(c)}, H_\ell^{(c)})$
8:     end for
9:     $cs_\ell \leftarrow \frac{1}{|\mathcal{C}|}\sum_{c\in\mathcal{C}} cs_{c,\ell}$
10: end for
11: $SC \leftarrow \{cs_\ell\}_{\ell=1}^{L}$
12: $z \leftarrow GMM(SC)$
13: $\mathcal{L}_{\mathrm{keep}} \leftarrow \{\ell \mid z_\ell \in \{0,1\}\}$
14: $\mathcal{L}_{\mathrm{drop}} \leftarrow \{\ell \mid z_\ell = 2\}$ return $\mathcal{L}_{\mathrm{keep}}, \mathcal{L}_{\mathrm{drop}}$

When developing sub-network selection strategies, it is tempting to consider individual client properties in isolation; however, this approach over simplifies the problem and a lack of consensus between client sub-networks can inhibit global model convergence and cause serious performance degradation [5, 3]. To prevent this from occurring in Hydra-Nets, all clients retain a common subset of parameters. Instead of attempting to negotiate consensus on individual attention heads which risks over-specializing or missing critical head interactions, we select common parameters by layer instead of opting for fine grained head-selection. He et al. [15] use a metric based on cosine similarity to score the relative importance of transformer layers, where layers with high similarity between inputs and outputs are deemed redundant. This provides a computationally efficient proxy to identify layers that drive critical representation shifts. We evaluate layer redundancy locally at each client using activation similarity statistics of each transformer block (Alg. 1, Ins. 5–8), and apply a mixture model (Dempster et al. [12]) (Alg. 1, ln. 12) to separate them into three distinct categories.

  1. low redundancy i.e. cosine similarity near zero

  1. medium redundancy i.e. cosine similarity ≈0.5−0.8\approx0.5 - 0.8

  1. high redundancy i.e. cosine similarity >0.9> 0.9

Very few layers (empirically, <15%< 15\%) fall into the low and medium redundancy categories, so we select all of these layers and for simplicity, and retain all of their attention heads. The remaining layers will be used for personalized attention head selection via Algo. 2. These two disjoint subsets are the end goal of Algo. 1 where they are defined as Lkeep\mathcal{L}_{\mathrm{keep}} and Ldrop\mathcal{L}_{\mathrm{drop}}, respectively. Common layers serve two purposes: preserve the functionality of the most important layers, and provide a shared structural backbone between all clients to defend against client drift.

Individual Head Selection

Algorithm 2 SelectIndividualHeads

Require: CC, {sc,ℓ,h}\{s_{c,\ell,h}\}, Ldrop\mathcal{L}_{\mathrm{drop}} (from Alg. 1), λ\lambda, {Nℓ}\{N_\ell\}, ∣Hℓ∣\lvert H_\ell\rvert

  1. Initialize Q←{c↦∅ ∀c∈C}Q \leftarrow\{c \mapsto\varnothing\ \forall c \in C\}

  2. for ℓ∈Ldrop\ell\in\mathcal{L}_{\mathrm{drop}} do

  3. μ←∣C∣Nℓ/∣Hℓ∣\mu\leftarrow\lvert C\rvert N_\ell/\lvert H_\ell\rvert

  4. Solve for xc,h∈{0,1}x_{c,h} \in\{0,1\} and uh,vh≥0u_h,v_h \ge0:

  5. max⁡∑c,hsc,ℓ,hxc,h−λ∑h(uh+vh)\max\sum_{c,h}s_{c,\ell,h}x_{c,h}-\lambda\sum_h(u_h+v_h)

  6. s.t. ∑cxc,h−μ≤uh,∀h\sum_c x_{c,h}-\mu\le u_h,\quad\forall h

  7. μ−∑cxc,h≤vh,∀h\mu-\sum_c x_{c,h}\le v_h,\quad\forall h

  8. ∑hxc,h=Nℓ,∀c\sum_h x_{c,h}=N_\ell,\quad\forall c

  9. for all c∈Cc \in C do

  10. Q[c][ℓ]←{h∣xc,h=1}Q[c][\ell]\leftarrow\{h\mid x_{c,h}=1\}

  11. end for

  12. end for return QQ

Following a consensus on common layers, we must determine how to personalize the selection of attention heads within the remaining layers L⌈∇⌉\mathcal{L}_{\lceil\nabla\rceil}, with respect to each client’s local data. Common methods for determining parameter significance in neural networks include magnitude-based scoring of individual weights [14], gradient-based importance measures using gradient magnitude as an indicator of a parameter’s influence on model output [28] (Wang et al. 2023), and higher-precision methods that use second-order derivatives to examine the curvature of the loss landscape [21]. We select gradient-based scoring because it provides the most information about the importance of the attention head for a specific client’s final representations, without the computational overhead of second-order methods [2]. Specifically, we adopt the scoring metric of Panos et al. [28] who fine-tune Vision-Language Models (VLM) on domain specific datasets by targeting the most informative attention heads for localized parameter updates. To identify these attention heads, they extract the gradients of the loss function with respect to parameters Wqh\mathbf{W}_{qh}, Wkh\mathbf{W}_{kh} and Wvh\mathbf{W}_{vh}, we denote these as Gqh\mathbf{G}_{qh}, Gkh\mathbf{G}_{kh} and Gvh\mathbf{G}_{vh}, respectively. They then define an importance score (shs_h) for each head, as shown in Eq. (11).

sh=∑i,j(Gqh)i,j2+(Gkh)i,j2+(Gvh)i,j2(3)s_h = \sum_{i,j} \left(\mathbf{G}_{qh}\right)_{i,j}^{2} + \left(\mathbf{G}_{kh}\right)_{i,j}^{2} + \left(\mathbf{G}_{vh}\right)_{i,j}^{2} \tag*{(3)}

During the course of our experiments, we discover that the (Gvh)i,j2\left(\mathbf{G}_{vh}\right)_{i,j}^{2} term dominates (see Appendix) so we simplify Eq. (11), as shown in Eq. (4) and adopt this simplified score as our head scoring metric where we denote the score for head hh of layer ℓ\ell for client cc as sc,ℓ,hs_{c,\ell,h}

sh=∑i,j(Gvh)i,j2(4)s_h = \sum_{i,j} \left(\mathbf{G}_{vh}\right)_{i,j}^{2} \tag*{(4)}

Previous work has demonstrated that model performance suffers when parameters are not trained evenly [3, 23, 4]. This constraint rules out the naive solution in which each client simply retains their top-kk scoring heads without considering the choices of the others. In what follows, we formalize the constraints for attention head selection in one layer, ℓ\ell, across all clients, c∈Cc \in C, for the selection of NℓN_\ell attention heads out of the total set of attention heads, HℓH_\ell in layer ℓ\ell.

Let xc,ℓ,h={1head h is assigned to client c0otherwisex_{c,\ell,h} = \begin{cases} 1 & \text{head } h \text{ is assigned to client } c \\ 0 & \text{otherwise} \end{cases}

Let ∑h=1Hℓxc,ℓ,h=Nℓ ∀c\sum_{h=1}^{H_\ell} x_{c,\ell,h} = N_\ell\ \forall c

Let μ=∣C∣Nℓ∣Hℓ∣\mu= \frac{|C|N_\ell}{|H_\ell|}

⌊μ⌋≤∑c=1Cxc,ℓ,h≤⌈μ⌉ ∀h(5)\lfloor\mu\rfloor\le\sum_{c=1}^{C} x_{c,\ell,h} \le\lceil\mu\rceil\ \forall h \tag*{(5)}

Eq. 5 creates hard bounds, enforcing a strictly even distribution of local parameters between clients, a constraint widely accepted as necessary based on previous work [3, 23]; however, these methods were developed for pre-training and federated fine-tuning behaviour can differ considerably [27, 22]. We hypothesize that pre-trained model weights, particularly those of large foundation models with strong initial representations, may show more tolerance when it comes to the necessity of even parameter training between clients, so we relax these hard bounds with slack variables uhu_h and vhv_h where ∑cxc,h−μ≤uh\sum_c x_{c,h} - \mu\le u_h and μ−∑cxc,h≤vh\mu- \sum_c x_{c,h} \le v_h and use them to define a more flexible objective function in Eq. 6.

max⁡∑c=1C∑h=1Hℓsc,ℓ,hxc,ℓ,h−λ∑h=1Hℓ(uh+vh)(6)\max\sum_{c=1}^{C} \sum_{h=1}^{H_\ell} s_{c,\ell,h}x_{c,\ell,h} - \lambda\sum_{h=1}^{H_\ell}(u_h + v_h) \tag*{(6)}

Eq. 6 optimizes head assignments by taking into account per-client head scores defined in Eq. 4 and enforces balanced assignments according to hyperparameter λ\lambda which governs how strictly balanced parameter training should be enforced (lns. 4-8 of Algo. 2). The result of Algo. 2 is Q\mathbf{Q}, a data structure that contains attention head assignments for each client, c∈Cc \in C, for each layer ℓ∈L\ell\in L. These assignments provide the recipe to create each client’s unique, data-informed Hydra-Net.

Experiments

While Optimal Hydra is feasible for any number of attention heads dropped, we study model heterogeneity by focusing on four discreet sizes; all attention heads kept, or full (F), three quarters of attention heads kept (3Q), half of attention heads kept (H), one quarter of attention heads kept (Q). Heterogeneous configurations are indicated by F, 3Q, H, Q, followed by the number of clients assigned that model size in brackets.

Datasets We consider three datasets, Natural Instructions (NI) (nat, 2022), Alpaca [31] and Dolly-15K [11]. Dolly-15K samples are distributed between clients using a Dirichlet distribution with α=0.5\alpha= 0.5. The creative writing task of Dolly-15K is not included in any of the local client data distributions and is instead used for global evaluation. The Alpaca dataset does not include pre-determined task categories, so we define six categories, summarization, reasoning, classification, mathematics, QA and other, and assign each sample a classification by searching for keywords in the input. As with Dolly-15K, samples are distributed between clients using a Dirichlet distribution with α=0.5\alpha= 0.5. The “other” task is selected for global evaluation. For NI, which has 857 unique tasks, 119 test tasks are held-out and used for global evaluation, while each of the remaining 738 tasks is uniquely assigned to one client. This isolated task distribution makes the NI dataset particularly challenging.

Training Details We use the DataJuicer-1.3 model, a Llama-1.3B model pre-trained on an open source corpus of data [9] and the Rouge-L [24] metric to evaluate fine-tuned model performance, reported scores are the mean of four seeds. Each experiment has 20 clients and all of them participate fully in each round of training. Since and some distributions may be more amenable than others to optimal sub-net selection, client-side data distributions are important variables to control. To remove any ambiguity that may result from local data variation, we manually set a seed for each experiment to ensure that each client’s local data remains the same for each set of experiments done on each model heterogeneity configuration. Additional training details and hyper-parameter settings are provided in the Appendix.

Baselines Since there are no pre-existing model heterogeneous FL transformer architectures in the literature, we make appropriate transformer based adaptations of HeteroFL and FedRolex to compare against Optimal Hydra. We additionally evaluate Optimal Hydra against the zero-shot performance of the pre-trained model and full federated training using FedAvg [25].

Adapted HeteroFL and FedRolex: HeteroFL [13] trains static sub-networks with parameters distributed un-equally between clients. Since Optimal Hydra is focused on attention head selection, the adapted HeteroFL baseline retains the first NℓN_\ell heads in each layer. FedRolex [3] rotates consecutive sub-network parameters for clients after each round of training. To adapt FedRolex we select NℓN_\ell consecutive attention heads starting at a random head index in each layer. Continuity is achieved by rolling indices so that, following head index NN, the next consecutive index is 0. The initial head index for each layer is incremented by 1 after each round, and client sub-networks are updated accordingly.

Improved Resource Utilization: Table 1 provides memory and compute comparisons for the resource allocation configurations in each of our experiments. These values are also expressed as the percentage improvement each configuration provides over the full FedAvg baseline. In the most extreme case where each client selects only 25% of the attention heads, we achieve savings of 32.0% for computation and 29.3% for memory. Values provided in Table 1 are calculated using a sequence length of 2048; however, since computational requirements depend heavily on sequence length, we note that an increase in sequence length to ≈ 12000 achieves 50% savings in computational resources. This computational sequence length dependence theoretically makes Optimal Hydra an attractive prospect for FL with long context LLMs.

Table 1: Memory and compute requirements for the different resource allocation configurations we study. We provide both the absolute value and a percentage improvement over full FedAvg fine-tuning. Configurations are ordered from most to least resource intensive.

ConfigComp. (GFLOPS)% Impr. w.r.t. fullMem. (GB)% Impr. w.r.t. full
F(20)F(20)56.6–61.9–
3Q(20)3Q(20)50.610.755.89.7
F(5)3Q(5)H(5)Q(5)F(5)3Q(5)H(5)Q(5)47.616.052.814.6
H(20)H(20)44.521.349.819.5
3Q(6)H(7)Q(7)3Q(6)H(7)Q(7)44.221.949.520.0
H(10)Q(10)H(10)Q(10)41.526.746.824.4
3Q(2)H(2)Q(16)3Q(2)H(2)Q(16)40.328.845.626.4
H(5)Q(15)H(5)Q(15)40.029.345.326.8
Q(20)Q(20)38.532.043.729.3

Table 1.

Results: The results in Table 2 consider a homogeneous resource setting in which all clients retain the same number of attention heads, but may retain different subsets of heads. In this scenario, clients have equal resource capabilities, although these budgets may still be substantially smaller than those required for full-model fine-tuning. We also report the zero-shot performance of the pre-trained model and the performance of full-model FedAvg.

Table 2: Rouge-L (%) ± the std. dev. for four seeds, is reported for The full model zero-shot and FedAvg baselines as well as the setting in which all clients have homogeneous, but limited resource capabilities.

Alpaca HydraAlpaca HeteroFLAlpaca FedRolexNatural Instructions HydraNatural Instructions HeteroFLNatural Instructions FedRolexDolly HydraDolly HeteroFLDolly FedRolex
F(20)F(20) ZS17.1575.69826.694
F(20)F(20) FedAvg31.668 (±.002)26.915 (±.002)32.465 (±.001)
3Q(20)3Q(20)31.267 (±.001)26.183 (±.002)30.186 (±.001)25.593 (±.005)22.991 (±.005)25.630 (±.004)34.295 (±.005)29.535 (±.002)34.714 (±.003)
H(20)H(20)30.621 (±.005)24.077 (±.003)29.258 (±.005)22.738 (±.010)17.821 (±.012)22.157 (±.004)35.489 (±.002)31.516 (±.001)35.431 (±.002)
Q(20)Q(20)25.232 (±.008)8.264 (±.080)15.224 (±.129)7.990 (±.006)8.077 (±.002)7.609 (±.004)29.104 (±.007)28.881 (±.002)20.552 (±.027)

Table 2.

In this setting, the relative performance of the methods is mixed. Optimal Hydra achieves the best score in the majority of configurations and is consistently the best-performing method or competitive with the strongest baseline. The adapted HeteroFL and FedRolex baselines exhibit less consistency; HeteroFL performs substantially worse than the other methods for H(20) on Alpaca, and FedRolex exhibits a similar sub-standard performance for Q(20) on Dolly-15K. These results suggest that, when all clients have the same resource budget, the benefit of data-informed head selection is present but relatively modest, and the choice of which heads are retained becomes increasingly important as the available model capacity decreases.

Figure 2 considers a more challenging setting in which clients have substantially different resource constraints. We assign different fractions of clients different model sizes, with particular emphasis on configurations where most clients are under-resourced. Unlike the homogeneous-resource setting, Optimal Hydra consistently outperforms both baselines across all heterogeneous resource configurations. The advantage is most pronounced for the NI dataset, which has the most heterogeneous task distribution and supports our hypothesis that sub-network selection should account for both the resource constraints and client data distributions. Optimal Hydra also performs particularly well in the aforementioned low-resource setting where it achieves a 42.5% improvement over FedRolex, the next highest scoring baseline, on the 3Q(2)H(2)Q(16) configuration for the NI dataset.

Figure 2. Each row consists of results for one dataset (1. Alpaca 2. Natural Instructions 3. Dolly 15K) and each column corresponds to one model heterogeneous FL configuration (1. F(5)3Q(5)H(5)Q(5) 2. 3Q(6)H(7)Q(7) 3. 3Q(2)H(2)Q(16) 4. H(10)Q(10) 5. H(5)Q(15)). Each sub-figure contains the mean Rouge-L ± std. dev. of four seeds for Optimal Hydra (blue), and our transformer adapted HeteroFL (orange) and FedRolex (green) baselines. The black dotted line indicates the FedAvg baseline whose values are reported in Table 2. Optimal Hydra performs better than the baselines in all cases, it does particularly well with the very data heterogeneous NI dataset and the very resource constrained 3Q(2)H(2)Q(16) model heterogeneous configuration.

Finally, model heterogeneity does not necessarily result in a performance degradation relative to full-model FedAvg. We observe that Optimal Hydra and the adapted baselines sometimes outperform the full-model FedAvg baseline, one possible explanation is that removing attention heads acts as a form of regularization during fine-tuning. This effect is most pronounced on Dolly-15K where the pre-trained model already provides strong initial representations.

Equal Parameter Training in the Fine-Tuning Setting: Previous work in the pre-training setting has motivated the importance of evenly training model parameters [3, 23]; however, application of this principle to fine-tuning has not been closely examined, despite indications of behavioural differences between these two regimes [22, 27]. The objective in Eq. (6) introduces an additional hyperparameter, λ\lambda, which controls how strictly equal parameter training is enforced. When λ=0\lambda= 0, the balance penalty vanishes and head assignments are determined solely by client-specific importance scores. As λ\lambda increases, the objective increasingly favors equal head distribution across clients, λ≈1×106\lambda\approx1 \times10^{6} effectively recovers the hard-bounded objective in Eq. (5), enforcing an even distribution of heads between clients for each layer.

Dolly-15K has the lowest attention head score diversity between clients, with clients selecting similar subsets of heads in each layer. The best Rouge-L scores were often achieved when λ=0\lambda= 0 or λ=1\lambda= 1, indicating that the strict requirement for equal parameter training established in federated pre-training may be greatly relaxed during fine-tuning. NI displayed the greatest attention head score diversity, with clients naturally gravitating towards different attention heads. NI generally achieved better Rouge-L scores with larger values of λ\lambda, sometimes as high as 500 or 1000, indicating a greater need for enforced attention head diversity.

To account for the difference in optimal λ\lambda values, we turn to the zero-shot performance strength of the pretrained representations. Dolly-15K had zero-shot performance of 26.694, significantly higher than the 5.698 achieved on NI. The strong initial representations available to Dolly-15K make strictly even parameter fine-tuning unnecessary. The weaker initial representations available for NI may make greater participation of all parameters more important, resulting in behavior more similar to the equal parameter training observed in the pre-training regime.

Conclusion

We introduced Optimal Hydra, a model-heterogeneous federated learning framework for fine-tuning large language models under heterogeneous client resource constraints. Optimal Hydra creates data-informed Hydra-Nets that permit resource limited clients to adapt to their available resources, by retaining model parameters best suited to their own local data. Across three datasets and multiple resource configurations, Optimal Hydra consistently outperformed adapted model-heterogeneous FL baselines in the most resource-heterogeneous settings while reducing local computational and memory requirements by up to 32.0% and 29.3%, respectively. Our results also challenge the assumption that model parameters must be trained equally across clients. In the fine-tuning setting, the necessary degree of parameter balancing depends on the strength of the pretrained representations and the heterogeneity of the local data distributions.

Memory and Compute Calculations

This section develops the rationale behind the values presented in the Improved Resource Utilization part of the Experiments section in the main body of the paper. Table 3 summarizes the variables and values used in the calculations in sections A.1 and A.2:

NameVar.DataJuicer-1.3B
No. trf blocksLL24
Hidden dim.dd2048
Tot. No. headshh16
Reduced No. headsh′h'variable
Head dim.dhd_h128
FF dim.ii5504
Vocab. sizevv32000
Seq. Len.ss2048

Table 3. Provides a summary of variables and their values for the DataJuicer-1.3B model architectures

Compute

Here we adopt the convention that matrix multiplication operations of the form (M×K)⋅(K×N)(M \times K) \cdot(K \times N) require 2MKN2MKN flops. We define a scaling factor α\alpha to account for the reduction in attention heads s.t. α=hh′\alpha= \frac{h}{h'}.

Attention Block Attention in each transformer block consists of weights Wq\mathbf{W}_q, Wk\mathbf{W}_k, Wv\mathbf{W}_v and Wo\mathbf{W}_o, each with dimension (d×d)(d \times d).

  • Linear Proj: Accounting for Wq\mathbf{W}_q, Wk\mathbf{W}_k, Wv\mathbf{W}_v and Wo\mathbf{W}_o with scaling for head reduction, we get: 8d2α8d^2\alpha

  • Score: QKTQK^T multiplies with the KV cache for each head: 2sdα2sd\alpha

  • Value Aggregation: Similar ops to score: 2sdα2sd\alpha

Attention Total (per layer): 8d2α+4sdα8d^2\alpha+ 4sd\alpha

Feed Forward Block Llama used SwiGLU Shazeer [30] which has weights Wgate\mathbf{W}_{\mathrm{gate}}, Wup\mathbf{W}_{\mathrm{up}}, both with dimension (d×i)(d \times i) and Wdown\mathbf{W}_{\mathrm{down}} with dimension (i×h)(i \times h). Operations for each set of weights cost 2di2di flops.

FF Total (per layer): 6di6di

Output map final hidden state back to the vocabulary. This is a matrix multiplication (1×d)⋅(d×v)(1 \times d) \cdot(d \times v).

Output Total (one time contribution): 2dv2dv

Combining the contributions of these operations over LL layers, we get the following formula for the number of flops required for one forward pass.

comp=L(8d2α+4sdα+6di)+2dv(7)\mathit{comp} = L(8d^2\alpha+ 4sd\alpha+ 6di) + 2dv \tag*{(7)}

Since many of these values are constant for a given model architecture, we get the following expressions as a function of α\alpha and sequence length, ss for DataJuicer-1.3B.

DataJuicer-1.3B

comp=L(8d2α+4sdα+6di)+2dv≈24(8×20482α+4×2048sα+6×2048×5504)+2×2048×32000≈8.05×108α+1.97×105sα+1.62×109+1.31×108≈4.295×109α+5.24×105sα+1.65×109(8)\begin{aligned} \mathit{comp} &= L(8d^2\alpha+ 4sd\alpha+ 6di) + 2dv \\ &\approx24(8 \times2048^2\alpha+ 4 \times2048s\alpha+ 6 \times2048 \times5504) + 2 \times2048 \times32000 \\ &\approx8.05 \times10^8\alpha+ 1.97 \times10^5s\alpha+ 1.62 \times10^9 + 1.31 \times10^8 \\ &\approx4.295 \times10^9\alpha+ 5.24 \times10^5s\alpha+ 1.65 \times10^9 \tag*{(8)} \end{aligned}

Memory

For memory calculations we assume 16-bit precision giving us 2 bytes per parameter. Memory requirements can be divided into two categories: static memory resulting from model weights and dynamic memory resulting from the KV-cache.

Static Memory Using the previously provided weight dimensions and α\alpha scaling factor, we can compute static memory requirements as follows

  • Attention: Weights Wq\mathbf{W}_q, Wk\mathbf{W}_k, Wv\mathbf{W}_v and Wo\mathbf{W}_o account for: 4d2α×24d^2\alpha\times2 bytes per layer

  • FF: Weights Wgate\mathbf{W}_{\mathrm{gate}}, Wup\mathbf{W}_{\mathrm{up}}, and Wdown\mathbf{W}_{\mathrm{down}} account for: 3di×23di \times2 bytes per layer

  • Output/Embedding: accounts for: 2vd×22vd \times2 bytes

Total Static Memory: L(8d2α+6di)+4vdL(8d^{2}\alpha+ 6di) + 4vd

Dynamic Memory The KV-cache contribution is 21 key, 1 val.×s(h′×dh)×2\underset{\text{1 key, 1 val.}}{2} \times s(h^{\prime} \times d_h) \times2 bytes per layer.

Total Dynamic Memory: 4Ls(h′dh)4Ls(h^{\prime}d_h)

Combining the contributions of static and dynamic memory, we get the following formula for the number of bytes required for one forward pass.

mem=L(8d2α+6di)+4vd+4Lshα(9)mem = L(8d^{2}\alpha+ 6di) + 4vd + 4Lsh\alpha \tag*{(9)}

Again, many of these values are constant for a given model architecture, so we get the following expressions as a function of α\alpha and sequence length, ss for DataJuicer-1.3B.

DataJuicer-1.3B

mem=L(8d2α+6di)+4vd+4Lshα≈24(8×20482×α+6×2048×5504)+4×32000×2048+4×24×s×2048×α≈8.05×108α⏟static memory (attention)+1.62×109⏟static memory (FF)+2.62×108⏟static memory (output)+1.97×105sα⏟dynamic memory≈8.05×108α+1.89×109+1.97×105sα(10)\begin{aligned} mem &= L(8d^{2}\alpha+ 6di) + 4vd + 4Lsh\alpha\\ &\approx24(8 \times2048^{2} \times\alpha+ 6 \times2048 \times5504) + 4 \times32000 \times2048 + 4 \times24 \times s \times2048 \times\alpha\\ &\approx\underbrace{8.05 \times10^{8}\alpha}_{\text{static memory (attention)}} + \underbrace{1.62 \times10^{9}}_{\text{static memory (FF)}} + \underbrace{2.62 \times10^{8}}_{\text{static memory (output)}} + \underbrace{1.97 \times10^{5}s\alpha}_{\text{dynamic memory}} \\ &\approx8.05 \times10^{8}\alpha+ 1.89 \times10^{9} + 1.97 \times10^{5}s\alpha \tag*{(10)} \end{aligned}

Experimental Settings

Experiments were run across multiple compute clusters using a variety of GPUs including L4OS (48GB), RTX8000 (48GB), A100L (80GB), A100 (40GB), V100 (32GB), A6000 (48GB), H100 (80GB). Each experiment was executed using 2 or 4 GPUs, depending on the compute availability.

Hyper-parameter Searches

Hyperparameter tuning was conducted using a grid search over the relevant hyper-parameters. Federated learning has numerous tunable parameters including server and client learning rates, ηs\eta_s and ηc\eta_c, respectively, the number of gradient steps (i.e. iterations) taken prior to client aggregation, II, and the number of federated rounds, RR. Optimal Hydra additionally requires tuning of hyper-parameter λ\lambda that governs the degree to which equal parameter training is enforced.

We first specify hyper-parameters that are common for all datasets and heterogeneity configurations:

  • R=40R = 40

  • I=200I = 200

  • ηs=1\eta_s = 1

ηc\eta_c and λ\lambda are tuned individually per method, dataset and heterogeneity combination, grid search ranges were specified by dataset as follows:

  • Alpaca: ηc={5×103,1×103,5×104,1×104}\eta_c = \{5 \times10^3, 1 \times10^3, 5 \times10^4, 1 \times10^4\}, λ={5,10,25,50,100,500,1000}\lambda= \{5, 10, 25, 50, 100, 500, 1000\}

  • Natural Instructions: ηc={1×103,7×104,5×104,1×104,5×105,1×105}\eta_c = \{1 \times10^3, 7 \times10^4, 5 \times10^4, 1 \times10^4, 5 \times10^5, 1 \times10^5\}, λ={50,100,500,1000,5000,10000}\lambda= \{50, 100, 500, 1000, 5000, 10000\}

  • Dolly 15K: ηc={5×104,1×104,5×105,1×105}\eta_c = \{5 \times10^4, 1 \times10^4, 5 \times10^5, 1 \times10^5\}, λ={0,1,5,10,25,100,500,1000}\lambda= \{0, 1, 5, 10, 25, 100, 500, 1000\}

Tab. 4 specifies the final hyper-parameter combinations used for each result,

DatasetConfigηc\eta_c (OH)λ\lambda (OH)ηc\eta_c (HFL)ηc\eta_c (Rolex)
Alpaca3Q(20)5×1035 \times10^31005×1045 \times10^41×1031 \times10^3
AlpacaH(20)5×1035 \times10^3105×1045 \times10^45×1045 \times10^4
AlpacaQ(20)1×1031 \times10^31005×1045 \times10^45×1045 \times10^4
AlpacaF(5)3Q(5)H(5)Q(5)5×1035 \times10^3251×1031 \times10^31×1031 \times10^3
AlpacaH(10)Q(10)1×1031 \times10^3251×1031 \times10^31×1041 \times10^4
Alpaca3Q(6)H(7)Q(7)5×1035 \times10^3505×1045 \times10^45×1035 \times10^3
AlpacaH(5)Q(15)1×1031 \times10^3255×1045 \times10^45×1045 \times10^4
Alpaca3Q(2)H(2)Q(16)5×1035 \times10^31005×1045 \times10^45×1045 \times10^4
Dolly 15K3Q(20)5×1055 \times10^505×1055 \times10^51×1051 \times10^5
Dolly 15KH(20)1×1041 \times10^41005×1055 \times10^55×1055 \times10^5
Dolly 15KQ(20)1×1051 \times10^501×1051 \times10^55×1065 \times10^6
Dolly 15KF(5)3Q(5)H(5)Q(5)1×1051 \times10^5255×1055 \times10^55×1055 \times10^5
Dolly 15KH(10)Q(10)5×1055 \times10^5505×1055 \times10^55×1055 \times10^5
Dolly 15K3Q(6)H(7)Q(7)5×1055 \times10^5255×1055 \times10^55×1055 \times10^5
Dolly 15KH(5)Q(15)5×1055 \times10^515×1055 \times10^55×1055 \times10^5
Dolly 15K3Q(2)H(2)Q(16)5×1055 \times10^555×1055 \times10^55×1055 \times10^5
NI3Q(20)7×1047 \times10^45005×1045 \times10^45×1045 \times10^4
NIH(20)5×1045 \times10^41005×1045 \times10^41×1041 \times10^4
NIQ(20)5×1055 \times10^550001×1041 \times10^45×1055 \times10^5
NIF(5)3Q(5)H(5)Q(5)1×1041 \times10^41001×1041 \times10^41×1051 \times10^5
NIH(10)Q(10)1×1041 \times10^41001×1041 \times10^45×1055 \times10^5
NI3Q(6)H(7)Q(7)1×1041 \times10^41001×1041 \times10^41×1041 \times10^4
NIH(5)Q(15)1×1041 \times10^4501×1041 \times10^45×1065 \times10^6
NI3Q(2)H(2)Q(16)1×1041 \times10^45001×1041 \times10^41×1041 \times10^4

Table 4. Provides selected hyper-parameters for Optimal Hydra each dataset, heterogeneity combination evaluated in the main body of the paper. OH stands for Optimal Hydra, HFL and Rolex for our modified HeteroFL and FedRolex baselines, respectively.

(Wv)2 Dominates Head Scoring

In the Individual Head Selection section of the main paper we reference an importance score (shs_h) utilized in the determination of attention head importance by Panos et al. [28] (Eq. 11)

sh=∑i,j((Gqh)i,j2+(Gkh)i,j2+(Gvh)i,j2)(11)s_h = \sum_{i,j} \left(\left(G_{qh}\right)_{i,j}^{2} + \left(G_{kh}\right)_{i,j}^{2} + \left(G_{vh}\right)_{i,j}^{2}\right) \tag*{(11)}

We justified our simplification of the scoring function to Eq. (4) by claiming that in our experiments the (Gvh)i,j2\left(G_{vh}\right)_{i,j}^{2} term dominates, the following plots have been selected to demonstrate this claim.

Figure 3 and Figure 4 show selected instances of scores for a particular client, layer and training round to illustrate the dominance of ∇(Wv)2\nabla(W_v)^2. Plots show scores for (∇Wq)2(\nabla W_q)^2 (orange), (∇Wk)2(\nabla W_k)^2 (green), (∇Wv)2(\nabla W_v)^2 (purple) and (∇Wq)2+(∇Wk)2+(∇Wv)2(\nabla W_q)^2 + (\nabla W_k)^2 + (\nabla W_v)^2 (blue) were generated for federated rounds {1,2,3,4,5,15,20,30,40}\{1, 2, 3, 4, 5, 15, 20, 30, 40\}, for each transformer block and each client. Results indicate that the score from Eq. (11) is largely dominated by (∇Wv)2(\nabla W_v)^2.

Figure 3. For Client 1 at round 20 and transformer layer 1, we see head 7 is unimportant to both ∇(Wv)2\nabla(W_v)^2 and (∇Wq)2+(∇Wk)2+(∇Wv)2(\nabla W_q)^2 + (\nabla W_k)^2 + (\nabla W_v)^2 and important to (∇Wq)2(\nabla W_q)^2 and (∇Wk)2(\nabla W_k)^2 showing the dominance of ∇(Wv)2\nabla(W_v)^2 in the scoring mechanism proposed in Eq. (11)

Figure 4. For Client 3 at round 5 and transformer layer 13, we see head 2 is important to both ∇(Wv)2\nabla(W_v)^2 and (∇Wq)2+(∇Wk)2+(∇Wv)2(\nabla W_q)^2 + (\nabla W_k)^2 + (\nabla W_v)^2 and unimportant to (∇Wq)2(\nabla W_q)^2 and (∇Wk)2(\nabla W_k)^2 again that (Wv)2(W_v)^2 is dominant.

References

  1. [2]Naman Agarwal, Brian Bullins, and Elad Hazan. Second-order stochastic optimization for machine learning in linear time. Journal of Machine Learning Research, 18(116):1–40, 2017.arxiv.org/abs/1602.03943
  2. [3]Samiul Alam, Luyang Liu, Ming Yan, and Mi Zhang. Fedrolex: Model-heterogeneous federated learning with rolling sub-model extraction. Advances in neural information processing systems, 35:29677–29690, 2022.arxiv.org/abs/2212.01548
  3. [4]Sara Babakniya, Ahmed Roushdy Elkordy, Yahya H Ezzeldin, Qingfeng Liu, Kee-Bong Song, MOSTAFA El-Khamy, and Salman Avestimehr. Slora: Federated parameter efficient fine-tuning of language models. In International Workshop on Federated Learning in the Age of Foundation Models in Conjunction with NeurIPS 2023, 2023a.arxiv.org/abs/2308.06522
  4. [5]Sara Babakniya, Souvik Kundu, Souvik Prakash, Yue Yue, Ram Rajagopal, Massoud Pedram, and Murali Annavaram. Revisiting sparsity hunting in federated learning: Client drift and incoherent masks. In International Conference on Learning Representations (ICLR), 2023b.
  5. [6]Jiamu Bai, Daoyuan Chen, Bingchen Qian, Liuyi Yao, and Yaliang Li. Federated fine-tuning of large language models under heterogeneous tasks and client resources. Advances in Neural Information Processing Systems, 37:14457–14483, 2024.arxiv.org/abs/2402.11505
  6. [7]Rishi Bommasani, Drew A Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, et al. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021.arxiv.org/abs/2108.07258
  7. [8]Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.arxiv.org/abs/2005.14165
  8. [9]Daoyuan Chen, Yilun Huang, Zhijian Ma, Hesen Chen, Xuchen Pan, Ce Ge, Dawei Gao, Yuexiang Xie, Zhaoyang Liu, Jinyang Gao, et al. Data-juicer: A one-stop data processing system for large language models. In Companion of the 2024 International Conference on Management of Data, pp. 120–134, 2024.arxiv.org/abs/2309.02033
  9. [10]Guanzheng Chen, Fangyu Liu, Zaiqiao Meng, and Shangsong Liang. Revisiting parameter-efficient tuning: Are we really there yet? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 2612–2626, 2022.
  10. [11]Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. Free dolly: Introducing the world’s first truly open instruction-tuned llm, 2023. URL https://www.databricks.com/blog/2023/04/12/dolly-first-open-commercially-viable-instruction-tuned-llm.
  11. [12]Arthur P Dempster, Nan M Laird, and Donald B Rubin. Maximum likelihood from incomplete data via the em algorithm. Journal of the Royal Statistical Society: Series B (Methodological), 39(1):1–22, 1977.DOI
  12. [13]Enmao Diao, Jie Ding, and Vahid Tarokh. Heterofl: Computation and communication efficient federated learning for heterogeneous clients. In International Conference on Learning Representations, 2020.arxiv.org/abs/2010.01264
  13. [14]Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2018.
  14. [15]Shwai He, Guoheng Sun, Zheyu Shen, and Ang Li. What matters in transformers? not all attention is needed. CoRR, abs/2406.15786, 2024. URL https://doi.org/10.48550/arXiv.2406.15786.
  15. [16]Samuel Horvath, Stefanos Laskaridis, Mario Almeida, Ilias Leontiadis, Stylianos Venieris, and Nicholas Lane. Fjord: Fair and accurate federated learning under heterogeneous targets with ordered dropout. Advances in Neural Information Processing Systems, 34:12876–12889, 2021.arxiv.org/abs/2102.13451
  16. [17]Yihan Hu, Jiazhi Yang, Li Chen, Keyu Li, Chonghao Sima, Xizhou Zhu, Yaren Chai, Senyao Du, Tianwei Lin, Wenhai Wang, et al. Planning-oriented autonomous driving. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 17853–17862, 2023.arxiv.org/abs/2212.10156
  17. [18]Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Kallista Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. Foundations and trends® in machine learning, 14(1–2):1–210, 2021.arxiv.org/abs/1912.04977
  18. [19]Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.arxiv.org/abs/2001.08361
  19. [20]Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. Scaffold: Stochastic controlled averaging for federated learning. In International conference on machine learning, pp. 5132–5143. PMLR, 2020.arxiv.org/abs/1910.06378
  20. [21]Yann LeCun, John Denker, and Sara Solla. Optimal brain damage. In D. Touretzky (ed.), Advances in Neural Information Processing Systems, volume 2. Morgan-Kaufmann, 1989. URL https://proceedings.neurips.cc/paper_files/paper/1989/file/6c9882bbac1c7093bd25041881277658-Paper.pdf.
  21. [22]Gwen Legate, Nicolas Bernier, Lucas Page-Caccia, Edouard Oyallon, and Eugene Belilovsky. Guiding the last layer in federated learning with pre-trained models. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 69832–69848. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/dcc0ac74ac8b95dc1939804acce0317d-Paper-Conference.pdf.arxiv.org/abs/2306.03937
  22. [23]Tianchi Liao, Ziyue Xu, Qing Hu, Hong-Ning Dai, Huaiwei Huang, Zibin Zheng, and Chuan Chen. Fedbrb: A solution to the small-to-large scenario in device-heterogeneity federated learning. IEEE Transactions on Mobile Computing, 2025. doi: 10.1109/TMC.2025.3610985.DOI
  23. [24]Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pp. 74–81, Barcelona, Spain, July 2004. Association for Computational Linguistics. URL https://aclanthology.org/W04-1013.
  24. [25]Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273–1282. PMLR, 2017.
  25. [26]Paul Michel, Omer Levy, and Graham Neubig. Are sixteen heads really better than one? Advances in neural information processing systems, 32, 2019.arxiv.org/abs/1905.10650
  26. [27]John Nguyen, Jianyu Wang, Kshitiz Malik, Maziar Sanjabi, and Michael Rabbat. Where to begin? on the impact of pre-training and initialization in federated learning. In The Eleventh International Conference on Learning Representations, 2022.
  27. [28]Aristeidis Panos, Rahaf Aljundi, Daniel Olmeda Reino, and Richard E. Turner. Efficient few-shot continual learning in vision-language models. Transactions on Machine Learning Research, 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=sQ1w92WW0V.arxiv.org/abs/2502.04098
  28. [29]Lorenzo Sani, Alex Jacob, Zeyu Cao, Bill Marino, Yan Gao, Tomas Paulik, Wanru Zhao, William F Shen, Preslav Aleksandrov, Xinchi Qiu, et al. The future of large language model pre-training is federated. In International Workshop on Federated Foundation Models in Conjunction with NeurIPS 2024, 2024.arxiv.org/abs/2405.10853
  29. [30]Noam Shazeer. Glu variants improve transformer. arXiv preprint arXiv:2002.05202, 2020.arxiv.org/abs/2002.05202
  30. [31]Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca, 2023.

Paper details

vlnc:W_3wwhc9fs
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents