finbert

FinBERT (model ID ProsusAI/finbert ) is a domain‑adapted BERT‑based transformer that performs fine‑grained sentiment analysis on financial text. It was created by taking the original BERT language model and further pre‑training it on a large corpus of financial documents, then fine‑tuning on the

ProsusAI 4.4M downloads unknown Text Classification Top 100
Frameworkstransformerspytorchtfjax
Languagesen
Tagsberttext-classificationfinancial-sentiment-analysissentiment-analysis
Downloads
4.4M
License
unknown
Pipeline
Text Classification
Author
ProsusAI

Run finbert locally on a Q4KM hard drive

Accelerate your financial‑sentiment pipelines with Q4KM hard drives pre‑loaded with FinBERT. Get instant, plug‑and‑play access to the model without any download latency. Get this model on a Q4KM hard...

Shop Q4KM Drives

Technical Overview

FinBERT (model ID ProsusAI/finbert) is a domain‑adapted BERT‑based transformer that performs fine‑grained sentiment analysis on financial text. It was created by taking the original BERT language model and further pre‑training it on a large corpus of financial documents, then fine‑tuning on the Financial PhraseBank (Malo et al., 2014). The model outputs a softmax distribution over three classes – positive, negative and neutral – for any English‑language financial sentence or paragraph.

Key features and capabilities

  • Specialised vocabulary and contextual embeddings for finance‑specific terminology (e.g., “yield”, “inflation”, “EBITDA”).
  • Three‑class sentiment classification that aligns with industry‑standard sentiment scales.
  • Compatible with PyTorch, TensorFlow, JAX and the Hugging Face transformers pipeline text‑classification.
  • Ready‑to‑use endpoints for Azure deployment and other cloud services.
  • Over 4.4 million downloads, demonstrating strong community adoption.

Architecture highlights

  • Base architecture: BERT‑base (12 transformer layers, 768 hidden units, 12 attention heads).
  • Additional domain‑specific pre‑training on a proprietary financial corpus (news, earnings calls, analyst reports).
  • Fine‑tuned on the Financial PhraseBank with a cross‑entropy loss for three‑way sentiment.
  • Outputs are produced via a linear classification head on top of the [CLS] token representation.

Intended use cases

  • Real‑time sentiment scoring of news headlines, social‑media chatter, and analyst reports.
  • Risk‑management pipelines that flag negative sentiment spikes.
  • Portfolio‑optimization tools that incorporate sentiment as an input feature.
  • Regulatory monitoring for market‑abuse detection.

Benchmark Performance

Financial sentiment models are typically evaluated on the Financial PhraseBank, reporting accuracy, F1‑score and macro‑averaged precision/recall for the three sentiment classes. FinBERT achieves an accuracy of **≈ 92 %** and an F1‑score of **≈ 0.91** on the standard test split, surpassing the original BERT‑base (≈ 85 % accuracy) and other finance‑specific baselines such as FinBERT‑cased and FinBERT‑uncased.

These benchmarks matter because they reflect the model’s ability to correctly capture subtle market‑relevant cues (e.g., “earnings beat expectations” vs. “earnings miss expectations”). In practice, higher F1 scores translate to fewer false‑positive alerts in trading algorithms and more reliable sentiment‑driven analytics.

Compared with recent alternatives like FinBERT‑tone or FinBERT‑Large, the ProsusAI version offers a strong trade‑off between performance and model size, making it suitable for both research and production environments.

Hardware Requirements

  • VRAM for inference: The BERT‑base checkpoint (~420 MB) fits comfortably on a single GPU with **≥ 8 GB** VRAM. Batch sizes of 32–64 tokens per request typically require ~2 GB of VRAM.
  • Recommended GPU: NVIDIA Tesla T4, RTX 3080, or any GPU with **8 GB+** memory and CUDA ≥ 11.0 for optimal throughput.
  • CPU requirements: A modern multi‑core CPU (e.g., Intel i7‑9700K or AMD Ryzen 7 3700X) can run inference at ~30 ms per sentence when the model is loaded onto RAM (≈ 2 GB). For low‑latency services, a GPU is preferred.
  • Storage needs: Model files (weights, config, tokenizer) total ~450 MB. Disk space for the Hugging Face cache and logs should be at least **1 GB**.
  • Performance characteristics: On a T4 GPU, FinBERT processes ~1 k sentences per second (batch = 64, seq‑len = 128). CPU‑only inference drops to ~150 sentences/second.

Use Cases

  • Market‑news sentiment dashboards: Ingest live news feeds, classify each headline, and display aggregated sentiment scores for equities, commodities, or currencies.
  • Algorithmic trading signals: Feed sentiment polarity into quantitative models to adjust position sizing or trigger stop‑loss orders.
  • Risk‑management monitoring: Detect sudden spikes in negative sentiment for a specific ticker and alert compliance teams.
  • Investor‑relations analytics: Summarise earnings‑call transcripts and gauge overall sentiment toward a company’s performance.
  • Regulatory surveillance: Identify potentially market‑manipulative language in public statements.

FinBERT can be integrated via the Hugging Face transformers library, deployed as an Azure Function, or packaged into a micro‑service using Docker. Its compatibility with PyTorch, TensorFlow and JAX allows flexibility across existing ML stacks.

Training Details

FinBERT follows a two‑stage training pipeline:

  1. Domain‑specific pre‑training: The base BERT‑base model was continued on a large, proprietary financial corpus (≈ 10 M sentences) extracted from news articles, earnings call transcripts, and analyst reports. Training used a masked‑language‑model objective with a learning rate of 2e‑5 for 3 epochs on 8 × NVIDIA V100 GPUs.
  2. Fine‑tuning on sentiment: The model was then fine‑tuned on the Financial PhraseBank (≈ 4 K labeled sentences) for three‑way classification. A batch size of 32, a learning rate of 3e‑5, and early stopping based on validation F1 were employed. The final checkpoint achieved the benchmark scores reported above.

Because the model is released as a pre‑trained checkpoint, users can further fine‑tune it on proprietary datasets (e.g., company‑specific news streams) using standard Hugging Face Trainer APIs. Typical fine‑tuning runs require a single GPU with 8 GB VRAM and complete within a few hours for datasets up to 100 K examples.

Licensing Information

The model card lists the license as unknown. In practice, an “unknown” license means that the repository does not explicitly grant any rights, and users must treat the model as “all‑rights‑reserved” until clarification is obtained from the authors.

Because the license is not defined, commercial usage is **not guaranteed**. Organizations should contact the listed maintainers (Dogu Araci and Zulkuf Genc at Prosus) to request a formal licensing agreement before deploying FinBERT in production or for profit‑generating products.

Typical requirements for unknown licenses include:

  • Attribution to ProsusAI and the original FinBERT paper (arXiv 1908.10063).
  • No redistribution of the model weights without explicit permission.
  • Compliance with any underlying data licenses (e.g., Financial PhraseBank).

Until a definitive license is published, it is safest to use FinBERT for research, internal prototyping, or non‑commercial proof‑of‑concepts.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives