Running the trial of an AI tool

Once a supplier's AI tool is on the shortlist, someone in the organisation is asked to run its trial. That person settles which cases to try, who marks the answers and what counts as a pass.

The UK government published its Guidelines for AI procurement in June 2020, for buyers in the public sector. Other organisations can borrow their approach to testing.

Agreeing the pass mark first

Before the first case runs, the team writes down what a pass looks like. That includes the kinds of mistake that would fail the tool on their own, such as an unsafe answer.

The guidelines list "Defining acceptable model performance" and "Testing the model under a range of conditions" among the practices a buyer can ask suppliers to show.

Cases from your own work

A trial built on the organisation's own recent cases shows how the tool handles the work it would do. The awkward cases belong in the set alongside the everyday ones.

The guidelines say that "Discovery phases or proofs-of-concepts can demonstrate if the AI system is likely to meet your wider requirements".

Who marks the answers

Staff who do the work every day are well placed to judge the answers. The guidelines say AI projects go better with diverse teams, and the first skill on their list is "Domain expertise".

Markers can be given each answer without being told which tool or version produced it. Their marks then rest on the answer alone.

An error log

Each wrong, unsafe or made-up answer goes into a log, with the case that produced it and the marker's note.

The guidelines recommend process logs that gather data across a project's testing and verifying phases, so the work can be audited from end to end.

The Department for Science, Innovation and Technology's Introduction to AI assurance describes measuring as "Gathering qualitative and quantitative data on how an AI system functions, to ensure that it performs as intended."

The same test after each update

The guidelines say "lifespan testing, not a one-time decision, is required". They add that testing the model on an ongoing basis is needed to keep it accurate.

They also ask buyers to agree with the supplier how the model's performance will be monitored once it is in use.

A contract term can carry this, by requiring the same marked cases to be run again after each supplier update, against the same pass mark.

Useful links