Efficient Financial Language Understanding via Distillation with Synthetic Data

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

Summary

An efficient framework for financial sentiment analysis leverages distillation with synthetic data to train compact student models like ModernBERT and DistilBERT from a large instruction-tuned teacher, GPT-4o. Designed for low-resource financial NLP, the method involves clustering 12-105 real seed examples using Sentence-BERT embeddings, then expanding these via structured few-shot prompting of GPT-4o for a ninefold synthetic data increase. This clustering-based seed selection proved superior to random sampling. On the Financial PhraseBank dataset, ModernBERT achieved 95.15% accuracy and 94.63% macro-F1. Notably, on the noisier Twitter Financial News Sentiment dataset, ModernBERT surpassed the GPT-4o teacher, reaching 77.14% accuracy and 71.14% macro-F1, a statistically significant improvement over the teacher's 72.78% accuracy.

Key takeaway

For AI Scientists or ML Engineers building financial NLP solutions with limited labelled data, you should adopt this distillation framework. By combining clustering-based seed selection with structured synthetic data generation from GPT-4o, you can train compact models like ModernBERT that achieve strong performance, even outperforming large teachers on noisy financial text. This approach significantly reduces annotation costs and computational overhead, enabling efficient deployment of specialized sentiment analysis systems.

Key insights

Distill LLM instruction-following to compact models using synthetic data generated from minimal, semantically clustered seeds.

Principles

Method

Encode financial sentences with Sentence-BERT, cluster embeddings via k-means for seed selection (12-105 seeds), then expand ninefold using GPT-4o with three structured prompt templates, and fine-tune compact encoders.

In practice

Topics

Code references

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.