$ cat clickbait-spoiling/README.md
Sep 2025 – Dec 2025 · CIS 511 Natural Language Processing, University of Michigan-Dearborn · Dearborn, MI

Clickbait spoiling: typing and generation

Given a clickbait headline and its linked article, say what kind of spoiler the headline withholds and then generate it. I split the task into a classifier (RoBERTa-base, 71% accuracy) and a generator (FLAN-T5-Base with curriculum learning, ROUGE-L 47.1 to 51.3).

Role
Built both models: spoiler-type classifier and spoiler generator
Data
Webis-Clickbait-22 dataset (SemEval-2023 Task 5), 5,000 posts
Context
M.S. AI coursework · University of Michigan-Dearborn
71%
accuracy and 0.71 F1 · RoBERTa-base spoiler-type classifier
47.1 → 51.3
ROUGE-L before and after curriculum learning · FLAN-T5-Base generator
Problem

Naming and generating the answer a headline is withholding

Clickbait spoiling has two parts: deciding what kind of answer the headline is hiding (a phrase, a passage or a multi-part answer), then generating that answer from the article. I treated these as separate tasks rather than forcing one model to do both.

Dataset: Webis-Clickbait-22, used as part of SemEval-2023 Task 5 data, with 5,000 posts. This is a course project, not a submission to any shared task.

Setup

Classifier and generator built separately

Spoiler-type classifier: RoBERTa-base fine-tuned on unified post + title + article inputs. Three classes: phrase, passage, multi.

Spoiler generator: FLAN-T5-Base with instruction-style prompts and curriculum learning during training. Long articles exceed the 512-token encoder limit. A truncation strategy that keeps the lead and closing context removed the empty outputs that long inputs had been producing.

Exploration: I used spaCy for exploratory data analysis, including part-of-speech tagging, to understand the data and inform feature extraction.

Results

Classifier and generator scores

Classifier: 71% accuracy and 0.71 F1 across the three spoiler types, on the test set.

All generation scores are on the test set.

MetricBefore curriculum learningAfter
ROUGE-L47.151.3
BLEU11.924.8
BERTScore F140.145.3
Skills demonstrated
RoBERTa-baseFLAN-T5-Basecurriculum learningsequence classificationtext generationHugging Face TransformersPyTorchspaCyscikit-learnevaluation design