Can LLMs Pick Stocks? The Feasible Boundaries of AI in Investing
This article examines where general-purpose large language models actually add value in stock selection and trading. It explains why a model's default output is high-quality consensus rather than an edge, how non-consensus has shifted from information gathering to problem definition, data construction, and validation, and how to place the model inside a research pipeline with structured outputs, out-of-sample testing, and monitoring. It also covers four risks to watch—hallucination, look-ahead bias, crowding, and misplaced accountability—and closes with a practical action checklist.
1. Starting Point: Where Investment Returns Come From
Before asking whether any tool can help with investing, you have to answer a more fundamental question: what is the source of returns? One widely accepted rule of thumb in the industry is that a judgment already known to many people is unlikely to produce excess returns. The reason is not mysterious. When enough people accept a piece of information, most of the trading associated with it has already been done; the good or bad news is priced in. Acting on that judgment again offers no expectation gap, and the risk taken is no longer matched by compensation—in the extreme case, you become the last one holding the position.
This yields a useful standard: if a tool, a data source, or an analytical method cannot help you form a judgment that differs from the mainstream and is ultimately validated, it improves efficiency, not returns. That standard runs through the rest of this article.
2. LLMs Output Consensus—High-Quality Consensus
Hold a general-purpose LLM up to that standard and you reach a slightly counterintuitive but clear conclusion: its default output is most likely consensus, only of higher quality than what an individual gets from a quick search.
The first reason is the composition of the training corpus. These models learn from massive public text: public filings, sell-side research, news, community discussions. That text is itself the sediment of long-running competition among market views, and what the model absorbs is the most common, most frequently restated analytical framework. Someone with no trading experience can describe a need in natural language and get an analysis outline that resembles professional research—industry structure, financial quality, valuation methods, key risks—at almost zero marginal cost.
The second reason is the averaging tendency of the generation mechanism. During decoding, the model favors the statistically most likely and most common phrasing, which amounts to a weighted smoothing of existing views. When many users ask similar questions about the same ticker, the conclusions converge closely. The tool is efficiently producing and distributing consensus; copying its conclusions puts you downstream in the consensus chain.
This is not a defect of the tool but the boundary of what a general model can do: it optimizes for “reasonable and reproducible,” not “scarce and correct.”
3. Non-Consensus Has Not Disappeared—It Has Moved
The conclusion is not that the tool is useless, but that the carrier of non-consensus has shifted: from information acquisition to problem definition, data construction, and validation.
It helps to split this into four layers, each scarcer than the one above:
- Information-layer non-consensus: knowing a fact others do not yet know. This layer is being compressed as public information spreads much faster.
- Framework-layer non-consensus: cutting the same object with different analytical dimensions—viewing a company as a portfolio of cash-flow options rather than a P/E multiple.
- Data-layer non-consensus: using non-standard sources that require engineering effort to process, such as public tenders across a supply chain, logistics and operating-rate data, or shifts in job postings.
- Validation-layer non-consensus: designing falsifiable hypotheses, testing them continuously with reproducible processes, and being willing to change your position when the evidence reverses.
General models mainly act on the first layer, while the other three depend on a human’s ability to pose questions, construct data, and define falsification conditions.
4. Putting the Tool in the Right Place: From Prompting to a Pipeline
To get real value from the model, the right usage is not “analyze this stock for me” but treating it as one component in a research pipeline. A workable layered structure:
- Data ingestion: market and financial data, filings and news, your own alternative-data tables, all landing in object storage and a relational database, with raw snapshots retained for traceability.
- Processing: cleaning, timestamp alignment, entity recognition and relation extraction, turning unstructured text into structured fields, with tasks decoupled through a message queue and compute running on a container platform.
- Analysis: generating candidate hypotheses in batches, extracting key variables, producing counterarguments, and outputting structured results rather than natural-language conclusions.
- Backtesting and evaluation: every hypothesis must pass out-of-sample testing, with metrics and failure cases recorded.
- Monitoring: log services plus monitoring and alerting to track data latency, field missing rates, and drift in model output.
A schematic constraint on structured output is easier for downstream consumption than free text:
{"hypothesis": "A recovery in upstream operating rates will lead the company's quarterly revenue by about one quarter","variables": ["operating rate", "order visibility", "inventory turnover"],"evidence_for": ["Public tender counts rose year over year for three consecutive months"],"evidence_against": ["The base period last year was unusually high"],"falsification": "Drop the hypothesis if revenue does not improve quarter over quarter next quarter","confidence": "low"}
Two engineering points matter: pin the version numbers of prompts and models so results are reproducible, and sample the same question multiple times to observe the variance in conclusions—high variance means the evidence is insufficient, not that the model is unreliable.
5. Four Risks You Must Face
The first is hallucination and unverifiable sources. The model may produce precise-looking data that cannot be traced; any number entering a decision must be checked against the original disclosure.
The second is look-ahead bias. Training data has a cutoff, and retrieved historical information may postdate the decision point. Without strictly controlling when information became visible, a backtest will show an inflated return curve.
The third is crowding from homogeneity. When many participants use similar tools and reach similar conclusions, what was non-consensus quickly becomes a crowded trade, and the risk shifts from being wrong to having no one to take the other side when you exit.
The fourth is misplaced accountability. The tool bears no responsibility; position sizing and stop-losses must be set by a person, and written as rules in advance rather than judged in the moment.
6. Conclusion and Action Checklist
Back to the original question: using a general LLM to pick stocks and trade directly is of low feasibility, because what it provides is high-quality consensus; using it as research infrastructure is highly feasible, because it compresses the cost of information processing and frees your time for scarcer work.
Five things you can do immediately: change your prompts from conclusion-seeking to hypothesis-and-falsification; keep timestamped snapshots of raw data; write an explicit abandonment condition for every hypothesis; sample model outputs multiple times and assess variance; and turn position sizing and stop-losses into rules that you review periodically. On cloud platforms such as Baidu AI Cloud, the object storage, message queues, container platforms, log services, and monitoring and alerting this pipeline needs all have general implementations and can be combined as needed—but excess returns still come from the quality of the questions you ask.
