Variational Inference for the Partial Credit Model

Paolo Frazzetto, Nicolò Navarin, Alessandro SperdutiITADATA 2025

Introduction

In psychometrics and educational measurement, Item Response Theory (IRT) serves as the backbone for estimating unobserved latent traits—such as mathematical proficiency, cognitive ability, or personality dimensions—from observed questionnaire responses. While binary IRT models (like the Rasch model) are common, many assessments utilize ordered categorical data, such as Likert scales or partial credit scoring on complex tasks.

The Partial Credit Model (PCM) is the standard framework for analyzing such polytomous data. However, as digital assessments and Massive Open Online Courses (MOOCs) generate datasets with millions of respondents, traditional estimation methods like Markov Chain Monte Carlo (MCMC) or Expectation-Maximization (EM) algorithms become computationally prohibitive. This paper introduces VA-PCM, a scalable framework that leverages Variational Autoencoders (VAEs) to perform high-speed, data-rich psychometric analysis.

The Partial Credit Model

The PCM extends binary IRT by modeling the probability of a respondent choosing a specific category $k$ for an item $i$, given their latent ability $z$. Unlike nominal models, the PCM assumes that categories are ordered. This requires "threshold" parameters—the points on the ability scale where one category becomes more likely than the previous one.

Probability of response categories in a Partial Credit Model as a function of the latent trait (Z).

As illustrated in the probability curves above, the likelihood of selecting a specific response (e.g., "Strongly Disagree" to "Strongly Agree") shifts along the latent trait axis. A key challenge in estimating these models is ensuring that these thresholds remain ordered during the optimization process, a requirement often ignored by standard machine learning approaches to IRT.

Methods: The VA-PCM Framework

The authors propose a Variational Autoencoder for the Partial Credit Model (VA-PCM). This approach integrates deep learning with psychometric theory through several key innovations:

Psychometrically-Informed Priors

To ensure ordered item thresholds, the authors employ a novel "stick-breaking" construction. Instead of directly optimizing threshold values, they use a Dirichlet prior to model the proportions of the ability scale assigned to each category. These proportions are then transformed into ordered thresholds, guaranteeing a theoretically sound model by construction.

Covariate Integration and Amortized Inference

Modern datasets often include auxiliary information about respondents, such as age, education level, or socioeconomic status. VA-PCM treats these respondent features ($X$) as being partially determined by the latent ability ($Z$).

Plate notation of the VA-PCM generative model, showing the relationships between latent trait (Z), item responses (R), and respondent covariates (X).

The model architecture, shown in the plate notation above, uses an "encoder" network to map both test responses ($R$) and covariates ($X$) to the posterior distribution of the latent trait. The "decoder" then attempts to reconstruct both the responses and the covariates. This "amortized inference" allows the model to estimate the abilities of new individuals instantly without needing to be retrained.

Experimental Results

The framework was implemented using PyTorch and the Pyro probabilistic programming language. For a preliminary proof-of-concept, the authors tested the model on a synthetic dataset of 1,000 respondents and 10 items with 5 categories each.

  • Item Parameter Recovery: The model demonstrated strong performance in identifying item characteristics, achieving a 0.75 correlation between estimated and true thresholds ($R^2 = 0.498$).
  • Ability Estimation: Individual ability recovery was more modest, with a correlation of 0.344. The authors attribute this to the short test length (10 items), which provides limited evidence for the encoder to accurately map a respondent's position on the latent scale.
  • Feasibility: The primary success of this work is the derivation and implementation of the complex Evidence Lower Bound (ELBO) required for a covariate-aware PCM, proving that deep generative models can respect the nuances of polytomous IRT.

Conclusion and Future Work

VA-PCM provides a scalable path forward for psychometricians working with large-scale digital data. By "baking" psychometric constraints into the neural network architecture, the authors bridge the gap between rigorous measurement theory and modern machine learning.

Future research will focus on validating the model with larger real-world datasets, such as PISA or TIMSS, where the increased number of items per respondent should significantly improve ability estimation. Additionally, the authors suggest extending the framework to handle multi-dimensional latent traits and exploring more flexible posterior approximations like Normalizing Flows.

Summary updated

BibTeX
@inproceedings{frazzetto2025variational,
  author = {Paolo Frazzetto and Nicolò Navarin and Alessandro Sperduti},
  title = {{Variational Inference for the Partial Credit Model}},
  booktitle = {ITADATA},
  year = {2025},
}
Figure