Zero Labs
Industry News / AI

Enforcing AI Compute Controls on a Global Level

Source · Towards AI By Manan Kumar Garg

From the publisher’s feed, collected in the ZeroLabs newsroom.

A breakdown of hardware related compute governance mechanisms for advanced artificial intelligenceIn the future where AI systems are highly advanced and countries have made treaties with each other to not train malicious or harmful AI, how does a country or an independent body make sure that such compliances are being followed by other nations?In his paper titled “What does it take to catch a Chinchilla? Verifying rules on large-scale neural network training via compute monitoring” on arXiv [1], Yonadav Shavit proposes a mechanism for monitoring the computing hardware (advanced chips like NVIDIA H100s) so that any auditing party is sufficiently confident that no harmful training was done on the chips used by an adversary.In this article, I will give a high-level breakdown of the ideas proposed by Shavit and hopefully get you interested enough to read the entire paper. The purpose of this article is to ease you into the broad-level ideas so that when you pick the paper, you will be able to grasp the rich details without any issues. Note that compute monitoring, though quite promising, is just one of the ways to enforce regulations. Shavit has solely focused on compute monitoring in his paper and so will I.Figure 1: Overall compute monitoring framework. Source: Yonadav Shavit on arXiv [1], licensed under the Creative Commons Attribution 4.0 International license.But before we begin, what does the term “Chinchilla” in the title mean? It actually refers to an LLM introduced in 2022 by Google DeepMind [2]. The Chinchilla model established how to optimally train large models using massive amounts of compute power. Shavit uses it here as a metaphor for successfully detecting if an organization is secretly executing an unauthorized, large-scale training run. You can read more about DeepMind’s Chinchilla scaling laws on arXiv [2].Shavit uses the term ‘Verifier’ to refer to the party that wants to verify that the compliances were followed and the term ‘Prover’ for the party trying to prove to the Verifier that compliances were followed.These terms actually come from the realm of zero-knowledge proofs. A zero-knowledge proof is a protocol in which one party (the Prover) can convince another party (the Verifier) that some given statement is true, without conveying to the Verifier any information beyond the mere fact of that statement’s truth [3]. It is worth understanding the concept of a zero-knowledge proof with an example before moving on.Suppose you and your friend are playing the “Finding Waldo” game. You (Prover) find Waldo and now you want to convince your friend (Verifier) that you found him without actually revealing the location of Waldo and ruining the game. How could you do that?Step 1 — You get a massive opaque plain sheet and cut a tiny Waldo-sized hole in the middle of this sheet.Step 2 — You ask your friend to turn around and then you adjust the sheet so that the hole aligns with Waldo in the book.Step 3 — You ask your friend to look through the hole and verify that they see Waldo.Your friend is now 100% convinced that you know where Waldo is, but they have gained zero knowledge about his actual location on the page. This is the core logic of zero-knowledge proofs, as illustrated in the Finding Waldo zero-knowledge proof explanation on Medium [4].Figure 2: Zero-knowledge proof for Finding Waldo. Source: Image by the author (generated using Gemini).In our case, the Prover has to prove to the Verifier that no malicious training was done without actually revealing any data, hyperparameters, architecture, etc. used in training.For a Verifier to be satisfied about the Prover’s compliance, they would inspect a sufficient random sample of the Prover’s chips, compare them against the data centre logs provided by the Prover, and consequently confirm whether any rule-violating training occurred. Note that the values seen by the Verifier either on the chip or in the data centre logs would be cryptographically hashed and thus, at no point will the Verifier be able to infringe any IP owned by the Prover.This system only works if the Verifier has tight control over the supply chain of advanced chips and knows exactly which chip is owned by whom; otherwise, a party could just source a large amount of chips from elsewhere and secretly use them for training.Thus, for this mechanism to work, the Verifier needs intervention at 3 stages [1]:On the chipAt the data centreAt the supply chainOn the chipDuring training, the chips are required to send hashed snapshots of model weights stored in their volatile memory at random times to the Verifier. These snapshots, along with the logs obtained from the data centre, then let the Verifier establish compliance. The chips also send raw weights to a Prover-owned database.The snapshots must be saved at random times; otherwise, if the logging schedule is known, the Prover can swap the weights just before logging.To achieve this, the chip needs to be designed with several hardware security features like firmware attestation and the firmware’s ability to raise interrupts and read memory at random times. The chip and firmware should also be tamper-proof or at least tamper-evident (i.e., a Verifier can immediately tell if a chip was tampered with).The frequency of snapshots must be as low as possible to reduce the performance overhead caused by them. In the paper, Shavit also provides a mathematical bound on the minimum number of chips that are sufficient for the Verifier to examine. I will skip that here.At the data centreOn its own, the weight snapshot on the chip captured by the Verifier is useless if there isn’t anything to verify it against. The weight snapshot from the chip is a result of the combination of specific data and hyperparameters used in training. Shavit defines a training transcript T = {M, D, W} where :M: hyperparametersD: dataW: set of intermediate weight snapshotsThe Prover is supposed to keep a copy of this transcript for itself and also send a hashed copy to the Verifier. The core idea is that it is extremely difficult for the Prover to find another transcript T’ = {M’, D’, W’} which can lead to the same snapshot captured by the chip earlier.Thus, in case the weight snapshot came from a different training transcript logged by the Prover, the Verifier could immediately catch it.Now, another question arises. Currently, the Verifier just knows that the logged transcript matches the weight snapshots from the chip, but doesn’t know whether or not the run was malicious. How can the Verifier test this without looking at the data?To solve this issue, Shavit proposes a neutral trusted cluster that runs a protocol called PoTT (Proof of Training Transcript) [1]. This cluster serves two purposes:Re-running a small part of the training process — The Verifier selects a random, small segment of the training timeline. The trusted cluster re-runs the training process for just that short segment using the provided raw data. The cluster then checks if the resulting hash exactly matches the random weight-snapshot that was secretly logged by the physical chip during the actual run.Automated Compliance Check — Once authenticity is proven, the Verifier uses the same trusted cluster to run a pre-agreed set of evaluation programs. For example, the cluster might run a suite of automated benchmark tests against the final model’s weights to measure its performance or check if it possesses restricted capabilities (like generating malicious code or bioweapon instructions).Thus, the Prover is able to prove that no malicious training was done without actually revealing any real IP to the Verifier.The whole framework can be seen in Figure 1 taken from Shavit’s paper.At the supply chainFor the proposed method to work, there needs to be strict supply chain monitoring so that we can be sure that :All the chips ever manufactured are accounted for (i.e., a chip-owner directory is maintained).All the chips have the hardware and firmware features to be able to truthfully log their snapshots.Supply chain monitoring is a huge task that cannot be undertaken by a single Verifier and would probably require an international consortium of governments.Creating a chip-owner directoryFor a Verifier to actually be sure that a Prover is not doing any illegal training, they need to know exactly how many and what kind of chips the Prover owns. As the chip supply chain is fairly concentrated, Verifiers can create a chip-owner directory which would contain the details about ownership.Trusting secure hardwareVerifiers rely on the fact that the logging mechanism of the chip is robust and cannot be tampered with. Thus, it is the responsibility of chip designers to make sure that :Chips’ burned-in IDs are immutable.A hardware-backed mechanism for only booting signed firmware is intact.The chip is resilient to side-channel attacks.ConclusionCompute monitoring is a difficult problem as it requires major technical advancements in hardware security along with high political alignment between multiple nation-states.Cost is also a main consideration in the application of these methods. Ideally, the cost of infusing the mechanism (designing a new firmware for the said chips) and the cost of verification should be as low as possible, and the cost of breaking or tampering with the chip should be as high as possible.Though the complexity of these methods is high, the absence of such provable monitoring methods may lead to governments resorting to an outright ban on the sale of advanced chips to untrusted actors. This can stall the progress of benevolent use cases as well.Thus, overcoming these technical and economic hurdles is the most viable alternative to draconian export controls, ensuring that global security measures do not inadvertently throttle technological innovation.Thanks for reading! Originally published on my Substack. If you have any questions or just want to connect, drop me a text on X or LinkedIn.References[1] Y. Shavit, “What does it take to catch a Chinchilla? Verifying Rules on Large-Scale Neural Network Training via Compute Monitoring,” arXiv preprint arXiv:2303.11341, 2023. Available: arXiv:2303.11341[2] J. Hoffmann et al., “Training Compute-Optimal Large Language Models,” arXiv preprint arXiv:2203.15556, 2022. Available: arXiv:2203.15556[3] S. Goldwasser, S. Micali, and C. Rackoff, “The Knowledge Complexity of Interactive Proof Systems,” SIAM Journal on Computing, vol. 18, no. 1, pp. 186–208, 1989.[4] P. Woodhead, “A zero knowledge proof for Where’s Wally,” The Startup (Medium), 2018. Available: A zero knowledge proof for Where’s Wally on MediumEnforcing AI Compute Controls on a Global Level was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.