Accessibility and Inclusive Language AI › Evaluating Who Benefits and Who is Excluded
Language AI HandbookAll chapters If accessibility is a pipeline property, its evaluation must be stratified across the populations the pipeline serves. A single aggregate score on a benchmark is meaningless for inclusion. What we need is a stratified evaluation that reports performance by subgroup and makes absence visible.
Stratified evaluation asks which groups have evidence about task completion. A group with no observations has no direct estimate. Review the recruitment and application records before attributing the gap to exclusion.
Stratified Task Evaluation
Suppose a language system is deployed for an interactive task, such as question answering or assisted form filling. We can model task completion for a user in a given interaction mode and language with a simple success model, then aggregate across a sample of users and see who is missing.
Consider a success indicator for whether user completes the task in mode (e.g., keyboard, speech, switch access) and language . The estimated completion rate in one stratum is:
where:
- : the estimated task-completion rate for the stratum defined by interaction mode and language
- : the success indicator for user in mode and language , equal to 1 if the task was completed and 0 otherwise
- : the set of sampled users belonging to that stratum
- : the number of sampled users in that stratum, that is, the size of
For a stratum with at least one observation, the estimate is the fraction who completed the task; including users from other strata would blend coverage and performance. The essential discipline is reporting alongside every , and examining the distribution of across strata: a stratum with tiny ("speech input in Swahili") is a coverage gap that the aggregate average hides.
The reason restricting to is essential, rather than merely convenient, is that the whole point of stratification is to answer a stratum-specific question. If you pooled all users into a single average, you would be estimating the completion rate under the mix of modes and languages in the sample. That mix can differ from the target population. Reporting per-stratum estimates keeps the questions separate and makes the skew visible in the sample sizes, where it can be examined and corrected.
The Math of Missing Strata
There is a clean way to formalize who benefits. Let the target population have fraction in stratum . The strata must partition that population for these fractions to sum to one. Interaction methods can overlap in practice. In this simulation assign each trial to one primary test protocol, then cross it with the assigned language. A real study can define a combined protocol for people using switch access and a screen reader together. Let the system achieve completion in that stratum. The population-weighted benefit sums the per-stratum completion rates, each weighted by how large that stratum is in the target population:
Two systems can have the same while distributing benefit very differently. If one system works beautifully for high- groups and fails low- groups, and another is uniformly mediocre, the mean cannot distinguish them. Worse, if the system is deployed only where it works, the observed benefit across users who remain will be high, and the people it failed quietly disappear from usage logs. This is a form of survivorship bias that silently replicates exclusion.
System A has group rates 0.95, 0.60, and 0.20. With group weights , , and , its weighted rate is . System B also has a weighted rate of 0.75, because its completion rate is 0.75 in every group. The identical weighted rates conceal the 0.20 rate for the third group in System A.
This is why absence data matters. If a stratum has zero sampled users, the study does not directly estimate , and the term in the sum becomes unmeasured; you must treat the missingness as a finding ("we have no evidence for speech input in this language"), not as a neutral fact. This echoes the argument in Evaluation Governance that benchmark release decisions should be documented and auditable.
If use falls disproportionately in a group that had low completion, the pooled rate among remaining users can rise even with no change in any group rate. Report the original group definitions and identify groups with no observations. Separate a group excluded by recruitment from a group that had access and chose to stop using the product when you have evidence that distinguishes them.
Uncertainty and Small Samples
For independent Bernoulli trials with one success probability within a stratum, let be successes divided by trials. The Wilson score interval inverts a normal score test. Unlike the plug-in normal interval, it has positive width at observed proportions zero and one. Its two endpoints are
where:
- : the observed success proportion in the stratum
- : the number of trials (sampled users) in the stratum
- : the critical value for the desired confidence level (for example, for 95% confidence)
- the minus sign gives the lower endpoint, and the plus sign gives the upper endpoint
Reporting these intervals alongside stratified means prevents over-interpreting a stratum with few users, such as one with 6 users. When an interval is wide, report what the measured data leave uncertain about the group. Individual Wilson intervals target a nominal coverage level under independent binomial trials and do not provide joint coverage for all strata.
Compare both widths as the sample size increases with zero observed successes. This fixes the observed rate and changes only the amount of data.
PythonIn [5]Expand
from math import sqrt
import matplotlib.pyplot as plt
import numpy as np
def wilson_bounds(p_hat, n, z=1.96):
if n == 0:
return (np.nan, np.nan)
denom = 1 + z**2 / n
center = (p_hat + z**2 / (2 * n)) / denom
half = z * sqrt(p_hat * (1 - p_hat) / n + z**2 / (4 * n**2)) / denom
return (max(0.0, center - half), min(1.0, center + half))
def normal_bounds(p_hat, n, z=1.96):
if n == 0:
return (np.nan, np.nan)
se = sqrt(p_hat * (1 - p_hat) / n)
return (max(0.0, p_hat - z * se), min(1.0, p_hat + z * se))
ci_n_sweep = np.arange(2, 61)
ci_zero_wilson_width = [
wilson_bounds(0.0, n)[1] - wilson_bounds(0.0, n)[0] for n in ci_n_sweep
]
ci_zero_normal_width = [
normal_bounds(0.0, n)[1] - normal_bounds(0.0, n)[0] for n in ci_n_sweep
]
ci_small_n = 6VisualizationOut [6]Expand

The plug-in Wald interval has zero width at an observed success proportion of zero, even when the sample is small. The plot holds that observed proportion fixed and shows why the score interval represents more uncertainty at this boundary.
When all six independent binomial trials fail, the Wald interval collapses to zero width. Under a true success probability of 0.20, the chance of six failures is . At an observed proportion of zero, the Wilson interval with has upper endpoint . Neither interval is defined by this formula when .
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!