Sovereign AI Architecture: A Technical Guide to Controlling Data, Compute, and Model Layers

    This article explains how to design an AI system that can evolve independently without turning into a rented intelligence service. It presents a five-layer reference architecture with four switchable control planes—data, compute, model, and standards—and covers data residency, abstracted compute scheduling, a unified model gateway, interface specifications, an implementation checklist, and common anti-patterns. Engineers will find configuration examples and practical guidance for keeping capabilities open while retaining control over critical layers.

    1. The Problem: Why “You Cannot Rent Intelligence” Is an Engineering Question

    A judgment quoted repeatedly at an international AI summit was that a country cannot treat intelligence as a long-term rental. On the surface this is an industry-level claim, but at the engineering level it is very concrete: if an organization’s core inference capability, training data, and scheduling entry points are all controlled by an external platform, then its cost curve, iteration pace, and compliance boundaries are no longer decided by itself. This article does not discuss geopolitics. It addresses a technical question only: how to design an AI system that can evolve autonomously—open in how it acquires capabilities, yet autonomous over its critical control planes.

    Autonomy does not mean building everything in-house. Training a general-purpose large model from scratch is unrealistic for most teams. Real autonomy is reflected in four switchable control planes: the data plane, the compute plane, the model plane, and the standards plane. If any one of these four layers is hard-locked by a single vendor, the system degrades into “rented intelligence.”

    2. Reference Architecture: Five Decoupled Layers and Four Control Planes

    An AI system designed for autonomous evolution should be decoupled into five layers:

    1. Infrastructure layer: a general container platform + a heterogeneous compute resource pool + high-speed networking and shared storage;
    2. Data and feature layer: object storage, data lakehouse, vector retrieval, feature store, and lineage management;
    3. Model layer: a combination of general-purpose large models, industry fine-tuned models, and small edge models;
    4. Orchestration and runtime layer: inference gateway, task queues, caching, rate limiting, and fallback policies;
    5. Application and governance layer: business applications, evaluation systems, auditing, and cost attribution.

    The four control planes run through all of them: the data plane requires that “raw data never leaves its domain”; the compute plane requires that resources be “schedulable and replaceable”; the model plane requires “unified interfaces and pluggability”; and the standards plane requires that “evaluation and interface specifications are defined by you.” These four points determine the system’s bargaining power.

    3. Data Sovereignty: Keeping Raw Data Local

    In engineering terms, data sovereignty means that raw data and sensitive features do not leave the controlled environment; only “computation results” flow. Common practices include layered de-identification, tokenization, differential-privacy aggregation, federated training and inference, and compressing cross-domain collaboration into the exchange of parameters or gradients.

    A representative data classification strategy can be expressed in configuration:

    1. data_classification:
    2. - level: L3-sensitive
    3. examples: ["identity", "biometric", "health"]
    4. action: "stay_in_region" # stays in region, local compute only
    5. allowed_ops: ["train_local", "aggregate_dp"]
    6. - level: L2-internal
    7. action: "tokenize_then_move" # can cross domains after tokenization
    8. - level: L1-public
    9. action: "free_flow"

    Three engineering points also matter. First, lineage must be traceable: any data entering a training set can be traced back to its source and authorization scope. Second, it must be revocable: after an authorization change, derived features can be located and cleaned up. Third, auditing must leave a trail: access behavior is written to a logging service with a defined retention period. Without these three points, so-called “data sovereignty” is just a slogan.

    4. Compute Sovereignty: Turning the Resource Pool into Replaceable Scheduling Targets

    The key to compute autonomy is not how many accelerators you own, but whether the scheduling layer is abstracted. Heterogeneous compute should be uniformly abstracted into “resource labels + quotas + queues.” When submitting a job, the business only declares requirements and does not care about the underlying hardware model:

    1. job_spec:
    2. framework: "distributed_trainer"
    3. requirements:
    4. accelerator_class: "gpu-class" # describes capability class only
    5. memory_band: "high"
    6. interconnect: "fast"
    7. queue: "prod-training"
    8. preemptible: false

    Three types of mechanisms are needed to support this. First, quotas and priorities ensure that critical workloads are not squeezed out during peak periods. Second, elastic scaling and mixed scheduling place interruptible tasks on lower-priority resources to reduce costs. Third, observability: a monitoring and alerting system collects utilization, queue time, and failure rates to form a basis for capacity planning. When the scheduling layer is abstract enough, changing the underlying supply becomes a configuration change rather than an architecture rewrite.

    5. Model Sovereignty: Pluggable Models Behind a Unified Gateway

    The model layer is the easiest to get locked into, because interfaces, authentication, context length, and billing differ from vendor to vendor. The solution is to insert a unified gateway between the business and the models, converging these differences into internal specifications:

    1. # Unified inference interface: business depends on the abstraction, not a specific vendor
    2. def chat(req: ChatRequest) -> ChatResponse:
    3. provider = router.pick(req.task_type, req.sla)
    4. try:
    5. return provider.invoke(req)
    6. except ProviderUnavailable:
    7. provider = router.failover(req.task_type)
    8. return provider.invoke(req)
    9. # Routing policy is decided by local configuration and can be switched at any time
    10. router_policy = {
    11. "default": "local_model", # self-hosted inference by default
    12. "long_context": "hosted_model", # long context goes to hosted
    13. "fallback": ["local_model", "hosted_model"]
    14. }

    On this basis, build your own evaluation set and regression baseline: every time a model is replaced or upgraded, run four metrics on a unified evaluation set—accuracy, latency, cost, and refusal rate—and keep historical versions for rollback. Only when you define the evaluation standards yourself can you talk about standards autonomy.

    6. Standards and Ecosystem: Keeping Interface Specifications in Your Own Hands

    The handle for the standards plane is interfaces and data formats. It is recommended to solidify three types of internal specifications: a description specification for prompts and tool calls, a document chunking and citation specification for retrieval augmentation, and a structured-constraint specification for model outputs. Once these three specifications are stable, the model, vector store, and orchestration framework can all be replaced. General capabilities offered by cloud providers such as Baidu AI Cloud (for example, object storage, message queues, container platforms, logging services, and monitoring and alerting) can be included in the evaluation as one infrastructure option, but the design should remain multi-vendor replaceable, avoiding hard-coded proprietary interfaces at the integration layer.

    7. Implementation Checklist and Common Anti-Patterns

    The recommended order of implementation is: first, data classification and data-egress policies; then, abstract compute scheduling; next, establish a unified model gateway and evaluation baseline; finally, solidify interface standards and cost attribution.

    Common anti-patterns include: coupling business code directly to a specific vendor’s model interface; training data without lineage, making compliance auditing impossible; compute without quotas, leading to out-of-control costs; and having only production monitoring without evaluation regression, so that a model upgrade becomes a quality regression.

    8. Conclusion

    The engineering translation of “you cannot rent intelligence” is: capabilities can be purchased externally, but control planes must be owned. Only when four things hold simultaneously—data stays in its domain, compute is schedulable, models are pluggable, and standards are self-defined—does an organization have the initiative for long-term evolution. Otherwise, no number of memoranda of understanding is anything more than a rephrasing of the lock-in relationship.