Constrained C-Test Generation via Mixed-Integer Programming

Ji-Ung Lee, Marc E. Pfetsch, Iryna GurevycharXiv 2024 · DOI

Introduction

In language assessment, the C-Test is a widely used integrative test format. Unlike standard cloze tests that remove entire words, a C-Test removes the second half of every second word (e.g., "The ca_ sat o_ the ben__"). While effective, traditional C-Test generation relies on a rigid "rule of two" that offers no control over difficulty or content. This paper introduces a novel approach using Mixed-Integer Programming (MIP) to generate C-Tests that meet specific difficulty targets and structural constraints.

The C-Test Generation Challenge

Generating a C-Test is a complex combinatorial problem. For a typical 40-word text, choosing 20 gaps results in over 137 billion possible configurations. Traditional methods are static, meaning the difficulty is tied solely to the source text. Previous automated attempts relied on "greedy" algorithms that often missed the global optimum, failing to provide teachers with the flexibility needed for different learner levels.

Overview of the C-Test generation process. The MIP approach optimizes gap placement and size to meet specific difficulty targets, outperforming heuristic baselines and LLMs like GPT-4.

Methodology: Global Optimization via MIP

The researchers frame C-Test generation as a global optimization problem. The primary objective is to minimize the absolute difference between a target difficulty ($\tau$) and the estimated difficulty ($\hat{ au}$) of the generated test.

1. The MIP Formulation

The model utilizes binary decision variables to determine whether a word is gapped and the specific size of that gap. Hard constraints are baked into the mathematical formulation to ensure the test follows linguistic rules (e.g., exactly $m$ gaps must be chosen). By utilizing "indicator constraints," the authors reduced the average generation time from 48 seconds to just 3.1 seconds, making the tool viable for real-time classroom use.

2. Predicting Difficulty

To estimate $\hat{ au}$, the authors trained a regression model using 61 linguistic features, including word frequency, length, and BERT-based prediction probabilities.

Performance of various regression models in predicting gap-level error rates. XGBoost significantly outperforms both traditional and transformer-based models like BERT and DeBERTa.

As shown in the evaluation, XGBoost emerged as the superior model for predicting how likely a learner is to fail a specific gap, outperforming even large-scale transformers like DeBERTa-v3. This predictive power is crucial for the MIP objective function to accurately target difficulty levels.

Key Insights and Results

  • LLMs vs. Hard Constraints: GPT-4 struggled significantly with the structural rules of C-Tests. Despite specific prompting, it frequently deleted entire words (e.g., "on" becoming "__"), violating the core definition of the test format.
  • Inverted Difficulty: Surprisingly, GPT-4 exhibited an "inverted" understanding of difficulty. In user studies, tests that GPT-4 was prompted to make "easy" ($\tau=0.1$) were actually rated as harder by human participants than those it intended to be "difficult."
  • Mathematical Superiority: The MIP approach consistently achieved observed difficulties much closer to the targets than the baselines. It also correlated best with learners' subjective experiences of difficulty.

Conclusion and Future Work

By treating C-Test generation as a mathematical optimization problem rather than a simple text-generation task, this research provides a robust framework for automated language assessment. While the current model is highly effective for English, future work will explore preventing "clustered" gaps—which can deprive learners of necessary context—and adapting the system for morphologically rich languages like German or Finnish.

Reference: Lee, J.-U., Pfetsch, M. E., & Gurevych, I. (2024). Constrained C-Test Generation via Mixed-Integer Programming. arXiv:2404.08821v1 [cs.CL].

Summary updated

BibTeX
@misc{lee2024constrained,
  author = {Ji-Ung Lee and Marc E. Pfetsch and Iryna Gurevych},
  title = {{Constrained C-Test Generation via Mixed-Integer Programming}},
  year = {2024},
  eprint = {2404.08821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.08821},
}
Figure