FedOPAL: One-Shot Federated Learning via Analytic Visual Prompt Tuning

arXiv cs.AI Papers

Summary

FedOPAL proposes a framework that adapts visual prompts as feature rectifiers for one-shot federated learning, achieving efficient gradient-free aggregation via analytic methods while outperforming existing analytical approaches and matching iterative methods with zero server-side training costs.

arXiv:2607.08368v1 Announce Type: new Abstract: With the widespread deployment of basic models in edge intelligence, communication bandwidth has become a core bottleneck restricting the scalability of federated learning. Although one-shot federated learning alleviates this problem by minimizing communication rounds, existing iterative fine-tuning or knowledge distillation methods still face challenges such as high server-side computational costs and hyperparameter sensitivity. Analytical federated learning achieves efficient gradientfree aggregation using least-squares closed-form solutions, but in environments with non-independent and identically distributed data, its static feature assumptions fail, leading to feature manifold misalignment and severely impairing model performance. To address this contradiction, this paper proposes the FedOPAL framework. This framework adapts the visual prompts as feature rectifiers, actively correcting the feature distribution of heterogeneous data to a linearly separable space by applying local proximal constraints, thereby satisfying the theoretical assumptions of analytical federated learning. Experimental results show that FedOPAL not only significantly outperforms the original analytical methods on several benchmarks, but also achieves accuracy comparable to state-of-the-art iterative methods while maintaining zero server-side training costs, providing a new engineering paradigm for efficient collaboration of large models on the edge.
Original Article
View Cached Full Text

Cached at: 07/10/26, 06:08 AM

# FedOPAL: One-Shot Federated Learning via Analytic Visual Prompt Tuning
Source: [https://arxiv.org/html/2607.08368](https://arxiv.org/html/2607.08368)
Lingyu Qiu, Daniela Annunziata, Stefano Izzo, Fabio Giampaolo, Francesco Piccialli†\\dagger Department of Mathematics and Applications “R\. Caccioppoli”, University of Naples Federico II, Italy \{lingyu\.qiu, daniela\.annunziata, stefano\.izzo, fabio\.giampaolo, francesco\.piccialli\}@unina\.it

###### Abstract

With the widespread deployment of basic models in edge intelligence, communication bandwidth has become a core bottleneck restricting the scalability of federated learning\. Although one\-shot federated learning alleviates this problem by minimizing communication rounds, existing iterative fine\-tuning or knowledge distillation methods still face challenges such as high server\-side computational costs and hyperparameter sensitivity\. Analytical federated learning achieves efficient gradient\-free aggregation using least\-squares closed\-form solutions, but in environments with non\-independent and identically distributed data, its static feature assumptions fail, leading to feature manifold misalignment and severely impairing model performance\. To address this contradiction, this paper proposes the FedOPAL framework\. This framework adapts the visual prompts as feature rectifiers, actively correcting the feature distribution of heterogeneous data to a linearly separable space by applying local proximal constraints, thereby satisfying the theoretical assumptions of analytical federated learning\. Experimental results show that FedOPAL not only significantly outperforms the original analytical methods on several benchmarks, but also achieves accuracy comparable to state\-of\-the\-art iterative methods while maintaining zero server\-side training costs, providing a new engineering paradigm for efficient collaboration of large models on the edge\.

††footnotetext:†\\daggerCorresponding author\.††footnotetext:Code is available at:https://github\.com/Lynn0925/FLICS## IIntroduction

Federated Learning \(FL\) has achieved significant success as a privacy\-preserving distributed machine learning paradigm, particularly in medical image analysis\[[1](https://arxiv.org/html/2607.08368#bib.bib164)\], financial risk control\[[22](https://arxiv.org/html/2607.08368#bib.bib161)\], and the Internet of Things \(IoT\)\[[26](https://arxiv.org/html/2607.08368#bib.bib162)\]\. However, deep learning is currently transitioning into the era of large\-scale pre\-trained foundation models, leading to an exponential increase in model parameters\. For instance, deploying models like ViT\[[6](https://arxiv.org/html/2607.08368#bib.bib2)\]and CLIP\[[18](https://arxiv.org/html/2607.08368#bib.bib6)\]significantly increases the communication overhead between edge devices and servers\. Meanwhile, relying on simple networks is no longer sufficient to meet the growing performance demands of modern industry\[[14](https://arxiv.org/html/2607.08368#bib.bib159)\]\. In scenarios with limited bandwidth or unstable connections, such as autonomous vehicles or satellite communications, the high\-frequency parameter interaction required by the traditional federated averaging algorithm FedAvg has become computationally prohibitive\[[17](https://arxiv.org/html/2607.08368#bib.bib165)\]\. Therefore, realizing One\-Shot Federated Learning \(OFL\) that can complete model aggregation with only one communication round has become a key technology to break through this bottleneck\[[2](https://arxiv.org/html/2607.08368#bib.bib163)\]\.

To achieve single\-round aggregation, existing research methods, such as those based on knowledge distillation\[[25](https://arxiv.org/html/2607.08368#bib.bib217),[24](https://arxiv.org/html/2607.08368#bib.bib14),[12](https://arxiv.org/html/2607.08368#bib.bib250)\]and data synthesis approaches\[[23](https://arxiv.org/html/2607.08368#bib.bib87)\], typically employ server\-side retraining\. In these approaches, clients upload model parameters or generators, and the server utilizes public datasets or synthetic data to integrate knowledge via iterative optimization \(e\.g\., ensemble distillation\)\. While this strategy successfully circumvents multiple communication rounds, it merely shifts the computational burden from the edge to the server, rather than reducing the overall system load\.

Recently, statistical computation methods based on pre\-trained models have been proposed\[[7](https://arxiv.org/html/2607.08368#bib.bib317),[10](https://arxiv.org/html/2607.08368#bib.bib316)\], introducing a new paradigm for OFL\. They leverage the powerful representational capabilities of pre\-trained models, using methods such as least squares to compute analytical solutions at the mathematical level directly\. This allows federated learning to eliminate the need for additional client training, obtaining results solely through computation\. This approach provides a new perspective on one\-shot federated learning; if a sufficiently powerful model is available, the final task in a single aggregation becomes how to stimulate the model’s capabilities\.

However, this approach relies on the strong assumption: the features extracted by the frozen backbone across heterogeneous client distributions must be high\-quality and linearly separable\[[10](https://arxiv.org/html/2607.08368#bib.bib316)\]\. In real\-world non\-IID scenarios, data distributions across different clients vary significantly, often causing the feature manifold extracted by the frozen model to be misaligned\. A purely mathematical solver cannot adjust the feature extraction process itself, and its analytical solution inevitably degenerates in the face of chaotic feature statistics\.

To address these challenges, we argue for a mechanism to steer the frozen backbone’s feature extraction process prior to applying the linear layer, all while maintaining communication efficiency\. This paper proposes FedOPAL, which utilizes Visual Prompt Tuning \(VPT\) to inject learnable tokens into the embedding sequence of the foundation model\. Unlike pixel\-level modifications, these prompts act as lightweight, learnable contexts that rectify local features and adapt them to the Analytic Federated Learning \(AFL\)\. The main contributions of this paper are as follows:

- •The FedOPAL framework is proposed to address the misalignment problem in statistical OFL methods\. We redefine visual prompt tokens as distribution modulators in the embedding space, actively steering the frozen backbone to map heterogeneous data onto linearly separable manifolds, which ensures the effectiveness of analytical solutions under complex distributions\.
- •We utilize the closed\-form solution property to replace traditional iterative fine\-tuning of the Vision\-Language Model with efficient algebraic operations\. Under this design, the client handles feature adaptation via prompt tuning, while the server only needs to perform statistical synthesis, significantly reducing system overhead\.
- •Extensive experiments on complex benchmarks demonstrate that FedOPAL significantly outperforms existing analytical baselines in heterogeneous environments\. Furthermore, our method achieves accuracy comparable to state\-of\-the\-art iterative methods, proving that analytics\-based approaches are sufficient for the practical deployment needs of large\-scale edge intelligence applications\.

## IIRelated Work

### II\-AOne\-Shot Federated Learning

One\-Shot federated learning aims to achieve model convergence within a single communication round\. Early approaches primarily relied on data synthesis or knowledge distillation, where the server trains a generator to recover client data distributions\[[24](https://arxiv.org/html/2607.08368#bib.bib14),[28](https://arxiv.org/html/2607.08368#bib.bib193),[20](https://arxiv.org/html/2607.08368#bib.bib306),[5](https://arxiv.org/html/2607.08368#bib.bib89)\]\. Methods such as joint data\-model optimization\[[5](https://arxiv.org/html/2607.08368#bib.bib89)\]and dataset distillation\[[20](https://arxiv.org/html/2607.08368#bib.bib306)\]have been employed to improve distillation performance\. Additionally, recent works have incorporated diffusion models\[[15](https://arxiv.org/html/2607.08368#bib.bib41)\], dataset synthesis\[[4](https://arxiv.org/html/2607.08368#bib.bib105)\], and XOR\-based mixup augmentation\[[19](https://arxiv.org/html/2607.08368#bib.bib259)\]to address privacy concerns\. However, these methods often incur high computational costs due to the iterative training of generative models\. In contrast, statistical\-based methods offer a computationally efficient alternative by leveraging sufficient statistics\. Instead of transmitting gradients, these methods aggregate local statistical information to derive a global closed\-form solution\. AFL\[[10](https://arxiv.org/html/2607.08368#bib.bib316)\]achieved gradient\-free aggregation by modeling the classifier training as a distributed least squares problem\. FedCGS\[[7](https://arxiv.org/html/2607.08368#bib.bib317)\]explored combining such analytical solvers with prototype learning to enhance feature robustness\. While highly efficient, these methods are strictly dependent on the alignment of feature statistics and the inherent representational power of the pre\-trained model\.

### II\-BPrompt Learning

Prompt Learning initially emerged in Natural Language Processing \(NLP\) and was subsequently introduced to Vision\-Language Models \(VLMs\)\[[27](https://arxiv.org/html/2607.08368#bib.bib4)\]\. In the context of federated learning, FedOTP\[[13](https://arxiv.org/html/2607.08368#bib.bib9)\]and PromptFL\[[8](https://arxiv.org/html/2607.08368#bib.bib8)\]have attempted to learn prompt parameters through a federated approach\[[9](https://arxiv.org/html/2607.08368#bib.bib5)\]\. However, existing work largely focuses on fine\-tuning text prompts\. In CLIP\-like architectures, the text encoder generates the weights for the linear classifier; thus, optimizing text prompts is essentially equivalent to optimizing classifier weights\. Given that Analytic Federated Learning already provides a direct, closed\-form solution for the optimal linear classifier, iteratively optimizing text prompts becomes inefficient and logically redundant\. Conversely, Visual Prompting modifies the input embedding space \(or pixels\), providing a stronger capability to reshape the underlying feature manifold\. To the best of our knowledge, visual prompting has not yet been applied to Analytic Federated Learning frameworks\.

## IIIMethodology

We propose the FedOPAL framework, which aims to efficiently adapt frozen foundation models to heterogeneous federated data through single\-round communication\. FedOPAL decouples feature alignment from classifier learning: it employs visual prompt tuning to locally rectify the feature space and leverages analytic learning \(AL\)\[[10](https://arxiv.org/html/2607.08368#bib.bib316),[21](https://arxiv.org/html/2607.08368#bib.bib3)\]to achieve optimal alignment of the global classifier\.

![Refer to caption](https://arxiv.org/html/2607.08368v1/framework.png)Figure 1:Overview of FedOPAL\.\(Left\) In the local training phase, clients freeze the foundation model backbone and optimize a set of continuousvisual prompt tokens𝐏k\\mathbf\{P\}\_\{k\}inserted into the input embedding sequence\. Using the rectified features extracted from the prompt\-augmented sequences, clients compute closed\-form sufficient statistics \(𝐑k,𝐂k\\mathbf\{R\}\_\{k\},\\mathbf\{C\}\_\{k\}\)\. \(Right\) The server aggregates these statistics to analytically derive the optimal global classifier𝐖∗\\mathbf\{W\}^\{\*\}and averages the prompt tokens, achieving efficient one\-shot federated learning\.### III\-APreliminaries

#### III\-A1Analytic Federated Learning

We adopt the Analytic Learning \(AL\) framework\[[10](https://arxiv.org/html/2607.08368#bib.bib316)\]to solve the classifier learning problem in a communication\-efficient manner\. Consider a classification task withCCclasses acrossKKclients\. Let𝒟k=\{\(𝐱i,𝐲i\)\}i=1Nk\\mathcal\{D\}\_\{k\}=\\\{\(\\mathbf\{x\}\_\{i\},\\mathbf\{y\}\_\{i\}\)\\\}\_\{i=1\}^\{N\_\{k\}\}denote the local dataset of clientkk, where𝐲i∈ℝC\\mathbf\{y\}\_\{i\}\\in\\mathbb\{R\}^\{C\}is the one\-hot label vector\. The goal is to learn a linear classifier𝐖∈ℝd×C\\mathbf\{W\}\\in\\mathbb\{R\}^\{d\\times C\}on top of a frozen feature extractorf​\(⋅\)f\(\\cdot\)by minimizing theL2L\_\{2\}\-regularized Mean Squared Error \(MSE\):

𝐖∗=arg⁡min𝐖​∑k=1K∑i=1Nk‖𝐖⊤​f​\(𝐱i\)−𝐲i‖22\+λ​‖𝐖‖F2,\\mathbf\{W\}^\{\*\}=\\arg\\min\_\{\\mathbf\{W\}\}\\sum\_\{k=1\}^\{K\}\\sum\_\{i=1\}^\{N\_\{k\}\}\\\|\\mathbf\{W\}^\{\\top\}f\(\\mathbf\{x\}\_\{i\}\)\-\\mathbf\{y\}\_\{i\}\\\|^\{2\}\_\{2\}\+\\lambda\\\|\\mathbf\{W\}\\\|\_\{F\}^\{2\},\(1\)
whereλ\\lambdais a regularization coefficient\. This optimization problem has a closed\-form solution derived from aggregated sufficient statistics:

𝐖∗=\(∑k=1K𝐑k\+λ​𝐈\)−1​\(∑k=1K𝐂k\),\\mathbf\{W\}^\{\*\}=\\left\(\\sum\_\{k=1\}^\{K\}\\mathbf\{R\}\_\{k\}\+\\lambda\\mathbf\{I\}\\right\)^\{\-1\}\\left\(\\sum\_\{k=1\}^\{K\}\\mathbf\{C\}\_\{k\}\\right\),\(2\)
where𝐑k∈ℝd×d\\mathbf\{R\}\_\{k\}\\in\\mathbb\{R\}^\{d\\times d\}and𝐂k∈ℝd×C\\mathbf\{C\}\_\{k\}\\in\\mathbb\{R\}^\{d\\times C\}are the local autocorrelation and cross\-correlation matrices, respectively:

𝐑k=∑\(𝐱,𝐲\)∈𝒟k𝐡𝐡⊤,𝐂k=∑\(𝐱,𝐲\)∈𝒟k𝐡𝐲⊤,\\mathbf\{R\}\_\{k\}=\\sum\_\{\(\\mathbf\{x\},\\mathbf\{y\}\)\\in\\mathcal\{D\}\_\{k\}\}\\mathbf\{h\}\\mathbf\{h\}^\{\\top\},\\quad\\mathbf\{C\}\_\{k\}=\\sum\_\{\(\\mathbf\{x\},\\mathbf\{y\}\)\\in\\mathcal\{D\}\_\{k\}\}\\mathbf\{h\}\\mathbf\{y\}^\{\\top\},\(3\)where𝐡=f​\(𝐱\)\\mathbf\{h\}=f\(\\mathbf\{x\}\)denotes the extracted feature vector\.

#### III\-A2Visual Prompt Tuning \(VPT\)

Instead of modifying input pixels or fine\-tuning the entire backbone, we adopt Visual Prompt Tuning \(VPT\)\[[11](https://arxiv.org/html/2607.08368#bib.bib10)\], specifically the VPT\-Shallow variant\. This approach adapts frozen Vision Transformers \(ViTs\) by introducing a small set ofM=10M=10learnable continuous tokens𝐏∈ℝM×D\\mathbf\{P\}\\in\\mathbb\{R\}^\{M\\times D\}into the embedding space, whereDDis the embedding dimension\.

Given an input image𝐱\\mathbf\{x\}, the ViT backbone first divides it into fixed\-size patches and projects them into patch embeddings𝐄∈ℝL×D\\mathbf\{E\}\\in\\mathbb\{R\}^\{L\\times D\}\. Let𝐱c​l​s∈ℝ1×D\\mathbf\{x\}\_\{cls\}\\in\\mathbb\{R\}^\{1\\times D\}denote the learnable class token\. In our implementation, to preserve the spatial semantics of the pre\-trained positional embeddings, we first apply position embeddings to the class token and patch embeddings\. The learnable prompt tokens𝐏\\mathbf\{P\}are then inserted into the sequence:

𝐙r​a​w=\[𝐱c​l​s,𝐄\]\+𝐄p​o​s,\\mathbf\{Z\}\_\{raw\}=\[\\mathbf\{x\}\_\{cls\},\\mathbf\{E\}\]\+\\mathbf\{E\}\_\{pos\},\(4\)𝐙0=\[𝐙r​a​w\(0\),𝐏,𝐙r​a​w\(1:L\)\],\\mathbf\{Z\}\_\{0\}=\\left\[\\mathbf\{Z\}\_\{raw\}^\{\(0\)\},\\mathbf\{P\},\\mathbf\{Z\}\_\{raw\}^\{\(1:L\)\}\\right\],\(5\)
where𝐄p​o​s\\mathbf\{E\}\_\{pos\}represents the position embeddings\.𝐙r​a​w\(0\)\\mathbf\{Z\}\_\{raw\}^\{\(0\)\}is the class token with positional information, and𝐙r​a​w\(1:L\)\\mathbf\{Z\}\_\{raw\}^\{\(1:L\)\}are the patch embeddings with positional information\. The prompt tokens𝐏\\mathbf\{P\}are inserted between the class token and the patches\. The frozen Transformer blocks process this extended sequence, and the final classification feature𝐡\\mathbf\{h\}is obtained from the class token state at the last layer, denoted as𝐡=fθ​\(𝐙0\)\[C​L​S\]\\mathbf\{h\}=f\_\{\\theta\}\(\\mathbf\{Z\}\_\{0\}\)\_\{\[CLS\]\}\.

### III\-BThe FedOPAL Framework

FedOPAL integrates VPT with Analytic Learning to tackle the challenge of Non\-IID data\. The workflow consists of two main stages: Local Prompt Learning and Global Analytic Aggregation\.

#### III\-B1Local Stage: Feature Rectification via VPT

Each clientkkinitializes a local prompt matrix𝐏k\\mathbf\{P\}\_\{k\}and a temporary local linear head𝐖k\\mathbf\{W\}\_\{k\}\. The massive backbone modelfθf\_\{\\theta\}remains frozen\.

##### Step 1: Local Prompt Optimization

The client optimizes the prompt tokens𝐏k\\mathbf\{P\}\_\{k\}using gradient descent to adapt the frozen backbone to the local data distribution\. The objective is to minimize the Cross\-Entropy loss:

min𝐏k,𝐖k⁡1Nk​∑\(𝐱,y\)∈𝒟kℒC​E​\(Softmax​\(𝐖k⊤​fθ​\(𝐙k​\(𝐱\)\)\[C​L​S\]\),y\)\+μ2​‖𝐏k−𝐏i​n​i​t‖2\\begin\{split\}\\min\_\{\\mathbf\{P\}\_\{k\},\\mathbf\{W\}\_\{k\}\}\\frac\{1\}\{N\_\{k\}\}\\sum\_\{\(\\mathbf\{x\},y\)\\in\\mathcal\{D\}\_\{k\}\}&\\mathcal\{L\}\_\{CE\}\\left\(\\text\{Softmax\}\(\\mathbf\{W\}\_\{k\}^\{\\top\}f\_\{\\theta\}\(\\mathbf\{Z\}\_\{k\}\(\\mathbf\{x\}\)\)\_\{\[CLS\]\}\),y\\right\)\\\\ &\+\\frac\{\\mu\}\{2\}\\\|\\mathbf\{P\}\_\{k\}\-\\mathbf\{P\}\_\{init\}\\\|^\{2\}\\end\{split\}\(6\)where𝐙k​\(𝐱\)\\mathbf\{Z\}\_\{k\}\(\\mathbf\{x\}\)is the prompt\-augmented sequence defined in Eq\. \([5](https://arxiv.org/html/2607.08368#S3.E5)\) using the local prompt𝐏k\\mathbf\{P\}\_\{k\}, andμ\\muis the proximal coefficient that controls the trade\-off between local adaptation and global stability\.

##### Step 2: Local Statistic Extraction

Once the prompt𝐏k\\mathbf\{P\}\_\{k\}converges, we freeze it\. The client then performs a forward pass using the prompt\-augmented sequence to compute the sufficient statistics required for Analytic Learning:

𝐑k=∑\(𝐱,𝐲\)∈𝒟k𝐡i​𝐡i⊤,𝐂k=∑\(𝐱,𝐲\)∈𝒟k𝐡i​𝐲i⊤,\\mathbf\{R\}\_\{k\}=\\sum\_\{\(\\mathbf\{x\},\\mathbf\{y\}\)\\in\\mathcal\{D\}\_\{k\}\}\\mathbf\{h\}\_\{i\}\\mathbf\{h\}\_\{i\}^\{\\top\},\\quad\\mathbf\{C\}\_\{k\}=\\sum\_\{\(\\mathbf\{x\},\\mathbf\{y\}\)\\in\\mathcal\{D\}\_\{k\}\}\\mathbf\{h\}\_\{i\}\\mathbf\{y\}\_\{i\}^\{\\top\},\(7\)where𝐡i=fθ​\(𝐙k​\(𝐱i\)\)\[C​L​S\]\\mathbf\{h\}\_\{i\}=f\_\{\\theta\}\(\\mathbf\{Z\}\_\{k\}\(\\mathbf\{x\}\_\{i\}\)\)\_\{\[CLS\]\}is the rectified feature vector extracted from the frozen backbone guided by the optimized prompt\.

#### III\-B2Server Stage: Dual Aggregation

Clients upload their optimized prompt tokens𝐏k\\mathbf\{P\}\_\{k\}and statistic matrices𝐑k,𝐂k\\mathbf\{R\}\_\{k\},\\mathbf\{C\}\_\{k\}to the server\. The server performs a dual aggregation:

##### 1\. Prompt Aggregation

The server averages the local prompt tokens to obtain a global prompt𝐏g​l​o​b​a​l\\mathbf\{P\}\_\{global\}\. This element\-wise averaging works because the pre\-trained backbone shares manifold similarities for a specific task\. When all clients initialize from a shared embedding space, local prompts𝐏k\\mathbf\{P\}\_\{k\}act as orientation vectors, shifting heterogeneous local distributions toward task\-aligned subspaces\. Since the prompts operate in a shared semantic embedding space, element\-wise averaging captures the consensus of visual contexts:

𝐏g​l​o​b​a​l=1K​∑k=1K𝐏k\.\\mathbf\{P\}\_\{global\}=\\frac\{1\}\{K\}\\sum\_\{k=1\}^\{K\}\\mathbf\{P\}\_\{k\}\.\(8\)

##### 2\. Analytic Classifier Resolution

Using the uploaded statistics, the server analytically computes the optimal global classifier𝐖g​l​o​b​a​l∗\\mathbf\{W\}\_\{global\}^\{\*\}without iterative training\. This step solves the regularized least squares problem over the aggregated feature space:

𝐖g​l​o​b​a​l∗=\(∑k=1K𝐑k\+λ​𝐈\)−1​\(∑k=1K𝐂k\)\.\\mathbf\{W\}\_\{global\}^\{\*\}=\\left\(\\sum\_\{k=1\}^\{K\}\\mathbf\{R\}\_\{k\}\+\\lambda\\mathbf\{I\}\\right\)^\{\-1\}\\left\(\\sum\_\{k=1\}^\{K\}\\mathbf\{C\}\_\{k\}\\right\)\.\(9\)

### III\-CInference

During inference, the client uses the downloaded global prompt𝐏g​l​o​b​a​l\\mathbf\{P\}\_\{global\}and classifier𝐖g​l​o​b​a​l∗\\mathbf\{W\}\_\{global\}^\{\*\}\. A test image𝐱t​e​s​t\\mathbf\{x\}\_\{test\}is processed by constructing the global sequence𝐙g​l​o​b​a​l\\mathbf\{Z\}\_\{global\}following Eq\. \([5](https://arxiv.org/html/2607.08368#S3.E5)\) with𝐏g​l​o​b​a​l\\mathbf\{P\}\_\{global\}\. The final prediction is computed as:

y^=arg⁡max⁡\(\(𝐖g​l​o​b​a​l∗\)⊤⋅fθ​\(𝐙g​l​o​b​a​l\)\[C​L​S\]\)\.\\hat\{y\}=\\arg\\max\\left\(\(\\mathbf\{W\}\_\{global\}^\{\*\}\)^\{\\top\}\\cdot f\_\{\\theta\}\(\\mathbf\{Z\}\_\{global\}\)\_\{\[CLS\]\}\\right\)\.\(10\)This ensures that the test data undergoes the same feature rectification logic learned during the distributed training phase\.

## IVExperiments

### IV\-AExperimental Settings

#### IV\-A1Datasets

In this paper, we used multiple datasets for evaluation to ensure the completeness: CIFAR\-10 and CIFAR\-100 \(containing coarse\-grained and fine\-grained natural objects\), SVHN \(Street View House Numbers\) and DTD \(Describable Textures Dataset\)\. These datasets cover a wide range of visual tasks, allowing us to test the method’s adaptability to heterogeneous feature distributions and varying task difficulties\.

The non\-IID settings used a Dirichlet distribution \(α∈\{0\.01,0\.1,0\.5\}\\alpha\\in\\\{0\.01,0\.1,0\.5\\\}\)\. The baseline models included FedAvg \(ResNet/CLIP\), the original AFL, FedCGS, and FedPFT\. The backbone network of our method used CLIP \(ViT\-B/16\)\.

#### IV\-A2Data partition

The widely used Dirichlet partitioning \(α∈\{0\.01,0\.1,0\.5\}\\alpha\\in\\\{0\.01,0\.1,0\.5\\\}\) strategy\[[16](https://arxiv.org/html/2607.08368#bib.bib16)\]is adapted to evaluate the robustness of our method\. The training set is distributed toCCclients according toD​i​r​\(α\)Dir\(\\alpha\), where the parameterα\\alphacontrols the strength of data heterogeneity\. This allows us to evaluate performance under various settings ranging from highly heterogeneous \(smallα\\alpha\) to perfectly homogeneous \(largeα\\alpha\) distributions\. In this paper, unless otherwise specified, we setCCto 10 andα\\alphato 0\.1\.

#### IV\-A3Comparison Methods

To evaluate the effectiveness of FedOPAL, we compare our method with a range of state\-of\-the\-art One\-Shot Federated Learning \(OFL\) algorithms\. These algorithms fall into two main categories based on their underlying methods: Traditional generation and distillation\-based, and foundation model\-based\. To validate the effectiveness of our proposed framework, we conducted extensive comparisons against two categories of state\-of\-the\-art \(SOTA\) federated learning methods: \(1\) KD/Generator\-based methods: Co\-Boosting\[[5](https://arxiv.org/html/2607.08368#bib.bib89)\], DENSE\[[24](https://arxiv.org/html/2607.08368#bib.bib14)\]which rely on data synthesis or auxiliary data, and \(2\) Statistical based methods: AFL\[[10](https://arxiv.org/html/2607.08368#bib.bib316)\], FedPFT\[[3](https://arxiv.org/html/2607.08368#bib.bib318)\], FedCGS\[[7](https://arxiv.org/html/2607.08368#bib.bib317)\]\) which utilize foundation models\.

#### IV\-A4Model Settings and Hyperparameters\.

To leverage the power of foundational vision\-language knowledge, we adopt the CLIP model with the ViT\-B/16 architecture as our backbone network\. The model is initialized with the official pre\-trained weights\. In contrast, following the standard procedure in their previous work, we use the backbone network specified in their paper to evaluate baseline methods \(e\.g\., ResNet\-18 or ResNet\-50\)\.

Regarding the federated training settings, we simulate the Non\-IID data distribution using the Dirichlet distributionD​i​r​\(α\)Dir\(\\alpha\), varyingα\\alphain\{0\.01,0\.1,1\.0,10\}\\\{0\.01,0\.1,1\.0,10\\\}\. Unless otherwise specified, we set the number of local training epochsE=5E=5for all clients to ensure sufficient local updates\. The proximal coefficientμ\\muis set to 0\.1, and the analytic regularizationλ\\lambdais set to10−610^\{\-6\}by default to ensure numerical stability during matrix inversion\. The graph regularization parameterrgr\_\{g\}is set to 0\. All experiments are conducted using the PyTorch framework on one A6000 NVIDIA GPU\.

TABLE I:Comparison with KD/Generator\-based methods\. Results are grouped by data heterogeneity \(Non\-IID vs\. IID\)\.TABLE II:Comparison of pre\-training based methods across four datasets with varying heterogeneity \(α\\alpha\)\.TABLE III:Hyperparameter Sensitivity Analysis across Heterogeneity Levels\.We evaluate the impact of the proximal coefficientμ\\mu, regularizationλ\\lambda, and local epochsEEon three datasets under severe \(α=0\.1\\alpha=0\.1\) and moderate \(α=1\.0\\alpha=1\.0\) non\-IID settings\. The default configuration isμ=0\.1,E=5,λ=0\\mu=0\.1,E=5,\\lambda=0\. ”−\-” indicates the default setting\.

### IV\-BComparative Results

In this section, to explore the efficacy of our method, we analyze the results on three aspects: \(1\) Evaluation on Data Heterogeneity; \(2\) Adaptation to the number of clients, and \(3\) Effects of the proposed components\.

To thoroughly assess our method’s capability in realistic federated scenarios, we conduct extensive experiments across varying degrees of data heterogeneity \(Dirichletα∈\{0\.01,0\.05,0\.1\}\\alpha\\in\\\{0\.01,0\.05,0\.1\\\}\), where lowerα\\alphavalues represent more extreme non\-IID distributions\.

To validate our framework, we conducted extensive comparisons against KD/Generator\-based methods \(Co\-Boosting, DENSE\) and Pre\-training based methods \(AFL, FedPFT, FedCGS\)\. As shown in Table[I](https://arxiv.org/html/2607.08368#S4.T1), generator\-based methods exhibit significant fragility in highly heterogeneous settings, with CoBoosting and DENSE failing to converge under the Non\-IID setting \(α=0\.1\\alpha=0\.1\)\. In contrast, our method leverages the robust prior from CLIP to demonstrate exceptional stability, achieving93\.90%accuracy on CIFAR\-10 in the IID setting, surpassing DENSE by over 50%\. This confirms that leveraging a powerful multi\-modal prior is far more effective than synthesizing pseudo\-samples for one\-shot federated learning\.

Table[II](https://arxiv.org/html/2607.08368#S4.T2)further details our performance against pre\-training\-based SOTA methods across four datasets\. Our approach achieves new SOTA performance on general object datasets; notably on CIFAR100 \(α=0\.01\\alpha=0\.01\), we outperform the strongest competitor FedCGS by 10\.17%\. A striking advantage is observed on the texture\-centricdtddataset, where FedCGS suffers a catastrophic collapse \(2\.13% accuracy\) likely due to the failure of its prototypes on non\-object features, whereas our method maintains a high accuracy of∼\\sim64%\. While FedCGS performs slightly better on SVHN due to the domain gap between CLIP’s natural\-image\-dominated pre\-training and specific digit recognition tasks, our framework proves to be a more versatile solution overall\. Furthermore, our method exhibits remarkable stability across varying heterogeneity levels, with negligible performance fluctuation \(e\.g\., 0\.32% variance on CIFAR10\), effectively disentangling model performance from client data distributions\.

Regarding the results on the SVHN dataset, we observed that FedOPAL performs slightly worse than FedCGS\. This is primarily due to the domain difference between CLIP’s pre\-training and the specific digit domain\. Because FedOPAL uses a frozen backbone network, its shallow cues have limited generalization to out\-of\-distribution digit features\. However, FedOPAL maintains a significant advantage on all other natural image and texture datasets \(CIFAR, DTD\), demonstrating superior generalization ability\.

### IV\-CAblation Study and Parameter Sensitivity

In this section, we conduct extensive ablation analysis on the CIFAR\-100 dataset under a non\-independent and identically distributed \(non\-IID\) setting \(α=0\.1\\alpha=0\.1\) to investigate the impact of key hyperparameters and design choices in FedOPAL\. The results are summarized in Table[III](https://arxiv.org/html/2607.08368#S4.T3)\.

#### IV\-C1Impact of Proximal Coefficientμ\\mu

The proximal coefficientμ\\muin FedOPAL controls the tradeoff between local optimization and global stability\. It acts as a regularization term, dominating the bias between local visual cues and global anchors\. To investigate its impact, we vary the value ofμ\\muwithin the range\{0\.01,0\.1,1\.0\}\\\{0\.01,0\.1,1\.0\\\}\. As shown in Table[III](https://arxiv.org/html/2607.08368#S4.T3), the performance exhibits an inverted U\-shaped trend\. Whenμ→0\\mu\\to 0, the constraint disappears, leading to overfitting of local cues to sparse local data and causing feature misalignment during aggregation\. Conversely, excessively largeμ\\mu\(e\.g\.,μ=1\.0\\mu=1\.0\) overly restrict the adaptability of the prompts, preventing them from effectively correcting the feature distribution\. The best performance is achieved nearμ∈\[0\.1,1\.0\]\\mu\\in\[0\.1,1\.0\], indicating that moderate constraints can effectively balance local feature correction and global semantic consistency\.

#### IV\-C2Impact of No\-IID Distribution \(α\\alpha\)

To evaluate FedOPAL’s robustness to statistical heterogeneity, we conducted experiments with varying degrees of data distribution skew\. The concentration parameterα\\alphaof the Dirichlet distribution ranges from\{0\.05,0\.1,0\.5,1\.0,∞\}\\\{0\.05,0\.1,0\.5,1\.0,\\infty\\\}, where smallerα\\alphaindicates a greater degree of label imbalance among clients\. Due to the violation of the static feature assumption, the performance of standard AFL drops sharply asα\\alphadecreases, while FedOPAL maintains relatively stable accuracy even under extreme heterogeneity \(α=0\.01\\alpha=0\.01\)\. This demonstrates that visual cues successfully correct distorted local feature manifolds into a unified global space, making the analytical solution effective even when the client data is highly non\-independent and identically distributed\.

#### IV\-C3Impact of AFL Regularization \(λ\\lambda\)

The regularization parameterλ\\lambdain the analytical solution𝐖∗=\(𝐑\+λ​𝐈\)−1​𝐂\\mathbf\{W\}^\{\*\}=\(\\mathbf\{R\}\+\\lambda\\mathbf\{I\}\)^\{\-1\}\\mathbf\{C\}in AFL ensures numerical stability during matrix inversion, especially when the aggregated autocorrelation matrix𝐑\\mathbf\{R\}is ill\-conditioned\. We examine the model’s sensitivity toλ\\lambdaby scanning the value ofλ\\lambdafrom10−610^\{\-6\}to10110^\{1\}\. Experimental results show that FedOPAL is highly robust to the choice ofλ\\lambda\. On all three datasets \(CIFAR\-10, CIFAR\-100, and SVHN\), the impact of changing theλ\\lambdaparameter on performance is generally within 0\.5%\. This insensitivity suggests that the feature matrices extracted by the frozen backbone are inherently well\-conditioned and discriminative\. The feature space optimized by VPT is statistically stable enough that the global autocorrelation matrix∑𝐑k\\sum\\mathbf\{R\}\_\{k\}does not suffer from rank deficiency, even without explicit regularization\. Consequently, FedOPAL simplifies the hyperparameter tuning process, as the default setting \(λ≈0\\lambda\\approx 0\) is sufficient for achieving optimal performance in most scenarios\.

## VDiscussion and Conclusion

This paper proposes a framework called FedOPAL, which optimizes the efficiency of analytical federated learning \(AFL\) on non\-independent and identically distributed \(Non\-IID\) data by introducing visual cues as feature correctors\. FedOPAL combines local fine\-tuning with global analytical aggregation, achieving state\-of\-the\-art \(SOTA\) classification performance while maintaining strict single\-pass communication and zero server\-side training cost\. This work not only reveals the deep mathematical connection between visual cues and analytical learning but also provides a robust and efficient solution for deploying base models in edge computing environments\.

## Acknowledgment

This work is partially supported by the project: TUAI: Towards an Understanding of Artificial Intelligence via a transparent, open and explainable perspective, Marie Curie Doctoral Network, ID: 101168344\. This work is partially supported by the project: FLINT \- Prog\. n\.: F/380134/01\-03/X77 \- MIMIT

## References

- \[1\]\(2022\)Federated learning and differential privacy for medical image analysis\.Scientific reports12\(1\),pp\. 1953\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[2\]F\. Amato, L\. Qiu, M\. Tanveer, S\. Cuomo, D\. Annunziata, F\. Giampaolo, and F\. Piccialli\(2026\)Towards one\-shot federated learning: advances, challenges, and future directions\.Neurocomputing664,pp\. 132088\.External Links:ISSN 0925\-2312,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.neucom.2025.132088),[Link](https://www.sciencedirect.com/science/article/pii/S0925231225027602)Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[3\]M\. Beitollahi, A\. Bie, S\. Hemati, L\. M\. Brunswic, X\. Li, X\. Chen, and G\. Zhang\(2024\)Parametric feature transfer: one\-shot federated learning with foundation models\.arXiv preprint arXiv:2402\.01862\.Cited by:[§IV\-A3](https://arxiv.org/html/2607.08368#S4.SS1.SSS3.p1.1)\.
- \[4\]Z\. Chen, C\. Zhou, and Z\. Jiang\(2024\)One\-shot federated learning with label differential privacy\.Electronics13\(10\),pp\. 1815\.Cited by:[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1)\.
- \[5\]R\. Dai, Y\. Zhang, A\. Li, T\. Liu, X\. Yang, and B\. Han\(2024\)Enhancing one\-shot federated learning through data and ensemble co\-boosting\.arXiv preprint arXiv:2402\.15070\.Cited by:[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1),[§IV\-A3](https://arxiv.org/html/2607.08368#S4.SS1.SSS3.p1.1)\.
- \[6\]A\. Dosovitskiy, L\. Beyer, A\. Kolesnikov, D\. Weissenborn, X\. Zhai, T\. Unterthiner, M\. Dehghani, M\. Minderer, G\. Heigold, S\. Gelly, J\. Uszkoreit, and N\. Houlsby\(2020\)An image is worth 16x16 words: transformers for image recognition at scale\.ArXivabs/2010\.11929\.External Links:[Link](https://api.semanticscholar.org/CorpusID:225039882)Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[7\]Z\. Guan, Y\. Zhou, and X\. Gu\(2025\)Capture global feature statistics for one\-shot federated learning\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.39,pp\. 16942–16950\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p3.1),[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1),[§IV\-A3](https://arxiv.org/html/2607.08368#S4.SS1.SSS3.p1.1)\.
- \[8\]T\. Guo, S\. Guo, J\. Wang, X\. Tang, and W\. Xu\(2023\)Promptfl: let federated participants cooperatively learn prompts instead of models–federated learning in age of foundation model\.IEEE Transactions on Mobile Computing23\(5\),pp\. 5179–5194\.Cited by:[§II\-B](https://arxiv.org/html/2607.08368#S2.SS2.p1.1)\.
- \[9\]T\. Guo, S\. Guo, and J\. Wang\(2023\)Pfedprompt: learning personalized prompt for vision\-language models in federated learning\.InProceedings of the ACM Web Conference 2023,pp\. 1364–1374\.Cited by:[§II\-B](https://arxiv.org/html/2607.08368#S2.SS2.p1.1)\.
- \[10\]R\. He, K\. Tong, D\. Fang, H\. Sun, Z\. Zeng, H\. Li, T\. Chen, and H\. Zhuang\(2025\)AFL: a single\-round analytic approach for federated learning with pre\-trained models\.InProceedings of the Computer Vision and Pattern Recognition Conference,pp\. 4988–4998\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p3.1),[§I](https://arxiv.org/html/2607.08368#S1.p4.1),[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1),[§III\-A1](https://arxiv.org/html/2607.08368#S3.SS1.SSS1.p1.8),[§III](https://arxiv.org/html/2607.08368#S3.p1.1),[§IV\-A3](https://arxiv.org/html/2607.08368#S4.SS1.SSS3.p1.1)\.
- \[11\]M\. Jia, L\. Tang, B\. Chen, C\. Cardie, S\. Belongie, B\. Hariharan, and S\. Lim\(2022\)Visual prompt tuning\.InEuropean Conference on Computer Vision \(ECCV\),pp\. 709–727\.Cited by:[§III\-A2](https://arxiv.org/html/2607.08368#S3.SS1.SSS2.p1.3)\.
- \[12\]M\. Kang, P\. Chikontwe, S\. Kim, K\. H\. Jin, E\. Adeli, K\. M\. Pohl, and S\. H\. Park\(2023\)One\-shot federated learning on medical data using knowledge distillation with image synthesis and client model adaptation\.InInternational Conference on Medical Image Computing and Computer\-Assisted Intervention,pp\. 521–531\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p2.1)\.
- \[13\]H\. Li, W\. Huang, J\. Wang, and Y\. Shi\(2024\)Global and local prompts cooperation via optimal transport for federated learning\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 12151–12161\.Cited by:[§II\-B](https://arxiv.org/html/2607.08368#S2.SS2.p1.1)\.
- \[14\]X\. Liu, Y\. Song, X\. Li, Y\. Sun, H\. Lan, Z\. Liu, L\. Jiang, and J\. Li\(2025\)Efficient partitioning vision transformer on edge devices for distributed inference\.In2025 IEEE 45th International Conference on Distributed Computing Systems \(ICDCS\),pp\. 286–296\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[15\]M\. Mendieta, G\. Sun, and C\. Chen\(2024\)Navigating heterogeneity and privacy in one\-shot federated learning with diffusion models\.arXiv preprint arXiv:2405\.01494\.Cited by:[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1)\.
- \[16\]R\. M\. Neal\(2000\)Markov chain sampling methods for dirichlet process mixture models\.Journal of computational and graphical statistics9\(2\),pp\. 249–265\.Cited by:[§IV\-A2](https://arxiv.org/html/2607.08368#S4.SS1.SSS2.p1.8)\.
- \[17\]M\. K\. Quan, P\. N\. Pathirana, M\. Wijayasundara, S\. Setunge, D\. C\. Nguyen, C\. G\. Brinton, D\. J\. Love, and H\. V\. Poor\(2025\)Federated learning for cyber physical systems: a comprehensive survey\.IEEE Communications Surveys & Tutorials\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[18\]A\. Radford, J\. W\. Kim, C\. Hallacy, A\. Ramesh, G\. Goh, S\. Agarwal, G\. Sastry, A\. Askell, P\. Mishkin, J\. Clark,et al\.\(2021\)Learning transferable visual models from natural language supervision\.InInternational conference on machine learning,pp\. 8748–8763\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[19\]M\. Shin, C\. Hwang, J\. Kim, J\. Park, M\. Bennis, and S\. Kim\(2020\)Xor mixup: privacy\-preserving data augmentation for one\-shot federated learning\.arXiv preprint arXiv:2006\.05148\.Cited by:[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1)\.
- \[20\]R\. Song, D\. Liu, D\. Z\. Chen, A\. Festag, C\. Trinitis, M\. Schulz, and A\. Knoll\(2023\)Federated learning via decentralized dataset distillation in resource\-constrained edge environments\.In2023 International Joint Conference on Neural Networks \(IJCNN\),pp\. 1–10\.Cited by:[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1)\.
- \[21\]J\. Tang, Y\. Huang, K\. Fan, F\. Han, J\. Li, J\. Xu, R\. He, A\. Liu, H\. H\. Song, H\. Zhuang,et al\.\(2026\)DeepAFL: deep analytic federated learning\.arXiv preprint arXiv:2603\.00579\.Cited by:[§III](https://arxiv.org/html/2607.08368#S3.p1.1)\.
- \[22\]J\. Whitmore, P\. Mehra, J\. Yang, and E\. Linford\(2025\)Privacy preserving risk modeling across financial institutions via federated learning with adaptive optimization\.Frontiers in Artificial Intelligence Research2\(1\),pp\. 35–43\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[23\]M\. Yang, S\. Su, B\. Li, and X\. Xue\(2023\)One\-shot federated learning with classifier\-guided diffusion models\.ArXivabs/2311\.08870\.External Links:[Link](https://api.semanticscholar.org/CorpusID:280650423)Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p2.1)\.
- \[24\]J\. Zhang, C\. Chen, B\. Li, L\. Lyu, S\. Wu, S\. Ding, C\. Shen, and C\. Wu\(2022\)Dense: data\-free one\-shot federated learning\.Advances in Neural Information Processing Systems35,pp\. 21414–21428\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p2.1),[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1),[§IV\-A3](https://arxiv.org/html/2607.08368#S4.SS1.SSS3.p1.1)\.
- \[25\]J\. Zhang, S\. Liu, and X\. Wang\(2024\)One\-shot federated learning via synthetic distiller\-distillate communication\.arXiv preprint arXiv:2412\.05186\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p2.1)\.
- \[26\]T\. Zhang, L\. Gao, C\. He, M\. Zhang, B\. Krishnamachari, and A\. S\. Avestimehr\(2022\)Federated learning for the internet of things: applications, challenges, and opportunities\.IEEE Internet of Things Magazine5\(1\),pp\. 24–29\.Cited by:[§I](https://arxiv.org/html/2607.08368#S1.p1.1)\.
- \[27\]K\. Zhou, J\. Yang, C\. C\. Loy, and Z\. Liu\(2022\)Learning to prompt for vision\-language models\.International journal of computer vision130\(9\),pp\. 2337–2348\.Cited by:[§II\-B](https://arxiv.org/html/2607.08368#S2.SS2.p1.1)\.
- \[28\]Z\. Zhu, J\. Hong, and J\. Zhou\(2021\)Data\-free knowledge distillation for heterogeneous federated learning\.InInternational conference on machine learning,pp\. 12878–12889\.Cited by:[§II\-A](https://arxiv.org/html/2607.08368#S2.SS1.p1.1)\.

Similar Articles

Accurate and Resource-Efficient Federated Continual Learning

arXiv cs.LG

FedRAN is a resource-aware analytic federated continual learning framework that replaces gradient-based updates with compact random feature statistics, achieving high accuracy with significantly lower communication and computation costs.

TallyTrain: Communication-Efficient Federated Distillation

arXiv cs.LG

This paper introduces TallyTrain, a communication-efficient federated distillation method that transmits only the argmax class index per probe (hard-label consensus) instead of full softmax vectors, reducing bandwidth by up to three orders of magnitude while matching or surpassing the performance of soft-label distillation and Pareto-dominating standard federated learning baselines like FedAvg, FedProx, and FedDF.