mlsanityData to 14 Oct 2026

GPT-4.1 Sets the Standard in Automated Experiment Design Using Novel Python Libraries

arXiv 2508.00033 ↗First posted 30 Jul 2025cs.SE cs.AI cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have advanced rapidly as tools for automating code generation in scientific research, yet their ability to interpret and use unfamiliar Python APIs for complex computational experiments remains poorly characterized. This study systematically benchmarks a selection of state-of-the-art LLMs in generating functional Python code for two increasingly challenging scenarios: conversational data analysis with the textitParShift library, and synthetic data generation and clustering using textitpyclugen and textitscikit-learn. Both experiments use structured, zero-shot prompts specifying detailed requirements but omitting in-context examples. Model outputs are evaluated quantitatively for functional correctness and prompt compliance over multiple runs, and qualitatively by analyzing the errors produced when code execution fails. Results show that only a small subset of models consistently generate correct, executable code. GPT-4.1 achieved a 100% success rate across all runs in both experimental tasks, whereas most other models succeeded in fewer than half of the runs, with only Grok-3 and Mistral-Large approaching comparable performance. In addition to benchmarking LLM performance, this approach helps identify shortcomings in third-party libraries, such as unclear documentation or obscure implementation bugs. Overall, these findings highlight current limitations of LLMs for end-to-end scientific automation and emphasize the need for careful prompt design, comprehensive library documentation, and continued advances in language model capabilities.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 34 of its 68 references that are in the map. First posted on arXiv 30 Jul 2025.

Builds on

34 of 68 references.

References · 34

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2025Qwen3 Technical Reportcited by 8,820
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  8. 2024GPT-4o System Cardcited by 4,588
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  10. 2025Gemma 3 Technical Reportcited by 1,824
  11. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
  12. 2024Qwen2.5-Coder Technical Reportcited by 1,203
22 more
  1. 2024Phi-4 Technical Reportcited by 711
  2. 20242 OLMo 2 Furiouscited by 340
  3. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
  4. 2023ChatGPT for Robotics: Design Principles and Model Abilitiescited by 299
  5. 2023Auto-GPT for Online Decision Making: Benchmarks and Additional Opinionscited by 255
  6. 2024Data Interpreter: An LLM Agent For Data Sciencecited by 225
  7. 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
  8. 2024CodeGemma: Open Code Models Based on Gemmacited by 150
  9. 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
  10. 2024AgentReview: Exploring Peer Review Dynamics with LLM Agentscited by 93
  11. 2025LLM4SR: A Survey on Large Language Models for Scientific Researchcited by 83
  12. 2024LitLLM: A Toolkit for Scientific Literature Reviewcited by 63
  13. 2024Calibration and Correctness of Language Models for Codecited by 49
  14. 2024Prompt Design and Engineering: Introduction and Advanced Methodscited by 45
  15. 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
  16. 2023BioPlanner: Automatic Evaluation of LLMs on Protocol Planning in Biologycited by 43
  17. 2024Reproducibility in Machine Learning-based Research: Overview, Barriers and Driverscited by 34
  18. 2025PiFlow: Principle-Aware Scientific Discovery with Multi-Agent Collaborationcited by 28
  19. 2024Improving Scientific Hypothesis Generation with Knowledge Grounded Large Language Modelscited by 22
  20. 2025Assessing the Macro and Micro Effects of Random Seeds on Fine-Tuning Large Language Modelscited by 10
  21. 2025DeepSeek-V3, GPT-4, Phi-4, and LLaMA-3.3 generate correct code for LoRaWAN-related engineering taskscited by 4
  22. 2023Generating Multidimensional Clusters With Support Linescited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 4.

8 papers.