Pas encore d'auteurLa reprendre
Version 3Mis à jour 5 min de lecture
Asked a Physics Olympiad question, free AI chatbots applied the right law and then got the numbers wrong: ChatGPT's value was two orders of magnitude off. That is one result of a pilot study by Dominik Borovský, Jozef Hanč and Martina Hančová on whether chatbots could help students prepare for the Physics Olympiad (PhO) and the Young Physicist Tournament (YPT), two of the most prestigious international high school physics competitions.

Figure 1 of the paper: the problem from the Physics Olympiad (2022, regional round, category C) as a simple prompt (left) and an advanced prompt using priming (right). Borovský, Hanč and Hančová, CC BY 4.0.
Why try it
Competitions like these shape students' careers: they steer talented students toward science and technical study and build critical thinking and scientific literacy that also help in medicine, economics or law. With the rise of chatbots such as ChatGPT in 2023, the authors, whose work is part of Borovský's Ph.D. study, wanted to see what the tools could do. Their questions: how can chatbots be integrated into physics teaching, what do students and teachers think of them, and how do they affect students' performance? The design is an exploratory sequential mixed-methods study. So far it covers a literature review and a pilot case study of how the chatbots do on varied physics tasks, and a later phase would measure the effect with data.
The paper also explains how the chatbots work. They are built on the transformer, an artificial neural network architecture introduced by Google researchers in 2017. A transformer with more than 10⁹ parameters is a large language model. It is pre-trained on a huge dataset, which the authors compare to early learning in a child, and then fine-tuned for particular tasks, which they compare to schooling. A chatbot can answer the same prompt differently each time, by design, through a setting called temperature: at zero the output is always the highest-probability answer, and a higher value allows more varied, less predictable text.
The Olympiad problem
The authors tried the strongest chatbots of the time: ChatGPT (the free GPT-3.5 and the paid GPT-4 with plugins), Google's Bard, Claude and the open-source Vicuna. The first problem came from the 63rd edition of the Slovak Physics Olympiad (regional round, category C, academic year 2021/2022).

Figure 2: solutions to part a) from the free chatbots of OpenAI (GPT-3.5) and Google (Bard). Borovský, Hanč and Hančová, CC BY 4.0.
- Free chatbots. GPT-3.5 and Bard answered almost instantly with annotated, structured solutions that applied the physical law correctly, as the Olympiad expects. But Bard did not convert units to SI, a slip seen even in younger solvers, and both failed at the mathematics. The correct values are 0.403 mol and 11.3 g, and GPT-3.5's value was two orders of magnitude higher. Vicuna-33B solved it about as competently as GPT-3.5 but more slowly and with numerical errors. The rules of the PhO require a general solution, which none gave, because the authors had not asked for one.
- Priming. Supplying the model first with an advanced prompt, a technique called priming, helped. With it, Claude and ChatGPT gave completely correct, annotated general solutions. Claude lets users upload instructions as a PDF, which simplifies things, though it first gave a wrong number and corrected it only when challenged. GPT-4 with the Wolfram plugin hands its calculations to Wolfram Alpha, so its numbers are almost certainly right, though in rare cases the plugin gets stuck and the problem has to be restarted.

Figure 3: solutions using priming and plugins, from Claude v2 (left, with a PDF of instructions) and GPT-4 with the Wolfram plugin (right). Borovský, Hanč and Hančová, CC BY 4.0.
A harder problem
The YPT problem was far tougher: a Wilberforce pendulum, a mass hanging from a vertical helical spring that can move up and down and also rotate about its vertical axis. The authors solved the dynamics successfully with ChatGPT's two paid models (GPT-4 and GPT-4 with the code interpreter), using the Lagrange method.
AI inside an open science notebook
Because chatbots struggle with numbers and algebra, the authors paired AI with SageMath, free Python-based mathematics software that is also a Jupyter Notebook and suits PhO and YPT problems. Two ways to add AI:
- Jupyternaut. From March 2023 a Project Jupyter team built Jupyter AI, whose extension lets users pick among several dozen language models, GPT-3.5 in the authors' case. A chatbot called Jupyternaut appears. The authors used its /learn command to read a folder of general problem-solving instructions, and /generate to make a SageMath notebook solving the problem. In a short time it produced a general solution with numerical results precise to 15 decimal places, which needed only minor adjustments. Highlighting part of the notebook asks Jupyternaut to explain or fix it. It can work in 26 languages, Slovak among them.
- A browser extension, ChatGPT – Jupyter – AI Assistant, for Chrome, Edge or Opera. It uses GPT-3.5 only, installs in one click, and adds a toolbar to JupyterLab that can comment on, format, explain and fix code and generate new code.

Figure 4: a Jupyternaut solution (with GPT-3.5), the conversation (left) and the SageMath notebook it produced (right). Borovský, Hanč and Hančová, CC BY 4.0.
Working in the notebook avoids copying text back and forth between a web chatbot and the math software, and it gives better interactivity, easy editing, reproducibility and direct plotting.
Cautions
The authors conclude that chatbots, combined with open science tools, can remove the math problems that even the best chatbots have alone, guide students through involved calculations, explain phenomena and suggest approaches, with every step transparent and reproducible. But relying on them too much could weaken students' critical thinking and problem solving, and general-purpose models trained on internet data produce misconceptions and "hallucinations". The tools should be adapted to act as facilitators, not authorities, as in Khanmigo, a fine-tuned version of ChatGPT being tested for math teaching. The authors expect fine-tuned open-source models to serve physics education and competitions in the same way.
Sources
- Dominik Borovský, Jozef Hanč and Martina Hančová, “Innovative approaches to high school physics competitions: Harnessing the power of AI and open science,” arXiv:2309.02986 (2023) (https://arxiv.org/abs/2309.02986), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Authors of the original: Dominik Borovský, Jozef Hanč and Martina Hančová. Changed here: rewritten in hubnx's own words and shortened; the reference list and acknowledgments are left out; the figures shown are the authors' own. The paper says no chatbot corrected its numerical errors but also that Claude did after being challenged, so the first claim is left out. Their work was supported by the Slovak Research and Development Agency.
Commentaires



