TL;DR
The paper introduces the Gumbel Machine, a novel framework for generating personalized "counterfactual" versions of student writing that improve specific rubric criteria while preserving the student's original style and structure. By leveraging a controlled decoding algorithm called $\beta$-Hindsight control, it treats latent generative randomness as a tunable knob, successfully decoupling similarity control from rubric alignment to outperform standard prompting baselines.
What Problem Does This Paper Address?
Providing actionable feedback on open-ended student writing is highly labor-intensive. While showing students an "ideal" model essay can help, these examples often differ drastically from a student's own writing style, making them difficult to emulate. An ideal solution is a counterfactual rewrite—a personalized version of the student's own work that changes just enough to move up a rubric tier.
However, automated text rewriting methods struggle to balance two opposing goals: strictly adhering to a grading rubric (validity) while keeping the text as close to the original as possible (similarity). Furthermore, educational rubrics are typically ordinal (e.g., scores from 1 to 4), whereas most existing counterfactual text generation research focuses on binary or nominal labels (e.g., changing sentiment from negative to positive).
Methods
The Gumbel Machine addresses this challenge by splitting the problem into two distinct components:
- $\beta$-Hindsight Similarity Control: This is an inference-time controlled decoding mechanism based on the Gumbel-Max trick. In Stage 1 (Recovery), the framework takes the original student text and infers the latent random noise (Gumbel noise) that would cause a base LLM to generate that exact sequence of tokens. In Stage 2 (Replay), the prompt is modified to request a higher rubric score, and the inferred noise is replayed during decoding. A hyperparameter ($\beta$) scales the noise to tune how strongly the model prioritizes similarity over the new target score.
- Instruction Alignment for Task Validity: To ensure the model actually improves the text according to the rubric, the authors apply Supervised Fine-Tuning (SFT) on student writing data, followed by Direct Preference Optimization (DPO) using pairs of student essays that achieved different rubric scores.
Datasets
The authors evaluated their approach on two real-world educational datasets:
- CLASSE (Common Lit Augmented Student Summary Evaluation): A corpus of 4,689 student-authored summaries of short reading passages (grades 3-12), expertly graded on 5 ordinal criteria: Main Idea, Details, Organization, Wording, and Language.
- DREsS (Dataset for Rubric-based Essay Scoring on EFL Writing): A dataset containing 2,279 essays written by university undergraduate English as a Foreign Language (EFL) students, scored across 3 criteria: Content, Language, and Organization.
Key Insights and Ideas
- Randomness as a Control Knob: Instead of forcing similarity through prompt engineering or hard token-replacement constraints, the Gumbel Machine treats the latent randomness of the generation process as a continuous control signal. Replaying the exact stochastic state preserves stylistic nuances that prompts alone cannot capture.
- The SFT-DPO-Gumbel Triad: Ablation studies revealed a tight interplay between components. $\beta$-Hindsight control alone yields high similarity but poor rubric adherence. Adding SFT adapts the model to the unique, often imperfect style of student writing, which amplifies the noise's control influence. Finally, DPO is critical to give the model the contrastive understanding needed to actually shift between rubric scores.
- Pedagogical Value of Similarity: Human evaluations by actual English teachers confirmed that when a counterfactual rewrite successfully maintains high similarity to the student's original work, teachers find it significantly more useful as a pedagogical tool compared to heavily rewritten text.
Key Results
- Automated Metrics: On the CLASSE dataset, the Gumbel Machine achieved a validity score of 0.668 (measured via Quadratic Weighted Kappa) while maintaining a character-level similarity of 0.391, vastly outperforming baselines like Minimal-Edit and In-Context Learning.
- Cross-LLM Generalization: Open-weight models (Llama-3.1-8B and Qwen3-4B) equipped with the Gumbel Machine outperformed or matched much larger proprietary models like Claude 3.5 Sonnet on validity and similarity metrics.
- Human Evaluation: In trials with four experienced US English teachers, the Gumbel Machine's rewrites won 62% of contested cases for similarity against a Minimal-Edit baseline. Crucially, when teachers judged the GM rewrite as more similar, they preferred it for educational utility in 75% of cases.
Limitations and Future Work
- SCM Approximation: The approach assumes that student writing can be modeled by an autoregressive Gumbel-Max Structural Causal Model (SCM). In reality, human writing involves non-local edits, planning, and holistic revisions.
- Scaling to Multi-Criterion Feedback: The current implementation trains separate alignment adapters for each individual rubric criterion (e.g., one for Organization, one for Language). Scaling this to handle multi-criterion feedback simultaneously remains an open challenge.
- Surface-Level Similarity: Automated similarity relies on character-level Levenshtein distance, which is sensitive to surface edits and blind to deeper semantic changes.
- Direct Student Testing: The system has only been evaluated by teachers and automated judges; future work is needed to measure its actual impact on student learning outcomes in real classroom settings.
Summary updated