GOAT: GPU Outsourcing of Deep Learning Training With Asynchronous Probabilistic Integrity Verification Inside Trusted Execution Environment
Paper · 2020 · Aref Asvadishirehjini, Murat Kantarcioglu, Bradley Malin University of Texas at Dallas et al.
Summary
A cloud GPU can train a deep neural network much faster than a protected CPU environment, but the client has to trust the work it returns. A classifier can appear accurate on ordinary test inputs even if its training was altered to make it behave differently on inputs with a particular feature. GOAT examines whether a cloud service can keep the GPU's speed while giving clients evidence that training used the agreed data and followed the agreed procedure. The paper treats this as a problem of computation integrity. Its intended setting includes public training data whose provenance and use still matter.
GOAT puts a trusted execution environment, or enclave, in charge of the training state. The enclave validates the client's dataset, initializes the network, and determines which examples and random choices belong to each training step. The GPU does the expensive work of producing predictions and calculating gradients, which describe how the training loss changes with the network's weights. The enclave clips every returned gradient before applying the update, limiting the influence of a single report. It also picks steps at random to verify against the corresponding saved state. Those checks can run while the GPU moves on to later steps. If the checks find a deviation, the enclave withholds the signature that would otherwise accompany the trained weights.
The design relies on a relationship between update size and detection. Random inspection alone can miss an isolated incorrect report. A tight clipping bound can make a substantial change harder to achieve in an isolated step, giving the enclave more opportunities to notice deviations when they recur. The authors express verification coverage as a probability conditional on how often reports are corrupted. They also consider a cheaper way to check the matrix products that account for much of the enclave's verification work. In the ImageNet throughput tests, randomized matrix checks brought improvements of approximately 2.2X for the VGG networks and roughly 1.2X for the ResNet networks.
The paper reports a headline performance improvement of 2X to 20X over training completely within an enclave and gives 0.999 as an example integrity target. The evidence comes from separate measurements of verification throughput, experiments on training-time backdoors, and a probability analysis that connects the frequency of deviations to the sampling rate. In a separate CIFAR10 experiment with honest training, small clipping thresholds kept test accuracy close to unclipped training when paired with a suitable initial learning rate. The resulting assurance concerns the specified training run under the paper's assumptions, including an honest data provider and a trusted enclave.
Deep dive: GOAT: GPU Outsourcing of Deep Learning Training With Asynchronous Probabilistic Integrity Verification Inside Trusted Execution Environment
GOAT sends deep learning training to a GPU and uses a trusted enclave to check selected computations and limit the effect of incorrect updates. · about 35 minutes to read
The problem and its context
Trusting the training process
Outsourcing deep learning changes who performs the operations that determine the final weights. The client can prescribe a dataset, a network architecture, and an optimization procedure, while the actual calculations take place on a remote machine. The computational case for that arrangement is straightforward. GPUs can perform much of the numerical work in parallel, and a cloud service gives the client access to that hardware. The difficulty is that the same GPU may sit outside the part of the cloud environment the client trusts. A record of what the client requested says little on its own about what the machine actually did. GPU acceleration supplies the computational setting for the paper. GPU & parallel computing
The traffic sign example in the paper shows why this matters even when the data can be shared openly. A client might train a recognizer using public images and still care whether the service really used those images and carried out the chosen training procedure. A public dataset removes a reason for keeping the image bytes secret from the GPU. It leaves the provider's obligation to use the agreed examples and computations intact. GOAT therefore gives the enclave responsibility for establishing the dataset at the start and for checking the computation that follows.
It may seem sufficient to take the final network and evaluate it on a clean test set. That evaluation asks whether the trained classifier predicts the expected labels on the test inputs. A training-time backdoor is problematic precisely because the ordinary inputs and the affected inputs can have different behavior. The paper describes prior work in which a classifier retains competitive ordinary accuracy while producing a particular response when a trigger is present. If the clean test set rarely or never presents the triggering condition, its accuracy measures ordinary recognition. The result gives little information about how faithfully the remote trainer executed the run. The paper situates this concern in earlier work on the integrity of the learning supply chain, including BadNets.
Earlier work described in the paper addresses backdoors from several directions. Neural Cleanse attempts to infer a trigger using clean inputs. The authors describe its dependence on a substantial set of those inputs and report that it has been effective for relatively small trigger patterns. ABS uses fewer samples but relies on an assumption about whether individual neurons can activate the backdoor behavior independently. The GOAT authors question that assumption for practical networks. They also point out that repairing a network through retraining can leave some unwanted behavior in place. These approaches assess or repair an existing result. GOAT instead asks whether the service can obtain evidence about the run before it certifies the result.
This shift changes which evidence is available. The final weights alone offer a limited record of individual training decisions. In GOAT the enclave can reproduce the inputs, randomness, and prior weights for a selected computation. That lets it ask whether a returned report agrees with the prescribed operation. The check is useful even if the enclave lacks a description of the behavior a dishonest trainer was trying to induce. Conversely, faithfully executing a poor choice of data or training procedure can still produce a poor classifier. The paper's integrity question is whether the job followed its specification, and its motivating backdoor case shows why ordinary test accuracy cannot answer that question by itself.
What earlier secure computation covered
The authors place their work alongside secure multiparty computation, homomorphic encryption, and trusted execution environments. The paper cites SecureML and CryptoNets as examples of the first approaches. In its account of the literature, much of the earlier evidence involved shallow networks, smaller datasets, or overhead that made the method unattractive for heavy training. The authors use that account to motivate a design tailored to large neural networks and accelerator hardware. Their objective is to protect the integrity of a training computation while keeping its expensive arithmetic off the trusted CPU wherever possible.
Slalom is the closest precedent in the paper's discussion. It arranged for a GPU to perform neural-network calculations and for an SGX enclave to check them using randomized matrix verification. The authors describe an integrity mode and an input privacy mode, with an additional cost for privacy and with network parameters outside that privacy guarantee. Slalom's work focused on inference, when a network with established weights processes inputs. Origami also addresses inference. As GOAT describes it, Origami divides the computation across the enclave and GPU, protecting early processing and executing later layers on the accelerator under an assumption about how hard it would be to reconstruct the input.
Training adds work that is absent from ordinary inference. The forward pass still computes predictions, but the backward pass propagates the effect of the loss through the network to obtain gradients. Those gradients feed into the next update. The weights change as training proceeds, reducing the opportunity to reuse calculations tied to a fixed set of weights. The backward pass must also find gradients for layer inputs as well as for weight parameters, adding expensive operations to any full replay. Moving an inference check to training therefore leaves a separate cost question about how often it is feasible to repeat both passes.
The training systems in the paper's related work make different choices. Chiron uses SGX in a distributed service aimed at private training. The GOAT authors argue that a large workload trained within an enclave can be prohibitively slow, especially when the network and its working data exceed protected memory. TensorSCONE brings TensorFlow training and inference into SGX. Myelin also performs training inside an enclave, in its case for data from parties that do not trust each other, and incorporates differential privacy measures to address possible disclosure between parties. Those systems help explain why GOAT states its confidentiality assumptions up front. A service whose central job is to keep every training example secret faces a different design problem from one allowed to send the examples to an accelerator in plaintext.
Why use a separate verifier?
Intel Software Guard Extensions, or SGX, supplies the trusted execution environment in the implementation. The enclave is where the authors place code and state that must be shielded from tampering by the host. SGX also supports remote attestation, through which a client can establish which protected program it is communicating with before supplying a key. The host can still provide resources and call into the enclave through declared interfaces. Its responsibility for running the surrounding machine does not give it the same access to protected memory as the code inside the enclave.
The paper treats protected memory and enclave computation as scarce. Running the whole training procedure there would give the enclave direct control of each operation, but would also make it responsible for all forward and backward arithmetic. That is the workload for which the GPU was chosen in the first place. GOAT splits the job so the protected environment controls the training decisions that are relatively cheap to enforce and revisits a subset of the expensive calculations. The rest of the design addresses the consequences of that split. The verifier needs enough history to check an old step, and the trainer has to remain constrained during the many steps that proceed without an immediate replay.
The method, step by step
Establish the job inside the enclave
The run starts with an authenticated client and a protected program. The client attests the enclave and gives it the key used to protect the dataset. The enclave decrypts and validates the data, then makes the plaintext available to the GPU trainer. The authors assume the client supplies honest data through a secure, authenticated channel. Validation establishes the data associated with the run under that assumption. It is separate from examining whether individual examples are appropriate training material.
Once the data reach the GPU, the workload should be understood as visible to the untrusted side. The paper assumes the trainer can know the architecture, the learning algorithm, and the inputs after the enclave's initial preprocessing. It can also control the surrounding host software, the GPU, and memory outside the protected CPU environment. The facts about the job do not need to be secret for verification to work. The enclave relies on retaining control of its own code, randomness, authenticated state, and final signing decision.
The enclave initializes the trainable parameters and supplies the random choices used at each step. These include the indices of examples in the mini-batch, a group drawn from the dataset for a single update. They also include random choices needed within individual layers. Dropout is the cited example of such a layer operation. Moving those choices into the enclave gives the verifier a defined computation to revisit. A different batch or a different sequence of layer choices could otherwise produce different gradients even with the same weights and correct arithmetic. Dropout
How GOAT trains and verifies an outsourced network
The steps in order.
Calculate a gradient and apply a bounded update
A neural network passes information through a sequence of layers. Each layer transforms its input using its own parameters. Written with layer indices in superscript, the paper's layer relation is:
Xˡ⁺¹ = Fᵂˡ(Xˡ)
Here l denotes a layer index, Xˡ is that layer's input, and Xˡ⁺¹ is the output passed on to the next layer. Fᵂˡ denotes the transformation associated with the weights Wˡ of layer l. The superscript on F identifies the parameters used by the transformation.
The GPU first runs the mini-batch through these layers. A loss function assigns a value to the resulting predictions. This forward calculation supplies the quantities needed for the backward pass. In the backward pass, the GPU computes how changes to weights would affect the loss. It also computes gradients with respect to layer inputs, since those quantities are needed to continue the derivative calculation into preceding layers. At the end, the trainer sends its reported weight gradients back to the enclave.
The paper gives the basic stochastic gradient descent update as follows:
Wᵗ⁺¹ = Wᵗ − α ∇W L(Wᵗ)
Here t is the update index, Wᵗ is the current set of weights, and Wᵗ⁺¹ is the next set. L is the training loss for the computation, and ∇W L(Wᵗ) means the gradient of that loss with respect to W, evaluated at Wᵗ. The subscript on the gradient operator specifies the variable being differentiated. The learning rate α scales the gradient, and subtraction moves the weights in the direction of local loss reduction. The probability analysis later uses α for a separate quantity.
A correct gradient is what the enclave would see if it repeated the same batch computation from the same weights and randomness. The report arriving from the GPU could differ from that value. GOAT first makes the report usable within the protected update rule by clipping it. Clipping is a restriction on the permitted magnitude of the gradients, described in the paper as keeping them in a narrow interval. It applies to every report, including those from steps that will never be selected for replay. The paper also changes the learning rate in its experiments. In the simple update above, the learning rate controls how much effect the permitted gradient has on the weights.
Clipping and verification answer different questions about the same report. Clipping determines what an incoming report is allowed to do to the current weights. A clipped report can still contain the wrong gradient. Verification examines whether the incoming report reflects the specified computation. This distinction also explains why the enclave needs the reported gradients for selected steps. If it kept only the updated weights or only the clipped gradients, different GPU reports could be represented by the same clipped update. Saving the evidence for replay allows the check to concern the reported arithmetic directly.
The security argument depends on what happens over time. One bounded update is allowed to change the state only within the limits of the trusted update rule. If a substantial alteration needs repeated incorrect reports, each such report creates another chance for a sampled check to catch the run. Clipping creates the constraint on individual updates, and random sampling supplies the chance of detection. The authors investigate the link between them empirically because the effect of a bounded sequence of updates depends on the network, the data, and the stage of training.
Save the evidence needed to revisit a step
When the enclave selects a step, GOAT puts a verification task in a queue. The GPU can continue computing subsequent batches while verification proceeds. This is the asynchronous part of the design. It moves the check away from the immediate path between one GPU batch and the next. The result of that check still matters to the run's eventual certification. A later discovery that a report was incorrect is grounds for withholding the signature.
A replay must start from the state that preceded the selected step. Using the weights from after the selected update would change both the predictions and the gradients. Using the most recent weights would be still further removed from the original computation. GOAT restores the previous parameter snapshot, verifies its authenticity, and regenerates the mini-batch and layer randomness for the step under examination. The paper derives a key for authenticating a snapshot from the enclave's session key and the corresponding iteration. This associates saved state with its place in a particular run.
The saved records include the reported gradients and, where batch normalization is present, the means and standard deviations for the batch. Batch normalization uses these statistics in the layer's computation, so they are among the quantities relevant to a check. If randomized matrix verification is in use, reported matrix products are also retained. GOAT avoids keeping a complete history of layer activations, the intermediate outputs produced while running the network. The enclave can recover the computational context from the selected snapshot, prescribed randomness, and records the check actually uses.
The queue and the snapshots let the verifier examine the actual sequence of training states. If an earlier incorrect report went unselected, the state preceding a later selected step might already reflect it. The later replay checks the report for the later step from that state. It cannot retroactively establish the correctness of the earlier report. The scheme's detection claim is therefore about encountering at least one incorrect step in the sample. This is also why the authors care about the number of incorrect reports required to produce a meaningful change.
Check the expensive arithmetic
The full verification option recomputes the relevant operations in the enclave. The cheaper option uses randomized checks for matrix multiplication. A matrix product combines rows of one array with columns of another. If the GPU supplies a claimed product, the enclave can compare its action on a randomly chosen vector with the action obtained by applying the two known factors to that vector in sequence. The approach follows the matrix verification scheme the authors cite from Freivalds. The following notation expresses the check used in the paper's layer operations.
A(Br) = Cr
Here A and B are the matrices whose product is being checked, C is the GPU's claimed result, and r is a random vector of a suitable dimension. The parentheses on the left put the multiplication of B by r first. The right side multiplies the claimed result by the same r. Equality holds for a correct product in the field arithmetic used in the analysis. An incorrect product can agree on a particular random vector, which is why the check carries a probability of accepting an error.
For square matrices, the authors give the cost of the randomized verification as:
O(N²)
Here N is the number of rows and columns in each square matrix, and O describes how the operation count grows with that dimension. The exponent in this expression reflects the work of matrix-vector multiplication. For ordinary multiplication of the square matrices, the comparison in the paper is:
O(N³)
Here N is again the matrix dimension and O describes the growth of the operation count. The comparison concerns this arithmetic operation. The gain for a complete network step also depends on the types and sizes of its layers, memory behavior, and the work outside matrix multiplication.
The appendix spells out which products the enclave can check. In a fully connected layer, each output feature receives a weighted combination of the input features. The mini-batch supplies the rows in the input matrix for the forward pass.
O = IWᵀ
Here I is the fully connected layer's input matrix with rows for examples and columns for input features. W has rows for output features and columns for input features. Wᵀ is the transpose, which exchanges rows and columns. O is the resulting matrix of layer outputs, with examples as rows and output features as columns. In these layer equations, O is a matrix name, distinct from the notation for operation counts.
For the backward computation, the loss gradient at the layer output participates in both relevant products. The weight-gradient product combines examples' contributions to the derivatives of the weights.
∇W = (∇O)ᵀI
Here ∇W is the array of loss derivatives with respect to the layer's weights, ∇O is the array of derivatives with respect to its outputs, and I is the input matrix from the forward computation. The transpose ᵀ places output features along the rows of the first factor, so the resulting dimensions match those of W.
The input-gradient product supplies what the preceding layer needs to continue back-propagation.
∇I = (∇O)W
Here ∇I contains the loss derivatives with respect to the current layer's input features for each example, ∇O contains the derivatives with respect to the current layer's outputs, and W is the layer's weight matrix. The result has the dimensions of the input matrix. It serves a different purpose from ∇W, which contributes to the parameter update.
The convolutional case uses the same basic idea with a different layout. A convolution applies filters across local regions of an input. In the paper's matrix form, columns of the input matrix contain rearranged image patches for spatial positions. The filter weights are rows of the weight matrix.
O = WI
Here W contains the convolutional filters, I is the matrix of rearranged patches, and O records each filter's output across output positions. The multiplication contracts the dimension that combines the spatial extent of the filter with the input channels. The appendix uses this arrangement to express the forward computation as a product amenable to the same style of check as a fully connected layer.
The backward calculation for the filters multiplies the output gradient by the transpose of the patch matrix.
∇W = (∇O)Iᵀ
Here ∇W contains the loss gradient for the convolutional weights, ∇O is the loss gradient for the convolutional outputs, and Iᵀ is the transpose of the patch matrix. The product accumulates across spatial positions and produces entries arranged like the filter weights.
The calculation that passes the gradient back toward the input uses the transposed filters.
∇I = Wᵀ(∇O)
Here ∇I is the input gradient in the rearranged matrix representation, Wᵀ is the transpose of the convolutional weight matrix, and ∇O is the output gradient. The product produces a gradient in the dimensions of the patch matrix. The appendix describes checking these forward and backward products by projecting on either side as appropriate for their layouts.
Keep the replay within protected memory
GOAT ordinarily allocates working space by layer and releases it as it moves through the network. A single layer can still require too much memory, even when processing one example. The appendix describes separate ways to split the work for convolutional and fully connected layers. Both keep the operation defined by the same input tensors and weights while changing how much of them need to be held in protected memory at once.
For a convolution, GOAT uses an operation called im2col that lays out input patches in a matrix. Patches at nearby positions may contain some of the same pixels, and their matrix representation can therefore occupy more memory than the source input. Using the paper's dimensions, the size of the rearranged matrix is:
[k² · cᵢ] × [wₒ · hₒ]
Here k is the filter window size, cᵢ is the number of input channels, and wₒ and hₒ are the output width and height. The dot denotes multiplication of dimensions within a bracket. The first bracket gives the number of entries in a patch column and the second gives the number of spatial positions. When this representation is too large, GOAT divides the work along the input-channel dimension and rearranges only as many channels at a time as the enclave can accommodate.
For a fully connected layer, the large resident object can instead be the weight matrix. Its dimensions depend on the input and output widths of the layer, so reducing the number of examples alone cannot always make it fit. GOAT splits this matrix by rows. Each group of rows corresponds to a subset of the layer's outputs, and the enclave works on a group that fits the available space. This part of the design addresses the amount of data brought into the enclave for a check. The randomized product test addresses the arithmetic performed once that data are available.
Relate the sampling rate to the integrity goal
The paper analyzes random verification through the probability of missing every incorrect report. Its calculations use a rounded number of checked steps. The operating description speaks of selecting each step randomly, while the proof treats the checked count in the following form:
nᵥ = ⌈B pᵥ⌉
Here nᵥ is shorthand for the number of checked steps in the proof, B is the total number of training steps, and pᵥ is the verification rate. The brackets ⌈ ⌉ round upward. This sample count makes precise the quantity to which the proof applies its probability calculation.
For a full check, the paper treats checked reports as having a common corruption probability in the calculation. The probability of observing zero detections then has the following form:
P(X = 0) = (1 − p꜀)ⁿᵛ
Here P means probability, X counts detections among the selected steps, and 0 is the outcome in which every check misses a corrupt report or encounters a correct one. p꜀ is the probability that a report is corrupt. The exponent nᵥ is the rounded check count above. A full check detects a corrupt report it encounters under the proof's assumptions. Raising the probability of a clean report to the check count uses the independence implicit in the paper's binomial calculation.
The detection event is the complement of zero detections.
P(X ≥ 1) = 1 − P(X = 0)
Here X remains the number of detections, and P(X ≥ 1) denotes the probability of detecting at least one deviation. The number 1 on the right is the probability of the entire outcome space. The integrity decision can use the first detected deviation. The check does not need to count all the others to withhold certification.
Using the paper's rounded-count argument, the theorem gives the following lower threshold for the verification rate:
pᵥ > B⁻¹ [log(1 − pᵢ) / log(1 − p꜀) − 1]
Here pᵥ is the verification rate, B is the number of training steps, pᵢ is the target probability of detecting at least one deviation, and p꜀ is the assumed corruption probability for a step. B⁻¹ is the reciprocal of the number of steps. log denotes the logarithm, used with the same base in the numerator and denominator. 1 − pᵢ is the tolerated probability of missing the deviations, and 1 − p꜀ is the probability that a report is clean. The subtraction inside the brackets comes from the treatment of the rounded number of checks.
The matrix verification variant has another possible source of a missed detection. A sampled report can be clean, or it can be corrupt and accepted by a randomized check. The paper writes the resulting term in the following form.
q = (1 − p꜀) + p꜀ α
Here q is shorthand for the chance that a selected check produces no detection. The first term is the probability of a clean report. The second weights the error probability α of the randomized check by the corruption probability p꜀. In this calculation α refers to accepting an incorrect computation, and the learning rate is unrelated to it. The paper discusses this error in terms of the size of the set used to draw random entries and the number of independent checks. When interpreting repeated checks across products, the relevant issue is which of those products are actually wrong.
The corresponding verification threshold is:
pᵥ > B⁻¹ [log(1 − pᵢ) / log(1 + (α − 1)p꜀) − 1]
Here pᵥ, B, pᵢ, and p꜀ have the same meanings as in the full replay theorem. α is the randomized verification error term, and the logarithm in the denominator takes the per-check no-detection term as its argument. As α approaches zero, that term approaches the probability of a clean report and the threshold approaches the full verification expression. A lower computational cost per check can therefore matter even when the required coverage is close to what full verification would require.
The formulas make the corruption rate an input to the guarantee. The verifier can choose how much work to check. It cannot choose how many reports will be wrong. The experiments with clipping are the paper's way of investigating how much dishonest activity a particular unwanted behavior may require. That investigation connects the mathematics to a security objective. The equations alone give a detection probability for a specified pattern of corruption under the proof's assumptions.
Certify the result
If the completed checks find no violation, the enclave signs a digest associated with the run. The message in the appendix combines a fingerprint of the final weights, a version identifier, a fingerprint of the dataset, and the client's public key.
SHA256(SHA256(W) ‖ v_num ‖ SHA256(ds) ‖ Sigᵥ_client)
Here SHA256 is the cryptographic hash function used by the paper. W denotes the final weights, v_num the version number, ds the dataset, and Sigᵥ_client the client's public verification key. The symbol ‖ means concatenation. The outer hash binds the combined fields, and the enclave signs the resulting digest using its private signing key. A recipient can verify the signature during deployment or testing. Its interpretation depends on the enclave's policy for checking and certifying the run.
Experiments and results
Measuring the cost of a check
The experimental program tackles two separate questions. The first is how quickly the trusted environment can verify a deep network step, using either full matrix multiplication or randomized matrix product checks. The second is how training with bounded gradients responds to sustained incorrect computations, and how much the restriction costs when training is honest. The experiments use an Intel SGX proof of concept built by modifying Darknet. The adversarial evaluation was implemented using PyTorch.
The host was a Linux machine with an Intel Xeon E3-1275 v6 processor at 3.80GHz and 64GB of RAM. It used an NVIDIA Quadro P5000 with 16GB of memory. The enclave implementation was tested with SGX SDK 2.9 in a container running in hardware mode. These details matter because the measurements reflect a particular balance between CPU throughput, available protected memory, and the accelerator. The paper's speed figures are comparisons within that setting or estimates built from those comparisons.
For ImageNet, the authors use VGG16 and VGG19 from the VGG family, and ResNet34 and ResNet152 from the residual family. They measure the throughput of the forward and backward parts of a training step inside the trusted environment. The comparison replaces full verification of matrix multiplication with randomized checks and observes how much training-step throughput can improve. The architectural background is given by the cited work on VGG and residual networks.
Backward throughput is generally lower in the paper's account. A forward operation in a connected or convolutional layer needs its output product. A backward operation computes both the derivative for the weights and the derivative for the inputs to the layer. The full arithmetic baseline already uses vectorized instructions and multiple threads, so the improvement reflects a change in the kind of operation the enclave performs on a reported product. The size of that improvement differs considerably by architecture.
Randomized verification throughput gains over full verification on ImageNet
The VGG family gains more from randomized matrix checks than the ResNet family does.
The numbers
| System or setting | Approximate throughput improvement, X |
|---|---|
| ResNet family with randomized verification | 1.2 |
| VGG family with randomized verification (this paper) | 2.2 |
The chart represents the authors' approximate family-level comparisons for ImageNet step verification. Its values describe the effect of using randomized matrix verification for the checked work. The paper's headline range of 2X to 20X concerns the combined proposal relative to pure enclave execution. Sampling and matrix verification affect different parts of that comparison. Sampling reduces the quantity of work the enclave revisits. The matrix procedure reduces the work within a selected replay.
The paper illustrates the distinction with a conditional estimate. For a corruption probability of 5.10⁻⁵, it reports an approximate verification probability of 0.1 for a detection probability above 0.999. Combining the sampling assumption with the measured verification advantage for VGG gives an estimated improvement of roughly 22X against a pure enclave solution that verifies every step. That example uses an assumed corruption frequency. It is an estimate based on a throughput comparison and the verification analysis, instead of a timed complete ImageNet run at that security level.
The appendix discusses CIFAR10 throughput for 9 VGG variants drawn from VGG11, VGG13, and VGG16, with fully connected layers adapted to the dataset. The paper's discussion reports less benefit from randomized verification in this smaller workload. The authors explain that more of the relevant operations fit within available protected memory and that the matrix dimensions leave less room for a useful speed gain. The appendix figure caption repeats the main ImageNet architecture names, whereas its accompanying discussion and architecture table describe the CIFAR10 variants. The qualitative CIFAR10 conclusion comes from that discussion.
Measuring persistence under a bounded update rule
The backdoor evaluation uses GTSRB, MNIST, and CIFAR10. GTSRB supplies traffic sign recognition, MNIST supplies handwritten digit recognition, and CIFAR10 supplies the additional image classification workload. The experiments distinguish clean test accuracy from the success rate on affected test examples. Clean accuracy is the proportion of ordinary examples receiving their expected labels. The other metric measures how often affected inputs receive the behavior sought by the adversary. Keeping both measures matters because the paper's motivating case is an alteration that can coexist with useful ordinary classification.
The evaluation selects runs that meet thresholds on both measures. For GTSRB and MNIST, the clean test accuracy criterion is at least 95%. For CIFAR10 it is at least 90%. The success criterion on affected test examples is at least 85% in all the evaluated datasets. Under the clipping and learning-rate settings in that experiment, the paper lists 124 selected runs for GTSRB, 49 for MNIST, and 94 for CIFAR10. These are counts of runs meeting the listed criteria. Their denominators are needed to turn them into success rates across all experiments, and differences between the counts do not measure comparative security across datasets.
The authors use Adam for MNIST and GTSRB and momentum-based stochastic gradient descent for CIFAR10. For the Adam workloads, 10% of the training data serves as a validation set, with validation loss informing the learning-rate adjustment. The paper gives fixed tenfold decays at epochs 40, 70, 100 for the workloads governed by that schedule, excluding CIFAR10 from that description. The different optimizers and schedules help explain why the same clipping threshold or absolute learning rate has no simple meaning across the workloads. Adam
The authors track how much training departs from the prescribed computation among selected runs. They then express the resulting audit burden as a distribution of verification rates for a detection failure probability at most 10⁻³. A setting that achieves the affected behavior while departing from the training procedure infrequently is harder for an audit to catch. This is why the boxplots measure the required verification rate instead of ranking settings solely by their affected-input accuracy. The latter was already part of the criterion for inclusion. The comparison asks how much checking would be necessary given the observed pattern of deviations.
Measuring ordinary test accuracy under clipping
A separate experiment leaves training honest and asks whether the clipping still permits useful learning. It uses ResNet56 on CIFAR10 and follows training for 200 epochs. The authors combine initial learning rates of 0.1 and 0.01 with gradient thresholds of 0.001 and 0.0005, alongside unclipped references. Every configuration is repeated 5 times under different randomness, including initialization and the order of the batches. The paper reports 30 runs in total.
Both initial learning rates have their own unclipped reference. The study compares test accuracy over training with the relevant reference and also examines the range of paired differences across repetitions. The learning rate decays tenfold at epochs 50, 90, 130,160. The trajectories change sharply around the early decays, and the reference with the higher initial learning rate finishes somewhat ahead. At an initial learning rate of 0.1, the clipped test-accuracy trajectories come close to those of the corresponding unclipped runs. The paper reports that their gaps generally narrow towards the end of training. This is evidence that the restriction can be compatible with ordinary accuracy in that workload, even though its effect depends on how the optimization is set up.
What the ablations show
Random matrix checks help where the work is expensive
The most direct systems comparison changes how the enclave verifies a matrix product. Full replay carries out the multiplication inside the trusted environment. Randomized verification reduces the product check to work with a random vector and uses the GPU's reported result. Both paths serve the same purpose in the selected step, so the comparison isolates a particular source of verification cost more clearly than the headline speed range does.
The results differ between the tested VGG and ResNet designs. The ImageNet VGG comparisons show a larger relative benefit, while the ResNet comparisons show a smaller one. This is consistent with the distinction between an operation-level speedup and a whole-step speedup. The complete verification step contains work beyond the matrix product being replaced. The benefit depends on how much of the original time that product consumed. A speed improvement in the expensive arithmetic can have a modest effect when the rest of the step remains substantial.
The smaller CIFAR10 workload further qualifies the comparison. The authors report that the randomized method is generally less beneficial there than in the ImageNet workloads. Their explanation is that the adapted networks use smaller products and more of their working data stay within the enclave's hardware limits. Within the experiments, the useful unit for judging the optimization is the layer computation at its actual dimensions. The paper's asymptotic comparison concerns large matrices, while the measured benefit includes the cost of managing the work around those matrices.
Protected memory changes the cost of the same workload
The heap experiment varies how much memory the enclave is allowed to allocate and follows both total training-step throughput and time spent in matrix multiplication. The authors report a hardware limit of around 92MB for the protected memory relevant to this setup. Allowing a substantially larger heap can lower throughput, especially for the VGG case. A larger allocation thus changes more than the amount of convenient workspace available to a layer.
The paper attributes the drop to paging. When protected pages are moved out and brought back, they incur additional encryption, decryption, and tracking. This makes the working-set pattern of a workload consequential. Two architectures can use the same style of verification and encounter different overhead if one causes more movement of enclave pages. That finding gives a practical reason for the layer-by-layer allocation and the subdivisions described in the method. Fitting the active computation into memory can be valuable even when the nominally permitted heap is larger.
The memory experiment also helps interpret the speed estimate for asynchronous execution. A sampled verifier avoids doing much of the repeated enclave work, but any large step it does check is still subject to the hardware's memory costs. Matrix checks and blocking can change the time to finish such a task. Sampling can change how frequently that time has to be paid. The experiments provide separate evidence about those effects, which would otherwise be hard to distinguish from a single aggregate timing.
Clipping depends on the learning-rate setting
The clean CIFAR10 study is the closest comparison to a clipping ablation. It holds the network family and task fixed, uses an unclipped reference for each initial learning rate, and repeats runs with different random choices. This design allows the reader to distinguish the effect of imposing a threshold from the effect of choosing a different learning rate. Comparing a clipped run with a reference from another learning-rate setting would mix those effects.
The paper plots the means and standard deviations of test accuracy for the unclipped repetitions. For the clipped configurations it examines differences relative to the reference, with an upper and a lower comparison over repetitions. The larger initial learning rate produces the closer clipped and unclipped trajectories once training has progressed. There are small shortfalls through much of the run and occasional early deviations in the other direction. The final narrowing matters because a transient difference between the trajectories and a persistent difference in attained accuracy have different implications for using the restriction.
The result supports a practical part of GOAT's argument. The system needs a clipping range small enough to constrain the contribution of a single report, and honest training needs a useful optimization trajectory within that range. The experiment finds such compatibility on ResNet56 and CIFAR10. Its evidence is especially useful alongside the attack study because clean accuracy is measured in honest runs with explicit unclipped references. Meeting a clean accuracy threshold during an attack study would answer a different question about how successful selected adversarial runs were at retaining ordinary behavior.
Fewer deviations are harder to sample
The remaining controlled comparisons vary aspects of the unwanted behavior and report the resulting verification burden. The authors find that the kind of input feature associated with the behavior matters. Some patterns yield behavior that persists through more honest updates after the trainer resumes the prescribed computation. Others are associated with behavior that requires a more sustained departure from the protocol. In the study, broader transformations of the entire image do not reliably make the effect persist longer. The authors suggest that learning different responses for visually similar clean and transformed inputs can put conflicting demands on the same weights.
The point in training when a deviation occurs also matters. Early in training the weights may still be changing substantially under ordinary updates. Later, the learning rate and clipping limit may constrain the changes that can be made before training finishes. The experiments show that the interaction depends on the task. The authors associate MNIST's different result with its faster convergence to a low loss on clean images. They present that account as an explanation of the observed behavior, without establishing convergence speed as the sole cause across datasets.
Changing the proportion of affected examples within a batch also changes the experimental results. The study finds a tradeoff between the influence of the altered data and the ability to preserve ordinary recognition. Larger proportions can degrade the outcomes on ordinary as well as affected inputs, so the relationship is not consistently monotonic across the evaluated workloads. Since only runs that meet the clean and affected-input criteria enter these comparisons, an apparently favorable verification burden has to be read together with the set of runs that qualified in the first place.
The authors also say that trials involving deviations at randomly chosen steps did not succeed in their experiments, and they omit detailed results for those trials. The observation is narrower than the sampling theorem. It describes the behavior of an attempted experimental configuration, while the theorem asks what a verifier would detect under a specified probability law. Taken together, the controlled comparisons show why the corruption probability in the analysis has to be justified for the particular security claim. Clipping is enforced uniformly, but the number of incorrect reports needed for an outcome changes with the workload and the desired behavior.
Limitations
Limits stated by the authors
The authors assume that the enclave is trusted and that the client supplies honest training data through an authenticated channel. The service validates the incoming dataset before giving it to the GPU. Detecting malicious samples already present in the submitted dataset is outside the paper's scope. A client who submits a compromised dataset can therefore obtain a faithfully executed training run on those bytes. The signature's binding to the dataset allows recipients to identify the data associated with the run, while the assumption of honest input is what supports the paper's use of that binding.
Training data confidentiality is also outside the central design goal. The client initially provides encrypted data, but the enclave gives plaintext to the untrusted GPU after validation. The authors choose this setting for workloads in which integrity is critical and the data can be exposed to the trainer. The encrypted submission and protected state serve important roles at the enclave boundary. They do not extend confidentiality to the computation on the GPU.
The authors restrict the study to the training phase. The work concerns whether a classifier was built under the prescribed procedure, and certification is decided before deployment. An input-time attack, a deployment service that substitutes different weights, or a downstream error in the use of predictions raises questions beyond the training checks. A recipient may verify the signature on the artifact being used, but the training protocol supplies no separate runtime check of all subsequent predictions.
The authors also state that constrained enclave computation can incur substantial memory overhead. The heap and workload comparisons show that the memory limit has a practical effect in their implementation. The paper offers matrix blocking to fit large operations and probabilistic verification to reduce how often those operations are revisited. Each intervention operates inside the assumed enclave security boundary. Its effectiveness as a speed optimization depends on the dimensions and memory behavior of the checked workloads.
What the evidence can establish
The detection guarantees are conditional. The full verification expression uses a common per-report corruption probability and a product calculation over the sampled reports. Its result tells the reader how the detection target depends on that probability and the number of checks. It does not derive a lower bound on corruption frequency for every possible departure from the training objective. A rare but consequential deviation would be harder to encounter than a persistent sequence of deviations. The bounded update rule is meant to make the persistent case more relevant, and the experiments supply evidence for that relationship in the studied workloads.
The distinction between the rounded count in the proof and per-step random selection in the design also matters to precise implementation claims. Fixing how many steps are checked and independently deciding whether to check each step produce different sample-count behavior. The appendix's threshold uses a rounded count. A deployment that lets the total fluctuate would need to interpret its detection target with that selection process in mind. The paper gives a mathematical relationship under its stated calculation, together with a design based on randomly chosen checks.
The statement about randomized matrix checks is strongest when read at the scope of the product that may actually be wrong. Independent repetitions can reduce the chance of missing that wrong product. A training step contains many products, and the presence of correct products does not by itself make a specific incorrect one easier to detect. An interpretation of the step-level error term therefore needs assumptions about which products are erroneous and which randomized checks they face. The paper states the matrix guarantee for field arithmetic. Its algebraic expression and its measured throughput answer separate questions about correctness and performance.
The experiments on backdoor behavior and the large-network throughput tests serve different purposes. GTSRB, MNIST, and CIFAR10 are used to study the behavior of bounded training under deviation. ImageNet provides the main larger-network verification measurements. The paper argues that large workloads could require many deviations for an effective backdoor, but the larger-workload timing tests do not establish that claim by themselves. In particular, a high detection target used in a performance illustration is an input to an estimate. It is different from an observed detection frequency from repeated complete ImageNet training runs under attack.
The selected backdoor runs offer evidence conditional on their success and clean-accuracy thresholds. They do not reveal what fraction of all attempted configurations succeeded, and they cannot establish the worst case over untested kinds of deviations. The reported failure of the randomly timed trials is likewise limited to the attempts the authors made. The article's analytical claim about detection is general in terms of the probability of corruption. Its experimental evidence for how frequently a dishonest trainer needs to deviate comes from specific image tasks and the studied behaviors.
The honest training results have a similarly defined scope. The clipping study shows test-accuracy trajectories for a particular residual architecture, CIFAR10, the tested thresholds, and the tested learning-rate schedule. A similar final accuracy in that study does not settle what happens with other optimizers or tasks, or whether the same settings preserve performance over every stage of training. The result supports the feasibility of choosing a useful combination. The paper's own comparisons show that the choice of initial learning rate changes the observed effect of clipping.
Finally, the reported speed advantage compares GOAT with enclave-based verification or execution. The architecture still incurs snapshot handling, data movement, protected updates, and work queued for verification. A faster verifier can finish its part sooner, and asynchronous execution can overlap it with GPU training. End-to-end certification also depends on whether the selected checks finish in time. The paper's per-step throughput measurements and conditional scaling example establish parts of that performance case. They leave the full timing of certified training dependent on the workload, the sampling policy, and the behavior of the verification queue.
What came after
No later work is documented here that extends, evaluates, or adopts GOAT.
Cite
Cite as Aref Asvadishirehjini, Murat Kantarcioglu, Bradley Malin University of Texas at Dallas and Vanderbilt University). 2020. GOAT: GPU Outsourcing of Deep Learning Training With Asynchronous Probabilistic Integrity Verification Inside Trusted Execution Environment. arXiv:2010.08855.
@misc{asvadishirehjini2020goat,
title = {{GOAT: GPU Outsourcing of Deep Learning Training With Asynchronous Probabilistic Integrity Verification Inside Trusted Execution Environment}},
author = {Aref Asvadishirehjini, Murat Kantarcioglu, Bradley Malin University of Texas at Dallas and Vanderbilt University)},
year = {2020},
doi = {10.48550/arxiv.2010.08855},
eprint = {2010.08855},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2010.08855}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/asvadishirehjini-2020-goat-gpu-outsourcing-deep-learning/