paper-with-me

홈 › Papers

QuantCode Model: Specializing Language Models for Executable Algorithmic Trading Code

2026-09-30 · Alexey Chernysh, Orkhan Ekhtibarov, Dmitry Zmitrovich hf

Large language models are strong general-purpose code generators, but executable algorithmic trading remains a demanding specialization target: a model must translate a natural-language strategy specification into correct program logic for a specialized trading framework, execute on historical data, produce trades, and remain semantically faithful to the request. We study two complementary mechanisms for specializing language models for this setting: continued pretraining on algorithmic-trading framework code and supervised fine-tuning (SFT) on agent-validated request-to-code pairs. Evaluation is centered on QuantCode-Bench, our 400-task benchmark for Backtrader strategy generation, together with a repository-level SWE-bench-like track. Continued pretraining improves single-turn Judge Pass from 41.5% to 47.5% for Qwen3.5-397B-A17B and from 27.8% to 33.0% for Qwen3.6-35B-A3B. SFT applied after continued pretraining yields a larger gain for Qwen3.6-35B-A3B, reaching 58.2% Judge Pass and 83.5% successful backtests; in agentic evaluation it raises first-turn success from 22.3% to 58.3% and final success after up to 10 turns from 47.5% to 79.5%. Continued pretraining alone improves first-turn agentic success but lowers final success after repair from 47.5% to 32.5%, consistent with degraded instruction following, whereas SFT improves both. We also identify a capability-retention failure: domain specialization degrades parser-conformant structured tool calling, and targeted recovery SFT restores tool-call formatting but not the base checkpoint's repository-level agent performance. The results show that framework-oriented pretraining, validated SFT, and explicit capability-retention evaluation address distinct failure modes in domain-specific executable code generation.

📄 PDF Abstract BibTeX arXiv:2609.39420

Code (0)

등록된 구현이 없습니다.

Tasks

Instruction FollowingCode Generation

Similar Papers 제목 키워드 기반

QuantCode-Bench: A Benchmark for Evaluating the Ability of Large Language Models to Generate Executable Algorithmic Trading Strategies

2026-04-16 · Alexey Khoroshilov, Alexey Chernysh, Orkhan Ekhtibarov, Nini Kamkia 외 arxiv

Large language models have demonstrated strong performance on general-purpose programming tasks, yet their ability to generate executable algorithmic trading strategies remains underexplored. Unlike standard code benchma…

Code Generation

AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programs

2026-06-24 · Dhruv Sharma, Gautam Shroff arxiv

Recent work shows that Large Language Models (LLMs) can act as semantic mutation operators for the evolutionary discovery of programs and proofs. Most current applications focus on static coding benchmarks. We extend thi…

Program Synthesis

HedgeAgents: A Balanced-aware Multi-agent Financial Trading System

2025-02-17 · Xiangyu Li, Yawen Zeng, Xiaofen Xing, Jin Xu 외

As automated trading gains traction in the financial market, algorithmic investment strategies are increasingly prominent. While Large Language Models (LLMs) and Agent-based models exhibit promising potential in real-tim…

ATLAS: Adaptive Trading with LLM AgentS Through Dynamic Prompt Optimization and Multi-Agent Coordination

2025-10-10 · Charidimos Papadakis, Angeliki Dimitriou, Giorgos Filandrianos, Maria Lymperaiou 외 arxiv

Large language models show promise for financial decision-making, yet deploying them as autonomous trading agents raises fundamental challenges: how to adapt instructions when rewards arrive late and obscured by market n…

An overall view of key problems in algorithmic trading and recent progress

2020-06-09 · Michaël Karpe

We summarize the fundamental issues at stake in algorithmic trading, and the progress made in this field over the last twenty years. We first present the key problems of algorithmic trading, describing the concepts of op…

Algorithmic TradingBIG-bench Machine Learningreinforcement-learningReinforcement Learning+1