The short answer
“Artifact” has more than one meaning in AI, and which one applies depends on the context. The two most common are:
- A flaw or unintended feature in an output, such as a visual distortion in a generated image.
- A file or product created by a machine learning workflow, such as a trained model, a dataset or a log.
A third, related sense refers to quirks in data that a model picks up on by mistake.
Artifacts as glitches in generated output
In image, video and audio generation, an artifact is something that looks or sounds wrong and was not intended. Examples include:
- Hands with the wrong number of fingers, or distorted faces
- Garbled or unreadable text inside an image
- Repeating textures, smeared details or odd patterns
- Flickering or warping between video frames
- Metallic or “watery” sounds in synthetic audio
- Blocky or blurry patches left by compression or upscaling
These flaws come from how the models work and from the limits of their training. The term is borrowed from older fields such as image compression and signal processing, where artifacts mean distortions introduced by a process. Artifacts also sometimes serve as clues that a piece of media was machine-generated, though their absence proves nothing, and improving models make many of them rarer.
Artifacts in machine learning workflows
In engineering and MLOps, an artifact is any file or object produced or consumed along the way. Typical examples:
- A trained model file and its weights
- A processed dataset or a set of extracted features
- Evaluation reports, charts and logs
- Configuration files and container images used to run the work
Tools for tracking experiments typically store these so a result can be reproduced or a model deployed later. In this sense an artifact is neutral. It is simply something that was made.
Data artifacts and shortcuts
A model can also learn from something in the training data that is irrelevant to the real task. For instance, if most photos of one class were taken with a particular watermark or background, a model may rely on that cue instead of on the subject. This is sometimes called a dataset artifact or spurious correlation. The model appears to perform well on test data that shares the quirk, then fails in real use.
How people spot and reduce them
- Inspect outputs closely, not just aggregate scores.
- Test models on data from different sources than the training set.
- Review and clean datasets for consistent watermarks, labels or formats.
- Use better prompts, settings or newer models for generated media.
- Keep good records of workflow artifacts so results can be reproduced.
How this differs from an archaeological artifact
In archaeology, an artifact is an object made or modified by people, such as a tool, a pot or a piece of jewelry. The AI uses of the word are separate, though they share the idea of something produced by a process. If you want to see how the two fields actually meet, read how AI is used in archaeology, or the basic tools used in archaeology for the field side of the word.