FedLLM-Align: Feature Extraction From Heterogeneous Clients
Abstract
Federated learning (FL) enables collaborative model training without sharing raw data, making it attractive for privacy-sensitive domains, e.g., healthcare, finance, and IoT. A major obstacle, however, is the potential heterogeneity of tabular data across clients, in practical settings, where schema mismatches and incompatible feature spaces prevent straightforward aggregation. To address this challenge, this paper proposes FedLLM-Align, a federated learning framework that leverages pretrained transformer based language models for feature extraction. Towards this objective, FedLLM-Align serializes tabular records into text and derives semantically aligned embeddings from a pretrained LLM encoder, e.g, DistilBERT, facilitating lightweight local classifier heads that can be trained in a federated manner using standard aggregation schemes, e.g., FedAvg, while keeping all raw data records local. To quantify the merits and trade-offs of FedLLM-Align, we evaluate the proposed framework on binary classification tasks from two different domains: i) Coronary heart disease prediction on partitioned Framingham Heart Study data, and ii) Customer churn prediction on a financial dataset. FedLLM-Align outperforms state-of-the-art baselines by up to 25% in terms of the F1 score, under simulated schema heterogeneity, and achieves a 65% reduction in the communication overhead. These results establish FedLLM-Align as a privacy-preserving and communication-efficient approach for federated training based on clients with heterogeneous tabular datasets, commonly encountered in practice.
1 Introduction
Federated learning (FL) enables multiple clients to collaboratively train a global model while keeping their individual training data local. Instead of sharing their individual raw data, FL relies on exchanging model updates (e.g., gradients) between the clients and a central server. This privacy-preserving framework has seen growing adoption in domains with sensitive data, e.g., healthcare, financial systems, and IoT yuan2021generalization . FL is particularly well suited for IoT and edge systems, where devices collect data but regulatory and/or operational constraints, e.g., bandwidth, hinder uploading the raw data dritsas2025federated to the cloud. By moving computation to the cloud, FL mitigates privacy and regulatory risks (e.g., the European Union General Data Protection Regulation (GDPR)) horvath2021fjord while still enabling global model improvements.
A major hurdle for practical FL deployment is data heterogeneity across clients. In real-world settings, clients often
collect different attributes, leading to heterogeneous data distributions. For example, user behavior models may observe different features or label distributions on each device. FL must also contend with system heterogeneity, where clients differ in hardware and connectivity, and structural heterogeneity, where feature spaces or data schemas differ across clients. In clinical settings, electronic health record (EHR) systems at different hospitals may record different attributes or units, a problem known as “data view heterogeneity”. Such heterogeneity poses a major challenge for FL, potentially degrading performance or even preventing convergence thakur2024knowledge .
To address client heterogeneity, prior work has explored several approaches. For instance, personalized FL (PFL) tailors models to each client’s data 5 , by fine-tuning a global model locally or learning an additional personal model. However, most PFL models primarily address statistical non-IID data and do not account for system or data structural differences, often sacrificing global performance tan2022personalized . Another approach is clustered FL, which groups clients with similar data distributions and trains a separate model per cluster sattler2020clustered . Other work proposes knowledge-distillation or transfer methods (e.g., sharing predictions on proxy data) 8 and feature-alignment techniques that map raw inputs into a common latent space 9 . For instance, recent work introduces a “knowledge abstraction” mechanism to unify heterogeneous EHR views gou2021knowledge . While these methods mitigate data heterogeneity, they present limitations. First, PFL could reduce global generalization, distillation-based schemes often require auxiliary data and may raise privacy concerns, and ensemble approaches can be computationally expensive 5 .
In this work, we propose a new direction by leveraging large language models (LLMs) as a feature extraction mechanism to possibly heterogeneous tabular client data before federated training. Recent advances show that LLMs pre-trained on large and diverse corpora can generate strong latent representations for structured data gardner2024large . For example, TABULA-8B fine-tunes a Llama-3 8B model on billions of tabular records and achieves a strong zero- and few-shot performance across unseen tasks gardner2024large . Inspired by this, we employ LLMs to map each client’s raw tabular features into a shared embedding space. Since the LLM encoder has been exposed to diverse data, its output vectors serve as a common representation, effectively transforming heterogeneous client data into homogeneous embeddings suitable for downstream FL models.
The main contribution of this work is multifold. First, we introduce a novel federated learning framework in which a pre-trained LLM acts as a client-agnostic feature encoder for tabular data, and illustrate how to tokenize and encode client-specific records to produce consistent embeddings. Second, we quantitatively show that training on these embeddings significantly improves cross-client performance under data heterogeneity compared to baseline FL. Finally, we evaluate the proposed framework across diverse tasks and heterogeneity settings, demonstrating its advantages over the personalization and clustering baselines.
The rest of this paper is organized as follows. Section 2 surveys the related literature. Section 3 presents the proposed LLM-based encoding approach for handling structured data heterogeneity in federated learning. Experimental results and a discussion are provided in Sections 4, 5, and 6. Finally, Section 7 concludes the paper and outlines future research directions.
2 Related Work
There has been increasing interest in using large language models (LLMs) to address data heterogeneity in tabular learning. For example, TabLLM hegselmann2023tabllm introduces a few-shot tabular classification method by converting rows into natural-language strings and prompting LLMs (e.g., T0, GPT-3). It explores various serialization strategies and uses parameter-efficient fine-tuning (T-Few) to adapt the LLM. TabLLM demonstrates strong zero- and few-shot performance, often surpassing gradient-boosted trees and neural baselines. Its benefits include sample efficiency and leveraging prior LLM knowledge, while limitations involve high computational cost, token limits, and reliance on semantically meaningful features. More recently, Latte ijcai2025p687 showed that transferring latent-level knowledge from pretrained LLMs further improves few-shot tabular learning, emphasizing the value of LLM representations over purely text-level features.
Another approach, FeatLLM han2024llmfeatures , proposes an in-context learning framework where LLMs serve as feature engineers for few-shot tabular learning. Instead of end-to-end inference, the LLM generates interpretable rules from a few examples, which are then transformed into binary features for lightweight models. Bagging ensembles improve robustness and mitigate prompt size limits. FeatLLM achieves state-of-the-art results across 13 datasets with lower inference cost. Its main advantages are low latency and feature interpretability, while limitations include sensitivity to prompt quality and applicability only in low-shot settings.
Another related approach is PTab liu2022ptab , a three-stage framework for modeling tabular data with pretrained language models. It mitigates semantic gaps by converting rows into text (Modality Transformation), followed by Masked-Language Fine-tuning and Classification Fine-tuning. This textualization bridges domain differences and allows training on mixed tabular datasets. Evaluated on eight binary classification tasks, PTab outperforms XGBoost and neural baselines (e.g., SAINT, TabTransformer) in average AUC under both supervised and semi-supervised settings.
Closest to our federated setting is SecEA (Secure Embedding Aggregation) tang2022privacy , which introduces a secure embedding aggregation protocol for federated representation learning, providing information-theoretic privacy against a curious server and up to colluding clients. SecEA performs a private entity union and distributes local embeddings via secret sharing and Lagrange coded computing. Across tasks like knowledge graph completion, recommendation, and node classification, SecEA incurs under performance loss compared to non-private baselines while achieving notable efficiency gains through parallelization. Complementing this, recent IJCAI work, such as CReFF ijcai2022p308 studies federated learning on heterogeneous data by decoupling representation learning and classifier re-training, showing that carefully designed representation and aggregation schemes are key for robust FL under non-IID client distributions.
Taken together, the approaches reviewed above (e.g., TabLLM-/Latte-style LLM-based tabular learning, FeatLLM-style LLM feature engineering, PTab-style textualization frameworks, and SecEA/CReFF-style federated representation and aggregation methods) often assume a globally aligned feature space, rely on centrally curated or mixed datasets, or primarily focus on privacy and statistical heterogeneity without explicitly addressing schema-level heterogeneity across clients. Moreover, many require exchanging full model parameters, gradients, or high-dimensional embeddings, leading to high communication overhead. In contrast, FedLLM-Align is specifically designed for federated learning over heterogeneous tabular schemas, using LLM-based universal encoders to align client feature spaces while maintaining low communication cost.
3 Proposed Methodology: FedLLM-Align
This section presents the proposed FedLLM-Align framework, which addresses schema-level heterogeneity in federated learning through LLM-based semantic feature alignment. We first describe the federated learning problem under heterogeneous tabular schemas, then describe the architecture and training pipeline of FedLLM-Align. The methodology details how tabular records are serialized, embedded using frozen pretrained language models, and integrated into standard federated optimization schemes while preserving data privacy and communication efficiency.
3.1 System Model
We consider a set of clients, denoted , with private datasets, denoted . The local dataset at client , , hosts structured data in the form of tabular records defined over a schema of features, , where feature names and representations may differ across clients. The problem setting imposes a number of constraints. First, schema heterogeneity is assumed inherent in practical settings, since the overlap between two schemas, e.g., and , may be small or even empty for any . Second, the proposed solution must remain compatible with standard federated aggregation schemes, such as FedAvg, so that it can be seamlessly integrated into existing federated learning pipelines.
3.2 FedLLM-Align Architecture
The FedLLM-Align framework addresses the above challenges through a three-stage pipeline: i) tabular-to-text serialization, ii) LLM feature extraction: semantic embedding generation, and iii) On-device classifier training, in addition to the federated model aggregation, as shown in Figure 1. Next, we introduce the proposed three-stage pipeline for LLM feature extraction, its technical rationale, and design trade-offs.
3.2.1 I. Tabular-to-Text Serialization
At the first stage, each client, , transforms its local records into natural language sequences through a serialization function,
| (1) |
Different serialization strategies may be applied. A structured format explicitly lists features and values, “Feature1: value1, Feature2: value2, …”. A natural language format encodes features in descriptive sentences, such as “The patient is 45 years old. Blood pressure is 140/90.”. A compact format, instead, may use condensed key-value pairs, “Feature1=value1; Feature2=value2; …”. The key insight of FedLLM-Align is that by serializing tabular records into short, structured natural-language descriptions, pretrained LLMs can exploit their semantic understanding to align semantically equivalent features across heterogeneous client schemas. In our main experiments we adopt this structured serialization, and later compare it against more free-form and compact variants.
3.2.2 II. Semantic Embedding Generation
At the second stage, each serialized sequence is passed through a frozen pretrained LLM, producing a semantic embedding,
| (2) |
Among the supported backbones, DistilBERT provides a lightweight six-layer distilled BERT model that balances efficiency with representational quality, while ALBERTlan2019albert applies parameter sharing to achieve memory efficiency with competitive embedding quality. It is worth noting that these LLM backbones remain frozen during the training process. This design choice reduces the communications overhead, e.g., over bandwidth-limited wireless links, by ensuring that only the classifier weights are exchanged, preserves the pretrained semantic knowledge of the models, and supports deployment across clients with limited computational resources at the network edge.
3.2.3 III. The Federated Classifier
In the final stage, the generated embeddings , each in , serve as input to a lightweight classifier trained locally on each client, where denotes the dimensionality of the encoder’s output representation. As a proof of concept, we adopt a single downstream model in the federated setting: a shallow feedforward neural network that operates directly on the frozen LLM embeddings and produces a scalar output for binary prediction. During federated training, only the classifier parameters are shared with the central server, while both the LLM-based embeddings and the raw tabular records remain strictly local. This design preserves data locality and offers a practical security advantage, since the global model operates over a shared semantic embedding space rather than client-specific raw feature schemas.
3.3 Federated Training
The training pipeline is summarized in Algorithm 1.
Input: Client Datasets , with heterogeneous schemas
Ensure: Global Classifier Model
In each federated training round, a subset of clients is selected to participate and initialize their local classifiers with the current global model parameters. Each participating client first serializes its local tabular records into textual representations and computes semantic embeddings using a frozen pretrained language model. These embeddings are then used to train a lightweight classifier locally for several epochs. Upon completion, only the resulting classifier weight updates are transmitted to the central server, where they are aggregated using a standard parameter-averaging rule such as FedAvg to update the global model. The updated parameters are subsequently broadcast back to the clients for the next round, and this process is repeated until convergence.
3.4 FedLLM-Align Merits
The proposed framework provides three operational guarantees. First, semantic alignment arises from the pre-trained LLMs, which map semantically equivalent attributes and values to nearby points in the embedding space, even when feature labels differ. For example, “Age: 45” and “PatientAge: 45 years” yield similar embeddings, as do “BP: 140/90” and “BloodPressure: systolic=140, diastolic=90”. Second, privacy preservation is ensured as raw tabular data and intermediate embeddings never leave client devices; only lightweight classifier parameters are sent to the server. Finally, since the encoder is frozen and induces a fixed feature space, training convergence follows standard results for parameter-averaging federated optimizers: aggregation rules such as FedAvg can be applied to the classifier layer without modification and retain their usual convergence properties under standard smoothness and bounded-variance assumptions.
4 Performance Evaluation
In this section, we describe the experimental setup used to evaluate the proposed FedLLM-Align framework. We first outline the baseline schemes, then present the used datasets and how schema heterogeneity is simulated. We next describe the data and feature processing pipeline, and finally introduce the evaluation metrics used in the experiments.
4.1 Baseline Schemes
We compare our proposed framework with both traditional and advanced federated learning approaches. Traditional FL models include FedXGBoost le2021fedxgboost , Mutual Information-based FL uddin2020mutual , FedProx li2020fedprox and SCAFFOLD karimireddy2020scaffold . For advanced FL models, we consider two baselines, namely Clustered FL sattler2020clustered and FedAvg with identical schemas and homogeneous tabular data, which serves as a strong reference point.
4.2 Adopted Datasets
4.2.1 Datasets Description
We evaluate FedLLM-Align on two public datasets from different domains: a financial customer churn dataset topre2022bankchurn , and the Framingham Heart Study cardiovascular dataset data .
Financial customer churn (banking). The first dataset consists of 10,000 retail banking customers, each described by demographic and account-related attributes. The prediction task is to determine whether a customer will exit the bank (churn). The dataset is moderately imbalanced, with approximately 80% non-churn and 20% churn samples, similar to realistic bank-attrition rates. The input features include CreditScore, Geography, Gender, Age, Tenure, Balance, NumOfProducts, HasCrCard, IsActiveMember, and EstimatedSalary, while the target label Exited indicates whether the customer has churned (1) or stayed (0).
Framingham Heart Study (healthcare). The second dataset is derived from the Framingham Heart Study, a longitudinal cardiovascular cohort of residents in Framingham, Massachusetts, USA. After cleaning, we use 4,240 patient records described by 15 demographic, lifestyle, and clinical attributes together with a binary target indicating the 10-year risk of coronary heart disease (CHD). Approximately 85% of the records belong to the negative class (no CHD) and 15% to the positive class (CHD), which mirrors real-world prevalence rates. The input features include Sex, Age, is_smoking, CigsPerDay, BPMeds, PrevalentStroke, PrevalentHyp, Diabetes, TotChol, SysBP, DiaBP, BMI, HeartRate, and Glucose, while the target label TenYearCHD indicates whether the patient develops CHD within 10 years (1) or not (0).
4.2.2 Datasets Preparation and Heterogeneity Simulation
To emulate real-world schema misalignment, we introduce controlled heterogeneity in two ways: (i) each client observes only a subset of the available features, and (ii) overlapping features are systematically renamed using alternative but semantically equivalent labels. This procedure is applied independently to both the financial and healthcare datasets, reflecting how different institutions may log related quantities under different names or templates.
Table 1 shows examples of alternative naming conventions for representative features from both domains. For each original feature, clients receive independently sampled aliases drawn from these sets when serializing their local tabular records into text. This preserves semantic meaning while breaking syntactic alignment at the schema level.
| Original Feature | Alternative Names |
|---|---|
| Age (Framingham) | Age, PatientAge, AgeYears, age_at_visit, patient_age_years |
| SysBP | SysBP, systolic_bp, bp_systolic, sys_blood_pressure, systolic_pressure |
| TotChol | TotChol, total_cholesterol, cholesterol_total, chol_total, total_chol_mg |
| CreditScore | CreditScore, credit_score, risk_score, customer_credit_rating, credit_index |
| Balance | Balance, account_balance, cur_balance, dep_balance, current_account_value |
| EstimatedSalary | EstimatedSalary, salary_est, annual_income, income_estimate, yearly_salary |
Clients are configured under three federated scenarios corresponding to different collaboration levels:
-
•
3 clients with an overlap ratio of approximately 60% shared features and the remaining features partitioned into client-specific subsets,
-
•
5 clients with an overlap ratio of approximately 50% shared features,
-
•
10 clients with an overlap ratio of approximately 40% shared features.
In all cases, the exact subsets are sampled at random, given the desired overlap ratio, ensuring structural heterogeneity (due to partial feature visibility and schema variations). This setup closely reflects cross-institutional settings in healthcare and finance.
4.3 Data and Feature Processing Pipeline
The first step in the proposed pipeline in Fig. 1 is tabular-to-text serialization. We first perform basic preprocessing: missing numerical values are imputed with the median, and categorical variables with the mode. Each record is then serialized into one of three textual formats—structured, natural language, or compact—before tokenization. This serialization exposes attribute names and values as short textual phrases, enabling the downstream language model to exploit its semantic prior over feature names and categories.
The second step is embedding generation using pretrained LLMs. We adopt representative transformer-based encoders (e.g., DistilBERT, ALBERT, RoBERTa, ClinicalBERT) as frozen encoders. For each serialized record, we apply the corresponding fast tokenizer (e.g., DistilBertTokenizerFast, AlbertTokenizerFast) with a maximum sequence length of 128 tokens and feed the tokenized text into the LLM. The [CLS] embedding from the final hidden layer represents each record as a dense vector, which is passed to a lightweight feedforward neural network classifier (input dimension 768, one hidden layer with 16 ReLU units, dropout , sigmoid output). All LLM encoders remain frozen during training, so only the classifier head is updated and communicated, reducing computation and communication overhead. Finally, as a proof-of-concept, we adopt federated learning with FedAvg over 25 global aggregation rounds, training clients for 10 local epochs per round with a batch size of 32 using the Adam optimizer ().
4.4 Performance Metrics
The primary evaluation metric is the F1-score, complemented by paired t-tests () for statistical significance. In addition, we analyze the communication cost, convergence behavior, per-client performance variance, model memory footprint, and inference latency for embedding extraction. These metrics jointly capture both the predictive effectiveness and the system efficiency. Given that the adopted datasets are imbalanced with respect to the positive class (as mentioned earlier), we focus on the F1-score, which balances precision and recall for the positive class and is therefore more informative than accuracy alone.
5 Experiments Setup and Results
All experiments were performed in an environment equipped with a T4 GPU and 12 GB of system memory. The software stack included Python, PyTorch, HuggingFace Transformers, TensorFlow, and Scikit-learn. Unless otherwise stated, we use LLM encoders with embedding dimension and a shallow feedforward classifier on top of the frozen embeddings, consisting of one hidden layer with 16 ReLU units and a sigmoid output for binary prediction. Federated training is carried out with FedAvg for 25 global aggregation rounds, using 10 local epochs per round, a batch size of 32, and the Adam optimizer with learning rate . We present the experimental results from this setup next, first comparing different LLM encoders in FedLLM-Align, then examining serialization strategies, client scaling, and schema heterogeneity, convergence and stability, communication efficiency, and finally a stress test for schema overlap.
5.1 LLM Models Comparison
In this experiment, we fix the data partitioning, the serialization strategy (structured format), the number of clients, and the federated training protocol, and we vary only the underlying LLM encoder used to generate the embeddings. Specifically, we instantiate FedLLM-Align with several pretrained transformer encoders (DistilBERT, ALBERT, RoBERTa, and ClinicalBERT), keeping all downstream classifier and FedAvg hyperparameters identical. This allows us to quantify the accuracy–efficiency trade-offs (F1-score, memory footprint, and per-record inference time) associated with different encoder architectures while holding the rest of the pipeline constant.
Table 2 shows that DistilBERT achieves the best accuracy–efficiency balance, with an F1-score of 0.84 while requiring only 255 MB of memory and 45 msec inference time per record. ALBERT is more memory-efficient (180 MB), yet yields a slightly lower F1-score. ClinicalBERT provides the highest overall accuracy (0.85) owing to its medical domain pretraining, but at a higher computational cost. RoBERTa falls between these extremes. These results suggest that resource-constrained clients may favor DistilBERT or ALBERT, while ClinicalBERT is ideal in settings where maximizing predictive performance is the most important.
| Encoder | F1-Score | Memory (MB) | Inference Time (ms) |
|---|---|---|---|
| DistilBERT | 0.840.01 | 255 | 455 |
| ALBERT | 0.810.02 | 180 | 384 |
| RoBERTa | 0.830.01 | 498 | 728 |
| ClinicalBERT | 0.850.01 | 440 | 687 |
5.2 Serialization Scheme Comparison
Here, we fix the LLM encoder (DistilBERT), client splits, and federated optimization settings, and instead vary how tabular records are converted to text. Each row is serialized using one of three formats: (i) a structured “key: value” style, (ii) a more verbose natural-language description, and (iii) a compact, minimally redundant encoding. For each format, we recompute embeddings and re-run federated training, comparing the resulting F1-scores and cross-client variability. This experiment isolates the impact of the tabular-to-text representation on the quality and stability of the learned embeddings.
As shown in Table 3, structured serialization consistently yields the highest F1-score (0.84) and most stable embeddings, while natural language adds flexibility but with slightly higher variance. Compact formats are the most efficient but perform poorly due to the loss of semantic richness. This highlights that both model choice and data representation strongly affect the proposed FedLLM-Align performance.
| Format | F1-Score | Embedding Variance | Robustness |
|---|---|---|---|
| Structured | 0.840.01 | 0.12 | High |
| Natural | 0.820.02 | 0.18 | Medium |
| Compact | 0.790.03 | 0.25 | Low |
5.3 FedLLM-Align: A Comparative Analysis
5.3.1 Client Scaling Analysis (Two Datasets)
We next examine how FedLLM-Align and the baselines behave as the number of clients and schema overlap vary. Deployments with 3, 5, and 10 clients are considered, keeping the total dataset size fixed while redistributing records and features to simulate increasing heterogeneity (fewer shared features and more client-specific attributes as client count grows). For each configuration, all methods are trained with the same number of communication rounds, and global F1-scores, per-client statistics, and communication cost are reported. This setup highlights each approach’s robustness to scaling and more fragmented schemas.
Table 4 compares FedLLM-Align with multiple FL baselines on the Framingham cardiovascular risk prediction task across different client configurations. The results show that FedLLM-Align consistently achieves superior F1-scores, with statistically significant improvements (). For example, with three clients, FedLLM-Align (DistilBERT + NN) achieves an F1-score of 0.84, outperforming the homogeneous baseline (0.64) and FedXGBoost (0.14). As the number of clients increases to ten, FedLLM-Align maintains strong performance (0.78 with DistilBERT), while competing approaches degrade under schema heterogeneity. Importantly, these gains are coupled with efficiency: communication cost is reduced by about 65% compared to FedXGBoost and remains competitive with other baselines.
| Method | 3 Clients | 5 Clients | 10 Clients | Avg. Comm. Cost (MB) |
|---|---|---|---|---|
| FedLLM-Align (DistilBERT + NN) | 0.840.01 | 0.810.02 | 0.780.02 | 1.2 |
| Homogeneous Baseline | 0.640.02 | 0.620.03 | 0.590.03 | 0.9 |
| FedXGBoost | 0.140.02 | 0.110.03 | 0.080.02 | 3.8 |
| Mutual Information FL | 0.610.03 | 0.540.04 | 0.470.05 | 1.1 |
| FedProx | 0.660.02 | 0.610.03 | 0.560.04 | 1.0 |
| SCAFFOLD | 0.680.02 | 0.630.02 | 0.580.03 | 1.1 |
| Clustered FL | 0.590.05 | 0.520.06 | 0.440.07 | 1.6 |
To complement the cardiovascular study, we also evaluate FedLLM-Align in the bank customer churn data set, which represents a different domain (finance) with distinct feature semantics, but similar class imbalance and business constraints. Table 5 reports F1-scores in the same family of methods and client configurations.
| Method | 3 Clients | 5 Clients | 10 Clients | Avg. Comm. Cost (MB) |
|---|---|---|---|---|
| FedLLM-Align (DistilBERT + NN) | 0.800.02 | 0.770.02 | 0.730.03 | 1.3 |
| Homogeneous Baseline | 0.700.02 | 0.670.03 | 0.620.03 | 1.0 |
| FedXGBoost | 0.620.03 | 0.600.03 | 0.570.04 | 3.9 |
| Mutual Information FL | 0.680.03 | 0.640.04 | 0.590.04 | 1.2 |
| FedProx | 0.710.02 | 0.680.03 | 0.630.03 | 1.0 |
| SCAFFOLD | 0.720.02 | 0.690.03 | 0.640.03 | 1.2 |
| Clustered FL | 0.660.04 | 0.610.05 | 0.550.06 | 1.7 |
FedLLM-Align achieves the best performance in all client counts in the churn task, with DistilBERT-based FedLLM-Align achieving the highest absolute F1-scores and a favorable accuracy–efficiency trade-off. As the number of clients increases from three to ten, all methods experience some degradation, but FedLLM-Align maintains a clear and consistent margin over optimization-focused baselines such as FedProx and SCAFFOLD, and matches or exceeds alignment-based approaches like Mutual Information FL, while retaining substantially lower communication cost than communication-heavy methods such as FedXGBoost and Clustered FL. This cross-domain consistency supports the claim that FedLLM-Align is a robust option for heterogeneous FL in both healthcare and financial applications.
5.3.2 Convergence Analysis
To assess the training robustness of FedLLM-Align, we monitor the convergence behavior across federated rounds and evaluate cross-client performance variance. We track F1-scores over 25 communication rounds and compute per-client statistics (mean, standard deviation, minimum, and maximum F1-scores) to measure performance equity across participants.
Training dynamics further validate the robustness of FedLLM-Align. Figure 2 shows that our framework converges smoothly within 15 rounds, whereas FedProx exhibit unstable patterns due to the schema misalignment. Table 6 confirms that FedLLM-Align maintains both high accuracy and low cross-client variance and standard deviation (Std = 0.02), ensuring equitable performance across participants. In contrast, FedXGBoost and the homogeneous baseline show wide fluctuations and poor stability, indicating fragile adaptation.
| Method | Mean F1 | Std | Min F1 | Max F1 |
|---|---|---|---|---|
| FedLLM-Align | 0.84 | 0.02 | 0.81 | 0.86 |
| Homogeneous | 0.64 | 0.08 | 0.52 | 0.73 |
| FedXGBoost | 0.14 | 0.12 | 0.02 | 0.31 |
5.3.3 Communication Efficiency Analysis
Communication efficiency is a fundamental requirement in FL since excessive communication overhead can significantly limit scalability and practical deployment. To quantify the communication cost of different methods, we measure the per-round communication overhead, decomposed into model weight transmission and additional protocol-related overhead. We track the size of transmitted updates until convergence for all methods.
Table 7 reports the per-round communication overhead. FedLLM-Align achieves the lowest communication cost at 13.1 KB per round, which is 4.1 lower than FedXGBoost and 1.4 lower than Mutual Information FL. This efficiency positions FedLLM-Align to be well-suited for bandwidth-constrained federated learning settings while still maintaining competitive performance.
| Method | Model Weights (KB) | Overhead (KB) | Total (KB) | Relative Cost |
|---|---|---|---|---|
| FedLLM-Align | 12.3 | 0.8 | 13.1 | 1.0 |
| FedXGBoost | 45.7 | 8.2 | 53.9 | 4.1 |
| Mutual Info FL | 15.2 | 3.1 | 18.3 | 1.4 |
5.3.4 Schema Heterogeneity Stress Test
Finally, we stress-test the FedLLM-Align framework by progressively reducing the fraction of features that are shared across clients (schema overlap) from 80% to 20%. For each overlap level, we re-partition the data and re-run all methods. In this experiment, the homogeneous baseline refers to a FedAvg model trained on a globally aligned schema restricted to the subset of features that is common to all clients at that overlap level. Thus, unlike in the main results (where homogeneous FedAvg serves as an idealized upper bound assuming fully harmonized schemas), here it is a strong but overlap-aware baseline that loses predictive features as the shared subset shrinks.
| Schema Overlap | FedLLM Align | Homo- geneous | Fed XGBoost | Mutual Info |
|---|---|---|---|---|
| 80% | 0.840.01 | 0.720.02 | 0.350.08 | 0.680.03 |
| 60% | 0.820.01 | 0.650.04 | 0.180.12 | 0.550.06 |
| 40% | 0.790.02 | 0.510.08 | 0.090.08 | 0.380.09 |
| 20% | 0.760.03 | 0.320.12 | 0.040.03 | 0.210.11 |
Table 8 shows that while baselines relying on a single global schema (e.g., FedXGBoost, Mutual Information FL) degrade sharply as overlap decreases, FedLLM-Align exhibits graceful performance degradation. Even at 20% overlap, it retains an F1-score of 0.76, whereas the overlap-aware homogeneous FedAvg baseline drops to 0.32 and FedXGBoost nearly fails (0.04). These results confirm that LLM-based embeddings provide a robust mechanism for bridging divergent schemas beyond what is possible with methods that require a strictly shared feature space.
6 Discussion
The experimental results indicate that FedLLM-Align is an effective and practical framework for federated learning on heterogeneous tabular data. By mapping client records into a shared semantic space via a frozen LLM encoder, the framework mitigates schema divergence and enables a single global classifier to operate across clients with partially overlapping and differently named features. This semantic alignment is reflected in consistently higher F1-scores on both the Framingham and churn tasks compared to optimization-focused federated baselines, especially as the number of clients increases and schemas become more fragmented. The design analysis in Section 5 highlights two main axes along which FedLLM-Align can be tuned. First, the choice of encoder controls the performance–efficiency trade-off: compact, general-purpose encoders offer a strong balance between accuracy, memory footprint, and latency, while domain-specialized encoders yield the highest absolute accuracy when domain alignment is critical but incur higher resource costs. Second, data representation choices matter: structured serialization provides the most informative and stable input to the encoder, whereas more compact formats reduce textual overhead at the expense of predictive performance and robustness. From a systems perspective, FedLLM-Align keeps communication overhead low by freezing the encoder and exchanging only lightweight classifier weights, and it converges reliably within a modest number of communication rounds. The framework also degrades gracefully under reduced schema overlap, maintaining reasonable performance even when clients share only a small fraction of features. Taken together, these observations suggest that FedLLM-Align offers a flexible design space: practitioners can select encoders and serialization formats that best match their resource constraints and accuracy requirements, while retaining the core benefit of LLM-based semantic alignment for cross-institutional deployments.
7 Conclusion
We presented FedLLM-Align, a federated learning framework that leverages pretrained language models to align heterogeneous tabular data while preserving privacy. By serializing local records into text, encoding them with a shared frozen LLM, and training only a lightweight classifier federatedly, FedLLM-Align addresses schema divergence without raw data sharing and keeps communication overhead low. Experiments on heart disease prediction and bank customer churn show consistent gains over strong federated baselines across different numbers of clients and schema overlap levels, confirming that LLM-based embeddings provide an effective semantic bridge between heterogeneous schemas. The analyses further show how encoder and serialization choices offer practical knobs to balance accuracy, resource usage, and latency. Future work includes scaling FedLLM-Align to larger and hierarchical federated networks, exploring partial fine-tuning or adapter-based and quantized encoders for edge deployment, and extending evaluation to additional domains and metrics such as interpretability and user trust.
References
- (1) Yuan, H., Morningstar, W., Ning, L. and Singhal, K., 2021. What do we mean by generalization in federated learning?. arXiv preprint arXiv:2110.14216.
- (2) Dritsas, E. and Trigka, M., 2025. Federated learning for IoT: A survey of techniques, challenges, and applications. Journal of Sensor and Actuator Networks, 14(1), p.9. https://doi.org/10.3390/jsan14010009
- (3) Horvath, S., Laskaridis, S., Almeida, M., Leontiadis, I., Venieris, S. and Lane, N., 2021. Fjord: Fair and accurate federated learning under heterogeneous targets with ordered dropout. Advances in Neural Information Processing Systems, 34, pp.12876-12889.
- (4) Thakur, A., Molaei, S., Nganjimi, P.C. et al., 2024. Knowledge abstraction and filtering based federated learning over heterogeneous data views in healthcare. npj Digital Medicine, 7, p.283. https://doi.org/10.1038/s41746-024-01272-9
- (5) Luo, Jun, Matias Mendieta, Chen Chen, and Shandong Wu. ”Pgfed: Personalize each client’s global objective for federated learning.” In Proceedings of the IEEE/CVF international conference on computer vision, pp. 3946-3956. 2023.
- (6) Tan, A.Z., Yu, H., Cui, L. and Yang, Q., 2022. Towards personalized federated learning. IEEE Transactions on Neural Networks and Learning Systems, 34(12), pp.9587-9603.
- (7) Sattler, F., Müller, K.R. and Samek, W., 2020. Clustered federated learning: Model-agnostic distributed multitask optimization under privacy constraints. IEEE Transactions on Neural Networks and Learning Systems, 32(8), pp.3710-3722.
- (8) Salman, Hassan, Chamseddine Zaki, Nour Charara, Sonia Guehis, Jean-François Pradat-Peyre, and Abbass Nasser. ”Knowledge distillation in federated learning: a comprehensive survey.” Discover Computing 28, no. 1 (2025): 145.
- (9) Yu, Fuxun, Weishan Zhang, Zhuwei Qin, Zirui Xu, Di Wang, Chenchen Liu, Zhi Tian, and Xiang Chen. ”Fed2: Feature-aligned federated learning.” In Proceedings of the 27th ACM SIGKDD conference on knowledge discovery data mining, pp. 2066-2074. 2021.
- (10) Gou, J., Yu, B., Maybank, S.J. and Tao, D., 2021. Knowledge distillation: A survey. International Journal of Computer Vision, 129(6), pp.1789-1819.
- (11) Chen, J., Xue, J., Wang, Y., Liu, Z. and Huang, L., 2024. Classifier clustering and feature alignment for federated learning under distributed concept drift. Advances in Neural Information Processing Systems, 37, pp.81360-81388.
- (12) Gardner, J., Perdomo, J.C. and Schmidt, L., 2024. Large scale transfer learning for tabular data via language modeling. arXiv preprint arXiv:2406.12031.
- (13) Hegselmann, S., Buendia, A., Lang, H., Agrawal, M., Jiang, X. and Sontag, D., 2023. Tabllm: Few-shot classification of tabular data with large language models. In International Conference on Artificial Intelligence and Statistics, pp.5549-5581. PMLR.
- (14) Han, S., Yoon, J., Arik, S.O. and Pfister, T., 2024. Large language models can automatically engineer features for few-shot tabular learning. arXiv preprint arXiv:2404.09491.
- (15) Shi, Ruxue, Hengrui Gu, Hangting Ye, Yiwei Dai, Xu Shen, and Xin Wang. ”Latte: Transfering LLMs’ Latent-level Knowledge for Few-shot Tabular Learning.” Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence (IJCAI-25), 2025, 6173–6181.
- (16) Shang, Xinyi, Yang Lu, Gang Huang, and Hanzi Wang. ”Federated Learning on Heterogeneous and Long-Tailed Data via Classifier Re-Training with Federated Features.” Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence (IJCAI-22), 2022, 2218–2224.
- (17) Liu, G., Yang, J. and Wu, L., 2022. Ptab: Using the pre-trained language model for modeling tabular data. arXiv preprint arXiv:2209.08060.
- (18) Tang, J., Zhu, J., Li, S., Zhang, K. and Sun, L., 2022. Fully privacy-preserving federated representation learning via secure embedding aggregation. Cryptology ePrint Archive.
- (19) Lan, Zhenzhong, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. ”Albert: A lite bert for self-supervised learning of language representations.” arXiv preprint arXiv:1909.11942 (2019).
- (20) Uddin, Md Palash, Yong Xiang, Xuequan Lu, John Yearwood, and Longxiang Gao. ”Mutual information driven federated learning.” IEEE Transactions on Parallel and Distributed Systems 32, no. 7 (2020): 1526-1538.
- (21) Le, Nhan Khanh, Yang Liu, Quang Minh Nguyen, Qingchen Liu, Fangzhou Liu, Quanwei Cai, and Sandra Hirche. ”Fedxgboost: Privacy-preserving xgboost for federated learning.” arXiv preprint arXiv:2106.10662 (2021).
- (22) Li, Tian, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. ”Federated optimization in heterogeneous networks.” Proceedings of Machine learning and systems 2 (2020): 429-450.
- (23) Karimireddy, Sai Praneeth, 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.
- (24) Mahmoud, Walaa Adel, Mohamed Aborizka, and Fathy Ahmed Elsayed Amer. ”Heart disease prediction using machine learning and data mining techniques: Application of framingham dataset.” Turkish Journal of Computer and Mathematics Education (TURCOMAT) 12, no. 14 (2021): 4864-4870.
- (25) Gaurav Topre. ”Bank Customer Churn Dataset.” Kaggle, 2022. https://www.kaggle.com/datasets/gauravtopre/bank-customer-churn-dataset. Accessed: Jan 11, 2026.