Automated Summarization of Financial News Using Large Language Models and Retrieval-Augmented Generation: An Early Empirical Study (Fall 2023)
用AI总结股市新闻发现:简单的摘要方法反而比时髦的检索增强技术更靠谱
这项2023年秋季在乔治华盛顿大学完成的项目搭建了一套系统,从新闻、维基百科和股价数据中提取十家大公司的信息,再用大语言模型自动生成摘要。结果显示,开源模型Falcon-7B搭配简单的“分块汇总(Summarize Chains)”方法效果最好,而现在流行的检索增强生成(RAG)技术反而导致内容重复或凭空捏造事实。把股价数字提前转换成自然语言句子再交给GPT处理,则完全避免了计算错误。
METAL MEDIA 解读图
用AI总结股市新闻发现:简单的摘要方法反而比时髦的检索增强技术更靠谱
- 01为苹果、谷歌、特斯拉等十家公司搭建数据管道,分别从News API、维基百科和雅虎财经获取新闻、公司背景和股价数据
- 02针对大语言模型不擅长处理数字表格的问题,先用Python算好涨跌百分比,再转换成'特斯拉10月4日收盘价261.16美元,上涨5.93%'这样的自然语言句子输入模型
- 03对比了两种新闻摘要方法(分块汇总Summarize Chains和检索增强生成RAG配合FAISS检索),在Falcon-7B、DistilBART、BART-Large三个开源模型上进行测试
- 04Falcon-7B搭配分块汇总方法准确完整地涵盖了谷歌相关的三条新闻事件,而RAG方法导致Falcon把同样内容重复了60多次,也导致BART-Large编造出不实信息
- 05两种大语言模型摘要方法在ROUGE-1指标上都超过了仅取文章前三句的简单基准方法(Lead-3)
他们做了什么
- 为苹果、谷歌、特斯拉等十家公司搭建数据管道,分别从News API、维基百科和雅虎财经获取新闻、公司背景和股价数据
- 针对大语言模型不擅长处理数字表格的问题,先用Python算好涨跌百分比,再转换成'特斯拉10月4日收盘价261.16美元,上涨5.93%'这样的自然语言句子输入模型
- 对比了两种新闻摘要方法(分块汇总Summarize Chains和检索增强生成RAG配合FAISS检索),在Falcon-7B、DistilBART、BART-Large三个开源模型上进行测试
- Falcon-7B搭配分块汇总方法准确完整地涵盖了谷歌相关的三条新闻事件,而RAG方法导致Falcon把同样内容重复了60多次,也导致BART-Large编造出不实信息
- 两种大语言模型摘要方法在ROUGE-1指标上都超过了仅取文章前三句的简单基准方法(Lead-3)
| Company (Ticker) | News Articles | Wikipedia Summary |
|---|---|---|
| Apple (AAPL) | ≈97 | Yes |
| Microsoft (MSFT) | ≈85 | Yes |
| Alphabet (GOOGL) | ≈112 | Yes |
| Amazon (AMZN) | ≈78 | Yes |
| Meta (META/FB) | ≈91 | Yes |
| Tesla (TSLA) | ≈103 | Yes |
| JPMorgan (JPM) | ≈64 | Yes |
| NVIDIA (NVDA) | ≈88 | Yes |
| Walmart (WMT) | ≈52 | Yes |
| Disney (DIS) | ≈67 | Yes |
| Total | ≈837 | 10 |
| Model | Type | Access | Task |
|---|---|---|---|
| GPT (text-davinci-003) | Proprietary (OpenAI) | API | Stock data |
| Falcon-7B-Instruct | Open-source (TII) | HuggingFace Hub | News |
| DistilBART-CNN-12-6 | Open-source (sshleifer) | HuggingFace Hub | News |
| BART-Large-XSum-SAMSum | Open-source (AdamCodd) | HuggingFace Hub | News |
| Model | Approach | ROUGE-1 | ROUGE-2 | ROUGE-L |
|---|---|---|---|---|
| DistilBART | Summarize Chains | 0.4000 | 0.3456 | 0.2254 |
| DistilBART | RAG | 0.2523 | 0.1813 | 0.1201 |
| Falcon-7B | Summarize Chains | 0.3361 | 0.1828 | 0.1708 |
| Falcon-7B | RAG | 0.2281 | 0.1118 | 0.1579 |
| BART-Large | Summarize Chains | 0.2604 | 0.1786 | 0.2012 |
| BART-Large | RAG | 0.2553 | 0.1835 | 0.1459 |
| Lead-3 Baseline | Extractive | 0.2812 | 0.1943 | 0.1654 |
| Company | ROUGE-1 | ROUGE-2 | ROUGE-L |
|---|---|---|---|
| AAPL | 0.4348 | 0.2206 | 0.2754 |
| MSFT | 0.4306 | 0.1972 | 0.2639 |
| GOOGL | 0.3269 | 0.0980 | 0.2885 |
| TSLA | 0.2913 | 0.0990 | 0.1942 |
| AMZN | 0.5098 | 0.3600 | 0.4902 |
| META | 0.2435 | 0.0531 | 0.1565 |
| Mean | 0.3728 | 0.1713 | 0.2781 |
| Model | Approach | Coverage | Accuracy | Coherence | Key Issue |
|---|---|---|---|---|---|
| Falcon-7B | Chains | 3/3 | ✓ | ✓ | Best overall |
| DistilBART | Chains | 2/3 | ✓ | ✓ | Misses layoffs |
| DistilBART | RAG | 2/3 | ✓ | ✓ | Misses Russia fine |
| BART-Large | Chains | 1/3 | ✓ | × | Truncated output |
| BART-Large | RAG | 2/3 | × | ✓ | Hallucinated entity |
| Falcon-7B | RAG | 3/3 | ✓ | × | 60× repetition |
为什么重要
这项研究表明检索增强生成并非万能药,反而可能让较小的模型在检索内容混乱时更容易编造事实,这对金融等对准确性要求极高的领域尤为重要。它给实际应用一个提醒:选择方法时,契合场景的简单方案有时比追逐最新技术更可靠。
本文术语
- 大语言模型(LLM) · 通过海量文本训练、能够生成类似人类文字的AI模型
- 检索增强生成(RAG) · 先检索相关资料,再让AI参考这些资料生成答案的方法
- 分块汇总(Summarize Chains) · 先把长文档切块分别摘要,再把这些摘要合并成最终摘要的方法
- 幻觉(hallucination) · AI生成看似合理但实际不真实的信息
- ROUGE分数 · 衡量生成摘要与参考文本之间词语重合程度的自动评估指标
- FAISS · Meta开发的相似度搜索工具库,用于快速找到语义相近的文本片段
论文原文摘要(英文)
Stock market analysts and investors face a daily challenge: too much financial news, too little time. Manually reading and synthesizing hundreds of company-specific articles is impractical, yet missing key information can directly affect investment decisions. This project, conducted at George Washington University in Fall 2023, explores whether Large Language Models can automate this process reliably. We built a pipeline that pulls news articles from the News API, company background from Wikipedia, and stock price data from Yahoo Finance for ten major companies (AAPL, MSFT, GOOGL, AMZN, META, TSLA, JPM, NVDA, WMT, DIS). Because LLMs cannot directly process numerical tables, we developed a simple but effective template that converts stock data into natural language narratives. We then tested two summarization approaches (Summarize Chains and Retrieval-Augmented Generation with FAISS) across three open-source models (Falcon-7B-Instruct, DistilBART-CNN-12-6, BART-Large-XSum) for news, and GPT (text-davinci-003) for stock summaries. Falcon-7B with Summarize Chains gave the best results, covering all news events accurately and coherently. RAG, while promising in theory, caused severe repetition in Falcon and hallucinated facts in BART-Large when k was large. Both LLM-based approaches outperformed a simple Lead-3 baseline on ROUGE-1. We also built a Streamlit dashboard for interactive stock visualization. The work was done in Fall 2023, before RAG-based financial tools became widespread, and the failure modes we document, particularly hallucination under RAG in smaller models, remain relevant today.
在 arXiv 阅读最新论文
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?让AI编程助手去修复真实科学软件,连最强的那个也有一半以上任务没做对
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving把稀疏注意力从论文原型变成能真正上线服务的加速方案
- PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM Agents让客服AI坐席不只是拦住一个危险动作,而是把整个流程走对
- EXIMO: VLM Guided Exploration of VLA Policies不用人工遥控演示,让会说话的AI来教机械臂做新家务
- EnvHarness: Awakening Static Worlds for Agent Learning不重新搭建训练环境,而是给现有环境套一层可插拔组件,针对每个智能体的具体弱点重新塑形
- Bounded Sovereignty and the Control Tax: Pricing AI Oversight When the Deployer Does Not Own the Model租用AI而非拥有AI的机构,安全监管能力只剩一半
- Beyond Imitation: Filtering On-Policy Distillation by Reasoning ProgressAI模仿老师模型学习时,会误伤本来推理正确的步骤,新方法专门过滤掉这种误伤
- PersonalBench: Measuring the Authorship Gap in LLM Personalization让AI模仿某人的文风,结果发现它始终摆脱不了自己的腔调