Abstract:

This paper explores the potential of generative AI, specifically ChatGPT, in the domain of intrinsic value investing. We present an experimental approach that compares step-by-step prompting techniques to end-to-end analysis, and demonstrate a surprising and counterintuitive result. Additionally, we discuss the advantages of Amicus AI, our purpose-built NLU technology for intrinsic value investing, and how it can be integrated with ChatGPT to create a powerful investment analysis tool. We also outline the limitations of the GPT API and the potential of incorporating GPT-4 into the workflow, as well as the challenges faced in utilizing such technology in this domain.

Introduction

The world of artificial intelligence has seen tremendous advancements in recent years, with generative AI models becoming increasingly sophisticated and versatile. One such groundbreaking AI technology is ChatGPT, which has demonstrated impressive potential in various applications, including intrinsic value investing. This paper presents a series of experiments that explore the use of ChatGPT in this domain, and compares its performance when prompted to work step-by-step or allowed to perform end-to-end analysis. Our findings reveal surprising results that challenge common assumptions about how AI models should be prompted to maximize their effectiveness.

Background

2.1 Intrinsic Value Investing and the Importance of Free Cash Flow

Intrinsic value investing involves evaluating a company's true value based on its financial health and performance metrics. Free cash flow, for instance, is a critical metric that indicates a company's ability to generate cash and maintain its financial stability, especially in high-interest-rate environments.

2.2 ChatGPT and Prompt Engineering

ChatGPT, a generative AI model, can be utilized in intrinsic value investing through the process of prompt engineering. This involves crafting the right questions or prompts to get the most useful responses from AI models. One common technique in prompt engineering is the 'chain of thought' prompting, which guides the AI model step-by-step through a complex problem.

Experiment Design

3.1 Prompt Variations

We designed four different prompts for ChatGPT, with some asking the model to think step-by-step, while others allowed for end-to-end analysis. We also included a prompt asking the model to 'think like Warren Buffett,' to examine whether such an instruction could improve results.

Four prompts with modifications on thinking step-by-step (SBS) or personify Warren Buffett

Feature grid for experiments and chart presentation

3.2 Results and Analysis

Our experiments revealed that ChatGPT performed better when allowed to perform end-to-end analysis and was prompted to think like Warren Buffett. Surprisingly, the step-by-step prompting technique degraded the model's performance. Concretely, ChatGPT as a LLM is well-aware of typical Buffett guidelines for investing (large moat, margin of safety, accretive performance). On the other hand, most financial analysts use pure financials and the product logic requires that ChatGPT have some leeway to reason, which may deliver more accurate and useful results in intrinsic value investing.

4.1 Ensemble Approach and Focus on Intrinsic Value Metrics

Amicus AI, our purpose-built NLU technology for intrinsic value investing, utilizes an ensemble of submodels that focus on various intrinsic value metrics, such as free cash flow yield and profit margin. This approach allows for deeper analysis of a company's financial health, capturing nuances that are not always evident in single-metric models.

4.2 Integration with ChatGPT

We envision a system that combines the strengths of both Amicus AI and ChatGPT, providing the depth and accuracy of Amicus AI with the versatility and adaptability of ChatGPT. This integration could lead to a powerful investment analysis tool that can provide market-level insights similar to those offered by Amicus AI, but with the flexibility and adaptability of ChatGPT.

4.3 The Experiment

We aimed to test the impact of step-by-step prompting on the performance of ChatGPT, utilizing four distinct prompts. The prompts varied on two dimensions, the inclusion of step-by-step thinking, and the instruction to think like renowned investor Warren Buffett. The specific prompts used were as follows:

Vanilla Prompt: ChatGPT, posed as a financial analyst AI, was asked to analyze a company's financial filing and assign it a grade from A (top quintile) to F (bottom quintile), followed by a brief explanation of the reasoning behind the given rating.

Step-by-Step Prompt: Similar to the Vanilla Prompt, but with the additional instruction for ChatGPT to think sequentially and articulate its reasoning step by step.

Warren Buffett Prompt: Similar to the Vanilla Prompt, but with the instruction for ChatGPT to think like Warren Buffett.

Warren Buffett + Step-by-Step Prompt: A combination of prompts 2 and 3, with the additional instruction to think sequentially and articulate reasoning step by step.

We varied the temperature parameter from 0 to 1 for each prompt. The temperature parameter impacts the randomness of the model's outputs, with lower values leading to more deterministic responses and higher values leading to more diverse and potentially creative responses. The focus was to identify models that exhibit high accuracy and a high Matthews Correlation Coefficient (MCC), a measure akin to a multiclass F1 score that accounts for imbalances in the class distribution.

Experimental results matching the feature grid. Note the expanded scale on prompt 3: personify Buffett

Results and Discussion

Contrary to our expectations, the prompts encouraging step-by-step thinking did not improve the model's performance. In fact, they led to a decrease in both accuracy and MCC. On the other hand, asking ChatGPT to 'think like Warren Buffett' improved the results significantly. The Warren Buffett prompt resulted in the highest MCC value of 0.9 and accuracy of 25%.

This finding suggests that when left to think in an end-to-end manner, ChatGPT is capable of producing more accurate and insightful results. This is a significant discovery as it challenges the common belief in the effectiveness of step-by-step thinking prompts in improving AI performance.

5. Amicus AI: An Ensemble Approach

While ChatGPT's results were impressive, it's worth noting the strengths of Amicus AI's ensemble approach. Unlike ChatGPT, Amicus AI uses an ensemble of submodels, each focusing on various intrinsic value metrics. This allows for a more comprehensive analysis of a company's financial health. In our latest ratings, we noted that free cash flow was a particularly robust metric, aligning with the prevalent "Cash is King" adage in high-interest-rate environments.

6. Limitations and Future Work

ChatGPT, as of now, operates on the granularity of a single company filing at a time. This stands in contrast to Amicus AI's more holistic view, which allows it to draw insights and make comparisons across multiple companies, sectors, and market conditions. This difference inspired us to explore a hybrid approach, combining the flexibility of ChatGPT with the comprehensive view offered by Amicus AI.

The exploration of such a blend, however, is not without its challenges. The current limitations of the GPT API, such as the maximum token count for input and response, as well as the cost, present significant hurdles. Despite these constraints, we are optimistic about the potential of such a combination, and preliminary results are promising.

Pricing from OpenAI on ChatGPT models – Fetched May 3rd, 2023

7. Incorporating GPT-4 into Amicus AI

As we look forward, we are eager about the potential of integrating GPT-4 into our workflow. We envisage a system that combines the strengths of both approaches, providing us with a more robust and comprehensive financial analysis tool. This could involve utilizing GPT-4's ability to analyze and interpret text data, while also leveraging Amicus AI's ability to process and understand large amounts of numerical data.

8. Conclusions

The results of our experiment highlight the potential of GPT-4 for financial analysis. Encouraging the model to 'think like Warren Buffett' significantly improved performance, suggesting that AI models can indeed be influenced by the thought processes of successful investors. However, the decrease in performance when asked to think step-by-step indicates that end-to-end reasoning may be more effective for AI.

Despite the impressive performance of GPT-4, there is still a role for specialized financial analysis tools like Amicus AI. By combining these two approaches, we believe we can create a tool that is more than the sum of its parts, providing more accurate and comprehensive financial analysis.

9. Future Directions

There are several exciting directions for future work. The first involves further exploring the hybrid approach combining GPT-4 with Amicus AI. This could involve developing new methods to overcome the current limitations of the GPT API, or finding ways to better integrate the text analysis capabilities of GPT-4 with the numerical data processing abilities of Amicus AI.

Another direction involves further exploring the effects of different prompts on the performance of GPT-4. While our study focused on the impact of step-by-step thinking and emulating Warren Buffett, there may be other effective prompts that we have not yet explored. For example, prompts that encourage the model to think like other successful investors, or prompts that guide the model to focus on specific aspects of a company's financials, could also prove to be effective.

In conclusion, while the future of AI in financial analysis is still being shaped, our findings suggest that there are significant opportunities for enhancing the quality and depth of financial analysis through the use of AI models like GPT-4. As we continue to refine and develop these models, we are excited about the potential they hold for transforming the way we analyze and understand financial data.

DISCLAIMER: This Paper is not intended to provide any investment, financial, legal, regulatory, accounting, tax or similar advice, and nothing on this Paper should be construed as a recommendation, by Amicus AI, its affiliates or any third party, to acquire or dispose of any investment or security, or to engage in any investment strategy or transaction. You should consult your own investment, legal, tax and/or similar professionals regarding your specific situation and any specific decisions.