From Human Days to Machine Seconds: Automatically Answering and Generating Machine Learning Final Exams (2206.05442v7)
Abstract: A final exam in machine learning at a top institution such as MIT, Harvard, or Cornell typically takes faculty days to write, and students hours to solve. We demonstrate that LLMs pass machine learning finals at a human level, on finals available online after the models were trained, and automatically generate new human-quality final exam questions in seconds. Previous work has developed program synthesis and few-shot learning methods to solve university-level problem set questions in mathematics and STEM courses. In this work, we develop and compare methods that solve final exams, which differ from problem sets in several ways: the questions are longer, have multiple parts, are more complicated, and span a broader set of topics. We curate a dataset and benchmark of questions from machine learning final exams available online and code for answering these questions and generating new questions. We show how to generate new questions from other questions and course notes. For reproducibility and future research on this final exam benchmark, we use automatic checkers for multiple-choice, numeric, and questions with expression answers. We perform ablation studies comparing zero-shot learning with few-shot learning and chain-of-thought prompting using GPT-3, OPT, Codex, and ChatGPT across machine learning topics and find that few-shot learning methods perform best. We highlight the transformative potential of LLMs to streamline the writing and solution of large-scale assessments, significantly reducing the workload from human days to mere machine seconds. Our results suggest that rather than banning LLMs such as ChatGPT in class, instructors should teach students to harness them by asking students meta-questions about correctness, completeness, and originality of the responses generated, encouraging critical thinking in academic studies.
- Language models are few-shot learners. In Proceedings of Advances in Neural Information Processing Systems (NeurIPS), Vol. 33. 1877–1901.
- Mark Chen et al. 2021. Evaluating Large Language Models Trained on Code. arXiv preprint arXiv:2107.03374 (2021). arXiv:2107.03374
- PaLM: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311 (2022).
- A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Level. Proceedings of the National Academy of Sciences 119, 32 (2022).
- Measuring massive multitask language understanding. In Proceedings of the International Conference on Learning Representations (ICLR).
- Large Language Models are Zero-Shot Reasoners. arXiv preprint arXiv:2205.11916 (2022).
- Competition-level code generation with alphacode. arXiv preprint arXiv:2203.07814 (2022).
- Mathpix. 2023. Mathpix Snip. https://mathpix.com/
- OpenAI. 2022. ChatGPT: Optimizing Language Models for Dialogue. (2022).
- Asking Questions Like Educational Experts: Automatically Generating Question-Answer Pairs on Real-World Examination Data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, Online and Punta Cana, Dominican Republic.
- Scaling language models: Methods, analysis & insights from training gopher. arXiv preprint arXiv:2112.11446 (2021).
- BLOOM: A 176B-Parameter Open-Access Multilingual Language Model. arXiv preprint arXiv:2211.05100 (2022).
- Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615 (2022).
- Solving Probability and Statistics problems by probabilistic program synthesis at human level and predicting solvability. In Proceedings of the International Conference on Artificial Intelligence in Education (AIED).
- Solving Machine Learning Problems. In Proceedings of the Asian Conference on Machine Learning (ACML). 470–485.
- Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171 (2022).
- Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903 (2022).
- Least-to-Most Prompting Enables Complex Reasoning in Large Language Models. arXiv preprint arXiv:2205.10625 (2022).