---
title: 'On-Device Fine-Tuning: Challenges & Advances'
url: https://www.emergentmind.com/topics/on-device-fine-tuning
type: topic
---

# On-Device Fine-Tuning: Challenges & Advances

On-device fine-tuning refers to the adaptation or personalization of machine learning models—particularly deep neural networks and large language models (LLMs)—directly on edge devices such as smartphones, IoT nodes, microcontrollers, and embedded hardware. This paradigm brings learning closer to user or deployment data, enabling privacy-preserving, low-latency, and context-sensitive model adaptation under stringent hardware, bandwidth, and privacy constraints. On-device fine-tuning intersects research in parameter-efficient adaptation, memory and compute-efficient training, privacy-enhanced collaboration, federated learning, integer-only optimization, and system-level compilation for diverse hardware. The following sections review the core methods, system strategies, efficiency mechanisms, privacy techniques, and deployment guidelines that define the field.

## 1. Technical Challenges in On-Device Fine-Tuning

On-device fine-tuning is fundamentally limited by three intertwined bottlenecks: 

- **Memory and Storage Constraints:** Standard full-model adaptation or even vanilla parameter-efficient fine-tuning (PEFT) protocols (e.g., LoRA, adapters) require storing all intermediate activations and optimizer states during backpropagation. For a moderately sized LLM (e.g., OPT-1.3B with batch size 16 and sequence 256), peak memory exceeds 20 GB—far beyond the 4–12 GB DRAM typical on mobile or edge hardware [2502.20421].
- **Computation and Hardware Mismatch:** Classical training workflows require substantial matrix multiplications, gradient computation, and custom backwards kernels, while mobile NPUs and DSPs are typically optimized for forward inference only, lacking dedicated backward support [2502.20421].
- **Communication and Privacy:** In federated or collaborative setups, exchanging large parameter or activation blobs strains uplinks and exposes sensitive local data or adaptation signatures [2509.09097, 2404.09753]. There is also inherent heterogeneity in device capabilities and data distributions [2401.06432, 2501.19389].

These challenges motivate a rich vein of algorithmic and systems-level innovations, as detailed below.

## 2. Memory- and Compute-Efficient Adaptation Methods

### 2.1 Parameter-Efficient Fine-Tuning (PEFT)

**LoRA and Adapters**: The canonical approach is to freeze the majority of the pre-trained model's weights and train only a small, usually low-rank, set of additional parameters. For a linear transformation $W \in \mathbb{R}^{d \times k}$, LoRA introduces $\Delta W = B A$, $B \in \mathbb{R}^{d \times r}$, $A \in \mathbb{R}^{r \times k}$ ($r \ll d,k$), thus reducing trainable and communicable parameters from $dk$ to $(d + k)r$ per layer [2603.09511].

**Selective Layer/Node Updates**: Freeze And Reconfigure (FAR) [2205.01541] and Layer-Cyclic Selective Backpropagation (LCSB) [2602.13073] further reduce activation and backpropagation costs by identifying and updating only a small fraction of model components either through “learner node” priming (FAR) or stochastic layer selection at each iteration (LCSB). PockEngine additionally enables sparse backpropagation via compile-time graph pruning [2310.17752].

### 2.2 Structured and Quantized Adaptation

**Memory-Efficient Structured Backpropagation (MeSP)**: By exploiting LoRA’s low-rank structure, intermediates can be recomputed on-demand in backward passes, which drastically reduces per-layer activation storage requirements while preserving exact first-order gradients [2602.13069]. This yields up to 62% memory reduction compared to gradient checkpointing [2602.13069].

**Integer and Quantized Training**: GSQ-Tuning [2502.12913] replaces all floating point operations in both forward and backward passes with group-shared exponent integer (GSEI) arithmetic, enabling integer-only on-device fine-tuning with substantial reductions in power, memory, and chip area, while maintaining competitive accuracy.

### 2.3 Efficient Backpropagation Avoidance

**Zeroth-Order Optimization (MeZO, P-RGE):** Fine-tuning without storing intermediates is enabled by zeroth-order gradient estimation (e.g., MeZO [2511.11362], P-RGE [2409.15520]), which replaces backward passes with forward-only finite-difference computations over random perturbations. These approaches permit models up to 2x larger to fit within the same device memory, at the expense of increased wall-clock time for convergence.

### 2.4 Lightweight Architectures for Edge

**Skip2-LoRA and LoRA-Edge**: Skip2-LoRA [2410.21073] utilizes adapter placement and forward activation caching to minimize redundant computation, achieving 90% reduction in wall-clock time for fine-tuning on low-cost ARM microcontrollers. LoRA-Edge [2511.03765] applies tensor-train SVD decompositions to CNN weights, updating only output-side TT cores, resulting in two orders of magnitude reductions in trainable parameters and accelerated on-device adaptation.

## 3. System and Collaboration Strategies

### 3.1 Split and Side-Tuning Architectures

**Server-Assisted Fine-Tuning (MobiLLM, PAE MobiLLM):**
- MobiLLM [2502.20421]: The device performs forward passes through a frozen backbone, transmits low-bit quantized activations to a server, which executes backpropagation over a side-network of adapters. Backpropagation through the backbone is bypassed, significantly lowering device memory usage ($4.5$ GB vs $14.6$ GB on OPT-1.3B) and converging in half the time of LoRA [2502.20421].
- PAE MobiLLM [2507.01216]: Further reduces device and communication cost by sending only pivot-token activations and privacy-preserving label differences once per sample, followed by persistent server-side adapter training using cached activations. This approach reduces device FLOPs by $13\times$ and communication by $485\times$ relative to side-tuning baselines, with negligible accuracy loss.

**Split Learning (FlexP-SFL):**
- Flexible Personalized Split Federated Learning [2508.10349] allows each client to process a configurable share of model layers, offloading the remainder to the server. Alignments via KL-based regularizers improve global representations. This asynchronous and communication-efficient protocol circumvents straggler and memory bottlenecks characteristic of classic federated schemes.

### 3.2 Federated and Collaborative Fine-Tuning

**LoRA-based Federated Learning:** In federated setups, LoRA minimization of trainable parameter counts enables low-latency, privacy-preserving updates:
- DP-FedLoRA [2509.09097]: Integrates LoRA with per-client differential privacy, enforcing $(\epsilon, \delta)$-DP via Gaussian-perturbed (clipped) updates, and achieves competitive performance with strong privacy guarantees.
- Personalized Collaborative Fine-Tuning [2404.09753]: LoRA updates are combined across devices using trust-weighted aggregation (based on validation loss or prediction similarity), outperforming traditional FedAvg, especially under data heterogeneity.
- HeteroLoRA and Federated Sketching LoRA (FSLoRA) [2401.06432, 2501.19389]: Address device heterogeneity by letting each device select LoRA adapter rank adaptively (HetLoRA) or update only a submatrix (“sketch”) of LoRA parameters according to local resources (FSLoRA), with convergence and communication guarantees.

**Label Correction for On-Device Recommenders:** Local data prior drift (e.g. per-user CTR) can impair ranking after fine-tuning. Recalibrating local samples' labels to match global priors restores ranking consistency and yields measurable gains in both experimental and real-world deployments [2211.01163].

## 4. Privacy Preservation and Differential Privacy

**Local and Federated Privacy Mechanisms:** Differentially private training has been successfully integrated with LoRA-based PEFT in both cross-device (DP-FedLoRA [2509.09097]) and dynamic rank settings (DP-DyLoRA [2405.06368]), overcoming the severe utility drop observed in full-model DP-FL. Rank randomization is managed globally to retain sensitivity calibration, and adaptive rank selection strikes a signal-to-noise balance, yielding <2% accuracy drop even with $\epsilon=2$ and $1$M clients.

**Activation and Label Masking:** PAE MobiLLM [2507.01216] employs privacy-masked prediction differences and random nonces, ensuring that the server never receives true labels or raw activations. Only device-defined side-network computations are disclosed, with formal mechanisms supporting further DP or secure multi-party computation overlays.

**Collaborative Learning with Privacy:** Efficient communication protocols exchange only low-rank LoRA updates or distilled signal aggregators (trust weights, logits), preserving data locality and minimizing exposure in collaborative or federated settings [2404.09753, 2501.19389].

## 5. Hardware and Software System Integration

### Hardware-Accelerated Fine-Tuning

TrainDeeploy [2603.09511] demonstrates the first end-to-end on-device transformer/CNN fine-tuning pipeline on RISC-V SoCs and PockEngine [2310.17752] provides compilation of full training graphs to diverse mobile/edge backends. Integer-only pipelines (GSQ-Tuning [2502.12913]), and quantization techniques (OTARo [2511.13147]) enable further deployment on devices with only integer ALUs, with up to $11\times$ area and $5\times$ power savings vs. FP8.

### Inference-Only Runtime Adaptation

Recent systems (Gao et al., 2024 [2409.15520]) show that zeroth-order optimization over LoRA-augmented parameters can be executed using unmodified inference-only runtimes such as ExecuTorch, leveraging dual-forwarding modules and parallelized randomized gradient estimation for tractable real-time adaptation without runtime code changes. This unlocks on-device fine-tuning with production inference engines, with substantial memory and speed improvements over traditional backpropagation.

## 6. Practical Trade-offs, Performance, and Deployment Guidelines

- **Memory vs. Compute vs. Accuracy:** Memory savings strategies (MeSP [2602.13069], sparse BP [2310.17752], TT-decomposition [2511.03765], group-shared exponent quantization [2502.12913]) typically incur mild to moderate compute overhead (up to $31\%$ for MeSP), and may introduce up to $2\%$ accuracy drop; overtuning or aggressive parameter sparsity can exacerbate performance loss.
- **Federated and Split Setting:** Adaptive resource allocation (rank selection, sketching ratio, compute split) enables deployment tailoring across device heterogeneity [2501.19389, 2508.10349]. Communication-efficient protocols and compressed update routing mitigate uplink bottlenecks.
- **Privacy and Differential Privacy:** Tuning privacy budgets ($\epsilon, \delta$), clipping norms, and noise scales is essential for balancing utility and formal guarantees [2509.09097]. Centralizing rank randomization and activating secure aggregation are required for DP under dynamic PEFT [2405.06368].
- **Caching and Alignment:** Activation caching and skip-forward/cached computation (Skip2-LoRA [2410.21073], PAE MobiLLM [2507.01216]) amortize device-side compute and accelerate repeated-epoch scenarios. KL-based regularization and trust-weighted aggregation sustain personalization and global knowledge [2404.09753, 2508.10349].
- **Quantization Robustness:** Quantization methods with block-shared exponents and multi-precision tuning (OTARo [2511.13147]) enable flexible precision switching and loss robustness in downstream deployment.

## 7. Future Directions and Open Questions

- **End-to-End Quantization and Mixed-Precision:** Extension of memory/computation-efficient PEFT and split architectures to uniformly quantized backbones (e.g., INT4, SEFP) across all layers and adapters remains an active area [2502.20421, 2511.13147].
- **Dynamic Adaptation to Environment and Hardware:** Real-time rank scheduling, sketch ratio adaptation, and hardware-in-the-loop profiling for optimal split/aggregation strategies across devices with dynamically varying conditions are underdeveloped.
- **Full Integer and Nonlinear Kernel Support:** Even with integer-only propagation and update (GSQ-Tuning), LayerNorm/Softmax remain limited to BF16/floating point; integrated non-linear integer kernels are a major challenge [2502.12913].
- **Convergence and Generalization Theory:** Block coordinate and selective adaptation methods (LCSB, HetLoRA, FSLoRA) are underpinned by nonconvex optimization theory but lack tight, task- and heterogeneity-aware generalization characterizations.

---

The field of on-device fine-tuning continues to advance toward practical, privacy-enhanced, and resource-adaptive adaptation pipelines for LLMs and DNNs. Progress is marked by the interplay of algorithmic reduction in trainable/communicated state, system and hardware co-design, parallelization of non-traditional optimization methods, and the safeguarding of user privacy and device autonomy [2502.20421, 2509.09097, 2310.17752, 2507.01216].

Source: https://www.emergentmind.com/topics/on-device-fine-tuning