Manuscript Offprint
arXiv:2611.04311Bilateral Protection for Private LoRA Inference with Intel TDX
Abstract
Cloud services using private low-rank adaptation (LoRA) must protect client inputs and outputs alongside owners' proprietary parameters and execute the approved adaptation. We design and implement a system for bilateral protection of private LoRA inference using Intel Trust Domain Extensions (TDX), connecting approved application identity to actual artifact consumption and adapter activation. The client and LoRA owner independently verify remote attestation, application identity, and binding to the actual Transport Layer Security (TLS) public key before releasing inputs and the weight-decryption key. A fixed read-only image and verified-byte consumption connect approved identities to inference objects, with all inference inside a trust domain. Experiments on real TDX hardware reject controlled application and boot-parameter modifications before secret release. Across 400 fixed dialogues, protected and native CPU inference in the same trust domain produce identical token sequences for all 400 pairs. Across 12 independent trust-domain boots, the steady-state service-to-native time ratio is 1.0094, with a 95% interval of [1.0064, 1.0126]. The system connects bilateral secret release, approved model use, and task-capability preservation, providing verifiable implementation and cost evidence for confidential inference with a public base and private adapter.
Keywords: confidential computing; Trust Domain Extensions; private LoRA; bilateral protection; remote attestation; model consumption integrity
1 Introduction
Low-rank adaptation (LoRA) converts a general-purpose language model into a task-specific model by freezing its base weights and training a small set of low-rank parameters [1]. In this service model, the public base model and private adapter are distinct assets: the former can be distributed openly, whereas the latter embodies task data, training investment, and proprietary capability. Clients may also submit sensitive business dialogues, structured requirements, or other inputs. Private LoRA cloud services therefore involve three parties: a cloud operator supplies computing resources, a model owner supplies the adapter, and a client supplies the input. Both asset owners need cloud computation while retaining control over their respective secrets.
Transport encryption protects data in transit, and artifact encryption protects externally stored weights. Inference, however, must use plaintext inputs and adapter parameters together. The service must therefore bring these assets into an execution environment accepted by both parties and return the output only to the requesting client. Trusted execution environments (TEEe) provide hardware isolation and remote attestation for this purpose. Prior work has advanced multi-tenant LoRA inference, bilateral protection in serverless computing, and confidential execution of entire large language models (LLMs) [2-4].
Corresponding author: maming_yuan@163.com.
A question spanning several system layers remains when these capabilities are deployed as a private LoRA service: does the environment attested and approved by both parties actually execute the approved model and adapter? A valid platform attestation identifies a trust domain and its state, but the claimed application identity must also be grounded in the measured boot chain. A correct artifact digest must correspond to the object consumed at runtime, and a loaded adapter must contribute to inference. These mechanisms must preserve adapted task capability and have clearly measured loading, steady-state, memory, and communication costs. The links together define the service; an isolated metric does not establish the behavior of the full execution path.
We address this question with a private LoRA inference service built on Intel Trust Domain Extensions (TDX). The client and model owner independently verify attestation and TLS public-key binding for the same service endpoint, then release their input and weight-decryption key under their own policies. The public base model, private adapter, tokenization, and autoregressive generation all execute inside a trust domain (TD). The design connects the identity chain of a fixed application image to actual artifact consumption, and evaluates the resulting behavior through functional ablations, task assessment, and cost comparisons within the same TD. The research thus establishes how both parties can verify and use a confidential service that actually runs the approved private adapter.
This requirement arises naturally when different entities provide computing capacity, domain models, and business data. The model owner seeks to expose a task capability while retaining control over parameters; the client seeks to use that capability while controlling the visibility of business data. Their shared object is an authorized computation. Separating a public base from a private update makes this relationship explicit: the base can be predeployed, the adapter can remain encrypted in storage, and business inputs arrive when the service is called. All three participate in generation only within the approved execution boundary. Protection must consequently span deployment, admission, loading, and invocation.
We study a fixed single-adapter service so that an approved identity corresponds to a definite execution configuration. Three connected questions organize the study: how each party verifies that the endpoint receiving its secrets runs the approved service; how the service turns approved artifacts into active adaptation; and how this path preserves task outputs with interpretable deployment costs. The controls separately vary application identity, consumption method, adapter state, and invocation mode, giving each experiment a specific system question.
The main contributions are as follows.
(1) We implement an Intel TDX service that provides bilateral protection for client data and private LoRA parameters in a three-party cloud setting, integrating independent attestation verification, channel-endpoint binding, secret release, and complete inference within the CPU TD.
(2) We connect application identity, model consumption, and adapter functionality as distinct verification targets. Mechanisms and strong controls under fixed read-only and mutable-path deployments identify the conditions in which verified-byte consumption provides additional protection.
(3) We establish mechanism, capability, and cost evidence on real TDX hardware: rejection of controlled tampering, protection against post-verification replacement, active LoRA contributions, token-identical native and protected outputs for all 400 dialogue pairs, and service-path costs across 12 independent TD boots.
2.1 2018–2021: Attestation Binding and Protected Model Execution
In 2018, Knauth et al. integrated remote attestation with TLS, enabling communicating parties to associate a secure channel’s public key with an attested execution environment [5]. This established a foundation for secret release: the verifier must confirm that the endpoint receiving its data is the executor described by the evidence. The mechanism binds the channel to an execution identity; applications still define approved software, models, and asset-access policies.
Slalom, proposed by Tramèr and Boneh in 2019, offloads linear neural-network operations to an untrusted accelerator while using Freivalds’ checks and input masking inside a TEE to verify computation and protect inputs [6]. It combines TEE protection with GPU computation, advancing inference across trusted and untrusted devices. Its outsourced operations expose model weights to the untrusted processor, however, so input protection does not provide confidentiality for private model parameters. Services with an independent model owner also need to protect parameter assets and their authorized use.
MLCapsule, formally published in 2021, approaches the data–model conflict from the client side. It executes a model inside an isolated environment on the user’s device, keeping inputs local while protecting the provider’s parameters and controlling model access [7]. It demonstrates that model privacy and user-data privacy can coexist within one execution environment. When computing resources instead reside in a third-party cloud and the client and owner hold different secrets, the next question is how both parties independently approve the cloud executor and provision their assets.
2.2 2021–2024: Private-Adapter Serving and Application Policies
LoRA, introduced in 2021, adapts a frozen base model with low-rank updates, reducing the training and storage costs of specialized models [1]. This representation also changes service ownership: multiple tasks can share a public base while maintaining separate adapters. Weight management therefore encompasses adapter loading, switching, and participation in computation, in addition to managing model replicas.
Confidential computing has also incorporated application-operation policies into remote attestation. Parma, introduced in 2023, binds execution policies to confidential containers and uses them to constrain runtime operations [8]. Attestation and workload policies in Confidential Containers, together with application deployment and trusted-file mechanisms in Gramine, provide foundations for deploying applications in confidential environments [9, 10]. These mechanisms establish how software and policies are approved. Model services additionally need to connect approval to the model bytes, configurations, and adapter states accepted by the inference runtime.
By 2024, multi-adapter systems had advanced scalable serving over shared base models. S-LoRA uses unified paging for adapters of different ranks and KV caches, together with heterogeneous batching, to improve GPU utilization [11]. Punica batches different LoRA requests through segmented gather matrix-vector multiplication kernels and consolidates tenant workloads onto shared GPUs [12]. dLoRA dynamically selects adapter merging or unmerging and migrates requests and adapters among workers [13]. These systems address efficient serving of many adapters. Their memory-management and scheduling mechanisms do not themselves provide parameter confidentiality against the infrastructure operator or bilateral secret admission. For private LoRA, loading and scheduling must also respect execution semantics approved by the asset owners.
2.3 2024–2025: Bilateral Authorization and Private LoRA Protection
SeSeMI, made public in 2024, provides joint protection for user data and models in serverless inference. Its KeyService manages keys and associates users, models, and execution identities; SeMIRT performs inference in a confidential environment; and FnPacker organizes requests [3]. Because users and owners cannot directly access dynamically assigned serverless instances, KeyService bridges their authorization decisions to execution instances. This design establishes a concrete framework for joint authorization. We instead consider a directly reachable, fixed CPU TD service, where each party verifies the actual TLS endpoint. We further examine consumption and activation of low-rank adapters in the approved instance, connecting authorization to the specialized computation actually executed.
LoRATEE, published in 2025, advances protection in multi-tenant LoRA serving. Private adapters and nonlinear operations remain inside a TEE, while base-model linear operations execute on a GPU; masking protects features crossing the boundary [2]. Dynamic prefetching and sharing of similar modules reduce adapter-loading and memory pressure. The work directly demonstrates the value of protecting private LoRA and develops a heterogeneous execution path. Its evaluation uses SGX simulation mode and an A100 GPU, primarily assessing multi-adapter efficiency and optimization mechanisms. Our system executes entirely within a CPU TD and uses controls for real boot identity, post-verification artifact replacement, nonzero adaptation, and service-output preservation, adding hardware evidence that links approved services to actual model use.
Together, these studies clarify our focus. Bilateral authorization and private-adapter protection have established foundations; the remaining connection concerns the objects and computation states actually consumed by the inference SDK. Platform and application identity establish who is approved to execute, while artifact consumption and activation semantics establish whether the approved objects participate in execution. Both determine the specialized service that the client ultimately invokes.
2.4 2025–2026: Full-Model Confidential Execution and End-to-End Services
In 2025, Chrapek et al. systematically evaluated the performance and cost of full Llama2 inference on CPU TDX, SGX, and confidential GPUs, examining numerical representations, batching, memory configurations, and hardware acceleration [4]. Their study establishes practical foundations for complete LLM execution in confidential environments and shows why performance must be evaluated with the specific hardware and configuration. Private-adapter services add independent owner admission, low-rank parameter use, and preservation of task outputs through the service wrapper.
OpenPCC, introduced in 2026, targets end-to-end LLM services on commercial TEEs. It binds session public keys to attestation, uses public node measurements and restricted runtime interfaces, and separates framework costs from underlying TEE costs on Llama-3 8B workloads [14]. These choices closely relate to our requirements for endpoint binding, application identity, and cost attribution. Its threat model centers on prompt and generated-output confidentiality; independent LoRA-owner key release, adapter consumption, and functional activation are outside its evaluation scope. We incorporate these model-asset relationships into the complete service path.
SLIM, also introduced in 2026, develops heterogeneous protection through weight obfuscation and transformation states that propagate across consecutive layers, reducing TEE interactions while targeting model theft on untrusted devices [15]. It illustrates another design for combining model protection with computation outside the trusted boundary. We retain plaintext inputs, private parameters, and intermediate computation inside the TD and examine bilateral admission and consistency of approved adaptation. These designs address different execution boundaries and protected assets; their applicability follows from those conditions rather than a ranking of raw latencies across platforms.
2.5 Research Gap and the Present Work
Table 1 summarizes the progression from protected inference to private-adapter services. Prior work advances trusted channels, model authorization, LoRA scheduling, and full confidential execution. The three-party relationship studied here requires three links: the application identity approved by both parties must constrain the running software; approved model and adapter identities must constrain SDK consumption and nonzero activation; and mechanism effects must correspond to preserved task capability and service costs under matched conditions.
Table 1: Chronological development of representative work and its relationship to the present service. Years refer to the cited version or formal publication. The comparison concerns research scope and evidence.
| Work and Year | Main Contribution | Connection to This Setting |
|---|---|---|
| Slalom, 2019 [6] | Linear offloading, input protection, computation verification | Private weights require protection from the untrusted accelerator |
| MLCapsule, 2021 [7] | Local input privacy and provider-model access control | Extend client-side execution to third-party cloud admission |
| Parma, 2023 [8] | Attested application execution policies | Connect policies to model loading and use |
| S-LoRA, Punica, dLoRA, 2024 [11–13] | Multi-adapter batching, memory management, dynamic scheduling | Add asset confidentiality and independent authorization |
| SeSeMI, 2024 [3] | Joint user–model authorization for serverless inference | Examine private LoRA consumption and activation |
| LoRATEE, 2025 [2] | TEE–GPU protection and optimization for private LoRA | Full CPU TD execution and hardware identity-chain evidence |
| Chrapek et al., 2025 [4] | Full-LLM CPU/GPU TEE costs | Connect private adapters, capability, and service overhead |
| OpenPCC, 2026 [14] | End-to-end confidential services and attested session binding | Include an independent LoRA owner and parameter use |
| SLIM, 2026 [15] | Model obfuscation and low-interaction controlled execution | Full-TD bilateral adaptation service |
| This work | Bilateral protection of private LoRA inference in a CPU TD | Connect application identity, consumption, capability, and cost |
Our system connects these layers in an Intel TDX service for bilateral protection of private LoRA inference. The client and owner independently verify the service before releasing secrets. A fixed application identity and verified-byte consumption connect approved objects to execution objects. Structural and functional controls test adapter contributions, and task and cost experiments test final service behavior. The resulting system argument establishes that both parties can verify and use a service that executes the approved private adaptation, with direct evidence of its capability and deployment cost. The next section defines the participants, trust assumptions, and mechanisms.
3 System Design and Evaluation Methods
3.1 System and Threat Models
The system comprises a client, a LoRA owner, and a cloud operator (Figure 1). The client holds input and receives output . The owner holds the private adapter and its decryption key . The operator supplies the TD, network, and external artifact storage. The public base model does not require confidentiality, but its contents and tokenizer must match the model identity approved by both parties. The target computation is
where is the low rank, is the scaling parameter, and comprises tokenization, precision, and decoding settings. Client permissions exclude reading plaintext adapter parameters or the weight key. Owner-management permissions exclude reading client inputs, outputs, or TLS session keys.
The adversary can control the host, virtual machine monitor (VMM), external storage, and network, and may replace service artifacts, replay attestation, relay sessions, or redirect secret release to another endpoint. The system trusts TDX hardware isolation, attestation roots, and the software trusted computing base (TCB) approved by both parties. Software trust covers the approved build and distribution process, firmware, GRUB boot-measurement logic, guest kernel, application, and inference SDK. Each party controls its own endpoint and credentials. The study addresses confidentiality, execution integrity relative to approved identities, and rejection of controlled tampering. Microarchitectural side channels, denial of service, and black-box model extraction through legitimate outputs are outside this threat model.
Platform state and application identity are checked separately. The strict policy requires the TCB status UpToDate. The cloud platform version used in our environment reports OutOfDate, so the experimental policy explicitly accepts that status while retaining checks of the Quote signature, certificate chain, revocation status, attestation-collateral validity, and disabled debugging. Rejections under the strict policy are recorded separately. The fixed image uses measured boot, with the approved build, firmware, bootloader, and kernel as its boot-chain trust foundation. Secure Boot was not enabled. This configuration applies throughout the real TDX experiments.
3.1.1 Security Goals and Authorization Relationships
The two parties in bilateral protection are the asset owners. The client approves an environment that processes its input and returns a result; the LoRA owner approves an environment permitted to access and use the plaintext adapter. They may accept the same image while retaining separate credentials, connections, and policy decisions. The cloud operator allocates resources, but control over the infrastructure does not grant interface permissions to read these assets.
The security goals have three complementary aspects. Secret visibility is constrained by approved TD code and role-specific interfaces for inputs, outputs, plaintext adapters, and keys. Execution-object integrity requires the public base, tokenizer, private adapter, and generation settings to match the approved service definition. Release conditions require each owner to verify attestation and channel binding before releasing its secret, while the service accepts only the corresponding role-authenticated operations. Table 2 summarizes the authorization relationships.

Figure 1: Three-party architecture and protection boundary. The client and LoRA owner separately verify the CPU TD service and its TLS public-key binding, then submit inputs and the weight-decryption key over their respective connections, denoted by TLS and TLS. External storage supplies the encrypted adapter. TLS termination, role authorization, authenticated decryption, and all inference occur inside the TD. The interface boxes are two logical role-specific entry points of the same service. Clients do not obtain plaintext adapters or weight keys; the owner's management channel does not expose client inputs, outputs, or TLS session keys.
Execution-object integrity includes public components because input semantics depend on more than private weights. Different tokenizers can map identical text to different tokens; different bases alter the adapter's computational context; and scaling or activation settings determine whether the low-rank update contributes to generation. Approval must therefore cover the model components and configuration used by the complete service. Confidentiality of private parameters and integrity of public dependencies jointly support the computation defined in Equation (1).
3.2 Bilateral Remote Attestation and Secret Release
Remote attestation enables a relying party to make a trust decision from evidence and an acceptance policy [16]. The client and owner are separate relying parties in our design. Each establishes its own TLS 1.3 connection [17], generates a fresh challenge, and checks the certifi-
Table 2: Assets, approving parties, and normal access relationships. Use inside the TD means processing by approved code, not disclosure to another participant.
| Asset | Release or Approval | Use inside TD | External Interface |
|---|---|---|---|
| Input x | Client | Tokenization and inference | Submitted over the client-verified connection |
| Output y | Client request context | Generation, encoding, encryption | Returned over the requesting connection |
| Adapter and | LoRA owner | Authenticated decryption, construction, execution | Owner releases key; client invokes service |
| Public base and tokenizer | Jointly approved service definition | Input interpretation and output computation | Public contents; approved execution identity |
| TLS private key | TD service | Handshake and channel protection | Verifiable public key; private key remains in TD |
cate public key actually used on that connection. The channel–attestation binding follows the core principle of attested TLS: associate the attested environment with the handshake endpoint [5].
Figure 2 shows the protocol. For each verification, the service constructs a canonically encoded context:
where is the protocol identifier, is a 32-byte challenge, is the SPKI encoding of the actual certificate public key, is a 32-byte session identifier, is the client or owner role, is the workload identity, is the raw boot-event log, and is SHA-256. The 64-byte digest is placed in the TDX Quote’s REPORTDATA. Quote generation and remote verification use the real hardware attestation path [18].
Each party first checks the Quote’s cryptographic validity and platform policy, then the approved boot measurements and application identity, and finally recomputes Equation (2) using its local challenge, role, session, and actual handshake key. Binding the public key prevents another TLS endpoint from reusing the evidence to obtain secrets. The challenge and session scope the evidence to the current verification context, and the role field prevents client and owner messages from being interpreted interchangeably. Binding the raw-log digest associates the remotely evaluated log with the same attestation context.
After successful verification, the owner sends over its authorized channel, and the client submits over its own channel. The service TLS private key remains in a TD memory object. The private package uses AES-256-GCM authenticated encryption [19], with the manifest version, adapter identity, and plaintext digest included as authenticated data. The encrypted package contains the adapter configuration and weights. The service decrypts it inside the TD, checks the approved identity, and returns outputs only through the corresponding client channel. A party whose verification fails stops its own secret release. Structural checks performed after decryption are distinct from pre-release checks.

Figure 2: Bilateral attestation and secret release. Subscripts C and L denote the client and LoRA owner; , , and are their respective challenges, sessions, and roles, and is the corresponding Quote. Each party independently verifies platform state, application identity, and actual public-key binding on its own TLS connection, then releases its secret under its own policy. A rejecting party withholds its secret. Dashed arrows denote responses. The illustrated successful call has owner key release before client input submission; the verification decisions remain independent.
3.2.1 Independent Acceptance Decisions and Role Authentication
For role , let denote the Quote and the party's acceptance policy. Its release condition is
The four terms represent evidence authenticity, platform state, application identity, and the current connection context. This decomposition preserves the distinction between valid evidence and policy acceptance. In particular, a valid signature on platform evidence and an acceptable TCB status are independent conditions.
The service also authenticates the operator's role. After verifying the service, the relying party signs the binding digest and an authentication-purpose tag using its role credential. The service verifies this signature against the corresponding role public key before enabling operations. The service thereby proves its execution identity to each party, and each party proves its operational authority to the service. The role field and signature authentication prevent a client-authenticated connection from gaining owner key-release permissions.
The fixed interface restricts key provisioning to the owner and business inference to the client. Authenticated requests carry increasing sequence numbers. Connections have a defined validity period, and a new connection performs its own attestation-binding procedure. Sequence numbers maintain message order within a connection; challenges and session identifiers distinguish verification contexts across connections. Results return over the TLS connection that initiated inference, while the owner's separate management connection does not receive business outputs.
Independent verification does not require either party to read the other's verification logs or create an atomic joint approval performed on their behalf by the service. Each party decides whether to release its own asset. Inference becomes executable only after the required key has arrived, the model is ready, and the client submits a valid request. This division preserves separate control over secrets while making the approved software their common computation point.
The fixed service manages model readiness separately from connection authentication. Until adapter provisioning and pipeline construction complete, the inference entry point reports that the model is not ready. Once ready, the fixed interface rejects a second key provisioning operation that would overwrite the model, and subsequent clients reuse the instance. Requests have prompt-length and generation limits: character limits are checked at the receiving boundary, and token limits are checked after tokenization by the execution function. Role authentication determines who may invoke an operation, readiness determines when computation can run, and input budgets bound the work of each call.
3.3 Application Identity Verification and Runtime Constraints
The application identity chain uses a dedicated initial RAM disk containing a read-only SquashFS root filesystem. The application, runtime dependencies, and required artifacts are included in this fixed image. The kernel, initial RAM disk, and boot parameters are measured during boot. Both parties replay the boot-event log against approved MRTD, RTMR, and key-event digests and verify consistency with the Quote measurements. Source inspection of the relevant GRUB implementation confirmed that the measured initial RAM-disk contents correspond to the memory subsequently supplied for boot, linking image identity to actual loading.
The workload's self-reported identifier serves as a policy index; application authenticity comes from the measurement chain and approval policy. A replaced program that continues to report the old identifier still changes the image measurements. Changed boot parameters likewise alter the approved-chain match. Application acceptance therefore does not rely on the service's own identity assertion.
Runtime constraints maintain the fixed service boundary. The worker runs as an unprivileged user with cleared capabilities and no_new_privs. Swap, core dumps, interactive consoles, and cloud-management agents are disabled; module loading, kernel replacement, and process tracing are restricted. The fixed interface binds one approved model instance, with key provisioning and model loading performed through fixed entry points. Evaluation interfaces that switch loading or adapter modes belong to separately approved research images, whose identities are managed separately from the fixed service image.
Fixed application identity establishes what was booted, and runtime constraints establish what operations are allowed afterward. Measurements and logs trace the kernel, image, and parameters; the read-only root filesystem, unprivileged execution, and restricted interfaces maintain the deployment definition. Together they define an interpretable set of software and operating conditions for approval. For example, the fixed interface has no business operation for selecting disabled or zero-scale adaptation, so adapter-management authority does not automatically permit changing the computation semantics approved by the client.
This distinction also determines how evaluation images are interpreted. To isolate loading, activation, and service-wrapping effects, research images explicitly provide the relevant controls, and their approved identities include those research functions. Measurements identify the image, and interface constraints define its permitted state changes. Separate approval preserves informative experimental controls while keeping the final service's operating boundary explicit.
3.4 Model Consumption Consistency and Adapter Activation
3.4.1 Direct Consumption of Verified Bytes
Application identity determines the executor, while artifact verification determines what the executor should use. Figure 3 connects the approved manifest to actual consumption. For approved artifact bytes and digest , verified-byte consumption requires
The implementation reads and verifies model descriptions and weights, constructs NumPy views and OpenVINO tensors from the same in-memory byte objects, and passes them to the inference pipeline without reopening model paths. Tokenizer models and associated configurations are also verified. Following authenticated decryption, the private LoRA is constructed from in-memory tensors, avoiding plaintext-weight writes to ordinary external files.
The loader first requires the actual artifact-name set to match the approved manifest, then verifies each immutable byte object's digest. The model description is supplied as a verified XML string, and binary weights are converted from byte objects into SDK tensors. A digest check on the constructed weight tensor's data view makes the content relationship across the conversion and SDK interface inspectable. Tokenization and detokenization models are likewise constructed from XML and tensor objects, and text-tokenization configurations are parsed from verified contents. The manifest's file identities thus become the parameters actually accepted by the inference pipeline.
The strong control is post-verification path loading: it performs the same artifact-digest checks, then lets the SDK load by path. The key difference is the association between the verified and consumed objects. If a file can be replaced between these operations, path loading may obtain a different object. If an approved image remains read-only, the deployment boundary also fixes the path's target. We evaluate both conditions to establish how consumption mechanisms and image constraints jointly provide model-use integrity.
3.4.2 Adapter Structural Contract and Activation Semantics
Effective LoRA use also depends on tensor layout and scaling. The experimental adapter covers all 28 Transformer layers of Qwen3-0.6B, adapting query, key, value, output, and three feed-forward projections in each layer. Rank and yield 392 low-rank matrix tensors. The structural contract checks the tensor set, shapes, types, rank, and scaling configuration. The OpenVINO GenAI dynamic-adapter interface configures execution [20].
Approved app identity, model/tokenizer manifest and digests
Shared case: writable path; replacement after verification
Verified-byte consumption
Post-verification path loading

Alternative shared deployment: approved read-only image Both loaders preserve artifact integrity
Figure 3: Approved artifacts and actual consumption objects. Both columns begin with the same bytes and share a writable-path scenario with replacement after verification. Replacement changes the path target: verified-byte consumption continues to pass the same memory object to the SDK, whereas path loading reopens the path and may consume a different object. An approved image that is actually read-only provides a common protection condition for both methods. Inside the TD, private adapters undergo authenticated decryption, structural-contract checks, and explicit scaling before inference.
For adapted projection with input and output dimensions and , the low-rank matrices satisfy
where the activation scale is . Seven projections per layer and two matrices per projection give tensors. Their count, name mapping, and shapes define the adapter object, while the scale controls its computational contribution. We use runtime adaptation, loading the frozen base and adapter separately. Native and service conditions share the same pipeline and adapter configuration, preserving the numerical execution path when comparing service wrapping.
Functional checks use enabled, disabled, and zero-scale modes. Enabled mode uses . Disabled mode retains the same dynamic-adaptation compilation capability without adding an adapter. Zero-scale mode loads the real adapter but sets its contribution to zero. Agreement between disabled and zero-scale modes checks base-model behavior; differences from enabled mode check whether the adapter changes generation. Structural checks establish whether the loaded object matches its definition, and functional ablations establish whether it affects computation.
3.5 Layered Security Analysis
3.5.1 Endpoint Binding and Application Identity Verification
Consider an adversary forwarding a legitimate Quote to a different TLS endpoint. The relying party reconstructs the binding context from the actual handshake public key. A different key yields a digest that does not match REPORTDATA. If the adversary simply relays encrypted traffic so that the handshake still terminates at the approved TD service, TLS keys and plaintext processing remain inside that TD. Channel binding therefore connects the origin of attestation evidence to the endpoint receiving the secret.
Application replacement affects a different object. A modified service can continue to claim the original workload name, but that name cannot restore the approved measurements associated with the original image, boot parameters, and replayed log. The verifier checks both the policy selected by the name and the measurement chain required by that policy. Normal boots, program modifications retaining the old identifier, and boot-parameter modifications directly test this relationship.
3.5.2 Artifact Consumption and Adapter Execution Constraints
An artifact digest establishes content identity, and the consumption interface determines whether that identity reaches execution. For post-verification path loading, the objects read at verification time and loading time are and . Successful verification establishes ; consumption consistency additionally requires identical contents at the two reads. A read-only image supplies this condition by preventing changes. Verified-byte consumption instead passes the object containing directly to the SDK, eliminating the second path resolution. Both establish the same relationship at different layers.
Private adapters additionally require authenticated decryption and structural checks. Authenticated data links the encrypted package to the adapter identity; the structural contract links decrypted content to the expected low-rank layout; activation settings link those tensors to computation. Matching a manifest does not establish a nonzero update, and changed outputs do not establish that the layout was checked. Content, structure, and function therefore have separate controls in the evaluation.
3.5.3 Rejection Stages and Control Effects
Table 3 identifies control points by the object an adversary attempts to change. Earlier rejection prevents more subsequent asset transfers, but each control requires different information. External verifiers can check platform and application identities before release; the service can check private tensor structures only after obtaining the key and decrypting the package. Relating rejection stages to asset flow makes input, key-release, and inference counts interpretable in negative tests.
Together, hardware isolation supplies the execution boundary, attestation and policies define admission to that boundary, and loading and interface design maintain the approved computation within it. Experiments select controls that create observable differences at these layers, testing whether the implementation behaves as designed.
Table 3: Controlled objects, verification relationships, and enforcement stages. These are method definitions; measured counts are reported with the corresponding experiments.
| Modified or Impersonated Object | Check or Constraint | Enforcement Stage |
|---|---|---|
| Platform or application identity | Platform policy, approved boot measurements, event-log replay | Before each party releases secrets |
| Attestation connection context | Challenge, actual TLS key, session, role, log-digest binding | Before each party releases secrets |
| Operator identity and permissions | Role-signature authentication and fixed operation set | Before accepting the operation |
| Model artifacts | Approved digests and authenticated decryption | Before model readiness |
| Path target after verification | Direct verified-object consumption or approved read-only artifacts | Between verification and loading |
| Adapter structure and state | Tensor contract, fixed activation, interface restrictions | Construction and runtime |
3.6 Implementation and Experimental Design
3.6.1 Model and Platform Configuration
The base model is Qwen3-0.6B [21]. The CPU representation uses INT4 weight quantization with group size 128 and an f32 inference-precision hint. CPU execution uses OpenVINO 2026.4.1 and OpenVINO GenAI 2026.4.1.0, with four execution threads, one stream, batch size one, greedy decoding, thinking mode disabled, and compilation caching disabled. The real TDX deployment is an 8-vCPU, 32-GiB cloud instance; the guest-visible CPU family/model is 06/cf, and the kernel is Linux 5.10.134-19.8.al8.x86_64. GPU capability references use an RTX 3090, a BF16 base, FP32 LoRA weights, PyTorch 2.11.0, Transformers 5.8.0, and PEFT 0.19.1.
The private adapter was trained for hotel- and restaurant-domain state extraction using public MultiWOZ 2.2 data [22], representing the ownership relationship of a private LoRA service. Training used 3000 dialogues and a 240-dialogue development selection set. The initial learning rate was , LoRA dropout was 0.05, and the effective batch size was eight. Model selection prioritized development exact match, then slot micro-F1, then earlier epochs; the selected parameters were from epoch 11. Training and selection were frozen before the service-capability evaluation.
3.6.2 Evaluation Images and Control Conditions
Table 4 distinguishes the deployments used for fixed-service identity, consumption, adapter function, cost, and capability. Fixed evaluation images have independently approved identities, and any mode-switching entry points are known functions of the corresponding image. The experiments test different design layers while retaining their own image and interface boundaries.
Application-identity tests use controlled program and boot-parameter modifications; the modified program retains its old self-reported identifier. Context perturbations of existing Quotes separately test freshness, role, channel, and log binding. Consumption tests replace
Table 4: Experimental questions, deployments, and sampling units. Fixed images are approved separately. A process block and a TD boot are distinct statistical units.
| Question | Deployment and Controls | Formal Sampling Unit |
|---|---|---|
| Application-identity rejection | Fixed dedicated service; application or boot-parameter changes | 3 normal and 2 tampered boots |
| Actual artifact consumption | Writable-path environment; verified bytes versus checked paths | 12 paired process blocks; 96 processes |
| Adapter functionality | Read-only activation image; enabled, disabled, zero-scale, and loading modes | 3 process repetitions in one TD boot; 48 requests |
| Deployment cost | Read-only cost image; two loaders × native/service | 12 independent TD boots; 48 workers |
| Task capability | Approved capability image; same-TD native/service plus GPU references | 400 independent dialogues; 2000 outputs across five conditions |
public-base artifacts before or after verification in a writable-path environment. This environment exposes loading behavior, while fixed-image application-identity guarantees belong to their approved deployments. Adapter tests use 48 synthetic requests and three process repetitions, plus independent structural-field perturbations for contract rejection.
3.6.3 Task Definition and Scoring Rules
The input contains a target domain and dialogue history through the current user turn. The output is a JSON object representing the currently known state of that domain. The model must retain earlier valid constraints and replace old values when the user corrects them. Options or questions introduced by the assistant do not themselves constitute accepted user constraints. Unknown slots are omitted, and explicit lack of preference uses the designated value. Requested information, addresses, phone numbers, and booking reference numbers are not emitted as target-state slots. This definition turns open-ended dialogue generation into a service with explicit structural and semantic targets.
The hotel domain has ten slot types and the restaurant domain seven (Table 5). Both include location, name, price, and booking information, along with domain-specific attributes. Prompts require only target-domain slots so downstream business logic can parse the output directly. Training and all five evaluation conditions share this task definition. Direct-LoRA conditions share the system instruction and dialogue template; retrieval adds selected examples to that template.
Formal scoring parses the complete output as JSON, requiring a top-level object, allowed target-domain keys, and string values. Strings are normalized by trimming, lowercaseing, and collapsing consecutive whitespace. When annotations provide multiple acceptable values for a slot, matching any one counts as correct. Exact match (EM) requires identical predicted and reference slot sets with all values accepted. Equality in Equation (6) denotes semantic matching under this fixed rule.
A correct key–value pair contributes to TP; an extra or incorrect prediction contributes to FP; and an annotation slot not correctly predicted contributes to FN. A structurally invalid output receives zero EM and structural validity, contributes one FP under the scorer, and contributes all its annotated slots to FN. Formal analysis uses this rule directly, without extracting partial
Table 5: Slots in target-domain state extraction. The table groups slots semantically; actual outputs use fixed domain prefixes and slot names.
| Category | Hotel (Ten Types) | Restaurant (Seven Types) |
|---|---|---|
| Basic selection | Area, name, price range | Area, name, price range |
| Booking constraints | Day, people, stay duration | Day, people, time |
| Domain attributes | Internet, parking, stars, accommodation type | Cuisine |
JSON from explanatory text or changing normalization across conditions.
3.6.4 Five-Condition Capability Evaluation
The capability analysis reuses 400 frozen inputs that had previously been evaluated. All outputs for the five conditions were regenerated for the present primary analysis; superseded predictions are excluded, and reused inputs are not counted as additional independent samples. One target domain and current turn are selected per dialogue, with 200 hotel and 200 restaurant dialogues. Of these, 294 originate from the development split and 106 from the test split. Dialogues used for training or prior model selection are excluded. A separate set of 40 diagnostic inputs is excluded from formal metrics.
The five conditions separate adaptation, interface budgets, CPU execution, and service wrapping. GPU LoRA with the full budget permits 4096 input tokens and at most 192 new tokens. GPU LoRA with the interface budget permits 1024 input tokens, 4096 characters, and at most 64 new tokens. Native CPU and protected-service execution in the TD use the same interface budget and execution function. The three-example retrieval condition uses the GPU base without LoRA, retrieving three same-domain examples from a fixed 3000-example training index with a 4096/192 budget. Retrieval combines word- and character-level TF-IDF and selects by cosine similarity. This condition represents a different adaptation method with separately defined prompt contents and budgets.
The index concatenates word unigrams/bigrams and within-word character 3–5-grams, with feature caps of 40,000 and 50,000, respectively. Normalized vectors are ranked by cosine similarity, with stable tie ordering. Same-domain filtering is applied at retrieval time, and the selected examples are included as paired user inputs and annotated responses. The fixed index is reused without refitting or selecting the number of examples from the outputs of these 400 inputs.
Input support is determined before generation from the actual prompt’s token and character counts. An input exceeding a condition’s budget is recorded as unsupported for that condition. Support coverage and output quality are thus distinct: the former describes what the interface can accept, and the latter describes task results. All inputs fit their respective budgets, so population metrics and metrics on the subset supported by every condition use the same 400 dialogues.
The two CPU conditions run sequentially in independent worker processes during the same TD boot, with the protected service preceding native execution. All conditions use greedy decoding and batch size one. GPU–CPU differences jointly include runtime, numerical representation, and hardware changes; their raw latencies are not ranked.
The primary metric is target-domain state exact match:
We also report structural validity and slot micro-F1. The unit is the selected current turn in a target domain, rather than the official all-domain, all-turn MultiWOZ joint-state benchmark. Paired EM differences use a percentile bootstrap with 5000 resamples, stratified by domain × original split, resampling independent dialogues to obtain 95% intervals. The two CPU conditions additionally compare complete output token sequences for every input.
The closest comparison is native CPU versus protected execution in the same TD: model, input, decoding, and execution function are identical, while the surrounding service path differs. Comparing the two GPU LoRA budgets holds model and platform fixed and changes input/generation constraints. Comparing interface-budget GPU LoRA with native CPU holds the interface budget fixed and captures the joint migration in model representation and platform. Retrieval supplies a distinct task-adaptation reference for interpreting the private parameters' value. Each comparison therefore answers a defined question.
The metrics distinguish failure levels. Structural validity measures interface conformity, EM requires the complete target state to be correct, and slot micro-F1 aggregates correct, missing, and extra slots across dialogues:
A structurally valid output containing mostly correct slots can still fail EM. The three metrics distinguish interface compliance, complete task success, and partial information preservation.
Paired analysis retains the correspondence between conditions for each dialogue. For correctness indicators ,
where counts dialogues correct only under b, and those correct only under a. This expression identifies which paired decisions produce the aggregate difference. Token comparisons for the CPU conditions further distinguish equal accuracy from identical individual outputs.
3.6.5 Loading, Inference, Memory, and Communication Measurements
Cost experiments comprise 12 independent TD boots on the same cloud instance. Each boot runs four conditions: native verified-byte consumption, native path loading, service verified-byte consumption, and service path loading, using a Williams-balanced order. Each condition has six warm-up requests followed by 24 measured requests. Input lengths of 64, 256, and 768 tokens combine with output limits of 16 and 64 tokens, giving six combinations with four requests each. Limits bound the generation budget; outputs may stop earlier. There are 1152 measured inferences and 288 warm-ups. Analysis includes 12 complete four-condition boot blocks; three incomplete boots do not form complete paired observations.
Loading is measured from worker startup to model readiness. Native steady-state time covers inference inside the shared worker function. Service time is measured remotely per request and includes the deployed TLS/TCP, SSH forwarding, serialization, interprocess communication, and scheduling path. Service-internal inference time is recorded separately. Both native and protected execution run inside TDX, so their ratio measures the service-path increment. We first average the balanced requests within each boot and condition, then compute the paired ratio . The aggregate is
A 5000-resample bootstrap over complete boots provides a 95% percentile interval for the geometric-mean ratio. Individual requests are not treated as independent boot samples.
Memory measurements distinguish worker resident set size (RSS), proportional set size (PSS), kernel-reported lifetime peak RSS, and guest-wide used memory, defined as MemTotal-MemAvailable. Loading, idle, and inference phases use a target sampling interval of 50 ms; the maximum observed interval is 0.834 s. Phase values are sampled maxima, with sampling beginning during worker loading. All conditions use the same sampling configuration. Communication counts bidirectional application-protocol frame bytes, excluding TLS, TCP, SSH, and IP headers and retransmissions. Static model/image sizes are reported separately from per-request communication.
The six request combinations are also analyzed individually using the boot-paired ratio in Equation (9). Each combination contains four distinct requests per condition and boot, giving 48 measurements across 12 boots; intervals still resample boots. This analysis preserves request-length information, while the aggregate uses the same balanced workload within every boot. The six intervals describe the corresponding observed variation rather than six independent experiments.
Costs are organized by service-lifecycle stage. Static images and model files correspond to deployment storage and distribution; worker readiness corresponds to model preparation; attestation and identity authentication correspond to connection admission; and business frames and inference times correspond to per-request operation. Separate reporting supports deployment choices such as resident models or reloading. Connection time includes attestation processing, and the first key-provisioning call includes model preparation. These nested times are interpreted by their measurement boundaries rather than added together.
4 Experimental Results and Analysis
4.1 Application Identity and Attestation-Binding Verification
All three normal boots of the fixed dedicated image passed application-identity verification under the explicit experimental policy, completed three owner key releases and nine CPU inferences, and produced matching token sequences in all six cross-boot comparisons. The modified program retaining the old self-reported identity and the modified boot parameters were both rejected at measurement-identity matching. Neither keys nor business inputs were sent in the two tampered boots. Acceptance decisions thus tracked changes to the actual application and boot configuration.
The five boots generated 16 fresh hardware Quotes. The strict policy produced six TCB rejections; the experimental policy produced six acceptances and four application-policy rejections. The cryptographic chain was checked for all 16 Quotes. The six Quotes rejected early by the strict policy underwent a separate cryptographic audit while retaining their original rejection decisions. All 18 offline binding perturbations of two existing Quotes were rejected, while both unmodified controls passed. Table 6 distinguishes hardware boot evidence from software context ablations.
4.2 Artifact Consumption Consistency under Different Deployments
The consumption experiment comprised 12 paired process blocks, 96 fresh processes, and 1080 actual CPU inferences. Without artifact replacement, verified-byte consumption and post-verification path loading produced identical outputs for all 180 pairs. For each loader, native and service execution also agreed on all 180 pairs. Changing the consumption interface therefore preserved generation semantics for normal artifacts.
Replacing the public-base weight artifact after verification produced a clear separation. All 180 verified-byte outputs retained their original results, whereas all 180 path-loading outputs
Table 6: Application-identity and context-binding results. Offline perturbations reuse existing Quotes and do not add hardware samples.
| Verification Target | Observation | Secret-Release Stage |
|---|---|---|
| Approved fixed application | 3 normal boots accepted; 9 inferences completed | Release after each party verifies |
| Changed application, retained identifier | Application-measurement policy rejected | Neither key nor input sent |
| Changed boot parameters | Application-measurement policy rejected | Neither key nor input sent |
| Strict TCB policy | 6 Quotes rejected | Offline signature checks do not change policy decisions |
| Perturbed binding context | 18/18 rejected; 2/2 controls passed | Offline verifier ablation |
changed. The former had already associated approved bytes with the object to be used by the SDK, so subsequent path changes could not replace it. The latter reopened the path and consumed the replacement. Replacement before verification was rejected by artifact checks in all 24 processes, with zero business-input submissions and zero inferences. Owner keys had already been provisioned under this diagnostic flow, placing rejection at artifact loading.
The fixed read-only image supplied another effective constraint. In the activation experiment, both loading methods produced identical outputs for all 144 pairs, and all 24 write probes by the service user were rejected. The read-only boundary prevented changes to path targets, allowing post-verification path loading to preserve artifact consistency as well. Together, these experiments establish that the additional value of verified-byte consumption comes from eliminating the separation between the verified object and a subsequent path read; the relevance of that separation depends on deployment mutability.
Replacement before and after verification also isolates the role of digest checks. The former changes the content to be approved, allowing both loaders to detect a mismatch before loading. The latter leaves content valid at verification time and tests whether that decision constrains later consumption. Post-verification replacement therefore isolates a temporal object change using a control that performs the same digest checks. Identical outputs with normal artifacts establish that the security difference is obtained without changing the task itself.
The deployment implication follows from both results: artifact integrity can be maintained by preventing object changes or by constraining which object the SDK consumes. Under an enforced read-only condition, either loader supports the same integrity goal. For mutable paths, verified-byte consumption applies that goal directly to the inference SDK's input object. The implementation choice consequently has explicit deployment conditions.
4.3 Adapter Activation and Structural-Contract Verification
Read-only activation evaluation completed 12 worker processes, 720 inferences, and 27 fresh, fully verified sessions. The 48 requests across three process repetitions yielded 144 pairs for each functional comparison. Enabled versus disabled outputs differed in all 144 pairs, as did enabled versus zero-scale outputs. Disabled and zero-scale outputs matched in all 144 pairs. Protected and same-TD native calls produced identical token sequences in all 144 pairs. These results directly establish that the adapter participated in and changed computation, while the service preserved the shared execution function's outputs.
All 36 structural-field perturbations were rejected, covering the specified tensor and configuration relationships. These perturbations targeted the contract component inside an already loaded process; their unit is a component check. Combined with the functional controls in Table 7, they provide separate evidence for valid structure, active adaptation, and output-preserving service wrapping.
Table 7: Key adapter and consumption controls. Paired output counts derive from 48 requests and three process repetitions.
| Comparison | Result | Question Addressed |
|---|---|---|
| Enabled versus disabled | 144/144 different | Adapter changes generation |
| Enabled versus zero scale | 144/144 different | Nonzero adaptation is active |
| Disabled versus zero scale | 144/144 identical | Zero scale recovers base behavior |
| Verified bytes versus read-only paths | 144/144 identical | Both valid loaders preserve semantics |
| Same-TD native versus service | 144/144 token-identical | Service preserves execution outputs |
| Structural-contract perturbations | 36/36 rejected | Tensor/configuration relationships are checked |
| Read-only artifact write probes | 24/24 rejected | Deployment boundary blocks writes |
4.4 Task Capability and Output Consistency
All five conditions completed 400 formal outputs with 100% input-support coverage. Figure 4 presents the main capability results and paired differences between adjacent conditions. Both GPU LoRA budgets achieved 62.00% EM, native CPU and protected execution in the TD achieved 60.00%, and three-example retrieval achieved 14.25%. The protected service attained 91.51% slot micro-F1 and 99.50% structural validity, retaining the private adapter’s structured target-domain output capability in the protected deployment.
Native and protected CPU execution produced exactly the same token sequence for all 400 input pairs. This per-input result establishes preservation of complete output sequences, beyond equal aggregate accuracy: generation behavior matched for every evaluated dialogue. Both conditions completed every request, without prediction replacements due to failed-call retries.
The EM difference between the two GPU budgets was zero percentage points. One interface-budget output was identified as truncated relative to its full-budget counterpart, with an unchanged EM decision. Native TD execution differed from interface-budget GPU LoRA by −2.00 percentage points, with a 95% interval of [−5.25, 1.25]; the service-to-native difference was zero. GPU interface-budget and CPU output texts matched on 310/400 inputs. This separates cross-platform output changes from service-wrapping effects.
Three-example retrieval differed from full-budget GPU LoRA by −47.75 percentage points in EM, with a 95% interval of [−52.75, −42.50]. For this task, training index, and prompt configuration, the trained private adapter therefore provides substantial task value. The protected asset is a set of task parameters that affects service quality. Table 8 reports structural and slot-level metrics.
4.4.1 Paired Correctness and Domain Differences
Table 9 decomposes paired correctness for full-budget GPU LoRA and the protected service. Both were correct on 222 dialogues; only the service was correct on 18, only GPU LoRA on 26, and both were incorrect on 134. Under Equation (8), the net difference of 18 − 26 = −8


Figure 4: Task capability across five conditions and paired comparisons. (a) Target-domain state EM over 400 independent dialogues; parentheses show correct/total counts, and the axis begins at zero. (b) EM differences between adjacent conditions, with 95% stratified paired-bootstrap intervals from 5000 dialogue-level resamples. GPU–CPU comparisons jointly include numerical, runtime, and hardware differences.
Table 8: Structural validity and slot micro-F1 for the five conditions. Each condition has 400 formal outputs and 100% input coverage. Budgets are input/max-new tokens.
| Condition | Budget | Valid Structure (%) | Slot F1 (%) |
|---|---|---|---|
| GPU LoRA, full budget | 4096/192 | 99.75 | 92.14 |
| GPU LoRA, interface budget | 1024/64 | 99.50 | 91.91 |
| Native CPU in TD | 1024/64 | 99.50 | 91.51 |
| Protected service in TD | 1024/64 | 99.50 | 91.51 |
| GPU three-example retrieval | 4096/192 | 98.75 | 61.17 |
dialogues gives −2.00 percentage points. Cross-platform change thus includes changes in both directions rather than a one-way loss of eight fixed correct predictions.
Table 9: Paired EM outcomes for full-budget GPU LoRA and the protected TD service. Entries count dialogues, ; both conditions use the same inputs.
| Service Correct | Service Incorrect | Total | |
|---|---|---|---|
| GPU correct | 222 | 26 | 248 |
| GPU incorrect | 18 | 134 | 152 |
| Total | 240 | 160 | 400 |
Equal aggregate EM can also conceal different domain distributions. Table 10 shows that both GPU LoRA budgets correctly predicted 117/200 hotel dialogues, compared with 108/200 for both CPU conditions. For restaurants, GPU LoRA correctly predicted 131/200 and both CPU conditions 132/200. The overall CPU–GPU difference therefore combines a hotel-domain decrease and a small restaurant-domain increase. The CPU conditions retain identical decisions in both domains, consistent with their token-identical outputs.
Table 10: Domain-level exact matches across five conditions. Entries are correct counts (percentages), with per domain. This descriptive breakdown reuses the same 400 dialogues.
| Condition | Hotel | Restaurant |
|---|---|---|
| GPU LoRA, full budget | 117 (58.50%) | 131 (65.50%) |
| GPU LoRA, interface budget | 117 (58.50%) | 131 (65.50%) |
| Native CPU in TD | 108 (54.00%) | 132 (66.00%) |
| Protected service in TD | 108 (54.00%) | 132 (66.00%) |
| GPU three-example retrieval | 23 (11.50%) | 34 (17.00%) |
Retrieval correctly predicted 23 hotel and 34 restaurant dialogues, showing the private adapter’s task-adaptation value in both domains. Most retrieval outputs also followed the required structure, but their target-state correctness and slot F1 were lower. The main difference concerns task-information extraction, not merely output-format compliance. This distinction directly affects the value of a specialized model in machine-consumed state-extraction services.
4.5 Model Loading and Steady-State Service Overhead
All 12 complete cost-evaluation boots passed execution-constraint and cryptographic checks, with 144 verified sessions. All within-condition and cross-boot token comparisons matched, aligning timing comparisons with identical execution results. Figure 5 shows the primary paired ratios. Verified-byte consumption relative to path loading had a startup-to-ready ratio of 1.0806, with a 95% interval of [0.9011, 1.2951]. Median service loading times were 6.173 s for verified bytes and 5.619 s for paths. The first worker after boot loaded more slowly; balanced ordering distributed this position among the four conditions. Because boot-time artifact checks had already read the relevant files, this observation is interpreted by worker position within the boot.
With verified-byte consumption, the remote service-to-native steady-state ratio was 1.0094, with a 95% interval of [1.0064, 1.0126], corresponding to approximately 0.94% incremental time for this deployed service path. The service-internal to native-internal ratio was 1.0014 [0.9985, 1.0043]. Separating the remote wrapper from model execution places the main increment in the communication, serialization, and scheduling path. The median per-request difference between remote and internal time was 10.58 ms.
(a) Loading: worker startup to ready

(b) Steady state: verified-byte consumption

Figure 5: Paired time ratios for the fixed read-only cost image. (a) Startup-to-ready time for verified-byte consumption relative to path loading. (b) Remote service time and service-internal inference time relative to native inference in the same TD, using verified-byte consumption. Points are geometric means of 12 boot-paired ratios; segments are 95% boot-bootstrap intervals. Panels use their labeled axis scales, and dashed lines indicate a ratio of one.
For path loading, the remote service-to-native ratio was 1.0045 [1.0006, 1.0082], and the internal ratio was 0.9970 [0.9932, 1.0006]. Table 11 places these ratios on the absolute time scale of the model and workload. Mean steady-state times were approximately 1.43–1.45 s; the quantiles describe the mixed workload of six input/output-budget combinations.
Table 11: Absolute times in the fixed-image cost experiment. Loading has n = 12 per condition; steady-state timing has n = 288. Service times are remote per-request measurements; native times cover internal inference.
| Condition | Median Load (s) | Mean Steady State (s) | 95th Percentile Steady State (s) |
|---|---|---|---|
| Native, verified bytes | 6.156 | 1.432 | 2.694 |
| Native, path loading | 5.632 | 1.441 | 2.720 |
| Service, verified bytes | 6.173 | 1.445 | 2.713 |
| Service, path loading | 5.619 | 1.447 | 2.719 |
4.5.1 Service Overhead across Request Sizes
Figure 6 separates steady-state service-to-native ratios by input length and output limit. The six verified-byte ratios range from 1.0048 to 1.0222. For 64 input tokens and a 16-token output limit, the ratio is 1.0222 [1.0147, 1.0301]. For 768 input tokens and a 64-token output limit, it is 1.0048 [1.0005, 1.0091]. The shortest input and output-budget combination therefore has the largest relative increment among these requests.

Figure 6: Remote service-to-native steady-state ratios in the same TD for six request categories. The vertical axis gives input/max-new tokens. Each category contains four distinct requests; points summarize paired observations across 12 boots, and segments show 95% boot-bootstrap intervals. Both loading methods use the same requests and execution configuration. The dashed line indicates one. These are discrete measured conditions, not a continuous performance curve.
Increasing the output limit from 16 to 64 tokens reduces the relative verified-byte service increment from 2.22%, 1.51%, and 0.92% to 0.96%, 1.09%, and 0.48% at the three input lengths, respectively. Actual generation reached the corresponding limits in these combinations. This pattern is consistent with request-level communication and scheduling costs being amortized over longer model computation. The decomposition follows remote and internal timers; the aggregate increment is not assigned to individual cryptographic algorithms or components that were not measured separately.
The six path-loading ratios are also close to one, ranging from 1.0004 to 1.0183. Both loaders show that the aggregate 0.94% figure describes the balanced workload used here; the request mix changes this ratio. Absolute latency, request size, and connection policy therefore provide additional deployment-relevant information alongside the aggregate ratio.
4.6 Memory Footprint and Communication Overhead
Figure 7 shows sampled memory statistics for loading, idle, and inference in the verified-byte service condition. Worker RSS and PSS measure resident pages differently, while guest-wide used memory also includes the kernel and other processes. Across all conditions, the largest observed worker lifetime peak RSS was 3.470 GiB, and the largest sampled guest-used memory was 4.374 GiB. Separating these measures distinguishes model-process footprint from whole-guest provisioning requirements.

Figure 7: Phase memory for the protected service with verified-byte consumption. Each boot contributes its sampled maximum for the phase; bars show the median across 12 boots. RSS, PSS, and guest-wide used memory are measured separately. The target sampling interval is 50 ms, and the maximum observed interval is 0.834 s. GiB=2³⁰ bytes.
Attestation exchange dominates fixed application communication. Across 144 connections, attestation sent and received 13,573,248 bytes, averaging 94,258.7 bytes per connection. Identity authentication averaged 173.7 bytes. The verified-byte service exchanged 403,885 bytes for 288 business requests, averaging 1402.4 bytes per request. The encrypted adapter package is approximately 51.40 MiB and is a deployment artifact, not a per-inference transfer. Table 12 separates connection, request, and static-artifact quantities.
Table 12: Application communication and static artifact sizes. Communication counts bidirectional application frames; means use the stated units. MiB=2²⁰ bytes.
| Object | Unit | Bytes or Size |
|---|---|---|
| Attestation exchange | Per connection,n = 144 | 94,258.7 bytes |
| Identity authentication | Per connection,n = 144 | 173.7 bytes |
| Key-provisioning message | Per provisioning,n = 12 | 188.5 bytes |
| Business request and response | Per request,n = 288 | 1402.4 bytes |
| Encrypted private adapter | Static artifact | 51.40 MiB |
| Public base-model files | Static artifacts | 392.71 MiB |
| Tokenizer and base metadata | Static artifacts | 15.15 MiB |
| Read-only cost image | Static image | 648.55 MiB |
Median connection establishment was 0.139 s, including a median 0.073 s for attestation processing. Key provisioning also triggers the initial model load, overlapping with the loading metric. Interpreting these figures by lifecycle stage and measurement unit connects artifact transfer, connection admission, and steady-state inference to concrete resource arrangements.
5 Discussion and Future Research Directions
The system connects bilateral secret release, approved artifact consumption, and full-TD inference in an operational private LoRA service. This provides a foundation for extending the identity, authorization, and consumption relationships of a fixed single-adapter instance to multiple tasks, continuous operation, and more complex workloads. The following directions concern authorization targets, service lifecycle, execution efficiency, and evaluation methods.
5.1 Dynamic Authorization and Isolation in Multi-Adapter Services
When multiple owners share a public base, adapter selection becomes part of a request's computation semantics. S-LoRA, Punica, and dLoRA have advanced multi-adapter serving through memory management, batching, and scheduling [11–13]. For bilateral protection, future work can incorporate adapter identity, the client's permitted invocation scope, and the owner's approved usage policy into the request authorization context. Dynamic selection would then extend the correspondence between approved and executed objects established by the fixed service.
Adapter switching and concurrent invocation provide concrete evaluation settings. Alternating adapters from different owners on a shared base would allow checks of request routing, actual memory objects, and the model identity associated with outputs, alongside throughput, tail latency, and memory measurements under cache reuse. The research question is how shared computing resources can preserve independent secret ownership and request isolation, supporting confidential inference across domains or model owners.
5.2 Application Updates and Key Lifecycle Management
A fixed image establishes a definite application identity at admission, while continuous service also requires software upgrades, adapter releases, and key rotation. A useful direction is to extend a single attestation-acceptance decision into authorization with explicit validity and version semantics. For example, both parties could separately approve a new service manifest, release the corresponding key after a new instance passes attestation and artifact checks, and coordinate termination of the old instance's authorization with outstanding requests. The central issue is consistency among identity, keys, and business requests during updates.
Evaluation could examine transitions involving coexisting versions, reconnection, and key rotation. It would check whether requests before and after a transition always correspond to the model and policies approved by the relevant parties, while measuring update pauses, instance preparation, and readmission costs. This would extend the explicit trust relationships of fixed deployment into routine operation, making model releases and platform updates part of an inspectable service lifecycle.
5.3 Execution Optimization for Sustained and Concurrent Workloads
Separating loading, connection admission, steady-state inference, and memory provides specific targets for execution optimization. For sustained use, future work could examine model residency and reuse of authorized connections to determine how preparation costs are amortized with invocation frequency. For concurrent workloads, batching and scheduling inside the TD could reveal how queueing, cache contention, and generation length affect throughput and tail latency. Comparisons should hold model configuration and request sets fixed and distinguish service-management costs from model-computation costs.
Model size and processor resources also belong in this design space. Thread allocation, memory capacity, and numerical configurations could be studied together to identify CPU TD deployments that meet task-quality requirements. Comparisons with other confidential execution platforms could use matched hardware and workloads to separate hardware capability, isolation environment, and service wrapping, providing cost evidence suitable for deployment decisions.
5.4 Joint Evaluation of Task Capability and Protection Cost
The value of a private adapter ultimately appears in task outputs, while deployment choices also depend on model representation, adaptation settings, and service policies. Future work could jointly assess capability, model identity, and protection cost for structured information extraction, longer-context generation, and multi-turn interaction. Changes to base-model size, LoRA rank, or numerical configuration should be accompanied by the approved artifacts and execution parameters so that quality changes remain tied to a specific service definition.
The same-TD native-versus-service pairing can support joint analysis of output sequences, task metrics, and resource use on identical inputs. Designs that change platforms or model representations can instead characterize their effects through task scores and generation behavior, separately from service-wrapping effects. Such evaluation would clarify the private-adapter capability required by an application and the trusted computing resources needed to provide it.
6 Conclusions
We implemented a system for bilateral protection of private LoRA inference using Intel TDX. Clients and LoRA owners independently verify the service identity and TLS public key before releasing their respective secrets, and all inference executes within the CPU TD. The fixed application identity chain, verified-byte consumption, and structural and functional adapter checks establish correspondence between an approved execution environment and actual model use. Real-hardware experiments demonstrate controlled application-tampering rejection, consumption protection under mutable paths, and the effectiveness of both loading methods under read-only deployment. Across five task-evaluation conditions, the protected service and same-TD native CPU inference produce token-identical outputs for all 400 pairs. Cost evaluation over 12 independent boots gives a steady-state service-to-native time ratio of 1.0094. The study connects bilateral protection mechanisms, adapter capability, and deployment costs in a coherent empirical evaluation, providing an implementation and design basis for confidential inference that separates a public base model from a private adapter.
Funding. This research received no external funding.
Data Availability Statement. All data were presented in the main text.
Conflicts of Interest. The authors declare no conflict of interest.
References
[1] Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. arXiv 2021, arXiv:2106.09685. https://doi.org/10.48550/arXiv.2106.09685.
[2] Lin, Z.; Zhang, S.; Wang, X.; Su, Y.; Wang, Y.; Hou, R.; Meng, D. LoRATEE: A Secure and Efficient Inference Framework for Multi-Tenant LoRA LLMs Based on TEE. In Proceedings of the 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2025, pp. 1–5. https://doi.org/10.1109/ICASSP49660.2025.10890445.
[3] Hu, G.; Wu, Y.; Chen, G.; Dinh, T.T.A.; Ooi, B.C. SeSeMI: Secure Serverless Model Inference on Sensitive Data. arXiv 2024, arXiv:2412.11640. https://doi.org/10.48550/arXiv.2412.11640.
[4] Chrapek, M.; Copik, M.; Mettaz, E.; Hoefler, T. Confidential LLM Inference: Performance and Cost Across CPU and GPU TEEs. arXiv 2025, arXiv:2509.18886. https://doi.org/10.48550/arXiv.2509.18886.
[5] Knauth, T.; Steiner, M.; Chakrabarti, S.; Lei, L.; Xing, C.; Vij, M. Integrating Remote Attestation with Transport Layer Security. arXiv 2018, arXiv:1801.05863. https://doi.org/10.48550/arXiv.1801.05863.
[6] Tramèr, F.; Boneh, D. Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardware. In Proceedings of the International Conference on Learning Representations, 2019.
[7] Hanzlik, L.; Zhang, Y.; Grosse, K.; Salem, A.; Augustin, M.; Backes, M.; Fritz, M. MLCapsule: Guarded Offline Deployment of Machine Learning as a Service. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2021, pp. 3300–3309.
[8] Johnson, M.A.; Volos, S.; Gordon, K.; Allen, S.T.; Wintersteiger, C.M.; Clebsch, S.; Starks, J.; Costa, M. Parma: Confidential Containers via Attested Execution Policies. arXiv 2023, arXiv:2302.03976. https://doi.org/10.48550/arXiv.2302.03976.
[9] Confidential Containers. Attestation Policies. Available online: https://confidentialcontainers.org/docs/attestation/policies/ (accessed on 2 November 2026).
[10] Gramine Project. Gramine Documentation. Available online: https://gramine.readthedocs.io/en/stable/ (accessed on 2 November 2026).
[11] Sheng, Y.; Cao, S.; Li, D.; Hooper, C.; Lee, N.; Yang, S.; Chou, C.; Zhu, B.; Zheng, L.; Keutzer, K.; et al. SLoRA: Scalable Serving of Thousands of LoRA Adapters. Proceedings of Machine Learning and Systems 2024, 6, 296–311.
[12] Chen, L.; Ye, Z.; Wu, Y.; Zhuo, D.; Ceze, L.; Krishnamurthy, A. Punica: Multi-Tenant LoRA Serving. Proceedings of Machine Learning and Systems 2024, 6, 1–13.
[13] Wu, B.; Zhu, R.; Zhang, Z.; Sun, P.; Liu, X.; Jin, X. dLoRA: Dynamically Orchestrating Requests and Adapters for LoRA LLM Serving. In Proceedings of the 18th USENIX Symposium on Operating Systems Design and Implementation. USENIX Association, 2024, pp. 911–927.
[14] Zhou, H.; Zhao, S.; Wang, C.; Lin, Z. OpenPCC: Open and Confidential LLM Serving on Commodity TEEs. arXiv 2026, arXiv:2606.11145. https://doi.org/10.48550/arXiv.2606.11145.
[15] Wang, W.; Guan, Z.; Zhou, X.; Ding, Y.; Tan, Y.; Yu, J.; Li, B. SLIM: Secure and Efficient Inference for Large Language Models on Untrusted Devices via TEEs. In Proceedings of the 43rd International Conference on Machine Learning. PMLR, 2026, Vol. 306, Proceedings of Machine Learning Research, pp. 126438–126464.
[16] Birkholz, H.; Thaler, D.; Richardson, M.; Smith, N.; Pan, W. Remote ATtestation procedureS (RATS) Architecture. RFC 9334, RFC Editor, 2023. https://doi.org/10.17487/RFC9334.
[17] Rescorla, E. The Transport Layer Security (TLS) Protocol Version 1.3. RFC 8446, RFC Editor, 2018. https://doi.org/10.17487/RFC8446.
[18] Intel. Intel TDX Enabling Guide: Trust Domain at Runtime. Available online: https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/07/trust_domain_at_runtime/ (accessed on 2 November 2026).
[19] Dworkin, M. Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC. NIST Special Publication 800-38D, National Institute of Standards and Technology, 2007. https://doi.org/10.6028/NIST.SP.800-38D.
[20] OpenVINO Toolkit. LoRA Adapters. Available online: https://openvinotoolkit.github.io/openvino.genai/docs/guides/lora-adapters/ (accessed on 2 November 2026).
[21] Yang, A.; Li, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Gao, C.; Huang, C.; Lv, C.; et al. Qwen3 Technical Report. arXiv 2025, arXiv:2505.09388. https://doi.org/10.48550/arXiv.2505.09388.
[22] Zang, X.; Rastogi, A.; Sunkara, S.; Gupta, R.; Zhang, J.; Chen, J. MultiWOZ 2.2: A Dialogue Dataset with Additional Annotation Corrections and State Tracking Baselines. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI. Association for Computational Linguistics, 2020, pp. 109–117. https://doi.org/10.18653/v1/2020.nlp4convai-1.13.