Code Soliloquies for Accurate Calculations in Large Language Models
Shashank Sonkar, MyCo Le, Xinghe Chen, Naiming Liu, Debshila Basu, Mallick, Richard G. Baraniuk

TL;DR
This paper introduces a novel stateful prompt design for GPT-4 that improves the accuracy of synthetic physics conversations by integrating internal code soliloquies and Python scripting, enhancing dataset quality for calculation-heavy subjects.
Contribution
The paper presents a new prompt architecture that enables GPT-4 to perform internal mathematical reasoning and code execution, improving synthetic dialogue quality for complex subjects.
Findings
Enhanced dataset quality for calculation-intensive subjects
GPT-4 effectively scripts and uses Python for accurate computations
Preliminary evaluations show improved response accuracy
Abstract
High-quality conversational datasets are crucial for the successful development of Intelligent Tutoring Systems (ITS) that utilize a Large Language Model (LLM) backend. Synthetic student-teacher dialogues, generated using advanced GPT-4 models, are a common strategy for creating these datasets. However, subjects like physics that entail complex calculations pose a challenge. While GPT-4 presents impressive language processing capabilities, its limitations in fundamental mathematical reasoning curtail its efficacy for such subjects. To tackle this limitation, we introduce in this paper an innovative stateful prompt design. Our design orchestrates a mock conversation where both student and tutorbot roles are simulated by GPT-4. Each student response triggers an internal monologue, or `code soliloquy' in the GPT-tutorbot, which assesses whether its subsequent response would necessitate…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Text Readability and Simplification
MethodsAttention Is All You Need · Linear Layer · Multi-Head Attention · Byte Pair Encoding · Softmax · Dense Connections · Position-Wise Feed-Forward Layer · Absolute Position Encodings · Residual Connection · Adam
