Skip to content

Human judgment, preference, and annotation measurement · Human judgment, annotation, and latent measurement · HME006 · Model

GLAD annotator expertise and item difficulty model

Jointly model latent binary labels, annotator expertise, and item difficulty so that disagreement on difficult items is treated differently from errors on easy items.

Runs in CodeSplash Complete calculation CodeSplash's run and the reference's record

In CodeSplash

A CodeSplash method runs this entry in Python and R. Set it up from the method's page.

Do it in CodeSplash Run it on your own data, in Python or R.

Availability
Runs in CodeSplash
Code example
Complete calculation
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
Verified in Python and R through agreement.dawid_skene. The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review, on this exact code. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Jointly model latent binary labels, annotator expertise, and item difficulty so that disagreement on difficult items is treated differently from errors on easy items.

Question / hypotheses

Can annotator ability and item difficulty explain observed binary correctness patterns without observing every true label? The parameters depend on a model and identifying/prior assumptions.

Architecture / computational structure

A latent binary truth combines with a worker expertise scalar and positive item inverse-difficulty to determine correctness probability. EM computes label posteriors; an inner optimizer updates expertise and difficulty with optional priors.

Assumptions

The basic displayed model is binary. Conditional on truth and parameters, worker judgments are independent. Expertise is stable across items apart from a shared difficulty effect. Multiplicative expertise/difficulty scaling and truth/ability sign ambiguity need constraints, priors, or gold information.

Formula / computational definition

P(yij=zi∣aj,bi)=σ(ajbi),bi=edi>0.P(y_{ij}=z_i\mid a_j,b_i)=\sigma(a_jb_i),\qquad b_i=e^{d_i}>0.

Parameters and notation

Estimated: worker expertise a_j, item log inverse-difficulty d_i, and latent truth posteriors. Negative a_j describes systematically reversed judgments within the model. Choices: class prior, ability/difficulty priors, initialization, optimizer and EM limits, anchors, and assignment design. Large b_i means an easier item at positive expertise.

Fitting, fine-tuning, and adaptation

Fit several initializations and inspect parameter stability. Use anchors and overlapping assignments when introducing workers or domains. Domain adaptation can require worker-by-topic effects because expertise may not transfer across languages or subjects.

How to use and calibrate

Compare with majority vote and a confusion-matrix model on held-out adjudicated items. Plot fitted correctness by inferred difficulty and worker. Keep the uncertainty in difficulty estimates visible, especially with few labels per item.

Example application

Analyze binary annotations where some images are intrinsically ambiguous and workers vary substantially in experience.

Interpretation / pitfalls

Watch out

An estimated negative expertise value is a statistical pattern, not evidence of malicious intent. Difficulty is model-relative. Strong shared misconceptions or multiclass asymmetric confusions are poorly represented by the simple binary mechanism.

Python and R code examples

Scope: Exact correctness probabilities for supplied expertise and inverse-difficulty; no EM fit. Python NumPy; R base.

Validation: Python executed successfully; native R reviewed but not executed.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Complete calculation — Exact correctness probabilities for supplied expertise and inverse-difficulty; no EM fit. Python NumPy; R base. · needs numpy

import numpy as np
a=np.array([2.,.4,-1.]); b=np.array([.3,2.]); p=1/(1+np.exp(-a[:,None]*b[None,:]))
assert p[0,1]>p[0,0] and p[2,1]<p[2,0]
print(p)
R

Complete calculation — Exact correctness probabilities for supplied expertise and inverse-difficulty; no EM fit. Python NumPy; R base.

a <- c(2,.4,-1); b <- c(.3,2); p <- plogis(outer(a,b))
stopifnot(p[1,2]>p[1,1],p[3,2]<p[3,1]); print(p)

Sources

From the CodeSplash reference, entry HME006.