From Quantitative Trading to AGI: DeepSeek's Technical Approach and Open-Source Practice

    This article examines a technical path in large-model development that is often obscured by the assumption that performance gains come mainly from scaling compute and data. Using the founder's background in quantitative investing as a reference point, it explains how cost constraints motivate Mixture-of-Experts architectures, how reinforcement learning with verifiable rewards builds long-chain reasoning, and why open weights can be a cultural and engineering choice rather than a commercial concession. It also covers the engineering challenges of expert routing, KV cache growth, and reproducibility, and closes with a reusable checklist for compute planning, data governance, experiment reproducibility, serving, storage, and cost observability.

    1. Introduction: A Technical Path Hidden by the Compute Narrative

    Discussions about industrializing AI often assume that performance improvements are roughly equivalent to linear expansion of compute and data scale. This assumption does not hold in engineering terms, because compute is only one constraint. What actually determines the ceiling of model capability is the multiplicative effect of architecture design, training objectives, data quality, and engineering efficiency. This article uses the entrepreneurial path of a quantitative investing practitioner—born in Guangdong in 1985, with undergraduate and graduate degrees in electronic information engineering—as a background case, and abstracts from it a methodology worth reusing in large-model R&D.

    This person’s experience shows a clear technical continuity: first validating the feasibility of data-driven decision-making in financial markets through statistical modeling and automated trading systems, managing capital that at one point reached the scale of hundreds of billions, then migrating the same methodology to fundamental research in artificial intelligence, founding an organization focused on large language models and general artificial intelligence and serving as its CEO. The core lesson of this path is that quantitative trading and large-model training share the same underlying capabilities: high-throughput data pipelines, distributed compute scheduling, strict experiment reproducibility, and continuous quantification of cost versus benefit.

    2. Architecture Choices Under Cost Constraints: Mixture of Experts

    Traditional dense models activate all parameters during inference, so compute cost is strictly correlated with parameter count. The Mixture-of-Experts (MoE) architecture changes this relationship: the model contains multiple expert subnetworks, and a gating network selects a small number of experts to participate in computation for each input token. Total parameter count can therefore be very large, while activated parameters per token remain controlled.

    Three difficulties dominate the engineering implementation. The first is load balancing: if the gate favors a few experts, the remaining experts are undertrained, which is usually addressed with an auxiliary balancing loss. The second is communication overhead: when experts sit on different devices, tokens must be routed across devices, and All-to-All communication easily becomes the bottleneck. The third is training stability: routing decisions are discrete and gradients are sparse, requiring careful learning rate and initialization strategies.

    The routing logic can be expressed schematically as:

    1. # Gating scores + Top-K sparse activation (illustrative)
    2. logits = gate(x) # [batch, seq, num_experts]
    3. weights, idx = logits.topk(k=2, dim=-1)
    4. weights = softmax(weights, dim=-1) # normalized only within selected experts
    5. y = sum(weights[..., i] * expert_i(x, idx[..., i]) for i in range(k))

    Combined with a capacity factor and a dropping strategy, this can balance memory usage against throughput. One additional engineering consideration: combining expert parallelism with data parallelism significantly changes the communication topology, so parallel dimensions must be re-partitioned under the bandwidth constraints of cluster interconnect.

    3. Where Reasoning Ability Comes From: Reinforcement Learning and Verifiable Rewards

    To give a model long-chain reasoning ability, the mainstream approach is not to keep enlarging parameters but to change the training objective. Supervised fine-tuning is good at imitating existing solutions, but on tasks requiring multi-step deduction it tends to learn surface patterns. Reinforcement learning has the model sample its own reasoning paths and rewards it based on the correctness of the result, thereby reinforcing effective thinking strategies.

    Verifiable rewards are the key design: math answers can be checked automatically, and code can be verified by executing test cases. Such tasks provide a low-noise signal that is hard to game with “reward hacking.” The training pipeline typically has three stages: first a cold-start fine-tune to stabilize the output format, then large-scale reinforcement learning with rule-based rewards, and finally rejection sampling and preference alignment for overall convergence.

    1. # Key points of reward function design (pseudocode)
    2. if the answer is automatically verifiable:
    3. reward = 1.0 if the answer is correct else 0.0
    4. reward += 0.2 * format_compliance_score # discourage missing reasoning process
    5. else:
    6. reward = preference_model_score # fallback for subjective tasks

    It is worth emphasizing that long-context reasoning sharply amplifies memory usage, since the KV cache grows linearly with sequence length. The serving side must therefore combine paged cache management, continuous batching, and quantization strategies; otherwise capability gains will be offset by serving cost.

    4. Why Open Source Is a Cultural Choice Rather Than a Commercial Concession

    A common misconception is that open source means giving up commercial value. A more accurate understanding is that during the diffusion phase of a disruptive technology, the barrier created by closed source has a limited shelf life. Once model weights are open, capability spills rapidly along the ecosystem, and any single-point advantage will be caught up with. Conversely, open weights accelerate developer adaptation, toolchain maturity, and scenario validation, giving the technology provider de facto standard status and a talent concentration effect. At the same time, open source does not preclude commercialization: hosted inference services, enterprise-grade deployment support, and data and compliance capabilities remain sustainable revenue sources.

    From an engineering perspective, open source also brings a reproducibility dividend: external reproduction experiments expose hidden defects in training details and improve internal engineering quality in return. This is the rational logic behind assessments like “holding traffic yet choosing hard-core technology”—the real moat comes from continuous iteration speed, not a one-time information asymmetry.

    5. A Reusable Engineering Practice Checklist

    • Compute planning: estimate inference cost by activated parameters per token rather than total parameters, avoiding distorted capacity planning.
    • Data governance: establish mechanisms for deduplication, quality scoring, and mixture experiments; data mixture often affects final capability more than a short-term compute increase.
    • Experiment reproducibility: fix random seeds, record data versions and parallel strategies, and keep conclusions traceable.
    • Serving tiers: isolate training clusters from online inference, use a container platform for elastic scaling on the inference side, and cover latency and failure-rate metrics with logging, monitoring, and alerting.
    • Storage and transfer: large-scale corpora and checkpoints are well suited to object storage, and data preprocessing pipelines should be decoupled through a message queue to avoid long-running tasks blocking others.
    • Cost observability: annotate each experiment with compute consumption and a benefit curve to form comparable internal benchmarks.

    If an organization wants to validate these ideas quickly, it can build an elastic training and inference environment on general-purpose cloud capabilities such as container platforms, object storage, message queues, and monitoring and alerting, concentrating effort on architecture and data themselves.

    6. Conclusion

    From quantitative investing to general artificial intelligence, the transferable lesson of this path is clear: first use a measurable experimental system to confirm direction, then use architectural innovation to break through compute constraints, use reinforcement learning to close the reasoning gap, and finally trade an open ecosystem for iteration speed. For developers, the most worthwhile investment is not chasing parameter scale but building an engineering system that continuously produces reliable conclusions.