AutoRecLab: 描述实验,获取代码!
摘要
AutoRecLab是一个基于Python的自主系统,可以从自然语言提示自动化推荐系统实验,使用检索增强生成(RAG)、静态验证和树搜索来生成和验证可执行代码。
arXiv:2609.21863v1 Announce Type: new
Abstract: Empirical evaluation is central to recommender-systems (RecSys) research, but turning experimental designs into executable code remains a manual and error-prone task. We present AutoRecLab, a Python-based autonomous RecSys lab that automates RecSys experiments from natural-language prompts. Given a research idea, AutoRecLab derives explicit experiment requirements, builds and validates a prototype, and iteratively expands it into the requested full experiment. The workflow combines retrieval-augmented generation (RAG) for documentation lookup, static type verification, and execution-steered tree search. In our demonstration, AutoRecLab autonomously implements an explicit-to-implicit feedback conversion study. In a baseline comparison across six algorithms and three datasets, 8 of 9 runs succeed at an average cost of approx- imately $1 per run with GPT-5.4-mini.
查看缓存全文
缓存时间: 2026/09/21 09:34
# AutoRecLab: Describe the Experiment, Get the Code! Source: [https://arxiv.org/html/2609.21863](https://arxiv.org/html/2609.21863) Conference:20th ACM Conference on Recommender Systems; September 27\-October 02, 2026; Minneapolis, MN, USA20th ACM Conference on Recommender Systems \(RecSys ’26\), September 27\-October 02, 2026, Minneapolis, MN, USADOI:[10\.1145/3773078\.3841273](https://doi.org/10.1145/3773078.3841273)ISBN:979\-8\-4007\-2284\-4/2026/09CCS:Information systems Recommender systemsCCS:Computing methodologies Natural language generationMoritz Baumgart[https://orcid.org/0009-0007-1322-1450](https://orcid.org/0009-0007-1322-1450),Philipp Meister[https://orcid.org/0009-0008-6814-9668](https://orcid.org/0009-0008-6814-9668)Affiliation:University of Siegen,Siegen,Germanyemail:[philipp\.meister@uni\-siegen\.de](mailto:[email protected]),Justus Krell[https://orcid.org/0009-0004-2234-3749](https://orcid.org/0009-0004-2234-3749)Affiliation:University of Siegen,Siegen,Germanyemail:[justus\.krell@student\.uni\-siegen\.de](mailto:[email protected]),Michael Schmidt[https://orcid.org/0009-0000-4862-0450](https://orcid.org/0009-0000-4862-0450)Affiliation:University of Siegen,Siegen,Germanyemail:[michael3\.schmidt@student\.uni\-siegen\.de](mailto:[email protected]),Bela Gipp[https://orcid.org/0000-0001-6522-3019](https://orcid.org/0000-0001-6522-3019)Affiliation:University of Göttingen,Göttingen,Germanyemail:[bela\.gipp@uni\-goettingen\.de](mailto:[email protected])andJoeran Beel[https://orcid.org/0000-0002-4537-5573](https://orcid.org/0000-0002-4537-5573)Affiliation:University of Siegen,Siegen,Germanyemail:[joeran\.beel@uni\-siegen\.de](mailto:[email protected]) © cc ###### Abstract\. Empirical evaluation is central to recommender\-systems \(RecSys\) research, but turning experimental designs into executable code remains a manual and error\-prone task\. We present AutoRecLab, a Python\-based autonomous RecSys lab that automates RecSys experiments from natural\-language prompts\. Given a research idea, AutoRecLab derives explicit experiment requirements, builds and validates a prototype, and iteratively expands it into the requested full experiment\. The workflow combines retrieval\-augmented generation \(RAG\) for documentation lookup, static type verification, and execution\-steered tree search\. In our demonstration, AutoRecLab autonomously implements an explicit\-to\-implicit feedback conversion study\. In a baseline comparison across six algorithms and three datasets, 8 of 9 runs succeed at an average cost of approximately $1 per run with GPT\-5\.4\-mini\. ###### Keywords: Recommender Systems, Autonomous Agents, Code Generation, RAG, LLM ††cc\-license:by## 1\.Introduction Autonomous science agents based on Large Language Models \(LLMs\) increasingly automate science and engineering tasks specified through natural\-language prompts\(Lu2024;Yamada2025\)\. Recommender\-systems \(RecSys\) research is a suitable domain for this type of automation because setting up and implementing experiments requires considerable manual work\. Researchers often need to write custom preprocessing code, configure evaluation loops, and adapt implementations to libraries such as LensKit\(ekstrand2020lenskit\), RecBole\(zhao2021recbole\), or meta\-frameworks such as OmniRec\(wegmeth2026omnirec\)\. Learning these libraries can help researchers understand experimental choices, but it also adds setup work for newcomers\. Experienced researchers likewise spend considerable time implementing and debugging experiments, and manual implementations remain susceptible to evaluation and reproducibility errors across libraries\(FerrariDacrema2019;Beel2024Best\)\. Systems that turn high\-level research ideas into explicit experiment requirements can reduce routine implementation work and check generated code against those requirements\. RecSys adds a methodological reason for such support: choices such as data filtering, splitting, candidate construction, and random seeds can materially affect experimental outcomes and their interpretation\(Beel2016;wegmeth2023effect;Beel2024Best\)\. A general code\-generation agent can therefore return executable software without reliably preserving the intended evaluation protocol\. AutoRecLab makes the translation from a research request to an executable experiment explicit and inspectable and combines it with RecSys\-specific software and validation steps\. Standard LLMs can assist researchers, but they frequently hallucinate API calls for domain\-specific RecSys libraries, and existing general science agents do not include RecSys\-specific configuration\. We examined several LLM\-based science agents, including Sakana’s AI Scientist\(Lu2024;Yamada2025\), Agent Laboratory\(Schmidgall2025\), AI\-Researcher\(Tang2025\), and Zochi\(Intology2025Zochi\), to assess their use for recommender\-systems research\. The agents we could test required additional context because they focus primarily on machine\-learning tasks\. Our detailed evaluation of AI Scientist likewise found that its performance on RecSys tasks fell short of expectations\(Beel2025b\)\. Our work on AutoRecLab builds on our earlier independent evaluation of Sakana’s AI Scientist in recommender\-systems research\(Beel2025b\)\. That study found substantial limitations in literature review, experiment execution, and methodological correctness: five of twelve proposed experiments failed because of coding errors, while several executable experiments still produced flawed or misleading results\. These findings motivated the development of research agents that incorporate RecSys\-specific software, experimental knowledge, and validation procedures\. Our group publicly introduced the AutoRecLab concept in October 2025\(beel2025autorecsys\), and subsequent work further developed the agenda for automated RecSys research\(beel2026autoreclabs\)\. To the best of our knowledge, AutoRecLab is the first publicly documented open\-source research agent developed specifically for recommender\-systems experimentation\.111[https://github\.com/ISG\-Siegen/AutoRecLab](https://github.com/ISG-Siegen/AutoRecLab)It takes natural\-language RecSys research tasks through requirement derivation, code generation, execution, evaluation, and iterative refinement\. The implementation described in this paper is an early proof of concept of that vision\. Starting from a single natural\-language prompt, AutoRecLab derives explicit experiment requirements, builds and validates a small prototype, and then refines it into the requested full experiment\. This staged process reduces the cost of detecting implementation errors before the complete experiment is executed and checks each generated implementation against the experiment\-specific requirements\. ## 2\.Related Work AI Scientist systems now automate large parts of computational research workflows\. Sakana’s AI Scientist generates ideas, implements and runs experiments, and drafts manuscripts; Agent Laboratory starts from a human\-provided idea and automates literature review, experimentation, and report writing\(Lu2024;Yamada2025;Schmidgall2025\)\. AI\-Researcher targets end\-to\-end scientific innovation, Data\-to\-Paper turns data and analyses into human\-verifiable papers, and CodeScientist links idea generation with code\-based experimentation\(Tang2025;Ifargan2025;allenai2025codescientist\)\. These systems provide evidence that agentic research workflows are feasible, although their development and evaluation have focused mainly on general or machine\-learning\-oriented research instead of the methodological and software conventions of recommender\-systems experiments\. A second line of work concentrates on autonomous machine\-learning engineering and experimentation\. MLAgentBench tests language\-model agents on iterative ML experiments, MLE\-bench evaluates agents across 75 Kaggle competitions, and AIDE treats ML engineering as tree search over executable code\(Huang2023MLAgentBench;Chan2024MLEBench;Jiang2025AIDE\)\. These systems are relevant to AutoRecLab because they use execution feedback, repeated refinement, and search over candidate implementations to automate experimentation\. Their benchmarks primarily measure successful ML engineering or performance improvement and do not cover RecSys\-specific choices such as interaction preprocessing, candidate construction, ranking evaluation, or compatibility across recommendation libraries\. Recommender\-systems research has its own history of experiment infrastructure and partial automation\. LensKit, RecBole, RecPack, and Elliot standardize parts of data processing, recommendation, and evaluation, while OmniRec supplies a common layer across several libraries\(ekstrand2020lenskit;zhao2021recbole;michiels2022recpack;anelli2021elliot;wegmeth2026omnirec\)\. Auto\-Surprise and LensKit\-Auto also automate algorithm selection and hyperparameter optimization inside predefined RecSys pipelines\(Anand2020AutoSurprise;Vente2023LensKitAuto\)\. AutoRecLab adds a research\-automation layer above these tools: it translates a research request into explicit requirements, builds and runs the corresponding experiment, and iteratively checks and refines the implementation\. Our earlier position work described this transition from AutoRecSys toward autonomous RecSys research\(beel2025autorecsys;beel2026autoreclabs\)\. ## 3\.AutoRecLab AutoRecLab is an open\-source Python command\-line tool that converts a natural\-language research prompt into valid, executable code\. Its workflow has three phases: requirements engineering, prototyping, and refinement from the prototype to the complete experiment\. AutoRecLab acts as a research\-automation layer above the recommender algorithms and experimentation libraries\. The prompt supplies the research specification, which AutoRecLab converts into machine\-checkable requirements\. An LLM then generates candidate implementations, retrieved documentation grounds API use, and static checks and execution feedback guide code improvement\. OmniRec provides the execution layer that connects the generated experiment to datasets and recommendation libraries\. Separating a small prototype from the complete experiment lets AutoRecLab establish an executable implementation before expanding it to the full requested study\. During these phases, AutoRecLab checkpoints intermediate states and stores Python code, generated plots, execution logs, and other artifacts in a dedicated workspace\. For experiment execution, it uses the OmniRec\(wegmeth2026omnirec\)meta\-framework, which standardizes data loading and training across more than 230 datasets and several RecSys Python libraries: RecPack\(michiels2022recpack\), RecBole\(zhao2021recbole\), LensKit\(ekstrand2020lenskit\), and Elliot\(anelli2021elliot\)\. ### 3\.1\.Demonstration AutoRecLab is distributed as a local tool, so no live\-system link is provided\. The source code and development history are available in the public GitHub repository222[https://github\.com/ISG\-Siegen/AutoRecLab](https://github.com/ISG-Siegen/AutoRecLab)\., from which users can run AutoRecLab on their own machines\. We evaluated AutoRecLab in four representative empirical RecSys scenarios\. The demonstration focuses on an explicit\-to\-implicit feedback conversion experiment with the MovieLens 1M dataset, initiated by the following prompt: > Test the influence of \[…\] feedback conversion strategies on recommendation accuracy by comparing multiple binarization thresholds \[…\]\. Evaluate \[…\] on the MovieLens1M dataset\. Report metrics \[…\], and compare ranking quality \[…\]\. From this prompt, AutoRecLab derived 22 requirements covering data loading, conversion thresholds, train\-test splitting, and evaluation\. It produced 169 lines of executable Python code and the requested comparative plots \(see[fig\.1](https://arxiv.org/html/2609.21863#acmlabel1)\) for a total API cost of USD 0\.76 withGPT\-5\.4\-mini\. Figure 1\.Plot generated by AutoRecLab for the explicit\-to\-implicit conversion experiment\. The panels report NDCG@10 \(top\) and Precision@10 \(bottom\) on MovieLens 1M for different algorithms and rating thresholds: greater than or equal to \(ge\) 1, greater than 3, and greater than 4\.Two vertically stacked grouped bar charts, each with three bars per feedback\-conversion condition\. For NDCG@10, ItemKNN is highest when ratings greater than or equal to 1 are converted to implicit feedback, whereas ImplicitMF is highest for thresholds greater than 3 and greater than 4\. For Precision@10, ItemKNN is highest for ratings greater than or equal to 1 and greater than 3, whereas ImplicitMF is highest for ratings greater than 4\. The popularity baseline is lowest in every condition, and all three algorithms reach their lowest values when only ratings greater than 4 are converted\.To assess reproducibility across standard algorithms, we asked AutoRecLab to establish a performance baseline with 6 algorithms for model comparison\. Eight of the nine runs \(≈89%\\approx 89\\%\) generated bug\-free code and plots, with a cost of about $1 per run\.[Table1](https://arxiv.org/html/2609.21863#S3.T1)reports the run\-level statistics\. Some runs have long total runtimes because execution of the generated code dominates the elapsed time\. Table 1\.Statistics for the AutoRecLab baseline experiment across nine runs \(P: Prototype, F: Final Refinement\)Datasets:ML1M: MovieLens 1M,MU: Amazon2018MusicalInstruments,VI: Amazon2018VideoGames\. We also evaluated AutoRecLab on a dataset\-filtering task that measured the performance effect of pruning users with few interactions\. A final scenario examined how random seeds used for user splitting affect evaluation metrics\. The resulting patterns reproduced qualitative trends from existing human\-conducted research\(wegmeth2023effect\), indicating that AutoRecLab can support empirical RecSys experimentation\. ### 3\.2\.System Architecture AutoRecLab implements and executes experiments through the three stages shown in[fig\.2](https://arxiv.org/html/2609.21863#acmlabel2)\. Figure 2\.AutoRecLab workflow\. Requirements are derived from the research task\. During prototyping, tree search and MCP\-based documentation retrieval produce a working prototype\. The refinement loop expands this prototype to the full experiment and returns the experimental summary, code, and plots\.A block diagram of the AutoRecLab workflow\. A user provides a Research Prompt, which enters Requirements Engineering and is separated into Full and Prototype Requirements\. Prototype Requirements enter the Prototyping Stage, where code is iterated with the OmniRec API, Tree Search, and MCP\-assisted documentation retrieval\. The resulting Prototype enters the Refinement Stage and is combined with the Full Requirements in a Final Refinement loop that returns a summary, code, and plots to the user\.#### 3\.2\.1\.Requirements Engineering AutoRecLab translates the user’s natural\-language prompt into a research plan and two requirement sets\.\(1\) Prototype Requirementsspecify a small, fast\-running experiment, usually limited to one dataset, one baseline algorithm, and one metric cutoff\.\(2\) Full Requirementspreserve the complete request, including every specified algorithm, dataset, metric, and visualization\. This separation lets AutoRecLab test the implementation on a small experiment before expanding it to the full setup\. #### 3\.2\.2\.Prototyping Stage AutoRecLab currently executes experiments through OmniRec and is therefore limited to the libraries and datasets that OmniRec supports\. Using AutoRecLab reduces manual setup; using OmniRec directly gives researchers more immediate control over configuration and implementation\. Code Generation & Verification: AutoRecLab generates code and applies static checks for type mismatches\. Detected errors start an automated correction loop\. RAG Documentation Server \(MCP\): AutoRecLab reduces hallucinated API calls by retrieving indexed documentation and code for OmniRec, LensKit, and RecBole through the Model Context Protocol \(MCP\)\. Evaluation & Tree Search: AutoRecLab executes each candidate in an independent workspace\. An LLM evaluates the generated code and console output and classifies, for every prototype requirement, whether the candidate fulfills it and whether the candidate is buggy or bug\-free\. The fraction of fulfilled requirements defines the node scoreS∈\[0,1\]S\\in\[0,1\]\. This score records requirement coverage and does not represent general confidence or guarantee correctness\. Candidate implementations form a search tree\. For node selection, AutoRecLab first chooses whether to sample from the buggy or bug\-free node set\. Anϵ\\epsilon\-greedy strategy then selects either the highest\-scoring candidate in that set or a random alternative for improvement or debugging\. The search stops when a candidate reachesS=1S=1or the configured iteration limit is reached\. #### 3\.2\.3\.Refinement Stage AutoRecLab starts from the executable prototype and incrementally extends it until the full requirements are satisfied\. Each revision is executed and evaluated before the next refinement\. At the end of the process, AutoRecLab returns the Python code, generated plots, execution logs, and a Markdown summary for inspection and modification\. ## 4\.Conclusion The evaluation covers a limited set of comparatively simple offline RecSys tasks\. Across nine runs, AutoRecLab produced code classified as bug\-free in eight cases, although some resulting analyses were not scientifically meaningful\. The results suggest that the approach is technically feasible and indicate that requirement coverage and successful execution alone may not fully capture experiment quality\. AutoRecLab is an early proof of concept for the broader vision of autonomous RecSys research labs\(beel2025autorecsys\)\. Its current capabilities depend on OmniRec, the underlying LLM, the coverage of indexed documentation, and a sequential search process that can produce long runtimes\. For supported tasks, AutoRecLab can reduce implementation effort and produce inspectable artifacts; researchers remain responsible for experimental design, code inspection, result interpretation, and decisions about when user studies are required\. Future evaluations can cover more complex RecSys tasks and different LLMs, assess generated code quality explicitly, index additional recommendation libraries, and parallelize the tree search\. Further extensions could add support for literature search and manuscript preparation\. ## References
相似文章
Auto-RecSys:利用自主研究代理实现工业级推荐系统
Auto-RecSys 是一个自主研究系统,用于自动化工业级推荐模型的长期实验,通过分布式执行、集中式记忆和认知程序分离来提高效率和可靠性。
利用专家代理进行自动研究:开发高效且非平凡的训练配方
本文介绍了一种自动研究框架,利用专家代理通过代码执行与反馈的经验闭环,迭代优化训练配方。该系统借助谱系反馈(lineage feedback),无需人工干预,即可在 Parameter Golf 和 NanoChat 等任务上自主提升性能。
@AlphaSignalAI:Karpathy 将实验自动化。AutoResearchClaw 将整个实验室自动化。大多数 AI 研究工具只处理一步。这个……
AutoResearchClaw 是一个 GitHub 仓库,它能够将整个 AI 研究流程自动化——从想法到完整的会议论文,包含真实的实验、经过验证的引用和可运行的代码,在 55 个主题的基准测试中,比之前的自主研究系统性能提升 54.7%。
在改进之前学习评估:自动研究代理的自动评分标准归纳
AutoSciRub 是一个评估优先框架,通过生成任务特定的可执行评分标准来指导实验和验证,从而改进自主科学代理,在基准测试中实现一致的性能提升。
@sitinme: 看到 Karpathy 开源了一个很有意思的项目autoresearch,把一个真实但小型的 LLM 训练任务交给 AI Agent,让它自己做研究、改代码、跑实验、看结果,然后决定保留还是放弃这次改动。 这个项目基于单张 NVIDIA …
Karpathy 开源了一个实验性项目 autoresearch,让 AI Agent 自动完成小规模 LLM 训练的研究循环:修改代码、运行实验、评估结果并迭代优化,人类只需编写研究计划和约束。