Showing Posts From

Data engineering

AI Infrastructure Requirements: What Your Data and Platform Need Before Scaling

AI Infrastructure Requirements: What Your Data and Platform Need Before Scaling

Infrastructure requirements for AI are mostly data requirements. Models and compute are easy to buy. What decides whether a system works in production is whether the right data reaches it reliably, whether results can be reproduced, and whether someone notices when behaviour changes. This article lists the requirements an executive should ask about, ties them to published engineering guidance, and ends with a readiness checklist you can run before committing to a delivery date. General information, not legal advice. Why the model is the small part The 2015 paper Hidden Technical Debt in Machine Learning Systems by Sculley and colleagues at Google argues that fast progress with ML can make its benefits look costless, and that real systems carry substantial ongoing maintenance costs. It lists data dependencies, configuration issues, hidden feedback loops and changes in the external world among the sources. Google's MLOps guide makes the same point visually: the ML code is only a small part of a production ML system. For a budget holder, the practical reading is that the build cost is the minority of the lifetime cost. The requirements 1. Data access. The system needs the relevant data in a form it can process, at training time or query time. In most enterprises the data sits in several systems with different schemas and access mechanisms. Making it available is integration work, and it belongs in the programme plan as a line item with an owner. Access also needs to respect permissions: see the governance article on classification and access control before any internal data is indexed for retrieval. 2. Data quality and validation. Google's MLOps guide describes automated data validation that runs before training and detects input that does not match the expected schema (schema skew) and significant changes in statistical properties (value skew). The executive question is whether such checks exist and who is alerted when they fail. The wider issue of what quality means for your data is covered in the linked data quality article. 3. Pipelines. The same guide distinguishes manual, script-driven work from automated pipelines in which data preparation, training, validation and deployment run as repeatable steps. It lists several retraining triggers: on demand, on a schedule, on new data, on performance degradation and on data drift. Choose triggers deliberately, because each has a cost and a risk. 4. Data, feature and model versioning. Reproducibility requires knowing which data, code and parameters produced a given model. The guide describes metadata management that records pipeline versions, parameters, artifact locations, evaluation metrics and pointers to the previous model for rollback. It also describes a feature store as a central place to define, store and access features, which helps avoid training-serving skew by using one definition for training and serving. A feature store is optional in the guide; the need for consistent definitions is not. 5. Compute and storage. Requirements depend on the workload, so a generic number is not useful. Ask the delivery team for the workload assumptions behind the estimate (training frequency, data volume, serving pattern), for the chosen hosting option and for the data location. For European organisations the location of data and processing is a contractual and regulatory question as well as an engineering one. The vendor terms article linked below covers the contract side. 6. Monitoring. Google's guide says to actively monitor model quality in production and to track summary statistics of the data and online performance. Monitoring that only reports system uptime misses the failures specific to ML, where the service is running and the predictions are wrong. 7. Security and privacy. Controls on who can read training data, prompts and outputs, plus logging. For personal data, GDPR Article 25 requires data protection by design and by default, and Article 32 requires technical and organisational measures appropriate to the risk. Where a high-risk system falls under the EU AI Act, Article 10 requires documented data governance practices covering data origin, preparation, suitability and bias examination. The AI Omnibus (Regulation (EU) 2026/1744) moved the Annex III high-risk obligations to 2 December 2027, so the timing is less tight than it was, but the documentation burden does not appear overnight. 8. Cost and ownership. Cost control means a named owner for run costs, a way to attribute them to use cases, and a decision rule for when a system is retired. NIST AI RMF GOVERN 1.6 calls for mechanisms to inventory AI systems, resourced according to risk priorities. You cannot manage the cost of systems you have not listed. Readiness checklist This checklist is the author's own working tool, not research or a standard. Run each test with the delivery team and record the result. A requirement passes only if the pass signal can be shown, not described.Requirement Test Pass signal Fail signalData access List every source the use case needs, with its access mechanism and owner Each source has an owner and a working, permissioned connection Any source depends on manual exports or has no ownerPermissions Query with two users of different rights Each sees only what their rights allow Both see the same contentData validation Feed a file with a changed schema into the pipeline Pipeline stops or alerts before training or serving Bad data passes silentlyPipeline repeatability Rebuild the current model from scratch Same data, code and parameters reproduce it Only one person knows howVersioning and rollback Roll back to the previous model Rollback completes with a recorded version No previous version or no recordCompute and storage Request the workload assumptions behind the estimate Written assumptions and hosting location are documented Estimate is a single figure with no basisMonitoring Ask who is alerted if prediction quality drops A named owner and an alert on data and quality metrics Only uptime is monitoredSecurity and privacy Request access logs for training data and outputs Logs exist and a review is scheduled No logs, or no review ownerCost Ask for run cost by use case A named owner and a retirement rule Costs sit in a shared poolIf more than a few rows fail, the honest conclusion is that the delivery date is not yet supportable, and the programme should either fund the missing work or reduce scope. What to do nextRun the checklist with your delivery team this month and record each result. Add the data integration work for the first use case to the programme plan as a funded line item with an owner. Ask the team to demonstrate a pipeline rebuild and a model rollback. Name an owner for production monitoring, covering data and prediction quality. Start an inventory of AI systems with their data sources and run costs. Review the plan again after the first failed row is fixed, not before.SourcesSculley et al., Hidden Technical Debt in Machine Learning Systems (NIPS 2015) Google Cloud: MLOps, continuous delivery and automation pipelines in machine learning NIST AI Risk Management Framework 1.0 (AI 100-1) GDPR Article 25 GDPR Article 32 EU AI Act Article 10 White & Case: EU AI Omnibus enters into forceRelated readingThe Data Quality Problem Nobody Puts in the Deck Why AI Proof of Concepts Keep Failing to Reach Production AI Operating Model: Decision Rights, Roles and Funding for Enterprises

Read full article
The Data Quality Problem Nobody Puts in the Deck

The Data Quality Problem Nobody Puts in the Deck

Most data quality conversations in an AI program start from a belief: the business thinks its data is mostly fine, because the operational systems that produce it have run for years. That belief is rarely tested against the question that matters for AI, which is whether the data can support the specific model you want to build. This article does not rely on a story from a client project. It uses published research and standards to describe where the gap between "our data is fine" and "this data can train a model" tends to open, and offers a readiness check you can run before committing budget. What the research says Two pieces of published work are worth knowing. In 2021, Sambasivan and colleagues at Google interviewed 53 AI practitioners in India, East and West Africa and the USA about high-stakes AI projects. They coined the term "data cascades" for compounding events in which data issues cause negative downstream effects, and reported data cascades in 92 percent of the cases studied (the abstract does not say whether that counts practitioners or projects). They describe them as pervasive, invisible and delayed, but often avoidable (Sambasivan et al., CHI 2021). The sample is small and the projects were high-stakes ones in specific regions, so treat the 92 percent as an indication, not a benchmark for your company. The qualitative point is the useful part: the damage shows up late, far from where the data problem began. Northcutt, Athalye and Mueller examined the test sets of ten widely used computer vision, language and audio datasets. They estimated label errors averaging at least 3.3 percent across them, and at least 6 percent of the ImageNet validation set. They also found that on noisier test sets, lower-capacity models can outrank higher-capacity ones, which means that benchmark results can reflect label noise rather than model quality (Northcutt et al., NeurIPS 2021). These are public research datasets, not enterprise data. The finding still carries over as a warning: even carefully curated labelled data contains errors that nobody noticed, and your operational labels were curated less carefully. Dimensions of quality, and why a profile is not enough The UK government's data quality guidance recommends six dimensions as defined by DAMA UK: accuracy, completeness, uniqueness, consistency, timeliness and validity (Government Data Quality Hub). ISO 8000-8 treats syntactic, semantic and pragmatic quality as separate concepts; I have used the usual reading of them as conformance to syntax, correspondence to what the data represents, and fitness for the intended purpose, but only the catalogue listing was available to me (ISO 8000-8:2015 listing). The pragmatic level is where AI programs get caught. A standard data profile mostly tests syntax and completeness: null rates, formats, duplicates. It cannot tell you whether a field means the same thing before and after a system migration, or whether a label reflects what happened or what a process recorded. Those are semantic and pragmatic questions, and they depend on the model you plan to train. The same dataset can be fit for reporting and unfit for prediction. Four failure patterns that matter for AI These are patterns, described from the standard dimensions and from how supervised learning works. They are not findings from a specific study. Completeness hidden in the aggregate. A field that is 95 percent populated can have its gaps concentrated in one segment, period or region. Overall completeness hides that, and the model then performs worse exactly where data is thin. Some libraries handle missing values natively (XGBoost learns a default branch direction for them, for example, per its FAQ), but that handles the mechanics, not the question of why the values are missing. Semantic inconsistency. The same code or status value can change meaning after a migration, a form redesign or a policy change. The data stays syntactically valid, and the model learns a blend of two meanings. Temporal leakage and drift. Two separate problems. Leakage is information in a feature that would not have been available at prediction time. The scikit-learn documentation describes how this inflates performance estimates and leaves the model underperforming on genuinely new data (scikit-learn common pitfalls). Drift is the world changing after training. Both are caught by evaluating on time-ordered splits, which scikit-learn supports with TimeSeriesSplit, where training indices always precede test indices. Label noise. Operational labels come from processes: a fraud flag from one review team, a claim outcome under one set of rules. If criteria changed over time, the label set encodes the change as if it were signal. Northcutt et al. show that even curated benchmarks have this problem. Why feature engineering is not a fix A common engineering response is to normalise inconsistencies in the feature layer: lookup tables, deduplication, mapping rules. That is reasonable as a bridge. The cost is that every model built on the same source carries its own copy of the workaround, and each copy can break silently when the source changes. This is an opinion based on how pipelines work, not a measured result. If the same data feeds more than one model, fixing it at the source or in a shared, tested layer is usually cheaper over time. A readiness check you can run before training The table below is the author's own framework, not a research result. It turns each failure pattern into a test someone can run on a sample, with a pass signal that a business owner can read. Thresholds are deliberately left for you to set, because the right tolerance depends on the use case and the cost of being wrong.Failure pattern Test Pass signal Fail signalHidden missingness Compute completeness per segment (customer group, region, month), not only overall Gaps are similar across segments, or the model's key segments are well covered One segment the model must serve has much lower coverage than the averageSemantic inconsistency List every value of each categorical field by year or source system; ask a domain owner to confirm each meaning Domain owner confirms values meant the same thing across the training window A value changes meaning, or no one can say what it meant in earlier yearsLeakage For each feature, document when it is written to the source system relative to the prediction moment Every feature is demonstrably available at prediction time A feature is filled in after the event it is supposed to predictDrift Train on an earlier window, test on the most recent window; compare with a random split Time-split result is close to random-split result Time-split result is markedly worse, meaning the past does not describe the presentLabel noise Have two experts relabel the same random sample of records, then compare with stored labels Experts agree with each other and with the stored labels at a rate you judge acceptable Experts disagree with each other, or the stored labels differ from bothLineage and rights Trace each source to its owner and confirm permitted use for model training Owner and legal basis documented Source unclear, or permitted use not establishedRun it on one use case, for the fields the model will actually use. A first pass with a sample and two or three domain experts is enough to tell you whether a larger assessment is justified. The label noise test is the one teams most often skip, and the one that sets the ceiling for supervised models. What to do nextName the model and the decision it will support before assessing data. Quality is relative to purpose. Run the readiness check on a sample for that use case and record failures with an owner for each. Decide per failure: fix at source, fix in a shared layer, narrow the use case, or stop. Evaluate on time-ordered splits from the first experiment onwards. Put the results in front of the sponsor before the budget is committed, not after.SourcesSambasivan et al., "Everyone wants to do the model work, not the data work": Data Cascades in High-Stakes AI, CHI 2021 (Google Research page) Northcutt, Athalye, Mueller, Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks, NeurIPS 2021 (arXiv) UK Government Data Quality Hub, Meet the data quality dimensions (six dimensions as defined by DAMA UK) ISO 8000-8:2015 Information and data quality: Concepts and measuring (catalogue summary; the standard text is paywalled and was not read in full) scikit-learn, Common pitfalls and recommended practices scikit-learn, TimeSeriesSplit XGBoost, FAQRelated readingWho Owns the Output When AI Is Involved in Creating It Shadow AI: What's Already Running in Your Organization What Happens to Your Data Inside a Large Language Model

Read full article