FinBERT2是专为金融领域优化的双向编码器,显著提升金融文本分类、检索与主题建模效果。
FinBERT2: A Specialized Bidirectional Encoder for Bridging the Gap in Finance-Specific Deployment of Large Language Models
- 基于320亿词元金融语料预训练,打造专用双向编码器架构
- 在5项金融分类任务中超越主流LLM平均9.7%-12.3%性能
- 适用于金融文本分类、信息检索与主题建模,适合金融AI落地场景
自然语言处理中,模型趋势从BERT等编码器转向GPT-3等解码器类大语言模型(LLMs)。然而,LLMs在金融领域的应用暴露出三大局限:(1)在市场情绪分析等判别任务中,尽管计算成本高,其表现仍低于微调后的BERT;(2)生成任务依赖检索增强生成(RAG),但通用检索器在特定领域表现不佳;(3)在主题建模等特征任务上也存在不足。本文提出FinBERT2,一个在320亿词元高质量金融语料上预训练的专用双向编码器,为目前同类参数规模下最大的中文金融预训练语料。作为更优骨干网络,FinBERT2在以下方面实现突破:(1)微调后的判别模型(Fin-Labelers)在五项金融分类任务中,优于其他(Fin)BERT变体0.4%-3.3%,领先主流LLM平均9.7%-12.3%;(2)对比学习微调的检索模型(Fin-Retrievers)在五项金融检索任务中,优于开源(如BGE-base-zh,平均+6.8%)与专有嵌入模型(如OpenAI text-embedding-3-large,平均+4.2%);(3)基于FinBERT2构建的Fin-TopicModel,在金融标题聚类与主题表征上表现更优。本工作通过对比分析当代LLMs,重新审视金融BERT模型设计,为大模型时代高效利用金融专用模型提供实践指导。
原文摘要 · Abstract (English)
In natural language processing (NLP), the focus has shifted from encoder-only tiny language models like BERT to decoder-only large language models(LLMs) such as GPT-3. However, LLMs' practical application in the financial sector has revealed three limitations: (1) LLMs often perform worse than fine-tuned BERT on discriminative tasks despite costing much higher computational resources, such as market sentiment analysis in financial reports; (2) Application on generative tasks heavily relies on retrieval augmented generation (RAG) methods to provide current and specialized information, with general retrievers showing suboptimal performance on domain-specific retrieval tasks; (3) There are additional inadequacies in other feature-based scenarios, such as topic modeling. We introduce FinBERT2, a specialized bidirectional encoder pretrained on a high-quality, financial-specific corpus of 32b tokens. This represents the largest known Chinese financial pretraining corpus for models of this parameter size. As a better backbone, FinBERT2 can bridge the gap in the financial-specific deployment of LLMs through the following achievements: (1) Discriminative fine-tuned models (Fin-Labelers) outperform other (Fin)BERT variants by 0.4%-3.3% and leading LLMs by 9.7%-12.3% on average across five financial classification tasks. (2) Contrastive fine-tuned models (Fin-Retrievers) outperform both open-source (e.g., +6.8\% avg improvement over BGE-base-zh) and proprietary (e.g., +4.2\% avg improvement over OpenAI's text-embedding-3-large) embedders across five financial retrieval tasks; (3) Building on FinBERT2 variants, we construct the Fin-TopicModel, which enables superior clustering and topic representation for financial titles. Our work revisits financial BERT models through comparative analysis with contemporary LLMs and offers practical insights for effectively utilizing FinBERT in the LLMs era.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。