Auditing an algorithm from the outside
A platform's feed, an online price or a screening tool can be checked by people who never built it and cannot see inside it. Researchers, journalists and civil-society groups do this kind of checking.
Their methods differ in what access each one needs. Two reports from the Ada Lovelace Institute and one from the UK's digital regulators describe them.
Who carries out audits
Several UK regulators work together as the Digital Regulation Cooperation Forum (DRCF). In its paper on auditing algorithms, it says an organisation can appoint outside parties to audit its own system. Regulators, researchers and others also carry out audits "on their own initiative".
The DRCF adds, "Most audits led by researchers are undertaken without access to a company's data and algorithms." Those researchers judge a system by what comes out of it.
One word, two meanings
The Ada Lovelace Institute and DataKind UK found that people from different fields use "audit" to mean different things. Their report, Examining the Black Box, picks out two meanings.
A bias audit is "a targeted, non-comprehensive approach focused on assessing algorithmic systems for bias". Regulatory inspection is "a broad approach", checking a system against regulation or norms. Regulators or auditing professionals typically carry it out.
Six methods, and the access each needs
A later Ada Lovelace Institute report, published on 9 December 2021, compares six methods. It was written about online safety, and its authors describe each method like this:
- Code audit. Auditors get the system's code, or a plain-English description of what it does. It helps them understand what the designers intended.
- User survey. Auditors ask users about their experience, in surveys or interviews. It gives a rough picture of problems that could then be looked into further.
- Scraping audit. Auditors collect what a platform shows, usually with code that clicks or scrolls through its pages. It supports descriptive counts, and comparisons between groups or search terms.
- API audit. Auditors request data through a programming interface that the platform itself provides. Collecting data this way is easier to automate than scraping.
- Sock-puppet audit. Auditors run computer programs that act as users, and record what the platform shows them. It suggests what a given kind of user may see.
- Crowd-sourced audit. Real users report what they see as they use the platform, by hand or through a browser extension. The report says it is sometimes called a mystery-shopper audit.
The report notes that these methods "are pioneered by civil-society and academic groups, who routinely face challenges in implementing them".
Watching what comes out
When the auditor has no access to the system, the DRCF describes a "mystery shopping" approach. Auditors create accounts "with specifically curated characteristics" and test them on the live system. The DRCF calls this "an approach often used by researchers and journalists investigating algorithmic bias".
Its UK example comes from a regulator. The Advertising Standards Authority "created digital avatars to understand whether children were being served online ads for gambling".
What an output test can show
The DRCF calls this kind of check an empirical audit. It can show whether a system's outputs have a problem. It "does not generally reveal why those problems exist or how they can be resolved".
The forum sees it as a possible first step. A regulator might follow it with a technical audit, which looks at the data, code and methods inside.
Useful links
- Technical methods for regulatory inspection of algorithmic systems (Ada Lovelace Institute)
- Examining the Black Box (Ada Lovelace Institute and DataKind UK)
- Auditing algorithms: the existing landscape, role of regulators and future outlook (GOV.UK)