SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2002.00276 · 2020

Variational Item Response Theory: Fast, Accurate, and Expressive

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2002.00276.json · badge: /api/ran/2002.00276.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mhw32/variational-item-response-theory-public community (classifier label)
classifier basis not recorded on the link
4 ran · 4 no recorded run
FunctionStatusWhere it lives
artificially_mask_dataset Ran
ran on a synthesized input
mhw32/variational-item-response-theory-public/src/datasets.py
code served (permissive licence) · get_code("f831ca6269735c91")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned MockDataset. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import copy
import numpy as np

class MockDataset:
    def __init__(self, response, mask):
        self.response = response
        self.mask = mask
        self.missing_labels = None
        self.missing_indices = None

# Create a small 2D dataset
response_2d = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0]
], dtype=np.float32)

mask_2d = np.array([
    [1, 1, 0],
    [1, 1, 0]
], dtype=np.int32)

old_dataset = MockDataset(response_2d, mask_2d)

ARGS = {
    "old_dataset": old_dataset,
    "perc": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockDataset — a MockDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDataset output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bernoulli_log_pdf Ran
ran on a synthesized input
mhw32/variational-item-response-theory-public/src/utils.py
code served (permissive licence) · get_code("4b64618b391ffc2f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function
# x: ground truth binary input (batch_size=2, features=4)
x = torch.bernoulli(torch.tensor([[0.3, 0.7, 0.5, 0.2],
                                   [0.6, 0.4, 0.8, 0.1]]))

# probs: Bernoulli distribution parameters (same shape as x)
probs = torch.tensor([[0.4, 0.6, 0.5, 0.3],
                      [0.7, 0.5, 0.9, 0.2]])

ARGS = {
    'x': x,
    'probs': probs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_bernoulli_log_pdf Ran
ran on a synthesized input
mhw32/variational-item-response-theory-public/src/utils.py
code served (permissive licence) · get_code("a3be65efed66ac82")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function
# x should be binary values (0 or 1) for Bernoulli distribution
x = torch.tensor([[1.0, 0.0, 1.0, 1.0],
                   [0.0, 1.0, 0.0, 1.0]])  # shape: (2, 4)

# mask should be binary values indicating which elements to keep
mask = torch.tensor([[1.0, 1.0, 0.0, 1.0],
                     [1.0, 0.0, 1.0, 1.0]])  # shape: (2, 4)

# probs should be probabilities for the Bernoulli distribution (values between 0 and 1)
probs = torch.tensor([[0.3, 0.7, 0.5, 0.2],
                      [0.6, 0.4, 0.8, 0.1]])  # shape: (2, 4)

ARGS = {
    "x": x,
    "mask": mask,
    "probs": probs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_gaussian_log_pdf Ran
ran on a synthesized input
mhw32/variational-item-response-theory-public/src/utils.py
code served (permissive licence) · get_code("d60cbec4da59c869")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create tiny tensors with distinct dimensions
batch_size = 2
dim = 4

# x: input tensor (batch_size, dim)
x = torch.randn(batch_size, dim)

# mask: binary mask (batch_size, dim)
mask = torch.randint(0, 2, (batch_size, dim))

# mu: mean (batch_size, dim)
mu = torch.randn(batch_size, dim)

# logvar: log variance (batch_size, dim)
logvar = torch.randn(batch_size, dim)

ARGS = {
    "x": x,
    "mask": mask,
    "mu": mu,
    "logvar": logvar,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
irt_model_1pl Not yet run
unverified (harvested, no recorded run)
mhw32/variational-item-response-theory-public/src/pyro_core/models.py
code served (permissive licence) · get_code("1621e43a1615fa8c")
How it ran

no invocation recorded.

irt_model_2pl Not yet run
unverified (harvested, no recorded run)
mhw32/variational-item-response-theory-public/src/pyro_core/models.py
code served (permissive licence) · get_code("3bcb9998694c54d2")
How it ran

no invocation recorded.

irt_model_3pl Not yet run
unverified (harvested, no recorded run)
mhw32/variational-item-response-theory-public/src/pyro_core/models.py
code served (permissive licence) · get_code("e411b7d66330b8e6")
How it ran

no invocation recorded.

sample_posterior_predictive Not yet run
unverified (harvested, no recorded run)
mhw32/variational-item-response-theory-public/src/pyro_core/hmc.py
code served (permissive licence) · get_code("65a0676bbacf26f9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Item Response Theory (IRT) is a ubiquitous model for understanding humans based on their responses to questions, used in fields as diverse as education, medicine and psychology. Large modern datasets offer opportunities to capture more nuances in human behavior, potentially improving test scoring and better informing public policy. Yet larger datasets pose a difficult speed / accuracy challenge to contemporary algorithms for fitting IRT models. We introduce a variational Bayesian inference algorithm for IRT, and show that it is fast and scaleable without sacrificing accuracy. Using this inference approach we then extend classic IRT with expressive Bayesian models of responses. Applying this method to five large-scale item response datasets from cognitive science and education yields higher log likelihoods and improvements in imputing missing data. The algorithm implementation is open-source, and easily usable.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2002.00276")
get_code_for_paper("2002.00276")
have("2002.00276")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2002.00276.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2002.00276.svg)](https://syntology.ai/paper/2002.00276)

Connect an agent — have() is free.