Embracing Disruption

AI Transformers Revolutionize Financial Text Analysis

AI-driven transformer models like GPT and FinBERT are revolutionizing financial text analysis, enabling deeper insights and improved investment strategies.

Many people have been fascinated by the idea of using artificial intelligence (AI) for communication between men and machines. While HAL in Stanley Kubrick’s 2001: A Space Odyssey turned out to be less helpful to its human crew, its modern incarnation has been fascinating millions. With the success of ChatGPT, natural language processing (NLP) has taken center stage in the public eye as it has become synonymous with (generative) AI. More recently, models like DeepSeek have captured headlines – and even moved markets – highlighting the transformative power of large language models (LLMs) beyond chats. But this breakthrough didn’t happen overnight. Generative AI and modern NLP are built on decades of progress, beginning with simple techniques like word counts and dictionaries. Let us take you on a journey from humble beginnings to the present and into the future.
What is a transformer model? Illustrating the technology with practical examples

The early approaches in the field of NLP captured broad structure but struggled to understand nuances. To move beyond simple word matching researchers had to win the fight against complexity (the “curse of dimensionality”1), by representing words as points in a (vector) space of reasonably low dimensions – so called word embeddings. After Bengio et al. (2003)2 introduced neural networks to compute work embeddings models like Word2Vec significantly popularized and operationalized these embeddings. The striking observation was that this generation of models captures both semantic and syntactic relationships, making it one of the foundational techniques in modern NLP.

In our previous episode, we explored word embeddings like GloVe3 (which at the time was the biggest competitor of Word2Vec) and how the Systematic Equity team applies it to turn earnings call transcripts and 10-K filings into investment signals aimed at enhancing risk-adjusted returns. GloVe and other word embedding methods are powerful tools – they capture relationships between words and can often comprehend context surprisingly well, especially when applied to large, domainspecific datasets.

However, word embeddings still map each word on a single, fixed representation, regardless of the specific sentence or context in which it appears. After several failed attempts to overcome this limitation the 2017 paper “Attention is All You Need”4 eventually introduced transformer models, which dynamically interpret words based on their surrounding context. For example, in traditional word embedding models, the word “bank” would have the same meaning whether it appears in “river bank” or “bank account”. In contrast, transformer models can distinguish between these meanings by considering the entire sentence, understanding whether “bank” refers to the side of a river or a financial institution. Unlike static word embeddings, transformers read like humans – adaptively interpreting language based on context. Though more complex and resource-intensive, they offer a deeper and more flexible understanding of language.

At the heart of this innovation is a mechanism called self-attention, which lets the model weigh the importance of each word in a sentence, or even a document, relative to every other word. This means the model doesn’t just look at words one-by-one but considers how all the words in an article relate to each other to grasp the full meaning.

Imagine you’re describing a holiday: “I took my dog to the beach, and she loved playing with the waves.” A transformer model understands that “she” refers to “my dog” and that “playing with the waves” is something enjoyable happening on the beach. It pays attention to these connections across the sentences, rather than interpreting each word separately. This ability to connect words and ideas across large chunks of text or even full documents helps transformers understand language much more like a human would, making them powerful tools for tasks like translation, summarization, and sentiment analysis. Transformer technology is the basic building block of state-of-the-art LLMs, where the term “large” refers to the billions or even trillions of parameters they contain.

LLMs in asset management
In the finance industry interpreting complex and nuanced text is critical. Earnings call transcripts, regulatory filings, and analyst reports, contain rich but unstructured information that traditional NLP-methods struggle to analyze effectively. Hence, the power of transformers caught the interest of investment professionals, since transformer models enable investment professionals to extract deeper insights from texts, improving decision-making and risk assessment.

There are several commercial and open-sourced LLMs available in the market, each designed to address a variety of needs – including those specific to finance. Among those, two of the most popular models are based on GPT (Generative Pre-trained Transformer) and BERT (Bidirectional Encoder Representations from Transformers) architectures. Within the GPT model family, BloombergGPT5 is tailored to financial applications. Similarly, within the BERT model family, FinBERT6 has emerged as a version of BERT that has been specifically trained for understanding and analyzing financial texts.

BloombergGPT is a large language model developed by Bloomberg, designed specifically for the financial domain. Their model contains more than 50 billion parameters and was trained on a dataset of over 700 billion tokens (the basic unit of text). This includes around 360 billion tokens from their financial data sources (including news articles, research reports, and market data), along with 345 billion tokens from general-purpose datasets.

On the other hand, FinBERT is a compact, open-source transformer model based on the BERT architecture. As discussed in the paper by Huang, Allen H., Hui Wang, and Yi Yang in 2022, FinBERT was trained on a standard financial text corpus consisting of 2.5 billion tokens from corporate reports (10-K and 10-Q filings), 1.3 billion tokens from earnings call transcripts, and 1.1 billion tokens from analyst reports.

For sentiment analysis, FinBERT’s final classification layer was further refined using 10,000 manually annotated sentences from analyst reports, labeled as positive, negative, or neutral. This targeted training enables FinBERT to detect nuanced sentiments, such as cautious optimism or concern, that often appears in earnings calls and regulatory filings.

Because FinBERT is built on the BERT architecture, it inherits the ability to understand context and meaning at a deep level. At the same time, it is smaller and more efficient than many other modern LLMs, making it practical for deployment in realworld financial systems. Additionally, its open-source nature allows for customization and integration into proprietary workflows.
Challenges and risks of solely relying on third party LLMs

However, FinBERT also has some known limitations. For examples, it sometimes misclassifies courteous phrases like “Have a great day” or “Enjoy your meal” as positive sentiment, while texts like “no problem” as negative sentiment, even though these are neutral in financial contexts. Such errors can be mitigated through fine-tuning or by using more advanced prompting techniques with newer LLMs like GPT-4, which can better interpret subtle nuances7.

While the previous examples were based on short sentences, we now turn to a more scalable approach to sentiment analysis suitable for longer financial documents, namely net sentiments, that works for documents of any length. To compute net sentiment, a document is first divided into chunks. Sentiment is then evaluated for each chunk individually. The results are aggregated from a chunk level to the full document level by comparing the number of positively scored chunks to negatively scored ones, yielding an overall net sentiment score8

Based on this net sentiment score, we had another observation which may challenge FinBERT’s ability to accurately detect sentiment at the level of individual companies. While the model could identify negative sentiment during the COVID-19 pandemic (as depicted in the grey area in the chart below), it is important to note that some sectors consistently exhibit more positive sentiment than others. For example, communication services (yellow line in the chart below) and information technology (orange line) always exhibit more positive sentiment than Materials (purple line). This sector bias may require additional adjustments in the later stage of the investment process, particularly for investors who prefer to avoid sector-specific exposures because they do not believe taking such risks is compensated over the long term.

Relying solely on off-the-shelf models comes with additional limitations, which can be grouped into two main issues:

  • Issue 1:In the early days, most NLP research was conducted within academic institutions, but over time, large corporations have taken the lead. This shift raises concerns around compliance, data ownership, data privacy, and copyright – critical considerations in the highly regulated financial industry.
  • Issue 2:Additionally, these models continue to grow in size and complexity. However, as highlighted in the Chinchilla paper9

Consequently, off-the-shelf models may not be the best choice to meet our unique requirements. To maintain control over data governance and optimize model performance in the financial context, we must conduct our own research and develop customized transformer models tailored to our strategy.

Exhibit 1: Average net sentiment of GICS sectors

Source: Allianz Global Investors, Systematic Equity team. Data as of 30/06/2024. Back-test. Please refer to the disclosures related to “Back-testings and hypothetical or simulated performance data “ on the last page of this document. The hypothetical performance and simulations shown are for illustrative purposes only and do not represent actual performance; they do not predict future returns. Please see important information regarding back-testings and hypothetical or simulated performance data at the end of this document. For illustrative purposes only and does not represent actual performance of any client account. The information should not be relied upon as an indicator of future results

To address this, we have customized the FinBERT model specifically for our use cases, ensuring it was better aligned with the unique requirements of our investment process. We then conducted a comprehensive simulation using sentiment signals generated by our tailored FinBERT model. The result of our backtest was encouraging: the simulated strategy achieved an information ratio of approximately 0.6 (before cost) against the S&P 500 index (as shown below). This demonstrates that machine evaluated sentiment, when properly calibrated and integrated into a disciplined investment framework, can contribute meaningfully to portfolio performance.

While these results are promising, we expect more to come. Thus far, this article has focused solely on sentiment. However, the potential of LLMs lies well beyond sentiment analysis. These models are capable of more sophisticated tasks, such as understanding casual relationships, or even reasoning. As LLMs continue to evolve, we see exciting opportunities to harness their capabilities for deeper insights and more sophisticated analysis.

Exhibit 2: Cumulative relative performance of our tailored BERT-based signal

Source: Allianz Global Investors, Systematic Equity team. Data as of 30/06/2024. Back-test. Please refer to the disclosures related to “Back-testings and hypothetical or simulated performance data “ on the last page of this document. The hypothetical performance and simulations shown are for illustrative purposes only and do not represent actual performance; they do not predict future returns. Please see important information regarding back-testings and hypothetical or simulated performance data at the end of this document. For illustrative purposes only and does not represent actual performance of any client account. The information should not be relied upon as an indicator of future results

Can LLMs replace analysts? – Probably not!

Based on the promising results from our sentiment-based strategy, we went a step further and asked ourselves: Could this technology eventually replace a financial analyst?

A core function of fundamental analysis is building valuation models using data from balance sheets and cash flow statements. Traditionally this requires skilled analysts to interpret and contextualize company fundamentals. To test whether LLMs could assist in this domain, we leveraged OpenAI’s GPT-4 model via the OpenAI API, processing reports of thousands of companies in parallel.

Our experiments showed that LLMs can indeed extract key figures, compute ratios, and summarize broad trends with reliability. This aligns with research like the Chicago Booth paper10, which demonstrated that LLMs can ingest cash flow statements and balance sheets to evaluate future earnings improvement.

However, recent studies underscore the limitations of current reasoning models. Shojaee et al. (2025)11 systematically examined the abilities of large reasoning models and found they face a collapse in accuracy and consistency beyond certain levels of complexity. While LLMs excel at broad pattern recognition and can generate convincing reasoning and analytic chains for simple tasks, their computational reasoning deteriorates for nuanced and high-complexity problems, such as those frequently encountered in comprehensive equity analysis. The study further shows these models often fail to employ explicit algorithms and may produce inconsistent explanations when faced with complex scenarios.

This suggests that, although LLMs can reliably extract figures, identify trends, compute ratios, and provide analytical starting points, they are not yet able to fully replicate the depth, logic, and rigor of a skilled human analyst, especially when the financial situation demands nuanced judgement or the construction of bespoke investment rationales. In practice, LLMs should be viewed as a supportive tool but their output always requires careful review and interpretation by experienced investment professionals. Therefore, in our view, the human analyst’s expertise, critical reasoning, and intuition remain indispensable in translating computational analysis into highest quality investment decisions.

Par conséquent, selon nous, l’expertise, le raisonnement critique et l’intuition de l’analyste humain restent indispensables pour traduire l’analyse computationnelle en décisions d’investissement de la plus haute qualité.

Conclusion

In summary, this paper has shown how the evolution of natural language processing – from early word embeddings like GloVe to advanced transformer models such as FinBERT – is reshaping the landscape of quantitative finance. By moving beyond static, context-free approaches to models that understand language in its context, we have been able to extract actionable insights from unstructured financial data.

Our experience demonstrates that off-the-shelf models, while powerful, often fall short in meeting the specific demands of financial analysis, particularly when it comes to sector bias, compliance, and data privacy. By developing and tailoring our own models, we have meaningfully improved our sentiment analysis, as evidenced by the simulation that outperformed the S&P 500 on a sector-neutral basis.

As these technologies continue to advance, our focus will remain on refining our models, integrating new capabilities, and responsibly applying AI-driven insights to our Systematic Equity strategies like Best Styles and Powered by AI strategies. Ultimately, the combination of domain-specific AI and human expertise positions us well to decode financial narratives more effectively and to uncover new sources of value in ever-evolving markets.

Footnotes:
1 Curse of dimensionality: it refers to the various challenges and complications that arises when analyzing and organizing data in high-dimensional spaces (often hundreds or thousands of dimensions). In the realm of machine learning, it’s crucial to understand this concept because as the number of features or dimensions in a dataset increases, the amount of data we need to generalize accurately grows exponentially. Source: https://www.datacamp.com/blog/curse-of-dimensionality-machine-learning
2 https://www.jmlr.org/papers/volume3/bengio03a/bengio03a.pdf
3 GloVe: Global Vectors for Word Representation.https://nlp.stanford.edu/projects/glove/
4 Vaswani, A., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30. arXiv:1706.03762
5 https://arxiv.org/abs/2303.17564
6 Huang, Allen H., Hui Wang, and Yi Yang. “FinBERT: A Large Language Model for Extracting Information from Financial Text.” Contemporary Accounting Research (2022).
financiers ». Contemporary Accounting Research (2022). https://doi.org/10.1111/1911-3846.12832
7 https://arxiv.org/html/2306.02136v2
8 Net sentiment is calculated as log [(1+number of positive sentences) / (1+ number of negative sentenced)]. This logarithmic formulation helps smooth extreme values and ensures the metric is defined even when no positive or negative chunks are present.
9 https://doi.org/10.48550/arXiv.2203.15556
10 Kim, A., et al. (2024). Financial statement analysis with LLMs. arXiv:2407.17866
11 Shojaee et al. (2025). The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexity https://doi.org/10.48550/arXiv.2506.06941
Back-testings and hypothetical or simulated performance data have many inherent limitations, only some of which are described as follows:(i) They are designed with the benefit of hindsight, based on historical data, and do not reflect the impact that certain economic and market factors might have had on the decision-making process, if a client’s portfolio had actually been managed. No back-testings, hypothetical or simulated performance can completely account for the impact of financial risk in actual performance.(ii) They do not reflect actual transactions and cannot accurately account for the ability to withstand losses.(iii) The information is based, in part, on hypothetical assumptions made for modelling purposes that may not be realised in the actual management of portfolios. No representation or warranty is made as to the reasonableness of the assumptions made or that all assumptions used in achieving the returns have been stated or fully considered. Assumption changes may have a material impact on the model returns presented. The back-testing of performance differs from actual portfolio performance because the investment strategy may be adjusted at any time, for any reason. Investors should not assume that they will experience a performance similar to the backtestings, hypothetical or simulated performance shown. Material differences between back-testings, hypothetical or simulated performance results and actual results subsequently achieved by any investment strategy are possible.

Source: AllianzGI, as of 30/06/2024. The statements contained herein may include statements of future expectations and other forward-looking statements that are based on management’s current views and assumptions and involve known and unknown risks and uncertainties that could cause actual results, performance or events to differ materially from those expressed or implied in such statements. We assume no obligation to update any forward-looking statement.

Investing involves risk. The value of an investment and the income from it may fall as well as rise and investors might not get back the full amount invested. Investing in fixed income instruments may expose investors to various risks, including but not limited to creditworthiness, interest rate, liquidity and restricted flexibility risks. Changes to the economic environment and market conditions may affect these risks, resulting in an adverse effect to the value of the investment. During periods of rising nominal interest rates, the values of fixed income instruments (including positions with respect to short-term fixed income instruments) are generally expected to decline. Conversely, during periods of declining interest rates, the values of these instruments are generally expected to rise. Liquidity risk may possibly delay or prevent account withdrawals or redemptions. The volatility of fund unit/share prices may be increased or even strongly increased. Past performance does not predict future returns. If the currency in which the past performance is displayed differs from the currency of the country in which the investor resides, then the investor should be aware that due to the exchange rate fluctuations the performance shown may be higher or lower if converted into the investor’s local currency. This is for information only and not to be construed as a solicitation or an invitation to make an offer, to conclude a contract, or to buy or sell any securities. The products or securities described herein may not be available for sale in all jurisdictions or to certain categories of investors. This is for distribution only as permitted by applicable law and in particular not available to residents and/or nationals of the USA. The investment opportunities described herein do not take into account the specific investment objectives, financial situation, knowledge, experience or specific needs of any particular person and are not guaranteed. The Management Company may decide to terminate the arrangements made for the marketing of its collective investment undertakings in accordance with applicable de-notification regulation. The views and opinions expressed herein, which are subject to change without notice, are those of the issuer companies at the time of publication. The data used is derived from various sources, and assumed to be correct and reliable at the time of publication. The conditions of any underlying offer or contract that may have been, or will be, made or concluded, shall prevail. The duplication, publication, or transmission of the contents, irrespective of the form, is not permitted; except for the case of explicit permission by Allianz Global Investors GmbH.

For investors in Europe (excluding Switzerland & the United Kingdom): For a free copy of the sales prospectus, incorporation documents, daily fund prices, Key Information Document, latest annual and semi-annual financial reports, contact the issuer at the address indicated below or www.allianzgi-regulatory.eu. Austrian investors may also contact the Austrian information agent Erste Bank der österreichischen Sparkassen AG, Am Belvedere 1, AT-1100 Vienna. Please read these documents, which are solely binding, carefully before investing. This is a marketing communication issued by Allianz Global Investors GmbH, www.allianzgi.com, an investment company with limited liability, incorporated in Germany, with its registered office at Bockenheimer Landstrasse 42-44, 60323 Frankfurt/M, registered with the local court Frankfurt/M under HRB 9340, authorised by Bundesanstalt für Finanzdienstleistungsaufsicht (www.bafin.de). Allianz Global Investors GmbH has established branches in France, Italy, Spain, Luxembourg, Sweden, Belgium and the Netherlands. Contact details and information on the local regulation are available here (www.allianzgi.com/Info). The Summary of Investor Rights is available in English, French, German, Italian and Spanish at https://regulatory.allianzgi.com/en/investors-rights

For investors in Switzerland: For a free copy of the sales prospectus, incorporation documents, daily fund prices, key investor information, latest annual and semi-annual financial reports, contact [the Swiss funds’ representative and paying agent BNP Paribas Securities Services, Paris, Zurich branch, Selnaustrasse 16, CH-8002 Zürich – for Swiss retail investors only] or the issuer either electronically or by mail at the given address. Please read these documents, which are solely binding, carefully before investing. This is a marketing communication issued by Allianz Global Investors (Schweiz) AG, a 100% subsidiary of Allianz Global Investors GmbH. The Summary of Investor Rights is available in English, French, German, Italian and Spanish at https://regulatory.allianzgi.com/en/investors-rights

For investors in the United Kingdom: For a free copy of the sales prospectus, incorporation documents, daily fund prices, Key Investor Information Document, latest annual and semi-annual financial reports, contact the issuer at the address indicated below or regulatory.allianzgi.com. Please read these documents, which are solely binding, carefully before investing. This is a marketing communication issued by Allianz Global Investors UK Limited, 199 Bishopsgate, London, EC2M 3TY, www.allianzglobalinvestors.co.uk. Allianz Global Investors UK Limited, company number 11516839, is authorised and regulated by the Financial Conduct Authority. Details about the extent of our regulation are available from us on request and on the Financial Conduct Authority’s website (www.fca.org.uk). The duplication, publication, or transmission of the contents, irrespective of the form, is not permitted; except for the case of explicit permission by Allianz Global Investors UK Limited.

Explore Insights

Equity

As China welcomes the Year of the Horse on 17 February 2026, anticipation is building. The Horse, symbolizing strength, freedom, and speed, points to a year likely marked by vitality and dynamic change.

Read More

Navigating Rates

A divergence between tech exporters and demand-led economies, a “rewiring from within” thanks to regional trade, and less dependence on developed markets – here are our top macro themes for Asian fixed income investors this year.

Read More

Navigating Rates

The boom in artificial intelligence is creating exciting growth opportunities but also risks. We examine the geopolitical and cyber threats involved with this emerging technology.

Read More

Allianz Global Investors

You are now leaving the Allianz Global Investors’ website and being redirected to

Welcome to the Allianz Global Investors website dedicated to the United Kingdom

Select Role
  • Adviser & Wealth Manager
  • Individual Investor
  • Institutional Investor
  • You have connected to this site as a “Professional” as defined by MiFID.  To continue, you must have the experience and knowledge required in investment management, particularly regarding the risks involved in accessing this site.

    If you are not a “Professional” client, we invite you to leave this page and reconnect on the “Individuals” page from the Allianz Global Investors website.

    US persons: The information shown on this site is not intended for US citizens, US nationals, or to those US persons such as defined by “Regulation S” of the Securities and Exchange Commission under the Security Act of 1933.

    This site is only intended to provide information on Allianz Global Investors and the products authorised for marketing in the UK.  The information presented on this site does not constitute an offer to sell or subscribe to a financial instrument.

    The information, and opinions expressed on this site are subject to change and may be modified at any time and without prior warning.

    Your access is subject to the UK regulation and to the legal terms and general conditions of access to this site.

    In choosing to access our site, you acknowledge that you understand and accept these conditions.  We advise, for your best interest, to read these conditions carefully.

    Please read the following page carefully before proceeding as it contains important information concerning your use of the website and explains certain legal and regulatory restrictions applicable to any investment in Allianz Global Investors investment products. By pressing ‘Accept’ you agree that you have read and understood the following information.

    The material on this site is directed only at persons in the UK and does not constitute an offer or invitation to buy or sell the funds to persons in any jurisdiction other than the UK.

    Allianz Global Investors (AllianzGI) has taken reasonable care to ensure the accuracy of information available through the site. However, the information may be amended at any time by AllianzGI without notice. As far as it is permitted under the Financial Services and Markets Act 2000, AllianzGI does not accept liability for any loss, direct or indirect, owing to reliance on any information contained herein.

    The views and opinions expressed herein, which are subject to change without notice, are those of the issuer companies at the time of publication.  They are subject to change and should not be interpreted as investment advice which AllianzGI is not authorised to give.

    This site may provide links to third party websites over which AllianzGI has no control. These links are provided for your convenience and AllianzGI accepts no responsibility for the content of such websites.

    For your security we may record or randomly monitor all telephone calls.

    A word of warning
    Past performance does not predict future returns. The value of an investment and the income from it may fall as well as rise and investors might not get back the full amount invested. Exchange rate fluctuations may vary causing the value of overseas investments to go down or up. For your own security any calls may be recorded and randomly monitored.

    For information on any specific risks associated with our funds and products please see our Key Investor Information Documents (KIIDs) and Supplementary Information Documents (SIDs).

    The use of this website is subject to English Law and any dispute will fall under the jurisdiction of the English courts.

    Regulation and Status Disclosure
    Allianz Global Investors represents products and services of Allianz Global Investors UK Limited, www.allianzglobalinvestors.co.uk. Allianz Global Investors UK Limited is an investment company incorporated in the United Kingdom, with its registered office at 199 Bishopsgate, London, EC2M 3TY.

    Allianz Global Investors UK Limited, company number 11516839, is authorised and regulated by the Financial Conduct Authority. Details about the extent of our regulation are available from us on request and on the Financial Conduct Authority's website (www.fca.org.uk). The duplication, publication, or transmission of the contents, irrespective of the form, is not permitted; except for the case of explicit permission by Allianz Global Investors UK Limited.  

    Throughout the website Allianz Global Investors UK Limited may sometimes be referred to as Allianz Global Investors or AllianzGI.

    Copyright
    Copyright in this website is owned by Allianz Global Investors UK Limited. The copyrights of third parties are reserved.

    You may download or print a hard copy of individual pages and/or sections of the website, provided that you do not remove any copyright or other proprietary notices. Any downloading or other copying from the website will not transfer title to any software or material to you.

    You may not reproduce (in whole or part), transmit (by electronic means or otherwise), modify, link or use for any public or commercial purpose the website without the prior permission of Allianz Global Investors.

    Cookies
    Allianz Global Investors UK Limited uses session cookies for the purpose of saving data relating to the management of a user session in the memory of the web browser on the user's computer. By cookie it is meant the small text file that is stored on the hard disk of a computer by the web browser on the said computer. Such file contains information sent by the web server of the Website that a user has visited. The information derived from session cookies enables Allianz Global Investors UK Limited to identify which areas of the Website are seemingly of more interest to users so that it can improve the Website and the information provided to users. The data which is stored via session cookies does not include any private information regarding the user, and is erased as soon as the browser is shut down. It is to be noted that most web browsers are set up in such a way that they automatically accept cookies. Users can, however, amend the configuration of the web browser on their computers so that they are systematically notified of any instance where the Websites that they are about to visit contain cookies.

Please check the checkbox to accept the terms and conditions.