atlas

Research map / Large language models / Language, safety and interpretability

Automated Assessment of Student Self-Explanation in Code Comprehension Using Pre-Trained Language Models

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Data and evaluation methodology · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Fine-tunes BERT, RoBERTa, DistilBERT, CodeBERT and SciBERT as regression models to score students' line-by-line self-explanations of Java code against expert explanations, comparing to TF-IDF, BERTScore and USE baselines.

Problem

Automatically assessing students' free-text self-explanations of source code during code comprehension tasks, where explanations mix natural language with code references and existing work relies on semantic similarity or traditional ML features.

Approach

Applies fine-tuned transformer encoders with a regression head to predict semantic similarity between student and expert line-level explanations, and compares three aggregation schemes (max-of-max, max-of-avg, avg-of-max) for combining multi-sentence pairs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune pre-trained transformer models rather than use the semantic-similarity baselinesStudent code explanation assessment · Code explanation assessmentPearson and Spearman correlationHelped
Use SciBERT rather than CodeBERTStudent code explanation assessment · Max of Max and Avg of MaxPearson correlation: 0.733 vs 0.656; 0.784 vs 0.734Helped
Use CodeBERT rather than SciBERTStudent code explanation assessment · Max of AvgPearson and Spearman correlation: 0.739 vs 0.736; 0.739 vs 0.686Helped
Use Avg of Max aggregation rather than Max of Max or Max of AvgFine-tuned transformer models · Code explanation assessmentPearson and Spearman correlationHelped

Surprising findings

Limitations

Experimental setup

Datasets: SelfCode 2.0

Benchmarks: SelfCode 2.0

Metrics: Pearson correlation Spearman correlation

Baselines: TF-IDF BERTScore Universal Sentence Encoder

Builds on: BERT RoBERTa DistilBERT CodeBERT SciBERT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy