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).
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.
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.
Classifier: 71% accuracy and 0.71 F1 across the three spoiler types, on the test set.
All generation scores are on the test set.
| Metric | Before curriculum learning | After |
|---|---|---|
| ROUGE-L | 47.1 | 51.3 |
| BLEU | 11.9 | 24.8 |
| BERTScore F1 | 40.1 | 45.3 |