ChatGPT FOR PROGRAMMING NUMERICAL METHODS
-
Published:2023
Issue:2
Volume:4
Page:1-74
-
ISSN:2689-3967
-
Container-title:Journal of Machine Learning for Modeling and Computing
-
language:en
-
Short-container-title:J Mach Learn Model Comput
Author:
Kashefi Ali,Mukerji Tapan
Abstract
ChatGPT is a large language model recently released by the OpenAI company. In this technical report, we explore for the first time the capability of ChatGPT for programming numerical algorithms. Specifically, we examine the capability of GhatGPT for generating codes for numerical algorithms in different programming languages, for debugging and improving written codes by users, for completing missed parts of numerical codes, rewriting available codes in other programming languages, and for parallelizing serial codes. Additionally, we assess if ChatGPT can recognize if given codes are written by humans or machines. To reach this goal, we consider a variety of mathematical problems such as the Poisson equation, the diffusion equation, the incompressible Navier-Stokes equations, compressible inviscid flow, eigenvalue problems, solving linear systems of equations, storing sparse matrices, etc. Furthermore, we exemplify scientific machine learning such as physics-informed neural networks and convolutional neural networks with applications to computational physics. Through these examples, we investigate the successes, failures, and challenges of ChatGPT. Examples of failures are producing singular matrices, operations on arrays with incompatible sizes, programming interruption for relatively long codes, etc. Our outcomes suggest that ChatGPT can successfully program numerical algorithms in different programming languages, but certain limitations and challenges exist that require further improvement of this machine learning model.
Reference49 articles.
1. Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G.S., Davis, A., Dean, J., Devin, M., Ghemawat, S., Goodfellow, I., Harp, A., Irving, G., Isard, M., Jia, Y., Jozefowicz, R., Kaiser, L., Kudlur, M., Levenberg, J., Mane, D., Monga, R., Moore, S., Murray, D., Olah, C., Schuster, M., Shlens, J., Steiner, B., Sutskever, I., Talwar, K., Tucker, P., Vanhoucke, V., Vasudevan, V., Viegas, F., Vinyals, O., Warden, P., Wattenberg, M., Wicke, M., Yu, Y., and Zheng, X., TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems, accessed from tensorflow.org, 2015. 2. Ahmad, A., Waseem, M., Liang, P., Fehmideh, M., Aktar, M.S., and Mikkonen, T., Towards Human-Bot Collaborative Software Architecting with ChatGPT, Comput. Sci. Software Eng., arXiv:2302.14600, 2023. 3. Bhatnagar, S., Afshar, Y., Pan, S., Duraisamy, K., and Kaushik, S., Prediction of Aerodynamic Flow Fields Using Convolutional Neural Networks, Comput. Mech., vol. 64, pp. 525-545, 2019. 4. Borji, A., A Categorical Archive of ChatGPT Failures, Comput. Sci. Comput. Language, arXiv:2302.03494, 2023. 5. Brooks, A.N. and Hughes, T.J., Streamline Upwind/Petrov-Galerkin Formulations for Convection Dominated Flows with Particular Emphasis on the Incompressible Navier-Stokes Equations, Comput. Methods Appl. Mech. Eng., vol. 32, nos. 1-3, pp. 199-259, 1982.
Cited by
37 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
|
|