A Practical Guide to Gaining Value From LLMs

Getting a return from generative AI investments requires a systematic approach to analyzing appropriate use cases.

Reading Time: 22 min 

Topics

Permissions and PDF

Michael Austin/theispot.com

When large language models exploded onto the scene in 2022, their powerful capabilities to generate fluent text on demand seemed to herald a productivity revolution. But although these powerful AI systems can generate fluent text in human and computer languages, LLMs are far from infallible. They can hallucinate information, exhibit logical inconsistencies, and produce irrelevant or harmful outputs.

While the technology has been widely disseminated, many managers are struggling to identify LLM use cases where productivity improvements outweigh the costs and risks of the tools. What’s needed is a more systematic approach to effectively utilizing LLMs to increase the efficiency of a business process while mitigating their shortcomings. I recommend an approach that involves three steps. First, disaggregate the process into discrete tasks. Second, assess whether each task satisfies the generative AI cost equation, which I’ll explain in this article. When a task meets that requirement, launch a pilot project, iteratively evaluate the results, and make changes to improve the outputs when necessary.

The core of this approach rests on developing a clear-eyed understanding of how the strengths and weaknesses of LLMs map to the nature of the task in question, the techniques by which LLMs are adapted to improve their performance on a task, and how all of this shapes the cost-benefit analysis — and the risk-reward picture — for using LLMs to increase the efficiency of the task.

LLMs: Remarkable Strengths, Surprising Weaknesses

When we experience LLMs responding with humanlike fluency to a prompt, it’s easy to forget that they can get simple questions wrong. If you ask even an advanced, large-scale model like GPT-4 the question “What is the fifth word of this sentence?” the answer will often be incorrect, as in, “The fifth word of the sentence ‘What is the fifth word of this sentence?’ is ‘fifth.’”1

Another example: “I have two coins in my pocket, and they add up to 30 cents. One of them is not a nickel. What are the coins?” GPT-4 provides a seemingly well-reasoned explanation but ultimately gives the wrong answer: “The coins in your pocket are a penny and a nickel. The trick in the riddle is the statement ‘One of them is not a nickel,’ which does not mean that both coins are not nickels.

Topics

References

1. Credit for this example is due to X user Dean Buono (@deanbuono); credit for subsequent examples in this section is due to Colin Fraser (@colin_fraser).

2. L. Berglund, M. Tong, M. Kaufmann, et al., “The Reversal Curse: LLMs Trained on ‘A Is B’ Fail to Learn ‘B Is A,’” arXiv, submitted Sept. 21, 2023, https://arxiv.org.

3. E. Mollick, “Google’s Gemini Advanced: Tasting Notes and Implications,” One Useful Thing, Feb. 8, 2024, www.oneusefulthing.org.

4.Retrival-Augmented Generation,” Wikipedia, accessed Oct. 22, 2024, https://en.wikipedia.org.

5. P. Béchard and O.M. Ayala, “Reducing Hallucination in Structured Outputs via Retrieval-Augmented Generation,” arXiv, submitted April 12, 2024, https://arxiv.org.

6.Industrial-Strength LLM,” The Batch, Aug. 30, 2023, www.deeplearning.ai.

7. X. Xu, M. Li, C. Tao, et al., “A Survey on Knowledge Distillation of Large Language Models,” arXiv, submitted Feb. 20, 2024, https://arxiv.org.

8. S. Mukherjee, A. Mitra, G. Jawahar, et al., “Orca: Progressive Learning From Complex Explanation Traces of GPT-4,” arXiv, submitted June 5, 2023, https://arxiv.org.

9. E. Brynjolfsson, T. Mitchell, and D. Rock, “What Can Machines Learn, and What Does It Mean for Occupations and the Economy?” AEA Papers and Proceedings 108 (May 2018): 43-47.

10. E. Yan, B. Bischof, C. Frye, et al., “What We Learned From a Year of Building With LLMs (Part 1),” O’Reilly, May 28, 2024, www.oreilly.com.

11. J. Wei, X. Wang, D. Schuurmans, et al., “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models,” arXiv, submitted Jan. 8, 2022, https://arxiv.org.

12. Wei et al., “Chain-of-Thought Prompting.”

13. H.W. Chung, L. Hou, S. Longpre, et al. “Scaling Instruction-Finetuned Language Models,” preprint, arXiv, revised Dec. 6, 2022, https://arxiv.org.

14. S. Ranger, “Most Developers Will Soon Use an AI Pair Programmer — but the Benefits Aren’t Black and White,” ITPro, April 16, 2024, www.itpro.com.

15. H. Hamel, “Your AI Product Needs Evals,” Husain Hamel (blog), https://hamel.dev; E. Yan, “Task-Specific LLM Evals That Do & Don’t Work,” Eugene Yan (blog), https://eugeneyan.com; and L. Zheng, W.-L. Chiang, Ying Sheng, et al., “Judging LLM-as-a-Judge With MT-Bench and Chatbot Arena,” arXiv, submitted June 9, 2023, https://arxiv.org.

Reprint #:

66214

More Like This

Add a comment

You must to post a comment.

First time here? Sign up for a free account: Comment on articles and get access to many more articles.

Comment (1)
Jaideep Ghosh
Topic is very relevant but I felt the article could have been much better composed. Better and more relevant (to business) examples of Prompting, RAG and Instruction fine tuning would have been helpful vs long description and casual example.  \\ Even the cost analysis framework seems rather basic.