Varfa: A variational factor analysis framework for efficient bayesian learning analytics

Zichao Wang, Yi Gu, Andrew Lan, Richard Baraniuk

Abstract

We propose VarFA, a variational inference factor analysis framework that extends existing factor analysis models for educational data mining to efficiently output uncertainty estimation in the model's estimated factors. Such uncertainty information is useful, for example, for an adaptive testing scenario, where additional tests can be administered if the model is not quite certain about a students' skill level estimation. Traditional Bayesian inference methods that produce such uncertainty information are computationally expensive and do not scale to large data sets. VarFA utilizes variational inference which makes it possible to efficiently perform Bayesian inference even on very large data sets. We use the sparse factor analysis model as a case study and demonstrate the efficacy of VarFA on both synthetic and real data sets. VarFA is also very general and can be applied to a wide array of factor analysis models.

Introduction

In educational data mining, "student modeling" involves estimating a student's mastery across various skills based on their assessment performance. This is frequently achieved using Factor Analysis (FA) models. However, most standard FA models provide only a single point estimate of a student's skill level. Understanding the uncertainty associated with these estimates is highly valuable; for instance, in computerized adaptive testing, a model could dynamically serve more questions in areas where its confidence is low.

The primary challenge is that traditional Bayesian inference methods for calculating uncertainty, such as Markov Chain Monte Carlo, are computationally expensive and fail to scale to large, real-world educational datasets. VarFA addresses this by providing a scalable, fast framework for computing Bayesian uncertainties using variational inference.

Methodology

VarFA overcomes the computational bottlenecks of traditional Bayesian inference by employing Variational Inference (VI). Since calculating the exact posterior distribution of a student's skill is intractable on large datasets, VarFA approximates it using a flexible, parametric "variational distribution."

Key components of the framework include:

  • Hybrid Inference: VarFA performs VI on student skill factors to obtain credible intervals and uncertainty metrics, while utilizing standard Maximum Likelihood Estimation (MLE) for question-related factors.
  • Optimization: Student skill factors are modeled using a Gaussian distribution with a diagonal covariance matrix. The parameters are learned by optimizing the Evidence Lower Bound (ELBO).
  • Flexibility: The parametric nature of the variational distribution allows for the integration of complex functions, such as deep neural networks, to map student answer records to distribution parameters. This bridges the gap between interpretable FA models and scalable deep learning.

The authors implemented VarFA using the Sparse Factor Analysis (SPARFA) model as a case study.

Experimental Setup

The framework was evaluated on three large-scale, standard educational datasets: ASSISTments 2009-2010, Algebra I 2006-2007, and Bridge to Algebra 2006-2007. These datasets are benchmarks in the educational data mining community.

Results and Discussion

Experimental results indicate that VarFA provides intuitive uncertainty estimates. As shown in the violin plots below, the model's uncertainty directly correlates with the volume of data available per student. Students who answer more questions exhibit significantly narrower credible intervals (higher certainty) than those with fewer responses.

Violin plots of student skill distributions for different latent concepts. The width of the distributions (uncertainty) decreases as the number of questions answered (top axis) increases.

Furthermore, the latent skills discovered by the model remain human-interpretable, clustering naturally into concepts like "Volume" or "Fractions."

Quantitatively, VarFA maintains or exceeds the predictive accuracy of point-estimate models like SPARFA-M across all datasets. For example, on the Algebra dataset, VarFA achieved an AUC of 0.8245 compared to SPARFA-M's 0.8137. As shown in the table below for the Bridge to Algebra dataset, VarFA similarly outperformed the baseline in AUC while maintaining a highly competitive runtime.

Performance comparison between SPARFA-M and VarFA on the Bridge to Algebra dataset, highlighting competitive accuracy and runtime.

On the ASSISTments dataset, VarFA's runtime was approximately 6.9 seconds compared to 5.3 seconds for SPARFA-M. This demonstrates that VarFA scales efficiently to large datasets where traditional Bayesian FA models typically fail due to computational constraints.

Conclusion

VarFA introduces a scalable approach to Bayesian student modeling, providing critical uncertainty metrics with minimal computational overhead. While current work focuses on Bayesian inference for student skill factors, future research aims to extend this to all model factors. The framework's ability to provide real-time uncertainty estimation makes it a prime candidate for integration into next-generation adaptive testing and learning systems.

Summary updated

BibTeX
@inproceedings{wang2020varfa,
  author = {Zichao Wang and YI GU and Andrew Lan and Richard Baraniuk},
  title = {{Varfa: A variational factor analysis framework for efficient bayesian learning analytics}},
  booktitle = {Proceedings of The 13th International Conference on Educational Data Mining (EDM )},
  year = {2020},
  url = {https://openreview.net/forum?id=ysKMcCWiwj},
}
Figure