跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

物理学 > 物理教育

arXiv:2501.05577 (physics)
[提交于 2025年1月9日]

标题:Exploring Large Language Models (LLMs) through interactive Python activities

作者:Eugenio Tufino
查看论文《Exploring Large Language Models (LLMs) through interactive Python activities》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:This paper presents an approach to introduce physics students to the basic concepts of Large Language Models (LLMs) using Python-based activities in Google Colab. The teaching strategy integrates active learning strategies and combines theoretical ideas with practical, physics-related examples. Students engage with key technical concepts, such as word embeddings, through hands-on exploration of the Word2Vec neural network and GPT-2 - an LLM that gained a lot of attention in 2019 for its ability to generate coherent and plausible text from simple prompts. The activities highlight how words acquire meaning and how LLMs predict subsequent tokens by simulating simplified scenarios related to physics. By focusing on Word2Vec and GPT-2, the exercises illustrate fundamental principles underlying modern LLMs, such as semantic representation and contextual prediction. Through interactive experimenting in Google Colab, students observe the relationship between model parameters (such as temperature) in GPT-2 and output behaviour, understand scaling laws relating data quantity to model performance, and gain practical insights into the predictive capabilities of LLMs. This approach allows students to begin to understand how these systems work by linking them to physics concepts - systems that will shape their academic studies, professional careers and roles in society.
评论: 13 pages, 6 figures
主题: 物理教育 (physics.ed-ph)
引用方式: arXiv:2501.05577 [physics.ed-ph]
  (或者 arXiv:2501.05577v1 [physics.ed-ph] 对于此版本)
  https://doi.org/10.48550/arXiv.2501.05577
期刊参考: Phys. Educ. 60 (2025) 055003
相关 DOI: https://doi.org/10.1088/1361-6552/adea28

提交历史

来自:Eugenio Tufino
[v1] 2025年1月9日 星期四 21:09:44 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

physics.ed-ph
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-01
切换浏览方式为:
physics

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站