RD-Agent is an open-source R&D automation agent project by Microsoft, aiming to automate high-value general processes in industrial R&D through AI-driven data-driven AI, with a focus on data and models. Methodologically, it adopts a dual-component framework of "R (Research, proposing new ideas) + D (Development, implementing ideas)" to drive the automatic evolution of R&D.
Main capabilities and uses:
- Automatic quantitative factory: a multi-agent framework RD-Agent(Q) for quantitative finance, which can collaboratively perform joint optimization of factors and models, and automate full-stack quantitative strategy R&D.
- Data mining agent: iteratively proposes data and model solutions, and implements them by acquiring knowledge from data.
- Research copilot: automatically reads research papers or financial reports, and implements model structures or builds datasets.
- Kaggle agent: automatically performs model tuning and feature engineering to achieve better results in competitions.
- FT-Agent: for benchmark-driven domain adaptation, automatically performs LLM fine-tuning.
- Data science agent: preview stage, showing development progress.
Benchmark performance: On MLE-bench (a comprehensive benchmark based on 75 Kaggle competitions), R&D-Agent is currently the best-performing machine learning engineering agent. Specific configurations include O3(R)+GPT-4.1(D) (a combination of research agent o3 and development agent GPT-4.1) and the o1-preview version, the latter being the best public result reported in the original MLE-bench paper. Competitions are divided into three levels by complexity: Low (within 2 hours), Medium (2 to 10 hours), and High (over 10 hours).
Usage and installation: RD-Agent currently only supports Linux. Docker installation: Docker must be installed in advance, and ensure that the current user can run the docker command without sudo (can be verified via docker run hello-world). Create a Conda environment: conda create -n rdagent python=3.10, then conda activate rdagent. Install R&D-Agent: pip install rdagent; if you want to try the latest version or contribute code, you can install from source: git clone https://github.com/microsoft/RD-Agent,cd RD-Agent, make dev. Health check: rdagent health_check --no-check-env (checks whether Docker installation succeeded and whether the default rdagent UI port is occupied); after configuration is complete, run rdagent health_check.
Configuration: The demo requires capabilities such as ChatCompletion, json_mode, and embedding query. Multiple LLM providers can be connected via LiteLLM (default). Option 1: Use a unified API base for chat and embedding models, example (OpenAI): CHAT_MODEL=gpt-4o, EMBEDDING_MODEL=text-embedding-3-small, OPENAI_API_BASE and OPENAI_API_KEY; Azure OpenAI example: EMBEDDING_MODEL=azure/<embedding-capable deployment>, CHAT_MODEL=azure/<your deployment name>, AZURE_API_KEY, AZURE_API_BASE, AZURE_API_VERSION. Option 2: Set separate API bases for chat and embedding models, for example use gpt-4o for chat and SiliconFlow's litellm_proxy/BAAI/bge-large-en-v1.5 for embedding, and configure LITELLM_PROXY_API_KEY and LITELLM_PROXY_API_BASE. DeepSeek configuration example: CHAT_MODEL=deepseek/deepseek-chat, DEEPSEEK_API_KEY, with the embedding model using SiliconFlow's litellm_proxy/BAAI/bge-m3 and the corresponding LITELLM_PROXY_API_KEY and LITELLM_PROXY_API_BASE. If using a reasoning model that includes a thinking process (such as thinking tags), set REASONING_THINK_RM=True.
Run the application:
- Joint evolution of automated quantitative trading and iterative factor models: rdagent fin_quant
- Automated quantitative trading and iterative factor evolution: rdagent fin_factor
- Automated quantitative trading and iterative model evolution: rdagent fin_model
- Extract factors from financial reports: rdagent fin_factor_report --report-folder=<folder path>
- Automated model R&D copilot: rdagent general_model <paper URL>
- Automated medical prediction model evolution (data science): rdagent data_science --competition <competition name>
Applicable scenarios: quantitative finance strategy R&D, data mining and feature engineering, machine learning competitions, model implementation driven by papers and financial reports, LLM fine-tuning, data science modeling, etc.
Limitations: RD-Agent currently supports only Linux; most scenarios require Docker and a Conda environment; external LLM and embedding model APIs need to be configured; specific fees, prices, and support for some platforms are not yet provided.