# VeilTune: Secure Fine-Tuning of Private LoRA Adapters on Public Pretrained Language Models

VeilTune runs LoRA fine-tuning fully inside secure multi-party computation so the adapter stays hidden

Xie, Huiyu, Zhou, Tanping, Hu, Tao, Liu, Xinlei, Ma, Hailong · arXiv · 2026-11-9

- **Problem** Existing secure fine-tuning protocols protect the data but reveal hidden representations or logits at each step. The data owner can use those values to copy the provider's adapter.
- **Method** VeilTune runs the whole backpropagation and update in secure multi-party computation, so no adapter-dependent value is opened. It uses training-aware nonlinear operators and skips corrupted steps obliviously.
- **Results** VeilTune nearly matches plaintext training and is 5.3 points more accurate on average than SecP-Tuning across four few-shot tasks. On SST-2 it runs with a 3.5x end-to-end speedup over SecP-Tuning.

![Figure 2: Workflow of VeilTune and one secure training step. All values inside the middle box are secret-shared, and the Transformer block is repeated for the𝐿…](https://refivu.com/papers/1ac3c6eb-7952-4bcf-b058-eb348429161e/figures/figure-3b52eb911fd0f23b60657bc2df45240f.png?thumb=512)

**Figure 2** : Workflow of VeilTune and one secure training step. All values inside the middle box are secret-shared, and the Transformer block is repeated for the𝐿−𝑠adapted blocks.

[Original paper](https://arxiv.org/abs/2611.11817v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xie, Huiyu, Zhou, Tanping, Hu, Tao, Liu, Xinlei, Ma, Hailong · VeilTune: Secure Fine-Tuning of Private LoRA Adapters on Public Pretrained Language Models · Original paper figure · Extracted the figure area from page 5 of the original PDF.

## Why two-way privacy is hard to get

Many services adapt a public pretrained model by training a small LoRA adapter, often on data owned by someone else. Two assets then need protection: the provider's adapter and the data owner's labeled samples. Existing secure protocols protect the samples, but they open hidden representations or logits of every training step to the data owner.

Two-way privacy therefore means that no adapter-dependent value may be revealed, including gradients and optimizer state. Backpropagation and the parameter update must therefore run in protected form as well.

Backpropagation in MPC has a cost problem, because every nonlinear operator becomes an interactive protocol. Nonlinear operators dominate the cost, because softmax, GELU and LayerNorm account for nearly all the communication.

The accuracy problem is that generic operators work only on bounded ranges of inputs. Fine-tuning produces values outside those ranges, for instance LayerNorm variances above 100 from outlier dimensions. VeilTune answers both problems with token packing, training-aware nonlinear operators and oblivious step skipping.

## Adapter extraction on existing protocols

The attack treats every opened value as an answer to a query on the adapter at that step. The attacker starts from an adapter of the same structure and minimizes the squared gap between its outputs and the opened values over the last K observed steps. Agreement counts the fraction of test inputs on which both adapters predict the same label, and a local model trained on the data owner's own examples serves as the baseline.

These public sentences don't enter the training loss, so the active attacker stays semi-honest.

Every protocol leaks the adapter, because the stronger attacker beats the local model on every task. On SST-2, Yelp and AG News, the stronger attacker reaches at least 93.9% agreement, compared to at most 92.2% for the local model. On RTE, the hardest task, the stronger attacker reaches 82.9% to 93.0%, compared to at most 72.4% for the local model.

The extracted adapters also stay close to the trained adapter in accuracy, so the data owner ends up with a usable copy.

Hidden representations give the adapter away most directly. Opening fewer values doesn't help much, since extracting from the last 100 steps instead of a single step raises agreement by at most 2.5 points.

It shows instead that revealing them is already enough to copy the adapter. So a protocol that protects the adapter must keep every adapter-dependent value hidden throughout training.

## How one training step runs inside MPC

The key idea is to keep every adapter-dependent value on secret shares, so the data owner never receives one. The data owner runs the embedding and the lower blocks in plaintext, since those blocks carry no adapter. It then secret-shares the hidden states and labels, while the model owner secret-shares the initial adapter. Only the final adapter is opened, and only to the model owner.

Token packing targets the waste that padding creates in MPC. Every computed position costs communication even when it doesn't affect the result, so padding is expensive. Since the token lengths and \[MASK\] positions are public, the real tokens of a batch are concatenated into one sequence for the per-token layers.

The threat model is static, computationally bounded and semi-honest, with a preprocessing dealer that colludes with neither party. The authors prove, in the (FMul, FCmp)-hybrid model, that VeilTune satisfies their two-way privacy definition. The proof gives each party a simulator built from the public schedule and the output. Truncation failures only affect values that never appear in a party's view.

The experiments run the two parties on two servers, each with an A100 GPU. Linux Traffic Control emulates a LAN at 3 Gbps with 0.8 ms round-trip latency, and a WAN at 200 Mbps with 40 ms. VeilTune is built on CrypTen with sharing over Z264 and f = 16, using correlated randomness from a trusted dealer.

## Nonlinear operators built for training

GELU is close to ReLU for large inputs, so VeilTune only needs a polynomial on a small interval. Outside the interval of \[-4, 4\], the operator outputs ReLU, and inside it a degree-7 polynomial R is applied to ξ²/16. Two low-precision comparisons decide which formula applies: ξ against 0, and ξ² against 16. The derivative gets its own second polynomial, so the backward pass receives the values it needs.

Softmax subtracts the row maximum, and the maximum comes from low-precision pairwise comparisons. Any value close to the maximum serves equally well, so the comparisons don't need full precision. The exponential is computed as (E6(a/128))^128, where dividing by 128 moves the input into a small interval.

VeilTune writes each argument as v = u · 2^e with u between 1/2 and 1, so Newton's iteration only handles u. A single batched comparison against public powers of two finds the exponent e, and dividing by 2^e is local. A linear guess with two Newton steps reaches fixed-point resolution, and scaling by a power of two gives the result for any v.

The comparisons behind these operators run on truncated values, because a wrong decision near a boundary changes the result little. Each party truncates its share by κ bits and reduces it modulo 2^k, and both steps are local. The sum of the two reduced shares carries the sign bit of a whenever \|a\| is at least 2^κ. For GELU, κ is 16 and k is 32, while for the softmax maximum κ is 12 and k is 16.

## Skipping corrupted steps and scaling small values

Truncation failures and underflow both threaten the optimizer, because Adam's moments persist across steps. Prior systems either accept this probability or pay for exact truncation protocols at extra communication cost. Dropping such a step costs almost no accuracy, so VeilTune keeps local truncation and skips corrupted steps obliviously.

VeilTune compares every gradient entry with the public bound τ = 10, which separates the two magnitudes. The comparisons reduce to one secret bit o, which is 1 exactly when no entry exceeds τ. Each state variable θ, m and v is then updated on shares as ω ← ω + o·(ω′ − ω).

Second moments are smaller still: on SST-2, 91% of them lie below 2^-f, and so does ε². VeilTune multiplies the gradient by S = 2^13 before Adam and scales ε\_t by the same constant. The first moment becomes Sm and the second moment S²v, and the scale cancels in the step, so q is unchanged.

On RTE, without oblivious step skipping, the 38 corrupted steps of a run enter the update. In that case the accuracy stays near chance, at 52.7%, against 65.7% with skipping.

## Accuracy against plaintext and baselines

VeilTune's accuracy is judged against two kinds of reference: plaintext training of the same adapter and full-parameter fine-tuning in MPC. On RoBERTa-large, the authors use four few-shot tasks with 16 training examples per class, averaged over three seeds. The SecP-Tuning and SFT numbers come from the cited work, because the authors' configuration follows SecP-Tuning's.

LoRA trained with Adam, run in plaintext, is 6.3 points above SecP-Tuning on average. The largest gain is 13.5 points on RTE, and only on SST-2 does SecP-Tuning report 1.4 points more.

Training the adapter with CMA-ES splits the gap to SecP-Tuning into 4.8 points from using an adapter and 1.5 points from backpropagation. The zeroth-order SPSA optimizer updates the adapter from two forward passes, and it also trails Adam on every task. The secure run is the one that matters for the claim, so the authors compare VeilTune with plaintext training of the same adapter on the same examples.

It is 0.6, 1.5 and 1.7 points below plaintext on AG News, RTE and Yelp.

The gap comes from skipped steps, and their share grows with input length. Yelp's inputs average 100 tokens, against 17 on SST-2. Keeping the corrupted steps is fatal on RTE, where accuracy falls to 52.7%, against 65.7% with skipping.

Plaintext LoRA with Adam beats full-parameter fine-tuning on every task, which shows the adapter itself is not the weak point. The tables report this on four few-shot tasks, so the authors don't claim the same margins on larger training sets.

## What training costs, and what each technique saves

On SST-2, a full VeilTune run takes 2.5 hours and 3.9 TB of communication per party on the LAN setting. SecP-Tuning takes 8.8 hours and 14.2 TB on the same task, and SFT takes 65.9 hours and 67.4 TB. The SecP-Tuning and SFT figures come from their own hardware, so these ratios cross setups. VeilTune converges within 150 steps, each made of one forward and one backward pass.

![Table 1: Cost of one secure training step by stage, per party, on the four tasks (batch size 32). Time is in seconds on a LAN (3 Gbps, 0.8 ms) and a W AN (200…](https://refivu.com/papers/1ac3c6eb-7952-4bcf-b058-eb348429161e/figures/figure-c92164ac872a5ff11a067ebf41ad98b1.png?thumb=512)

**Table 1** : Cost of one secure training step by stage, per party, on the four tasks (batch size 32). Time is in seconds on a LAN (3 Gbps, 0.8 ms) and a W AN (200 Mbps, 40 ms); communication is in GB. The offline phase generates the correlated randomness and is independent of the inputs. The last row gives a full training run (150 steps; 100 on RTE) in hours and TB.

[Original paper](https://arxiv.org/abs/2611.11817v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

They do so because they run the nonlinear operators of eight blocks on every token. The backward pass adds only about one seventh of the forward pass cost. Its update costs 3.3 GB on every task, since Adam touches adapter entries rather than tokens.

Token packing removes the padding waste, and it is the largest saving in the ablation. On SST-2, removing token packing raises a training step from 22.6 GB to 42.0 GB, with 1,208 rounds unchanged. Without loss scaling, the relative gradient error rises from 0.54% to 15.7%.

SPSA is a forward-only alternative that the authors also measured against VeilTune. A VeilTune step costs 25.9 GB on the same task, so SPSA needs about 24 times more communication to converge.

## Limitations and what the results cover

The experiments cover four few-shot tasks on RoBERTa-large, with 16 training examples per class and three seeds. The attack results cover the same four tasks and the three attacked protocols: SAP, PrivTuner and SecP-Tuning. The protocol's security claims are limited to a static, computationally bounded, semi-honest adversary. Side channels and deviations from the protocol are out of scope, and so are attacks that need only the released adapter.

The ideal functionality and the leakage profile fix what the parties may learn beyond the trained adapter.

The SecP-Tuning and full-parameter SFT numbers come from the cited work \[23\], not from runs on the authors' own hardware. So the speedup and communication ratios over those baselines cross different setups, and they don't measure a controlled comparison. The SST-2 figures of 2.5 hours and 3.9 TB are on the LAN setting with 3 Gbps and 0.8 ms round-trip latency.

The accuracy gap to plaintext training depends on the skipped steps, which grow with input length.

## Paper info

- **Authors**: Xie, Huiyu, Zhou, Tanping, Hu, Tao, Liu, Xinlei, Ma, Hailong
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-9
- **Added**: 2026-11-10
- **Updated**: 2026-11-9
- **Version**: v1
- **arXiv**: 2611.11817
- **Category**: cs.CR · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.11817v1) · [PDF ↗](https://arxiv.org/pdf/2611.11817v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Fine-tuning public pretrained language models with lightweight adapters such as LoRA has become the mainstream way to adapt them to downstream tasks. A service provider often trains its adapter on a data owner's samples, so two assets need protection: the data owner's samples and the provider's adapter. Existing secure fine-tuning protocols protect the samples but reveal to the data owner intermediate results of every training step, such as the hidden representations or logits of its inputs. We show that a single step suffices to copy the adapter: from the hidden representations of one mini-batch of 32 samples, the data owner fits an adapter that agrees with the provider's on 99.2% of test inputs, and logits alone yield about 94%. Protecting both assets therefore requires that no value that depends on the adapter be revealed throughout training. We present VeilTune, to the best of our knowledge the first protocol that fine-tunes a pretrained language model with backpropagation entirely in secure multi-party computation (MPC). VeilTune computes only what the loss depends on, replaces generic MPC operators with training-aware nonlinear operators that stay accurate on the values that training produces, and obliviously skips the steps corrupted by truncation failures. On four few-shot tasks with RoBERTa-large, VeilTune nearly matches plaintext training and is 5.3 points more accurate on average than SecP-Tuning, the state-of-the-art secure fine-tuning protocol. On SST-2, it achieves a 3.5x end-to-end speedup and a 3.6x reduction in communication over SecP-Tuning, and 26x and 17x over full fine-tuning in MPC.

## Quote from the paper

Xie, Huiyu, Zhou, Tanping, Hu, Tao, Liu, Xinlei, Ma, Hailong (2026). VeilTune: Secure Fine-Tuning of Private LoRA Adapters on Public Pretrained Language Models. arXiv:2611.11817v1. https://arxiv.org/abs/2611.11817v1

**BibTeX**

```
@misc{huiyu2026veiltune,
  title = {{VeilTune: Secure Fine-Tuning of Private LoRA Adapters on Public Pretrained Language Models}},
  author = {Xie, Huiyu and Zhou, Tanping and Hu, Tao and Liu, Xinlei and Ma, Hailong},
  year = {2026},
  eprint = {2611.11817},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11817v1}
}
```

## Other paper commentary

- [Weight-Space Programming of Policies and Their Verification via Model Checking](https://refivu.com/en/papers/812e0c2d-92df-41d6-8419-2738a51f42de-weight-space-programming-of-policies-and-their-verification.md)
- [WarBias: A Bilingual LLM Benchmark of Stereotypes About Internally Displaced People and Veterans](https://refivu.com/en/papers/d1a75005-9e8d-4870-a69c-f94be2d0840d-warbias-a-bilingual-llm-benchmark-of-stereotypes-about.md)
- [When Safety Becomes An Outlier: Understanding the Retention of LLM Safety Behaviors](https://refivu.com/en/papers/c80b7b08-3909-41c2-8f34-04547cb431aa-when-safety-becomes-an-outlier-understanding-the-retention.md)
- [AbductionBench: Benchmarking Abductive Reasoning in Large Language Models](https://refivu.com/en/papers/5447aa31-8498-47e7-ac8b-ac02bc06c0bc-abductionbench-benchmarking-abductive-reasoning-in-large.md)
- [Machine Hearing: Can Audio LLMs Generalize Beyond Human Auditory Perception?](https://refivu.com/en/papers/0cabc2f0-42fb-4be8-9cca-d705df6b4273-machine-hearing-can-audio-llms-generalize-beyond-human.md)
- [Same Contacts, Different Rooms:Meeting Format Shapes LLM Group Influence Beyond Pairwise Contact Counts](https://refivu.com/en/papers/44bb6582-331e-4190-a4d5-2af78e6b5479-same-contacts-different-rooms-meeting-format-shapes-llm.md)
- [Language processing in the autistic brain: A meta-analysis of neuroimaging studies across modalities and age](https://refivu.com/en/papers/f3e93a2c-c934-46c5-a3c7-db0f41ecb61e-language-processing-in-the-autistic-brain-a-meta.md)
- [Tropical Gaussian Anticoncentration: Optimal Instance-Dependent Bounds for Online Learning in Extensive-Form Games](https://refivu.com/en/papers/9aeba1cf-9924-4bc7-a5d6-6af8f082488f-tropical-gaussian-anticoncentration-optimal-instance.md)
- [HydroTuring: A physics probe benchmark testing mass, energy, and momentum conservation in hydrologic models](https://refivu.com/en/papers/03f101fa-088f-4ab1-8ed1-0fc7edbe1172-hydroturing-a-physics-probe-benchmark-testing-mass-energy.md)
- [Vietnamese Legal Ontology: Every legal answer, traced to the article that grounds it](https://refivu.com/en/papers/39e9b155-49f6-418a-8ba0-f2d1078d32ea-vietnamese-legal-ontology-every-legal-answer-traced-to.md)
- [Computationally Efficient Offline Policy Optimization with All-Policy Linear Realizability](https://refivu.com/en/papers/b7cf1902-8589-4355-b71b-9c0624b45ced-computationally-efficient-offline-policy-optimization-with.md)
- [Agent Self-Improvement with Frozen Weights: The Added Value and Limits of Failure Traces](https://refivu.com/en/papers/4779b64b-f3f7-4aef-95d4-e3c1e3ee202e-agent-self-improvement-with-frozen-weights-the-added.md)

## Terms in this paper

- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [Adam](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [LoRA](https://refivu.com/en/terms/bee764895c36-lora)
- [fine-tuning](https://refivu.com/en/terms/66a12665f507-fine-tuning)
- [test accuracy](https://refivu.com/en/terms/021c3c30b755-test-accuracy)
- [softmax](https://refivu.com/en/terms/4a7673b6518d-softmax)
- [SST-2](https://refivu.com/en/terms/8904146eae2e-sst-2)
- [GeLU](https://refivu.com/en/terms/8897c492bcfe-gelu)
- [LayerNorm](https://refivu.com/en/terms/71749b6cdbf4-layernorm)
- [agreement](https://refivu.com/en/terms/a6a347e5e01b-agreement)
- [CMA-ES](https://refivu.com/en/terms/4165774f7c53-cma-es)
- [RoBERTa-large](https://refivu.com/en/terms/9dd43d7ecaa1-roberta-large)
- [RTE](https://refivu.com/en/terms/269f713debf7-rte)
- [AG News](https://refivu.com/en/terms/d980d6e0e126-ag-news)
- [SPSA](https://refivu.com/en/terms/126373c7fd8e-spsa)
- [Yelp Polarity](https://refivu.com/en/terms/2cd656c10311-yelp-polarity)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/1ac3c6eb-7952-4bcf-b058-eb348429161e-veiltune-secure-fine-tuning-of-private-lora-adapters)
