ML Artifacts Retention Schedule
This retention schedule is designed for Machine Learning (ML) artifacts in an enterprise environment, balancing reproducibility, cost optimization, auditability, data minimization, and regulatory compliance. It assumes a general regulatory landscape (e.g., GDPR, CCPA, EU AI Act, HIPAA for healthcare, SOX for finance) and classifies artifacts by lifecycle stage:
- Development: Experimental/training phase.
- Production: Deployed models.
- Deprecated: Retired models.
Retention periods are minimums—extend for high-risk use cases (e.g., high-risk AI under EU AI Act). Use tiered storage: hot (active access), cold (archival), delete. Automate with tools like AWS S3 Lifecycle, Azure Blob, or MLflow.
Key Principles
- Data Classification: Tag artifacts by sensitivity (e.g., PII in datasets → shorter retention post-anonymization).
- Triggers for Extension: Legal holds, incidents, audits, model retraining needs.
- Review Cadence: Annual review by legal/compliance teams.
- Deletion: Secure wipe (e.g., NIST 800-88 standards).
- Regulatory Mapping:
| Regulator/Standard | Key Expectations |
|---|
| EU AI Act (High-Risk AI) | Technical docs/logs: 10 years; auto-logs: ≥6 months; conformity assessments: lifetime + 2 years. |
| GDPR/CCPA | Personal data: Minimize; delete when purpose fulfilled (max 7 years for audits). Right to erasure. |
| HIPAA (Healthcare) | PHI: 6 years from creation/use. |
| SOX/Finance | Audit logs/models: 7 years. |
| FDA (Med Devices) | Validation data: Lifetime of device + 2 years. |
Retention Schedule
| Artifact Type | Description | Retention Period by Stage | Storage Tier | Rationale | Regulatory Tie-In |
|---|
| Datasets | Raw/processed training/validation data (incl. features, labels). | - Dev: 2 years- Prod: 7 years- Deprec: 1 year archival | Hot (active), then cold. | Reproducibility, bias audits, retraining. High storage cost → compress/anonymize early. | GDPR: Delete post-purpose; EU AI Act: 10 years for high-risk training data. HIPAA: 6 years PHI. |
| Prompts | Prompt templates, few-shot examples, chain-of-thought configs (LLM-specific). | - Dev: 1 year- Prod: 5 years- Deprec: 6 months | Hot → cold. | Versioning for debugging/explainability. Low storage footprint. | EU AI Act: Part of technical docs (10 years high-risk). SOX: 7 years for decision logs. |
| Checkpoints | Model weights/snapshots (e.g., epochs, fine-tuned versions). | - Dev (intermediate): 6 months- Prod (best/final): Indefinite (or 10 years)- Deprec: 1 year | Hot (top 3), cold (rest). Prune non-performers. | Rollback, A/B testing, reproducibility. Keep 1-3 per model. | EU AI Act: 10 years for high-risk models. FDA: Lifetime + 2 years. |
| Logs | Training/inference logs (metrics, errors, traces, telemetry). | - Training: 90 days- Inference: 1 year- Audit/security: 7 years | Ephemeral → cold. Sample/aggregate for long-term. | Debugging, monitoring drift/anomalies. High volume → retention policies with sampling. | EU AI Act: ≥6 months auto-logs (high-risk); SOX: 7 years audit trails. GDPR: PII logs → pseudonymize. |
Implementation Guidelines
- Metadata Tagging: Use ML metadata stores (e.g., MLflow, Weights & Biases) to tag by project, risk level, creation date.
- Automation:
- Policies: Trigger archival at 30% period, deletion at end.
- Alerts: Notify on expiry for review.
- High-Risk Adjustments (+EU AI Act High-Risk, Critical Infrastructure):
| Artifact | Extended Retention |
|---|
| Datasets | +3 years (10 total) |
| Checkpoints | Indefinite |
| Logs | +5 years (6+ total) |
- Cost Estimate Example (1TB artifacts, $0.023/GB/month cold storage):
| Period | Annual Cost |
|---|
| 1 year | ~$276 |
| 7 years | ~$1,932 |
- Exceptions Process: Documented approval for extensions (e.g., via ticketing system).
- Audit Trail: Log all retention actions for compliance proof.
This schedule ensures compliance-first design while enabling ML agility. Customize per jurisdiction/industry via legal review. For questions or tailoring, provide more context (e.g., sector, regs).