Senator Elizabeth Warren expressed willingness to engage the crypto industry if players in the industry adhere to regulatory standards akin to those in traditional finance. In a Feb. 27 Bloomberg interview, Warren said: “I want to collaborate with the industry, what I don’t understand is why the industry seems to be saying that they only […]
Harnessing AI to Classify Macroeconomic Sentiment and Addressed Agents
Image by Author (with some help from DALL-E 3)
This post was co-authored with Vincent P. Marohl and is based on the paper Pfeifer, M. and Marohl, V.P. (2023) “CentralBankRoBERTa: A Fine-Tuned Large Language Model for Central Bank Communications”, Journal of Finance and Data Science https://doi.org/10.1016/j.jfds.2023.100114.
How do communications about economic policies affect economic outcomes? What is the central bank saying about small business, the housing sector or government finances? In this article we explore CentralBankRoBERTa, a state-of-the-art economic agent classifier that distinguishes five basic macroeconomic agents and binary sentiment classifier that identifies the emotional content of sentences in macroeconomic communications. We train our model on over 12,000 manually labeled sentences from communications of the U.S. Federal Reserve System, the European Central Bank and global members of the Bank of International Settlements.
LLMs for Economics
Advances in LLMs have made it much easier to fine-tune for specific applications. All that is needed to obtain state-of-the-art classification performance is extensive training data for the specific application domain. Thus far, no LLM could generate sentiment labels for macroeconomic topics. After all, what constitutes a ‘positive’ macroeconomic sentence?
We have developed CentralBankRoBERTa. The model is based on the RoBERTa architecture and classifies sentences for economic sentiment. It also classifies who is most concerned. The model has initially been conceptualized for central bank communications, a subfield of economics that aims to quantify the economic impact of words.
The advantage of central bank communications is that one has to think about what constitutes a positive economic signal to whom. For example, the sentence “wages are rising beyond expectations” may be labeled as positive for households, who receive wages, and negative for firms, who pay wages.
CentralBankRoBERTa classifies sentences based on what is good for whom. We distinguish five different macroeconomic agents: households, firms, the financial sector, government and the central bank itself. The agent-signal dynamic allows the model to classify whether a sentence emits a positive or negative signal without further numeric context.
Paying attention to context and audiences is key in text analysis, especially for complex subjects like economic policy. This is because the way a message is received can differ greatly based on the audience and situation. CentralBankRoBERTa highlights the importance of this by accurately identifying economic sentiments according to the specific audience and context.
Applications
The wide ranging responsibilities of the central bank make the model generally applicable. After all, it does not matter whether a central banker or a CEO expresses good or bad news for firms or other economic agents. This is also true for finance ministers, hedge fund managers, journalists and other economic players whose views on the economy contribute to shaping it.
Next, we show how CentralBankRoBERTa can help analyze the effect of narratives on the economy by studying business and monetary policy messages. Any relevant text data can be used for this. Here, we use a dataset of U.S. public companies’ earnings call transcripts and SEC filings. We then clean this data with regex and label each sentence using CentralBankRoBERTa to obtain a sentiment score as described in more detail in the next section.
The final dataset contains about 2000 U.S. based public firms, with each about 20 years of quarterly text data. To see how they track, we also label a text dataset of speeches from the Fed. We select only those sentences by the Fed that speak about firms, so that we do not pick unrelated information.
We find that state-level average firm sentiment closely tracks the business cycle. Regional Fed communications, as shown below in the case of Texas, also closely track the business cycle.
Figure 1: The sentiment from Texas public firms (Dark blue dashed line) closely tracks the business cycle (Red line). The Dallas Fed’s firm-specific communications (Turquoise Dash) also shows high co-movement.Figure 2: USA-wide firm sentiment (Dark blue dashed line) shares a large part of its co-movement with the business cycle (Red line). The FOMC communications (Turquoise Dash) restricted to sentences that speak about firms also tracks closely.
This descriptive analysis of firm sentiments using CentralBankRoBERTa provides a glimpse into the relationship between economic narratives and the market dynamics of businesses. Especially downturns, such as during the Great Recession of 2008 and the COVID-19 pandemic, are accurately captured by business and FOMC sentiment.
Our small example underscores the potential of text data to enrich economic models. Sentiment trends expressed in text data can influence economic dynamics, however they are notoriously difficult to capture. Tools like CentralBankRoBERTa may assist researchers and policymakers in filling the
gap between the study of narratives and their effects on economic events
as Robert Shiller, the recipient of the 2013 Nobel Memorial Prize in Economics wrote in his book Narrative Economics(2019). Shiller emphasizes how stories, or narratives, spread like viruses through society, directly influencing spending, saving, and investing decisions. Understanding the power of narratives offers a new dimension to economic analysis, suggesting that beyond traditional economic indicators, attention to the prevailing stories and their emotional resonance can offer predictive insights into market movements and economic shifts. Integrating narrative analysis into economic models, therefore, could enhance our ability to anticipate and respond to future economic challenges, making it a vital tool for economists, policymakers, and investors alike.
How to use
CentralBankRoBERTa is easy-to-use. To interface with the Hugging Face pipeline for both classification models, first, import the pipeline from the transformers package. Then, load the model using the model’s name on Hugging Face. Create an input sentence and pass it to the classifier. If you want to classify an entire data set, we have a sample script with additional code on github. CentralBankRoBERTa works best on a sentence-level, so we recommend users to parse large texts into individual sentences. For example, in the minutes of the last Federal Open Market Committee (FOMC) meeting, we can find the following view,
The staff provided an update on its assessment of the stability of the U.S. financial system and, on balance, characterized the system’s financial vulnerabilities as notable.
Given this sentence to our agent classifier, the model is 96.6% confident the sentence pertains to the “Financial Sector.” Similarly, the sentiment classifier output shows a 80.9% probability of the sentence being “negative.”
Employing sentiment-classifier:
from transformers import pipeline
# Load the SentimentClassifier model agent_classifier = pipeline("text-classification", model="Moritz-Pfeifer/CentralBankRoBERTa-sentiment-classifier")
# Choose your input input_sentence = "The early effects of our policy tightening are also becoming visible, especially in sectors like manufacturing and construction that are more sensitive to interest rate changes."
CentralBankRoBERTa is an LLM that allows to label text for macroeconomic sentiment on unprecedented granularity. It also represents the first economic agent classifier. The model’s broad training data allows for general macroeconomic applications, and can be used for economic, financial and policy research. We hope you feel inspired by the possibilities opened by this model, and want to leave you with some possible future directions of research enabled by this LLM:
● FOMC Press Conference: Can we anticipate financial market movements caused by Fed communications using CentralBankRoBERTa? How about a firms’ earning calls?
● Newspaper Text: What is the press thinking about the economy? Is the news biased towards one economic group?
● Online Forums: Using CentralBankRoBERTa, can we forecast economic trends from online discussion forums?
● Audience classifier: What politicians are most friendly towards which economic group?
Further Resources
The publication of our model in the Journal of Finance and Data Science:
Pfeifer, M. and Marohl, V.P. (2023) “CentralBankRoBERTa: A Fine-Tuned Large Language Model for Central Bank Communications”, Journal of Finance and Data Science https://doi.org/10.1016/j.jfds.2023.100114
A seminar in which we explain the details of our model:
Analyst Ming-Chi Kuo says Apple Vision Pro has declined rapidly, but the pattern he reports fits every new Apple device and how they initially sell out before demand settles.
visionOS
On its first day of preorders, Apple Vision Pro sold out within 18 minutes, and buyers saw shipping times immediately starting to stretch back weeks. Now Ming-Chi Kuo notes that Apple Vision Pro orders are shipping within 3-5 days, and says this is because of how “demand for the device declined rapidly [after launch] and has stayed the same.”
Writing in his blog, Kuo claims that unless “Apple cuts the price… or there are more attractive applications, the shipment growth in the US may be limited.” He nonetheless expects those shipments to be “200,000-250,000 this year, better than Apple’s original estimate of 150,000-200,000,” but it is “still a niche market.”
Apple Pay Later will officially become the first buy now, pay later loan service to have information reflected in Experian credit reports.
Apple Pay Later
Until now, if you used a short-term buy now, pay later (BNPL) or pay-in-4 (Pi4) loan, such as those available through Klarna, Affirm, or Apple Pay, these loans were not reflected on your credit report.
However, this is about to change. Experian, in partnership with Apple, will include a user’s BNPL information on consumers’ credit reports.
The latest data from Ming-Chi Kuo delves into a number of factors surrounding the Apple Vision Pro, with the latest report detailing the specific rate of return of the headset.
Apple Vision Pro return rates are hard to parse
Detractors of the Apple Vision Pro often claim that the Apple Vision Pro return rate is very high, compared to other products. It’s not clear if that’s the case, given data that we’ve collected, and a statement by Bloomberg’s Mark Gurman that places the return rate at average or just above average as compared to any other product.
Ming-Chi Kuo has chimed in on that concept now too. As part of a larger report on production volumes, Kuo sees a low return rate.
A three-day, low-cost, hackathon will take place in Santa Clara, California, giving developers a chance to team up and create apps for the Apple Vision Pro.
VisionDevCamp to be held March 29 through March 31
The not-for-profit event will be held from March 29 through March 31 at UCSC Silicon Valley Extension in Santa Clara. Registration costs $100 and covers food for the entire event. The event is not held by Apple.
VisionDevCamp is hosted by an all-volunteer team that has put on similar events, such as iPhoneDevCamp, iPadDevCamp, and iOSDevCamp. The team boasts that major apps, such as Square, OAuth, and even Apple’s TestFlight, were conceptualized at one of their events.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.