Imagine a team training a model to answer questions about local history. It finds an old newspaper article and several reprints. One version adds an accusation that never appeared in the original. If the team feeds them all into training, the model may repeat the accusation in an answer. The time to check is before training, while the source of each text is still clear.

Text of the Code

“2.1.5. The Nature of Knowledge and Epistemological Criteria
It is prohibited to train AI on materials containing forbidden or misleading content (such as slander, promotion of shirk/kufr).”

Source: Islamic Code for the Use of AI, section 2.1.5.

Why verification matters

The Qur’an tells believers to verify news brought by an evildoer so they do not harm people unknowingly. The introduction to Sahih Muslim records a warning from the Prophet Muhammad ﷺ about the risk of passing on falsehood by repeating everything one hears. Applied to AI, this principle helps us decide which materials to trust for training. Qur’an 49:6. Sahih Muslim, Introduction, Hadith 5.

This section concerns what goes into a dataset when a model is trained or fine-tuned. In the newspaper example, set the reprint with the accusation aside and check it against the original. Three websites reprinting one article do not give you three independent confirmations. If the material is hard to assess from a religious standpoint, give a qualified scholar the context and leave it out while awaiting a decision.

How to review the data

  • Record where the material came from, who created it and which version will be used for training. A short dataset record can hold this information. The authors of “Datasheets for Datasets” recommend recording what a dataset contains, how it was collected and what it is suitable for. Datasheets for Datasets.
  • Assign someone to review ambiguous cases. An automated filter may flag a passage containing the word “slander,” which can also appear in a text warning against it. Read the passage in context before deciding whether it belongs in the dataset.
  • Before training begins, manually review a sample of material that has already passed screening. Count how many entries can be traced to their original source and how many unsuitable entries the filter missed. If the same error keeps appearing, check other material from that source.

The dataset record, review steps and measures are ways to put the Code’s requirement into practice. The section specifies no report format or sample size.

Brief FAQ

Is it enough to remove a source if the model has already trained on it?
Removing it helps with the next training run. Check the trained version separately: changing the list alone has no effect on that version.

Can we accept a quotation without a citation if it sounds convincing?
Find the original first. Check who said it and in what context. Set the quotation aside until you have those answers.

This article is for explanation and does not constitute a fatwa.