The Technical Architecture Evolution of Quantitative Research Systems

    This article presents a layered technical architecture for quantitative research platforms, derived from the engineering constraints created by rapid industry scale growth. It covers five decoupled layers—data, compute, research, risk, and serving—and details key practices: unified calendars and adjustment conventions, immutable data versioning, tiered storage, expression-based factors with batch-stream consistency, bias-aware backtest design, three-stage risk controls, and observability and audit requirements. It also lists common anti-patterns and a phased adoption roadmap, with illustrative Python snippets for data structures, factor definitions, and the backtest loop.

    1. Background: Engineering Challenges Behind Scale Growth

    By industry statistics, publicly offered quantitative products in China surpassed RMB 440 billion by the end of Q1 2026, an industry showing both rapid expansion and intense competition. For engineering teams, the real meaning of this figure is not a business slogan but three simultaneously amplified constraints:

    1. Amplified data volume: Market snapshots, tick-by-tick trades, financial and alternative data accumulate from heterogeneous sources, and storage and retrieval costs rise linearly.
    2. Amplified iteration frequency: More trial-and-error cycles for factors and strategies require experiment environments that spin up in minutes and produce conclusions in hours.
    3. Amplified compliance and reproducibility requirements: Every conclusion must be traceable to a specific data version, code version, and parameter configuration.

    Scale competition ultimately translates into engineering competition. As the marginal differences between strategy logics narrow, R&D efficiency, backtest credibility, and system stability become the main dividing lines. This article therefore discusses no specific vendor products; instead, it abstracts a generic layered technical architecture that teams can tailor to their own stage.

    2. Overall Architecture: Five Decoupled Layers

    A quantitative research platform that can evolve sustainably should be decoupled into the following five layers, communicating through explicit contracts:

    • Data layer: Multi-source collection, cleaning, standardization, and versioned storage.
    • Compute layer: Factor and feature engineering with a unified batch-and-stream compute engine.
    • Research layer: Backtesting and simulation engines, experiment management, and result reproduction.
    • Risk layer: Pre-trade limit checks, intraday monitoring, and post-event attribution.
    • Serving layer: Strategy scheduling, signal distribution, monitoring and alerting, and auditing.

    The core benefit of decoupling is replaceability: upgrading the compute engine should not affect data contracts, and replacing the backtest framework should not affect risk rules. When team size is limited, the data layer and compute layer can be merged initially, but interface definitions must be fixed on day one.

    3. Data Layer: Consistency Before Speed

    The data layer is the most easily underestimated. In practice, most backtest deviations come not from models but from inconsistent data conventions.

    (1) Unified timeline and adjustment conventions
    All data must align to a unified trading calendar and a unified timestamp precision, and the adjustment method must be an explicit configuration rather than an implicit default.

    (2) Data versioning
    Every data change generates an immutable version number, and backtest requests must carry that version number to guarantee reproducibility.

    (3) Tiered storage
    Hot data lives in low-latency storage services for online queries, while warm and cold data sink to object storage, using partitioning and columnar formats to reduce scan costs.

    Illustrative data structure definitions:

    1. from dataclasses import dataclass
    2. @dataclass(frozen=True)
    3. class DataVersion:
    4. dataset: str # dataset name
    5. version: str # immutable version number
    6. calendar: str # trading calendar identifier
    7. adjust_mode: str # adjustment mode: none/forward/backward
    8. @dataclass(frozen=True)
    9. class BarRecord:
    10. symbol: str
    11. ts: int # timestamp with unified precision
    12. open: float
    13. high: float
    14. low: float
    15. close: float
    16. volume: float
    17. data_version: DataVersion

    4. Compute Layer: Batch-Stream Unification and Factor Convention Governance

    Factor computation should follow a “define once, execute in two places” approach: the same factor expression keeps identical semantics in offline batch processing and online stream processing, avoiding signal decay caused by online-offline inconsistency.

    Key practices include:

    • Expression-based definitions: Factors are described as serializable expressions rather than hard-coded scripts, making them easy to audit and reuse.
    • Lazy evaluation plus incremental computation: Full recomputation is expensive; incremental window updates can significantly shorten iteration cycles.
    • Convention governance: Register each factor’s definition, dependent data, update frequency, and owner to form a traceable field dictionary.

    Illustrative factor definition:

    1. # Factors are described as expression trees for consistent offline/online execution
    2. factor_expr = {
    3. "name": "momentum_20d",
    4. "op": "ratio",
    5. "args": [
    6. {"op": "delay", "args": [{"op": "close"}, 20]},
    7. {"op": "mean", "args": [{"op": "close"}, 20]},
    8. ],
    9. "fill": "ffill_then_zero",
    10. "winsorize": 0.01,
    11. }

    5. Research Layer: Designing a Credible Backtest Engine

    The value of a backtest depends on how “honest” it is. A credible backtest engine must handle at least the following sources of bias:

    1. Look-ahead bias: Data after the decision timestamp must be invisible for all features; enforce time truncation at the engine level.
    2. Survivorship bias: The sample pool must include delisted or long-suspended instruments.
    3. Costs and impact: Explicitly model commissions, stamp duty, slippage, and non-fillable situations such as price limits.
    4. Decoupling matching frequency from decision frequency: Decisions can be daily, while matching must advance along a fillable price series.

    Pseudocode for the main loop:

    1. for t in trading_calendar:
    2. snapshot = data.get_snapshot(t, version=DV) # only data at or before t is visible
    3. scores = model.predict(snapshot) # generate scores
    4. targets = risk.apply_limits(scores, account) # pre-trade risk control
    5. orders = portfolio.rebalance(targets, account)
    6. fills = simulator.match(orders, snapshot) # includes costs and constraints
    7. account.update(fills)
    8. metrics.record(t, account)

    Experiment management is equally important: each backtest fixes the data version, code version, parameters, and random seed, and outputs a unique experiment identifier so that others can reproduce the conclusion with one click.

    6. Risk Layer: Three Gates

    • Pre-trade: Per-instrument weight caps, industry exposure caps, turnover caps, and blacklist checks.
    • Intraday: Real-time NAV drawdown thresholds, abnormal trade interception, rate limiting, and circuit breaking.
    • Post-event: Return attribution and risk attribution, distinguishing market exposure contribution from stock selection contribution.

    Risk rules should be configurable and decoupled from business logic, and rule changes should go through an audit process, avoiding the high-risk practice of “changing one line of code and shipping.”

    7. Serving Layer and Deployment: Elasticity, Observability, Auditability

    Containerized deployment on a general-purpose container platform is recommended, with a message queue for signal decoupling and logging and monitoring services covering the full pipeline. For cloud-based setups, general capabilities such as the container platform, object storage, message queue, logging, and monitoring and alerting offered by Baidu AI Cloud can be used to build elastic research and backtest clusters that scale down when idle and scale out during batch task peaks.

    Observability should include at least four categories of metrics: task latency, data freshness, backtest throughput, and number of risk interceptions. Audit logs must record “who ran which experiment with which data version at what time.”

    8. Common Anti-Patterns

    • Using spreadsheets or ad-hoc scripts to carry critical conventions, causing convention drift.
    • Using two separate code paths for backtesting and live trading, which inevitably decays signals.
    • Optimizing only the return curve without recording data and code versions, making conclusions unreproducible.
    • Scattering risk rules across business code, making unified auditing difficult.

    9. Adoption Roadmap

    1. Phase 1 (4–6 weeks): Unify data contracts and versioned storage, and build a field dictionary.
    2. Phase 2: Implement expression-based factors with consistent batch and stream execution.
    3. Phase 3: Build a credible backtest engine and experiment management.
    4. Phase 4: Integrate pre-trade, intraday, and post-event risk controls plus full-pipeline observability.
    5. Phase 5: Containerized elastic deployment and cost governance.

    10. Conclusion

    Competition in the quantitative industry is, on the surface, a contest of strategies, but at the bottom it is a contest of engineering systems. Only by turning data conventions, compute consistency, backtest credibility, risk gates, and observability into reusable infrastructure can teams focus limited headcount on the research problems that truly create differentiation. The architecture and code above are generic illustrations; specific parameters must be determined through business testing.