Research overview

Tool deep dive

Headline generator

Generates headline options for a Sinhala news article in the length band an editor asks for.

Built by Akash Jayasinghe

How it works

  • Three length bands

    Short is 3–5 words, medium is 6–7 and long is 8–10. The bands do not overlap, so a word count maps to exactly one band.

  • Length is enforced, not just requested

    The requested band goes into the prompt. As a safety net, the service regenerates out-of-band headlines with a corrective hint and trims anything over the ceiling.

  • Clean training headlines

    Scraped headlines carried tags like (වීඩියෝ) or [Photos]. Stripping them from the training set and recomputing the bands cut the artifact rate from 11.2% to 1.1% without hurting length accuracy.

  • Fact guard

    Numbers in a generated headline are checked against the article, including unit words such as මිලියන and කෝටි. Words are checked for whether they appear in the source. Mismatches are flagged as prompts for human review, not as verdicts.

  • Variety across options

    Distinct candidates come from prompt variation hints, so the options take different angles.

The model and its data

Evaluated adapter
v19
LoRA rank / alpha
r=64, α=128
Trainable parameters
167,772,160
Training epochs
8 (early stopping)
Dataset
43,737 training rows · Article, category and reference headline · About 4,795 held out for validation

These are the versions evaluated in the paper, not necessarily the versions running in the app today.

Measured results

  • 79.7%

    Headline lands in the requested length band

    Measured on: 900 generated headlines

    By band: short 89.7%, medium 74.3%, long 75.0%.

  • 1.1%

    Headlines containing scraped-site artifacts

    Measured on: 900 generated headlines

    The previous version (v18) had 11.2%. The fix was cleaning the training headlines.

  • 0.1824

    Overlap with reference headlines (ROUGE-1)

    Measured on: 100 articles from an external publisher

    Headlines have many valid wordings, so overlap scores are low by nature. Up from 0.1567 for the earlier v17.

A lesson from this tool

A test score that was too good to be true

The headline model’s first evaluation looked twice as good as it really was.

The problem
To give small news categories enough examples, articles were duplicated before the data was split into training and test sets.
What we found
Copies of the same article ended up on both sides, so the model was partly graded on text it had already seen. ROUGE-1 read 0.2933 with 485 exact matches; on a clean split it was 0.1382 with none.
What we did
Repaired the split so no article appears on both sides. The paper reports both sets of numbers so the difference is visible.

What testers said about it

13 people rated these statements from 1 to 5 in 27–31 August 2026. It is a small, self-selected pilot.

The generated headline matched the news article.

4.2 / 5 · 12 of 13 rated 4–5

The generated headline was suitable for a news article.

4.1 / 5 · 10 of 13 rated 4–5

The headline generator is useful for journalism work.

4.5 / 5 · 12 of 13 rated 4–5

  • 1 (disagree)
  • 2
  • 3
  • 4
  • 5 (agree)

Next deep dive

Style rewriter

Read about the style rewriter