ResearchModels 🇷🇺 27.07.2026 03:03

QuantCode-Bench: a new benchmark for evaluating LLMs' ability to generate executable algorithmic trading strategies

OpenAIOpenAI AnthropicAnthropic Google/DeepMindGoogle/DeepMind xAIxAI DeepSeekDeepSeek Alibaba/QwenAlibaba/Qwen Moonshot AIMoonshot AI
Researchers developed QuantCode-Bench, a benchmark to assess how well large language models (LLMs) can generate executable algorithmic trading strategies from textual specifications. The benchmark evaluates not only code correctness but also semantic alignment with the original trading idea through four stages: compilation, backtest, trade generation, and judge verification.
QuantCode-Bench is a benchmark designed to evaluate LLMs' capability to generate executable algorithmic trading strategies from natural language descriptions. It contains 400 tasks sourced from Reddit, TradingView, StackExchange, GitHub, and synthetic data, covering three difficulty levels. The evaluation pipeline consists of four stages: Compilation (syntactic check), Backtest (runtime execution), Trade (at least one trade executed), and Judge (semantic alignment via an LLM judge). Two modes are supported: single-turn (one-shot generation) and agentic multi-turn (up to 10 iterative refinements with feedback). Results show that while nearly all strong models achieve perfect compilation in single-turn mode, the final Judge Pass rates vary widely, with GPT-5.5 leading at 82.5%. In multi-turn mode, performance improves dramatically, with GPT-5.5 reaching 98.8% Judge Pass. The benchmark highlights that syntactic correctness is insufficient for domain-specific code generation, and that models must understand the trading domain, API semantics, and operationalize vague descriptions.
Сокращения
LLM = Large Language Model — большая языковая модель
API = Application Programming Interface — интерфейс программирования приложений
Source: Habr — хаб NLP — original
Our earlier posts on this topic ↓
Fresh news