- New benchmark
QuantCode Model: Specializing Language Models for Executable Algorithmic Trading Code
It demonstrates that domain-specific code specialization can significantly boost task and backtest success while simultaneously triggering capability-retention failures in general structured tool calling.
The authors examine specializing LLMs for Backtrader algorithmic trading code through continued pretraining and agent-validated supervised fine-tuning (SFT). Evaluating on their 400-task QuantCode-Bench and a repository-level setup, SFT following pretraining raised Qwen3.6-35B-A3B agentic success from 47.5% to 79.5% after repair. However, domain specialization degraded structured tool calling, which was not fully recovered in repository-level agent performance by targeted recovery SFT.
Client angle, caveats & evidence
Client angle Relevant if a client is considering fine-tuning or continually pretraining open-weight coding models on proprietary, domain-specific programming frameworks.
Caveats Evaluation is centered on a single domain framework (Backtrader) and the authors' own new benchmark.