Introduction
Large Language Models (LLMs) have demonstrated remarkable proficiency in creative writing and technical tasks. However, they exhibit a surprising weakness in the use of famous quotations, frequently hallucinating non-existent sayings or misattributing authentic ones. QUILL is a novel framework designed to address these deficiencies by integrating a verified bilingual knowledge base of over 32,000 quotes with a specialized reranking metric that prioritizes authenticity, contextual alignment, and novelty.
The Challenges of Quotation Generation
Quotation Generation (QG) involves inserting a relevant, authoritative quote into a text to enhance its depth and persuasiveness. Despite their vast training data, LLMs face three primary hurdles in this domain:
- Quotation Hallucination: Models often "invent" profound-sounding but fake quotes or attribute real quotes to the wrong authors.
- Contextual Inconsistency: Even when a quote is authentic, it may fail to align semantically with the surrounding text, disrupting paragraph coherence.
- Lack of Novelty: LLMs frequently default to overused clichés (e.g., "Knowledge is power"), resulting in stale and unengaging prose.
The QUILL Framework
QUILL addresses these issues through a three-pillared approach:
1. Holistic Evaluation System
The framework defines five automated metrics to rigorously judge quotation quality:
- Authenticity ($S_a$): Verifies if the quote exists via database search.
- Credibility ($S_c$): Ensures the quote matches the cited author or source.
- Semantic Matching ($S_m$): Uses Perplexity (PPL) to measure how well the quote aligns with the subsequent context.
- Semantic Fluency ($S_f$): Evaluates the natural flow of the paragraph post-insertion.
- Quotation Novelty ($S_n$): Determines if the quote is a common cliché or a fresh contribution using search frequency data.
2. Specialized Reranking Metric
Rather than relying on simple probability, QUILL employs a fine-grained reranking formula: $PPL_{avg} + Novelty$. This ensures that selected quotes are both semantically relevant to the specific insertion point and sufficiently unique to be interesting to the reader.
3. Retrieval-Augmented Generation (RAG)
By retrieving quotes from a verified external database instead of relying solely on internal model weights, QUILL effectively eliminates the possibility of hallucination.
Data and Knowledge Base
The researchers constructed a comprehensive bilingual knowledge base containing 32,022 verified quotes:
- English Corpus: ~16,400 quotes from BrainyQuote and Goodreads.
- Standard Chinese Corpus: ~7,500 quotes from Guzimi.
- Classical Chinese Corpus: ~8,100 citations from Tang poetry, Song lyrics, and classic literature.
Performance was validated using an evaluation dataset of 600 context-quote pairs spanning seven categories, including Science, Business, and Law.
Key Insights and Results
- The Cliché Trap: Standard LLMs are biased toward predicting the most probable next token, which leads to the selection of overused quotes. QUILL's novelty score successfully penalizes these clichés.
- Hallucination Prevalence: Testing revealed that more than half of the citations generated by Llama2-13B-Chat were not genuine. Even top-tier models like GPT-4o struggle with attribution without external verification.
- Human-Metric Correlation: The automated metrics ($S_a$ through $S_n$) showed a high degree of correlation with expert human ratings, confirming their reliability as proxies for literary quality.
- Performance Gains: The QUILL framework achieved perfect scores in Authenticity and Credibility while outperforming vanilla LLMs and standard retrieval methods (like BM25) in semantic matching and novelty.
Limitations and Future Directions
While QUILL significantly improves quotation usage, the authors note that Perplexity (PPL) primarily measures distributional divergence rather than deeper rhetorical wit. Future work will explore more abstract quoting scenarios and investigate direct fine-tuning of models using these metrics to further enhance the "literary flair" of AI-generated content.
Summary updated