Matching Exemplar as Next Sentence Prediction (MeNSP): Zero-Shot Prompt Learning for Automatic Scoring in Science Education

Xuansheng Wu, Xinyu He, Tianming Liu, Ninghao Liu, Xiaoming Zhai

Abstract

Automated scoring of student written responses in science education often requires large, hand-labeled datasets, creating a significant bottleneck for classroom implementation. This paper introduces Matching Exemplar as Next Sentence Prediction (MeNSP), a zero-shot prompt learning framework that leverages the Next Sentence Prediction (NSP) head of pre-trained language models. By reframing grading as a similarity task between student responses and grade-level exemplars, MeNSP achieves human-like scoring agreement without extensive training data. Our results demonstrate Cohen’s Kappa scores up to 0.57, suggesting a viable path for low-stakes automated assessment in data-scarce environments.

1. Introduction

Modern science education emphasizes "knowledge-in-use," requiring students to apply scientific concepts through argumentation and reasoning rather than simple recall. Assessing these competencies typically involves open-ended written responses. While pedagogically superior to multiple-choice questions, these responses are labor-intensive to grade manually.

Natural Language Processing (NLP) has offered solutions through supervised learning, but these models are notoriously "data-hungry." In educational contexts, obtaining thousands of validated, human-scored examples for every new assessment item is often impossible. Recent advances in Large Language Models (LLMs) and prompt learning offer "zero-shot" capabilities, yet applying these to the specific, nuanced language of student science writing remains a challenge. This study presents MeNSP as a solution to bridge the gap between high-performance NLP and the data constraints of educational settings.

2. The MeNSP Framework

The core innovation of MeNSP lies in its departure from standard prompt learning techniques. While many zero-shot approaches use Masked Language Modeling (MLM)—asking a model to fill in a "mask" representing a grade—MeNSP utilizes the Next Sentence Prediction (NSP) head of a pre-trained BERT model.

2.1 Exemplar Matching

MeNSP treats the grading process as a contextual matching task. The model is presented with a "Student Response" followed by an "Exemplar Response" (a high-quality example representing a specific score level). The NSP head calculates the probability that the exemplar logically follows the student response in a natural discourse. This approach effectively measures the semantic and structural alignment between the student's work and the target performance level.

2.2 Bridging the Language Style Gap

A significant finding in this research is the "Language Style Gap." Traditional rubrics are written in formal, teacher-centric language, which differs significantly from the way students actually write. By using actual student-style responses as exemplars rather than abstract rubric descriptions, MeNSP creates a more effective prompt for the language model, leading to higher accuracy.

2.3 The Zero Grade Identifier

One of the most difficult tasks in automated scoring is identifying "zero-point" responses. These are highly diverse, ranging from "I don't know" to completely irrelevant text. To address this, the researchers implemented a pre-filtering step using Cosine Similarity. Student responses are converted into vector embeddings; if the distance between a response and a "perfect" exemplar is too large, the system automatically flags it as a zero, improving the efficiency of the subsequent NSP matching.

3. Experimental Setup

The study evaluated MeNSP using a dataset focused on scientific argumentation regarding the properties of gases.

  • Participants: 931 students (Grades 5–8).
  • Items: Three assessment tasks (G4, G5, G6) of increasing complexity.
  • Data Volume: 2,081 labeled responses scored on a 0–2 scale.

The researchers tested the model in both zero-shot (no training data) and few-shot (1 or 3 examples per grade) configurations.

4. Results and Discussion

MeNSP demonstrated robust performance across different scientific tasks, proving that zero-shot prompt learning can meet the needs of classroom assessment.

4.1 Scoring Accuracy

The model achieved Cohen’s Kappa scores between 0.30 and 0.57. In the field of automated scoring, a Kappa of 0.40 is generally considered the threshold for acceptable agreement with human raters. The F1 scores, ranging from 0.54 to 0.81, further validate the model's ability to classify student responses accurately without traditional fine-tuning.

4.2 Task Complexity and Few-Shot Learning

Performance varied by task. Item G5, the most complex task, saw the highest zero-shot performance (Kappa 0.57). Interestingly, adding more examples (few-shot learning) primarily benefited the simpler tasks (G4), while the performance on complex tasks remained stable. This suggests that for sophisticated scientific reasoning, the underlying logic captured by the NSP head is more critical than the number of examples provided.

4.3 The Diversity Advantage

In few-shot experiments, the researchers found that randomly selected student responses often outperformed carefully "expert-crafted" exemplars. The natural variation and "noise" present in real student writing appear to help the model generalize better to the diverse ways students express scientific ideas.

5. Conclusion and Future Work

MeNSP represents a significant step toward making automated scoring accessible for classroom teachers. By reducing the need for large datasets, it allows for the rapid deployment of assessments for new scientific topics. However, the authors note that the system is currently best suited for low-stakes, formative feedback rather than high-stakes summative testing. Future research will focus on improving the identification of diverse zero-point responses and testing the framework across a broader range of scientific domains.

Summary updated

Abstract

Developing natural language processing (NLP) models to automatically score students’ written responses to science problems is critical for science education. However, collecting sufficient student responses and labeling them for training or fine-tuning NLP models is time and cost-consuming. Recent studies suggest that large-scale pre-trained language models (PLMs) can be adapted to downstream tasks without fine-tuning by using prompts. However, no research has employed such a prompt approach in science education. As students’ written responses are presented with natural language, aligning the scoring procedure as the next sentence prediction task using prompts can skip the costly fine-tuning stage. In this study, we developed a zero-shot approach to automatically score student responses via Matching exemplars as Next Sentence Prediction (MeNSP). This approach employs no training samples. We first apply MeNSP in scoring three assessment tasks of scientific argumentation and found machine-human scoring agreements, Cohen’s Kappa ranges from 0.30 to 0.57, and F1 score ranges from 0.54 to 0.81. To improve scoring performance, we extend our research to the few-shots setting, either randomly selecting labeled student responses at each grading level or manually constructing responses to fine-tune the models. We find that one task’s performance is improved with more samples, Cohen’s Kappa from 0.30 to 0.38, and F1 score from 0.54 to 0.59; for the two other tasks, scoring performance is not improved. We also find that randomly selected few-shots perform better than the human expert-crafted approach. This study suggests that MeNSP can yield referable automatic scoring for student-written responses while significantly reducing the cost of model training. This method can benefit low-stakes classroom assessment practices in science education. Future research should further explore the applicability of the MeNSP in different types of assessment tasks in science education and further improve the model performance. Our code is available at https://github.com/JacksonWuxs/MeNSP.
BibTeX
@inproceedings{wu2023matching,
  author = {Xuansheng Wu and Xinyu He and Tianming Liu and Ninghao Liu and Xiaoming Zhai},
  title = {{Matching Exemplar as Next Sentence Prediction (MeNSP): Zero-Shot Prompt Learning for Automatic Scoring in Science Education}},
  booktitle = {AIED},
  year = {2023},
  url = {https://openreview.net/forum?id=VJpAWFzYcc},
}
Figure