ALFFLLM·FINANCE

The List / Foundation and Domain Language Models / paper

FinBERT: A Pretrained Language Model for Financial Communications

Yi Yang; MA Uy; Allen Huang

Abstract

Contextual pretrained language models, such as BERT (Devlin et al., 2019), have made significant breakthrough in various NLP tasks by training on large scale of unlabeled text re-sources.Financial sector also accumulates large amount of financial communication text.However, there is no pretrained finance specific language models available. In this work,we address the need by pretraining a financial domain specific BERT models, FinBERT, using a large scale of financial communication corpora. Experiments on three financial sentiment classification tasks confirm the advantage of FinBERT over generic domain BERT model. The code and pretrained models are available at this https URL. We hope this will be useful for practitioners and researchers working on financial NLP tasks.

In one sentence

FinBERT is a domain-specific BERT model pretrained on 4.9 billion tokens of financial text that significantly outperforms generic BERT on financial sentiment classification tasks.

Summary

This paper addresses the lack of pretrained language models tailored for the financial domain, where generic models like BERT often underperform due to the specialized nature of financial language. The authors argue that sentiment analysis is highly domain-dependent and that leveraging large-scale financial communication corpora can yield superior representations for downstream tasks such as market sentiment monitoring and trading signal generation. By pretraining on financial-specific data, the model aims to capture nuances in corporate reports, earnings calls, and analyst opinions that general models miss. The core method involves pretraining FinBERT, a BERT-Base architecture, on a novel corpus of 4.9 billion tokens comprising SEC 10-K/10-Q filings, earnings call transcripts, and analyst reports. The authors introduce a custom financial vocabulary (FinVocab) and train both cased and uncased variants. Experiments evaluate the model on three financial sentiment classification benchmarks: Financial PhraseBank, AnalystTone, and FiQA. The fine-tuning strategy uses a standard linear classification layer with cross-entropy loss, comparing FinBERT against the original generic BERT-Base model to isolate the impact of domain-specific pretraining. Results demonstrate that FinBERT consistently outperforms generic BERT across all three sentiment tasks, with accuracy improvements ranging from 4.4% to 29.2% depending on the dataset and model variant. The uncased FinBERT with FinVocab generally achieves the best performance. The study finds that while a custom vocabulary helps, the primary driver of performance gain is the domain-specific pretraining data itself. The authors conclude that FinBERT provides a robust foundation for various financial NLP applications beyond sentiment, including stock return prediction and fraud detection, and release the code and models for public use.

Research problem

The financial sector generates vast amounts of text data, yet no pretrained language models existed specifically for this domain prior to this work. Generic models like BERT, trained on general corpora like Wikipedia, fail to capture the specific linguistic nuances and sentiment signals present in financial communications. This gap limits the effectiveness of NLP techniques for critical financial tasks such as real-time sentiment monitoring and trading signal generation.

Core contributions

  • Compilation of a large-scale financial corpus (4.9B tokens) including 10-K/10-Q filings, earnings calls, and analyst reports.
  • Development and release of FinBERT, a domain-specific BERT model pretrained on financial text.
  • Creation of FinVocab, a custom WordPiece vocabulary optimized for financial terminology.
  • Empirical validation showing FinBERT significantly outperforms generic BERT on financial sentiment classification.
  • Analysis of corpus contribution, revealing that analyst reports provide high information density relative to their size.

Method

  • Pretraining BERT-Base architecture on 4.9 billion tokens of financial text.
  • Construction of FinVocab using SentencePiece library with 28,573 (cased) and 30,873 (uncased) tokens.
  • Two initialization strategies: continuing pretraining from BERT-Base (BaseVocab) or training from scratch (FinVocab).
  • Training on NVIDIA DGX-1 with 4 Tesla P00 GPUs using Horovod for multi-GPU parallelization.
  • Fine-tuning with a linear classification layer and softmax activation for sentiment tasks.
  • Evaluation using 10-fold cross-validation on sentiment datasets.
  • Ablation studies on vocabulary type, cased/uncased variants, and corpus composition.

Results & findings

  • FinBERT uncased with FinVocab achieves 0.872 accuracy on PhraseBank, a 4.4% improvement over uncased BERT.
  • On FiQA, FinBERT uncased with FinVocab reaches 0.844 accuracy, a 15.6% improvement over uncased BERT.
  • On AnalystTone, FinBERT uncased with FinVocab achieves 0.887 accuracy, a 4.3% improvement over uncased BERT.
  • FinVocab provides marginal gains over BaseVocab on PhraseBank and AnalystTone but substantial gains on FiQA.
  • Uncased models consistently outperform cased models across all tasks and datasets.
  • Pretraining on all three corpus types yields better performance than using any single corpus alone.
  • Analyst reports, despite being smaller (1.1B tokens), contribute significantly to model performance compared to 10-Ks.

Data & experiments

  • Corpus: 60,490 10-Ks, 142,622 10-Qs (Russell 3000, 1994-2019), 136,578 earnings call transcripts (2004-2019), and 488,494 analyst reports (1995-2008).
  • Benchmarks: Financial PhraseBank (4,840 sentences), AnalystTone (10,000 sentences), and FiQA (1,111 sentences).
  • Experimental design: Fine-tuning FinBERT variants (cased/uncased, BaseVocab/FinVocab) on sentiment classification tasks.
  • Metrics: Accuracy on three-way sentiment classification (positive, neutral, negative).
  • Comparison: FinBERT vs. original BERT-Base (cased and uncased) to measure domain adaptation gains.

Limitations & caveats

  • Evaluated only on sentiment classification; broader NLP tasks not tested.
  • Corpus is limited to US-listed firms (Russell 3000, S&P) and English text.
  • Analyst reports data is older (1995-2008), potentially limiting recency.
  • Does not address real-time inference latency or deployment costs.
  • Sentiment analysis is a proxy for market impact; direct trading performance not shown.
  • FinVocab benefits are marginal on some tasks, suggesting corpus pretraining is more critical than vocabulary.

Curator notes

Discovery status: round1_promoted_seed_for_round2. Source links: A Survey of Large Language Models for Financial Applications: Progress, Prospects and Challenges; A Survey of Large Language Models in Finance: FinLLMs; Advancing Financial Engineering with Foundation Models: Progress, Applications, and Challenges; BBT-Fin: Comprehensive Construction of Chinese Financial Domain Pre-trained Language Model, Corpus and Benchmark; BondBERT: What we learn when assigning sentiment in the bond market; CFGPT: Chinese Financial Assistant with Large Language Model; Defici