Hardware-enabled guarantees (flexHEG) and guarantee processors

Proposed

flexHEG (flexible hardware-enabled guarantees) is a proposed add-on for AI chips.

An open, auditable guarantee processor would see all data and instructions going to and from the accelerator, and a secure enclosure would reveal or respond to tampering. Like other hardware-enabled governance mechanisms, it would let a verifier check, or the chip enforce, rules about how compute is used. Changing a rule, such as a cap on training compute, could require approval from several parties.

RAND and the Center for a New American Security describe related designs, such as offline licensing. All are designs. The second flexHEG report mentions one unpublished prototype.

The main obstacles are physical security against state attackers, chipmaker cooperation, and international trust in chip design and manufacturing. flexHEG's authors estimate that integrated hardware would displace other accelerators at the frontier 3.7–7.9 years after chipmakers start work. The chip cannot check whether a use is malicious.

Development assessmentMedium confidence

The design is detailed, but nothing has been built or tested in public.

Assessed use: checking and enforcing training-compute limits on chips, against adversaries up to states

Rubric assessment and gaps →

On this page

How it works

RAND defines hardware-enabled governance mechanisms (HEMs) as controls built into AI hardware that enable "enforcement and compliance verification" of policies 5. It analyses two designs 5:

  • Offline licensing lets a GPU run a set amount of work under a renewable license, then refuse or slow further work.
  • The fixed set limits high-bandwidth links to a small pod of pre-authorized chips.

CNAS proposes a hardened security module that enforces valid firmware and up-to-date operating licenses and supports remote attestation. It would be rolled out in stages, from firmware changes to tamper-evident and then tamper-proof hardware 6. An interdisciplinary workshop report by O'Gara et al. discusses HEMs for four uses: verifiable AI training and inference, verifiable cluster configuration, location verification and offline licensing 7.

flexHEG (flexible hardware-enabled guarantees) combines two components 1:

  • Guarantee processor: "an open-source, standardized, general-purpose processor that sits between the AI chip and the rest of the world". It can see all information and instructions going to and from the chip 1.
  • Secure enclosure: it houses the chip and the guarantee processor. If tampering is detected, secrets are wiped 1.

When the guarantee processor sits directly on the data path, the design is called an Interlock. As the only way in, it can monitor or control the flow and encrypt data leaving the enclosure 2. The rules it applies form a ruleset, which anyone from the chip's owner alone up to "a quorum of states" might set 1. Changes could require k-of-n approval, and periodic licenses could force devices to stay current 2.

Part II of the flexHEG series describes a range of implementations 2:

  • Integrated hardware, built into the accelerator by its manufacturer.
  • Retrofits, such as modified firmware or a replacement network interface card acting as the Interlock.
  • TEE-backed software, which Part II judges relatively fast to deploy but probably not secure against sophisticated actors with unrestricted physical access.

Part II proposes two ways to record and check workloads 2:

  • Compute graphs. A developer declares the operations and data transfers that produce each block of data. A static declaration describes the whole workload before it runs. A dynamic declaration records operations as they execute, including data-dependent control flow. The guarantee processor would check those declarations through observed transfers or sampled recomputation 2.
  • Distributed FLOP accounting. Assuming an accurate local FLOP tally, each Interlock records the accelerator sessions that could have influenced its local data. Transfers carry these histories, and receivers keep the highest count per source to avoid counting the same work twice. External inputs still need safeguards against hidden results of earlier computation 2.

Part III contrasts two kinds of agreement. In verification-based agreements, states detect violations and retaliate. In ruleset-based agreements, the devices enforce the rules and no state can rewrite them alone 4.

What it establishes

The flexHEG authors list claims flexHEG could support 1:

  • the total compute used to train a model;
  • whether a model's score on an automated test stayed below, or rose above, an agreed level;
  • deployment only to approved devices;
  • a chip's approximate location;
  • which architectures and training techniques were used.

A guarantee processor could also block any operation that would push a training run past a threshold 1.

It cannot establish:

  • intent or downstream misuse, which is not observable on the chip 1;
  • whether a network is the whole system or one expert in a larger one 1;
  • a true FLOP count if earlier results are hidden in external inputs 2;
  • anything about compute without flexHEG hardware 1 4.

Fully automatic, on-device compliance checking "appears unlikely to be feasible" 1. Part III therefore discusses compromises that combine enforced rules with verification 4.

Threat model

In international use, "the primary attackers ... are the participating states themselves" 4. Devices would need to be open source, auditable and "robust to tampering even from state-level adversaries" 1. CNAS stresses that existing features "need to be hardened" before adversarial use 6.

RAND defines three kinds of threat actor: unsubsidized commercial, state-subsidized commercial, and state. It groups attacks into four classes 5:

  • non-invasive, for example side channels;
  • semi-invasive, such as fault injection;
  • fully invasive, such as focused ion beams and electron microscopy;
  • non-physical, including design theft and cryptographic, firmware, supply-chain and resource-pooling attacks.

The design also assumes a trustworthy supply chain. Part III proposes manufacturing equipment locked to standard designs, independent testing, camera oversight, tamper-evident shipping, and extensive testing and detailed physical imaging of a random sample of finished devices 4.

Search

Full search page