JustujuAI, layer by layer.Open in the interactive map

Open vs closed weights

Some models' weights can be downloaded and run anywhere; others can only be reached through the provider's service.

Layer 5 · Foundation Models · Build and run time · reviewed 2026-10-30

Read first: Post-training: from predictor to assistant.

SimpleA plain explanation, one diagram and an analogy, with where the analogy breaks.

Guess first: what can you do with a published recipe that a shop cake can't?

Show the answerBake it yourself at home, and change it. Open-weight models can be downloaded, run and changed by anyone.

Some cake recipes are secret: you can only buy the cake at the shop. Others are published so anyone can bake the cake at home.

Closed AI models are like the shop cake. Open-weight models are like the published recipe.

Closed models are used through an API or app. The provider controls updates, safety measures and how data is handled.

Open-weight models publish the trained weights. Anyone can download them, run them locally, fine-tune them or inspect them, under the terms of their licence, which ranges from permissive to restrictive.

Open weights aren't the same as open source: the training data and full training code are often not released.

Closed (API)Use through a provider's serviceProvider controls updates and safeguardsNothing to host yourselfOpen weightsDownload and run anywhereFine-tune, inspect, run offlineYou're responsible for hosting and safeguards
Two ways models are released

Like: A secret recipe versus a published one.
Where it breaks: A published recipe lists every ingredient. Most open-weight models publish the finished weights but not the data or full process, so you can bake the cake but not recreate how the recipe was developed.

ResearchWhere the simple picture breaks, open problems and primary sources.

The Simple explanation separates open and closed releases. The disputes are about how much extra risk open weights add, whether safeguards can survive, and what open should mean.

Marginal risk. A broad review found research insufficient to judge the extra risk open models add over existing technology (Kapoor et al., 2024); a US government report recommended monitoring rather than restricting for now (NTIA, 2024).

Safeguards that survive. Released safeguards can be fine-tuned away. One method resisted hundreds of fine-tuning steps, but durable protection is unsolved (Tamirisa et al., 2024).

What counts as open source. The main definition requires detailed information about training data, not the data itself, a compromise for data that cannot legally be shared (OSI, 2024).

How far behind. Open models have lagged the best closed models by about a year; if the gap narrows, closed providers must compete on something other than raw capability (Cottier et al., 2024).

Security on this concept: 3 threats Pending expert review

Model files that run code when you load them Pending expert review

Exposed
  • Machines that download and load third-party model files
  • The credentials and data on those machines
Attacks
  • Hiding commands in pickle-based model files that run on load
  • Compressing or breaking the file in unusual ways so model-hub scanners miss the payload
Real case
Incident: Malicious models on Hugging Face (nullifAI) (2025-02)
Controls
  • Load weights only in formats that cannot run code, such as safetensors
  • Pin models by hash or signature, not by name alone
  • Load untrusted models in an isolated environment
Owner
ML engineering, with AppSec
Reference
LLM04:2026 Supply Chain
AML.T0011.000 Unsafe AI Artifacts
AML.T0010.003 Model Repository

A hidden backdoor that survives safety training Pending expert review

Exposed
  • Model weights from training runs or third parties
  • Every product built on a backdoored model
Attacks
  • Training a model to behave badly only when a trigger appears
  • Hiding the trigger well enough that testing does not find it
Real case
Research demonstration: Sleeper Agents (2024-01)
Controls
  • Get models from sources you can verify; check signatures and hashes
  • Control who can change training data, code and checkpoints
  • Red-team for triggered behaviour, knowing tests cannot prove a model is clean
Owner
ML engineering, with CISO
Reference
LLM05:2026 Data and Model Poisoning
AML.T0018.000 Poison AI Model

Model weights copied out by insiders or intruders Pending expert review

Exposed
  • Weight files on servers and storage in data centres and labs
  • Staff, contractors and partners who are given access to them
Attacks
  • An insider or trusted recipient copying weights and sharing them
  • An intruder using stolen credentials to download weights from storage
Real case
Incident: Restricted research model weights leaked publicly a week after release (LLaMA) (2023-03)
Controls
  • Give as few people and systems as possible read access to weights; two-person rules for bulk copies
  • Encrypt weights at rest with keys held in hardware security modules
  • Alert on large or unusual downloads from weight storage
Owner
CISO, with ML engineering
Reference
AML.T0035 AI Artifact Collection
AML.T0025 Exfiltration via Cyber Means
AML.T0048.004 AI Intellectual Property Theft

All layers in the security view

Examples as of 2026-10-30

Sources

  1. The Open Source AI Definition 1.0 (Open Source Initiative) (2024)
  2. Dual-Use Foundation Models with Widely Available Model Weights Report (NTIA) (2024-07-30)
  3. On the Societal Impact of Open Foundation Models (Kapoor, Bommasani et al.) (2024-02-27)
  4. Tamper-Resistant Safeguards for Open-Weight LLMs (Tamirisa et al.) (2024-08-01)
  5. How far behind are open models? (Cottier et al., Epoch AI) (2024-11-04)

How it connects

More in Layer 5 · Foundation Models