FLAG: Financial Long Document Classification via AMR-based GNN

Bolun (Namir) Xia, Aparna Gupta, Mohammed J. ZakiarXiv 2024 · DOI

Financial analysts rely heavily on qualitative data from earnings calls to gauge a company's future performance. However, these documents are often massive—frequently exceeding 7,000 words—presenting significant hurdles for traditional AI models. This paper introduces FLAG (Financial Long document classification via AMR-based GNN), a novel framework designed to tackle these challenges by moving beyond simple word sequences into the realm of structured semantic graphs.

The Challenge of Long Financial Text

Standard Large Language Models (LLMs) face two major obstacles when processing earnings call transcripts:

  1. Context Window Limits: Most LLMs have a maximum token limit. While long-context models exist, they often struggle to maintain focus or reason effectively over vast distances.
  2. Semantic Blindness: Standard Transformers use attention mechanisms that are often "arbitrary"—either attending to every word (which introduces noise) or using sliding windows (which loses long-range context). They do not explicitly model the logical structure or underlying meaning of sentences.

The authors of FLAG argue that for financial prediction, the verbatim sequence of words is less important than the underlying semantic concepts and their relationships.

The FLAG Framework

The FLAG framework pipeline, from document input to classification output.

To address these issues, the FLAG framework operates in three distinct phases:

1. Sentence AMR Parsing

Every sentence in a document is converted into an Abstract Meaning Representation (AMR) graph. AMR is a rooted, labeled graph where nodes represent concepts (e.g., "invest," "stock") and edges represent semantic roles (e.g., "subject," "possessive").

Example of an Abstract Meaning Representation (AMR) graph for a financial sentence.

This abstraction allows the model to treat different wordings with the same meaning—such as "our common stock" and "the stock we own"—as identical semantic structures. This reduces linguistic noise and helps the model focus on core intent.

2. Hierarchical Document Graph Construction

To handle the scale of long documents, FLAG creates a hierarchical structure. Sentence-level AMR graphs are linked to "sentence virtual nodes," which are connected sequentially to preserve the document's narrative flow (e.g., management's opening remarks vs. the Q&A session). Finally, all sentence nodes connect to a single "document virtual node" representing the entire transcript.

3. GNN Learning with FinBERT

Nodes are initialized using FinBERT embeddings to ensure the model understands domain-specific financial terminology. A GATv2 (Graph Attention Network v2) is then applied to the graph. Unlike the dense attention of Transformers, the GNN only passes information along semantic edges. This "meaning-based sparsity" allows for more effective reasoning over long distances. The final embedding of the document virtual node is used to predict stock price movements.

Experimental Results

The researchers evaluated FLAG on two primary datasets: a historical earnings call dataset (2010–2019) and a new S&P 1500 Earnings Call Corpus (2010–2023). FLAG achieved state-of-the-art (SOTA) results across both:

  • Medya Dataset: FLAG outperformed both the FinBERT baseline and StockGNN. In the Technology sector, FLAG achieved an F1 score of 0.635, compared to FinBERT's 0.536.
  • S&P 1500 Dataset: FLAG maintained its lead in predicting complex weekly trends, achieving an accuracy of 0.598, significantly higher than FinBERT (0.549) and StockGNN (0.556).

Sector-specific analysis revealed that FLAG performed best in Technology and Service sectors. The authors hypothesize that the market reacts more predictably to tangible growth statements in tech, whereas financial sector reactions are often influenced by more complex external macro factors.

Conclusion and Future Work

FLAG demonstrates that structured semantic representations can significantly improve the analysis of long-form financial text. By focusing on meaning rather than just word order, the model achieves superior predictive performance. Future work may involve integrating decoder-based LLMs like FinGPT for node initialization and incorporating quantitative financial indicators for a more holistic, multimodal prediction model.

Summary updated

BibTeX
@misc{xia2024flag,
  author = {Bolun (Namir) Xia and Aparna Gupta and Mohammed J. Zaki},
  title = {{FLAG: Financial Long Document Classification via AMR-based GNN}},
  year = {2024},
  eprint = {2410.02024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.02024},
}
Figure