Paper: arXiv 2502.18471

Abstract

Large language models (LLMs) excel at generating human-like responses but often struggle with interactive tasks that require access to real-time information. This limitation poses challenges in finance, where models must access up-to-date information, such as recent news or price movements, to support decision-making. To address this, we introduce Financial Agent, a knowledge-grounding approach for LLMs to handle financial queries using real-time text and tabular data. Our contributions are threefold: First, we develop a Financial Context Dataset of over 50,000 financial queries paired with the required context. Second, we train FinBloom 7B, a custom 7 billion parameter LLM, on 14 million financial news articles from Reuters and Deutsche Presse-Agentur, alongside 12 million Securities and Exchange Commission (SEC) filings. Third, we fine-tune FinBloom 7B using the Financial Context Dataset to serve as a Financial Agent. This agent generates relevant financial context, enabling efficient real-time data retrieval to answer user queries. By reducing latency and eliminating the need for users to manually provide accurate data, our approach significantly enhances the capability of LLMs to handle dynamic financial tasks. Our proposed approach makes real-time financial decisions, algorithmic trading and other related tasks streamlined, and is valuable in contexts with high-velocity data flows.

Complexity vs Empirical Score

  • Math Complexity: 2.0/10
  • Empirical Rigor: 8.0/10
  • Quadrant: Street Traders — practical and empirical, lighter on theory

Why this score: The paper focuses on implementing a practical LLM agent system using large-scale financial datasets and real-time data integration, with minimal advanced mathematical derivations.

Research Flowchart

  flowchart TD
  A["Research Goal: Enable LLMs to answer financial queries<br>using real-time data"] --> B{"Methodology"};
  B --> C["Develop Financial Context Dataset<br>50k queries"];
  B --> D["Train FinBloom 7B<br>on 14M news + 12M SEC filings"];
  B --> E["Fine-tune as Financial Agent<br>to generate retrieval contexts"];
  C --> F["Computational Process:<br>Agent retrieves real-time text & tabular data"];
  D --> F;
  E --> F;
  F --> G["Key Findings: Efficient real-time data retrieval<br>Reduced latency for financial decision-making<br>Streamlined algorithmic trading workflows"];

Cited References (66)

  1. Language models are few-shot learners (2020)
  2. Bloom: A 176b-parameter open-access multilingual language model (2022) — link
  3. Opt: O pen pre-trained transformer language models (2022) — link
  4. BloombergGPT : A Large Language Model for Finance (2023) — link
  5. BioGPT : G enerative pre-trained transformer for biomedical text generation and mining (2022)
  6. RAG Does Not Work for Enterprises (2024) — link
  7. A Comprehensive Survey of Retrieval-Augmented Generation ( RAG ): E volution, Current Landscape and Future Directions (2024) — link
  8. The power of noise: R edefining retrieval for RAG systems (2024)
and 58 more
  1. Long-Context LLM s Meet RAG : O vercoming Challenges for Long Inputs in RAG (2024) — link
  2. Mindful-RAG : A study of points of failure in retrieval augmented generation (2024) — link
  3. Retrieval Augmented Generation ( RAG ) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely (2024) — link
  4. Galactica: A large language model for science (2022) — link
  5. BERT : Pre-training of deep bidirectional transformers for language understanding (2018) — link
  6. Check your facts and try again: I mproving large language models with external knowledge and automated feedback (2023) — link
  7. Grounding large language models in interactive environments with online reinforcement learning (2023) — link
  8. Knowledge-grounded dialogue generation with a unified knowledge representation (2021) — link
  9. Language models are unsupervised multitask learners (2019)
  10. Chain-of-thought prompting elicits reasoning in large language models (2022)
  11. Prompt programming for large language models: B eyond the few-shot paradigm (2021)
  12. Making pre-trained language models better few-shot learners (2020) — link
  13. Autoprompt: E liciting knowledge from language models with automatically generated prompts (2020) — link
  14. Bleu: A method for automatic evaluation of machine translation (2002)
  15. Rouge: A package for automatic evaluation of summaries (2004)
  16. GPT understands, too (2021) — link
  17. Prefix-tuning: Optimizing continuous prompts for generation (2021) — link
  18. The power of scale for parameter-efficient prompt tuning (2021) — link
  19. Qlora: Efficient finetuning of quantized llms (2024)
  20. Retrieval-augmented generation for knowledge-intensive NLP tasks (2020)
  21. Wizard of W ikipedia: K nowledge-powered conversational agents (2018) — link
  22. Few-shot learning with retrieval augmented language models (2022) — link
  23. The FinBen : An Holistic Financial Benchmark for Large Language Models (2024)
  24. Sentiwordnet 3.0: An enhanced lexical resource for sentiment analysis and opinion mining. (2010)
  25. SEntFiN 1.0 : Entity-aware sentiment analysis for financial news (2022)
  26. Good debt or bad debt: Detecting semantic orientations in economic texts (2014)
  27. Senticnet 2: A semantic and affective resource for opinion mining and sentiment analysis (2012)
  28. Trillion dollar words: A new financial dataset, task & market analysis — → 2305.07972
  29. REFinD : Relation Extraction Financial Dataset (2023)
  30. Finer: Financial named entity recognition dataset and weak-supervision model (2023) — link
  31. Impact of news on the commodity market: Dataset and results (2021)
  32. MultiFin : A dataset for multilingual financial NLP (2023)
  33. Finqa: A dataset of numerical reasoning over financial data (2021) — link
  34. Domain adaption of named entity recognition to support credit risk assessment (2015)
  35. FinRED : A dataset for relation extraction in financial domain (2022)
  36. Financial document causality detection shared task (fincausal 2020) (2020) — link
  37. Financial numeric extreme labelling: A dataset and benchmarking (2023)
  38. Textual analogy parsing: What’s shared and what’s compared among analogous facts (2018) — link
  39. Financial opinion mining and question answering (2018)
  40. Fine-Grained Argument Understanding with BERT Ensemble Techniques: A Deep Dive into Financial Sentiment Analysis (2023)
  41. Generating plausible counterfactual explanations for deep transformers in financial text classification (2020) — link
  42. Multi-Lingual ESG Issue Identification (2023)
  43. TAT-QA : A question answering benchmark on a hybrid of tabular and textual content in finance (2021) — link
  44. S em E val-2017 Task 5: Fine-Grained Sentiment Analysis on Financial Microblogs and News (2017) — link
  45. Ectsum: A new benchmark dataset for bullet point summarization of long earnings call transcripts (2022) — link
  46. Convfinqa: Exploring the chain of numerical reasoning in conversational finance question answering (2022) — link
  47. Accurate stock movement prediction with self-supervised learning from sparse noisy tweets (2022)
  48. Stock movement prediction from tweets and historical prices (2018)
  49. Hybrid deep sequential modeling for social text-driven stock prediction (2018)
  50. Statlog (German Credit Data) (1994)
  51. Statlog (Australian Credit Approval) (1987)
  52. PIXIU : A large language model, instruction data and evaluation benchmark for finance (2023) — link
  53. FinGPT : Open-source financial large language models — → 2306.06031
  54. CFGPT : Chinese financial assistant with large language model (2023) — link
  55. InvestLM : A Large Language Model for Investment using Financial Domain Instruction Tuning (2023) — link
  56. Empowering many, biasing a few: Generalist credit scoring through large language models (2023) — link
  57. RoBERTa : A robustly optimized bert pretraining approach (2019) — link
  58. A multimodal foundation agent for financial trading: Tool-augmented, diversified, and generalist (2024)

2 of 66 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.