Prob2Vec: Mathematical Semantic Embedding for Problem Retrieval in Adaptive Tutoring

Du Su, Ali Yekkehkhany, Yi Lu, Wenmiao Lu

TL;DR

Prob2Vec is a hierarchical embedding framework designed to retrieve mathematically similar problems for adaptive tutoring systems. By shifting the focus from surface-level wording to underlying mathematical concepts, it achieves 96.88% accuracy in similarity detection—significantly outperforming state-of-the-art sentence embedding methods.

What Problem Does This Paper Address?

In adaptive tutoring, the goal is to recommend the "right" next problem based on a student's performance. To do this, a system must understand which problems are mathematically similar. However, standard Natural Language Processing (NLP) tools struggle with STEM content.

Two problems might share almost no vocabulary but be conceptually identical (e.g., a probability problem about "drawing cards" vs. "picking colored marbles"). Conversely, two problems might use the same keywords but require entirely different logic. This "lexical vs. conceptual" gap makes traditional word or sentence embeddings (like Word2Vec or GloVe) perform poorly. Furthermore, mathematical concepts are often "hidden" footprints in the text rather than explicitly stated keywords, making automated labeling a challenge.

Methods

The authors propose Prob2Vec, a hierarchical approach consisting of two main steps:

  1. Abstraction Step: The problem text is projected into a "concept space." The authors primarily use a rule-based extractor (developed by experts using regular expressions) to map problems to a set of $N$ predefined mathematical concepts. They also experiment with a Neural Network (NN)-based extractor.
  2. Embedding Step: Once problems are represented as sets of concepts, the authors apply a technique inspired by Skip-gram. A neural network is trained to predict which concepts co-occur within the same problem. The weights of the hidden layer become the "concept embeddings." A final problem embedding is calculated as a weighted average of these concept vectors, scaled by concept frequency to ensure rare, highly informative concepts carry more weight.

To improve the NN-based concept extractor, the authors introduce Negative Pre-training. Because most concepts appear in only a tiny fraction of the dataset (extreme class imbalance), they first train the network on a "pure" set of negative samples to learn the general structure of non-relevant text before fine-tuning on a balanced set.

Datasets

  • Core Dataset: 635 problems from an undergraduate probability course at the University of Illinois at Urbana-Champaign.
  • Concept Dictionary: 96 distinct mathematical concepts (e.g., "Bayes-formula," "Poisson-process").
  • Evaluation Benchmark: A "ground truth" set of 64 problem triplets $(A, B, C)$ manually curated by Teaching Assistants, where the task is to determine if $A$ is more similar to $B$ or $C$.

Key Insights and Ideas

  • Concepts over Keywords: The core "identity" of a math problem is defined by its conceptual particles, not its wording. Prob2Vec succeeds because it treats concepts as the fundamental units of meaning.
  • Handling the "Needle in a Haystack": The "Negative Pre-training" strategy is a clever workaround for imbalanced data. By letting the model "warm start" on negative samples, it avoids the common pitfall where a classifier simply predicts "negative" for everything to achieve high nominal accuracy.
  • Fine-Grained Discrimination: Prob2Vec proved capable of distinguishing very subtle differences between problems that even human students might miss, effectively capturing the "continuity" between related mathematical ideas.

Key Results

  • Similarity Accuracy: Prob2Vec achieved 96.88% accuracy on the human-validated triplet test.
  • Comparison to Baselines: Standard state-of-the-art sentence embedding methods (like the SIF model by Arora et al.) only reached 75%, while raw GloVe-based averages hovered between 56% and 65%.
  • Extractor Performance: The Negative Pre-training method reduced False Negative and False Positive ratios by 43% to 76% compared to standard down-sampling techniques.
  • Real-World Impact: The system was successfully deployed in a probability course for four semesters, showing particular benefits for minority students who may lack traditional peer support networks.

Limitations and Future Work

The primary limitation is the reliance on human expertise for the initial abstraction step. The rule-based extractor requires professors and TAs to manually write "footprint" rules for every concept. While the NN-based extractor shows promise, it still struggles to match the precision of expert-written rules.

Future work aims to integrate these embeddings into graphical models to more precisely map a student's specific strengths and weaknesses across the concept space. The authors also suggest exploring "state-dependent" similarity, where the perceived similarity of two problems might change based on what a student has already learned.

Summary updated

BibTeX
@inproceedings{su2020prob,
  author = {Du Su and Ali Yekkehkhany and Yi Lu and Wenmiao Lu},
  title = {{Prob2Vec: Mathematical Semantic Embedding for Problem Retrieval in Adaptive Tutoring}},
  booktitle = {ACC},
  year = {2020},
  doi = {10.23919/acc45564.2020.9147767},
}
Figure