NLP · TEXT MINING · MACHINE LEARNING

AQuaMUSE

Query-Based Multi-Document News Summarization with Keyword-Guided Abstractive Summarization

An experimental NLP comparative study investigating whether statistical (RAKE) and semantic (KeyBERT MiniLM) keyword extraction methods provide contextual guidance that improves abstractive text summarization quality using BART-large-cnn.

ROLEML Researcher
RESPONSIBILITIESData Scraping · Preprocessing · BART Inference · Evaluation
TECH STACKBART-large-cnn · PyTorch · KeyBERT · RAKE
DATASET & MODELGoogle AQuaMUSE · BART Transformer
AQuaMUSE Pipeline Terminal — Multi-Doc Query SummarizerCUDA: Active
USER_QUERY >"What are the economic and structural impacts of renewable energy transition initiatives in Europe?"
INPUT DOCUMENTS
Google AQuaMUSE (Multi-Doc)
Average: 972 words | Max: 4,705 words
KEYWORD EXTRACTION
RAKE vs KeyBERT MiniLM
Contextual Guidance Tokens
BART TRANSFORMER
BART-large-cnn (1,024 Tokens)
Query-Guided Sentence Selection
GENERATED ABSTRACTIVE SUMMARY OUTPUT (Ablation Configuration)

"European energy transition policies are driving significant infrastructure shifts toward renewable sources. While structural investments face grid synchronization challenges, key renewable initiatives accelerate regional carbon reduction targets and foster technological independence."

01 / OVERVIEW

Investigating Contextual Guidance in News Summarization

The primary objective of AQuaMUSE is to investigate whether keyword extraction methods can provide contextual guidance that improves abstractive text summarization quality.

The project compares four distinct input configurations — ranging from a non-query baseline to full context, RAKE statistical keywords, and KeyBERT semantic MiniLM keywords — using the BART-large-cnn architecture across multiple hyperparameter settings.

02 / RESEARCH PROBLEM

RESEARCH MOTIVATION & CORE QUESTION

Addressing a critical gap in query-guided text summarization research through a structured ablation study.

THE RESEARCH GAP

Limited Investigation in News Domains

Most existing work on query-based summarization focuses heavily on dialogue systems or conversational search engines. There has been limited investigation into how different keyword extraction strategies — specifically statistical versus semantic transformer-based methods — influence abstractive summarization quality on multi-document news articles.

THE ABLATION METHOD

Comparative Experimental Study

This project addresses this gap through a systematic ablation study comparing four input configurations under controlled experimental conditions. Rather than claiming a groundbreaking discovery, this work presents a rigourous experimental investigation into model behavior under keyword guidance.

CORE RESEARCH QUESTION
“How does keyword extraction method affect the performance of query-guided abstractive multi-document news summarization?”
03 / DATASET & DATA PIPELINE

GOOGLE RESEARCH AQuaMUSE & DATA SCRAPING

Hybrid web scraping with fallback handling, URL caching, and rigorous filtering criteria.

PRIMARY SCRAPERtrafilatura

Trafilatura Main Parser

Serves as the primary extraction library for retrieving clean body text, news article content, and structural metadata from scraped web links.

FALLBACK HANDLERBeautifulSoup

BeautifulSoup Fallback

Handles edge cases where primary parsing fails or encounters unconventional DOM layouts, ensuring high extraction coverage across news sources.

ITERATIVE CACHINGMD5 Hashing

MD5 URL Caching System

Implements an MD5-hashed URL caching mechanism to avoid re-scraping identical web pages during iterative experimental runs.

DATASET CLEANING & FILTERING NUMBERS

Note: Numbers represent dataset filtering, not model accuracy
5,020ORIGINAL TRAINING DOCSRaw AQuaMUSE Google Dataset
4,703CLEAN TRAINING DOCSAfter applying strict filtering criteria
410VALIDATION SETCleaned validation instances
516TEST SETCleaned benchmark test instances

DATASET CLEANING CRITERIA IMPLEMENTED:

Document length constrained between 50 and 5,000 words
Query-based duplicate removal
Removal of scraping errors and malformed DOM payloads
Removal of 404 / error pages and paywalls
Filtering out restricted login pages
Removal of documents identical to the query text
Removal of empty or oversized content entries
04 / EXPLORATORY DATA ANALYSIS

EXPLORATORY DATA ANALYSIS FINDINGS

Statistical profiling of document length, query distribution, length correlation, and abstractiveness.

AVG LENGTH
~972
Words per Document

Average document length in the cleaned dataset before truncation.

MAX LENGTH
4,705
Words (Upper Limit)

Maximum document length requiring sentence-level selection.

QUERY LENGTH
15–20
Words per Query

Consistently compact user queries providing summary target focus.

CORRELATION
~0.00
Length Correlation

Approximately zero correlation between query, document, and target summary lengths.

~57%

Unigram Overlap Ratio (Abstractiveness Indicator)

Statistical analysis revealed approximately 57% unigram overlap between reference summaries and source document content.

Extractive CharacteristicsAbstractive Characteristics
43% Novel N-grams57% Unigram Overlap

Key EDA Insight: The ~57% unigram overlap indicates that the AQuaMUSE dataset possesses a balanced hybrid nature — retaining key factual terminology from source documents while requiring abstractive rephrasing for fluent summary generation.

05 / METHODOLOGY

TECHNICAL PROCESSING PIPELINE

End-to-end 9-step workflow from data acquisition to metric comparative analysis.

01Dataset PreparationGoogle Research AQuaMUSE
02Web ScrapingTrafilatura + BeautifulSoup Fallback
03Data CleaningMD5 URL Cache & 7 Filters
04Exploratory Data AnalysisLength & Overlap Profiling
05Text PreprocessingQuery-Guided Sentence Selection
06Keyword ExtractionRAKE vs KeyBERT MiniLM
07BART SummarizationBART-large-cnn Model
08EvaluationROUGE, METEOR, BERTScore
09Comparative AnalysisAblation Strategy Assessment
STEP 01 DETAILSPandas · JSONL

Dataset Preparation Google Research AQuaMUSE

Loading query, multi-document, and ground-truth reference summary triplets from the Google AQuaMUSE dataset.

06 / KEYWORD EXTRACTION

RAKE vs KEYBERT MINILM COMPARISON

Evaluating statistical co-occurrence vs transformer semantic embedding keyword extraction.

STATISTICAL APPROACH

RAKE

Rapid Automatic Keyword Extraction
StatisticalCo-occurrenceKeywords
  • Co-occurrence Graph: Evaluates word frequency and degree ratios in text adjacency graphs.
  • Zero Pretraining: Does not require a pretrained language model or neural network weights.
  • High Velocity: Extremely fast compute execution time suitable for high-volume pipelines.
  • Focus: Captures statistically frequent phrase combinations.
SEMANTIC TRANSFORMER

KeyBERT MiniLM

paraphrase-MiniLM-L6-v2 Embeddings
Semantic EmbeddingSimilarityKeywords
  • Contextual Embeddings: Uses paraphrase-MiniLM-L6-v2 sentence transformer model.
  • Cosine Similarity: Ranks keywords by semantic vector proximity to the full document representation.
  • Semantic Awareness: Identifies conceptual synonyms even without direct word repetitions.
  • Lightweight Footprint: Efficient transformer encoder tailored for sentence embeddings.
07 / MODEL & TOKEN LIMITATION

BART-large-cnn & TOKEN LIMIT CHALLENGE

Overcoming BART's 1,024-token bottleneck when processing multi-document news articles.

TECHNICAL BOTTLENECK

1,024 Token Capacity vs 4,705 Word Articles

BART-large-cnn has a maximum positional input constraint of 1,024 tokens. However, the average news document in the dataset spans ~972 words, with maximum lengths reaching 4,705 words across multi-document clusters.

Directly truncating long documents destroys critical query-relevant facts. To solve this, a Query-Guided Sentence Selection strategy extracts the most query-focused sentences to construct a dense, high-signal payload within BART's token limit.

QUERY-GUIDED SELECTION PIPELINE
INPUTLong News Document (~972 – 4,705 words)
PROCESSINGRelevant Sentence Selection & Query Alignment
PAYLOADQuery-Guided Context (< 1,024 Tokens)
GENERATIONBART-large-cnn Abstractive Summary
08 / EXPERIMENT DESIGN

8 EXPERIMENTS ABLATION MATRIX

4 Input Configurations × 2 Hyperparameter Settings = 8 Experimental Runs.

EXP-A1Baseline
Group A: No Query Baseline

No-Query Baseline (Doc Only)

[Document Text Only] → BART-large-cnn
Hyperparameter: Setting 1 (Beam Search = 4, Len Penalty = 1.0)
EXP-A2Baseline
Group A: No Query Baseline

No-Query Baseline (Doc Only)

[Document Text Only] → BART-large-cnn
Hyperparameter: Setting 2 (Beam Search = 6, Len Penalty = 2.0)
EXP-B1Full Context
Group B: Full Context

Full-Context Baseline

Query: {query} Doc: {full_document} → BART
Hyperparameter: Setting 1 (Beam Search = 4, Len Penalty = 1.0)
EXP-B2Full Context
Group B: Full Context

Full-Context Baseline

Query: {query} Doc: {full_document} → BART
Hyperparameter: Setting 2 (Beam Search = 6, Len Penalty = 2.0)
EXP-C1Statistical
Group C: RAKE Keywords

RAKE Keyword Guidance

Query: {query} Keywords [RAKE]: {keywords} Doc: {selected_sentences}
Hyperparameter: Setting 1 (Beam Search = 4, Len Penalty = 1.0)
EXP-C2Statistical
Group C: RAKE Keywords

RAKE Keyword Guidance

Query: {query} Keywords [RAKE]: {keywords} Doc: {selected_sentences}
Hyperparameter: Setting 2 (Beam Search = 6, Len Penalty = 2.0)
EXP-D1Semantic
Group D: KeyBERT MiniLM

KeyBERT MiniLM Guidance

Query: {query} Keywords [KeyBERT]: {keywords} Doc: {selected_sentences}
Hyperparameter: Setting 1 (Beam Search = 4, Len Penalty = 1.0)
EXP-D2Semantic
Group D: KeyBERT MiniLM

KeyBERT MiniLM Guidance

Query: {query} Keywords [KeyBERT]: {keywords} Doc: {selected_sentences}
Hyperparameter: Setting 2 (Beam Search = 6, Len Penalty = 2.0)
09 / EVALUATION METRICS

QUANTITATIVE EVALUATION FRAMEWORK

Measuring n-gram overlap, harmonic precision-recall, and contextual embedding similarity.

N-GRAM OVERLAP

ROUGE Metrics

Evaluates n-gram recall and precision overlap between generated summaries and ground-truth references.

ROUGE-1: Unigram overlap (word-level recall)
ROUGE-2: Bigram overlap (phrase fluency)
ROUGE-L: Longest Common Subsequence (sentence structure)
HARMONIC MEAN

METEOR Score

Evaluates summary quality based on the harmonic mean of unigram precision and recall, incorporating exact matches, stemming, synonyms, and paraphrasing.

Extends beyond exact word matching via WordNet synonym lookup.
CONTEXTUAL EMBEDDINGS

BERTScore

Computes similarity scores using contextualized token embeddings from BERT models rather than exact surface-level matches.

Captures semantic preservation even when summaries rephrase facts.
10 / RESULTS & ANALYSIS

COMPARATIVE ASSESSMENT FRAMEWORK

Evaluating how keyword guidance impacts summary quality across 8 experimental configurations.

01

Query Focus & Relevance

Measuring whether keyword-guided inputs prevent model drift when generating summaries from multi-document clusters.

02

Statistical vs Semantic Impact

Comparing whether statistical co-occurrence (RAKE) or transformer semantic embeddings (KeyBERT) yield better contextual guidance.

03

Hyperparameter Sensitivity

Analyzing beam search width and length penalty interactions across different keyword input payloads.

11 / TECHNICAL CHALLENGES

ENGINEERING CHALLENGES OVERCOME

Key technical hurdles in data collection, token constraints, and model evaluation.

CHALLENGE 01

1,024-Token Context Limit Bottleneck

Multi-document news clusters often exceed 4,000 words. Feeding uncompressed text truncates essential facts. Solved via query-guided sentence selection to prioritize high-signal content before feeding into BART.

CHALLENGE 02

Web Scraping Reliability & Fallbacks

News websites feature non-standard DOM structures, paywalls, and broken links. Engine built using trafilatura as primary extractor with BeautifulSoup fallback handling.

CHALLENGE 03

Dataset Cleaning & Paywall Removal

Raw scraping contained 404 pages, login forms, duplicate queries, and empty payloads. Designed a 7-stage filter pipeline cleaning 5,020 raw items down to 4,703 high-quality training instances.

CHALLENGE 04

Extractive vs Abstractive Balance

Navigating the dataset's ~57% unigram overlap to ensure keyword extractors guide BART without forcing verbatim copying or hallucinated information.

12 / TECHNICAL CONTRIBUTION

PROJECT CONTRIBUTIONS

End-to-end engineering deliverables implemented in this comparative NLP project.

Built an end-to-end multi-document news summarization pipeline
Implemented hybrid web scraping with fallback handling (trafilatura + BeautifulSoup)
Implemented URL-based MD5 hashing and caching for iterative data collection
Performed dataset cleaning and exploratory analysis on AQuaMUSE
Implemented statistical (RAKE) and semantic (KeyBERT MiniLM) keyword extraction
Designed an ablation study matrix with 8 experimental configurations
Fine-tuned and evaluated BART-large-cnn abstractive summarization
Evaluated generated summaries using ROUGE, METEOR, and BERTScore
13 / TECH STACK

TECHNOLOGY ARCHITECTURE

CORE ML & TRANSFORMERS
PythonPyTorchHugging Face TransformersBART-large-cnn
KEYWORD EXTRACTION
RAKEKeyBERTparaphrase-MiniLM-L6-v2
DATA & SCRAPING
trafilaturaBeautifulSoupPandasNumPyhashlib (MD5 Cache)
EVALUATION & COMPUTE
ROUGEMETEORBERTScoreGPU / CUDA

Explore the AQuaMUSE Codebase

View the repository, preprocessing scripts, scraping pipeline, and experiment notebooks on GitHub.