butsu.orgEncyclopedia of Buddhism

AI in the practice and study of the Dharma: uses and limits

mṛṣāvāda, kālāma, prajñā · 妄語 wàngyǔ (Japanese mōgo), "false speech"; 正語 zhèngyǔ (Japanese shōgo), "right speech"; 人工知能 réngōng zhìnéng (Japanese jinkō chinō), "artificial intelligence"

AI and Dharma deals with the use of artificial intelligence in the study, translation and teaching of Buddhism (searching for parallels, OCR, machine translation, assistants) and with the Buddhist criteria for evaluating it: checking the sources, right speech, a living teacher and practice.

AI and Dharma brings together two subjects: the practical use of artificial intelligence in working with Buddhist texts and teachings (translation, search, digitization, assistants) and the question of how the Dharma evaluates this technology. The subject changes quickly; this page records only what is documented in the cited sources and the criteria the tradition itself offers. For the theoretical question, whether a machine can have a mind, see Artificial intelligence and mind.

What AI has been used for

Buddhism possesses one of the largest textual corpora in the world, in Pāli, Sanskrit, Chinese, Tibetan and other languages (Canons and Sūtras, Pāli Canon, Chinese Canon, Tibetan canon). A good part of it was never translated or even rigorously edited. Computational language tools operate on four fronts:

  • Digitization and text recognition. Optical character recognition (OCR) turns manuscripts and woodblock prints into searchable text. The BDRC (formerly TBRC) maintains a large digital archive of Buddhist texts, above all Tibetan, and OpenPecha works with open Tibetan texts. See Sanskrit and Gāndhārī Manuscripts and Digital Databases.
  • Searching for parallels. BuddhaNexus (linked to the Dharmamitra project) looks for similar passages among Pāli, Sanskrit, Chinese and Tibetan texts, which is useful for studying the formation of the canons and the relations among the versions of a sutra (see Āgamas and Translation of the texts into Chinese).
  • Machine translation. Dharmamitra offers machine translation for classical Buddhist languages, and Monlam AI brings together tools for Tibetan. The 84000 project translates the Kangyur and the Tengyur with human translators, with the stated vision of offering the whole Tibetan canon free of charge.
  • Conversational assistants. Large-scale language models, based on the Transformer architecture (2017; GPT-3, 2020), answer questions about doctrine in natural language, and there are projects that specialize them in the canon.

Risks: hallucination and false speech

Language models generate plausible text, not necessarily true text. The phenomenon, called hallucination, is well known: the model may invent quotations, attribute sentences to the Buddha or to Nāgārjuna that do not exist, mix up schools or confuse terms. In religion the harm is greater, since a false "sutra" or a distorted doctrine may be taken seriously. In the Dharma, this touches the precept of abstaining from false speech (mṛṣāvāda; see Five precepts) and Śīla in general: whoever disseminates generated content must verify it before passing it on. This encyclopedia follows the rule of citing only texts and URLs that have been checked (see How We Evaluate a Movement).

There are also translation problems: in languages with little material, such as Pāli and classical Tibetan, quality varies greatly, and technical terms (dharma, vijñāna, kleśa; see Glossary and Equivalence Table) require a doctrinal choice that no statistical system can make on its own.

What the tradition teaches about evaluating sources

The Kālāma Sutta (AN 3.65) is frequently invoked to support personal examination. Take care with its use: the sutta does not dispense with tradition or teacher; it recommends verifying by their fruits what one has learned, and then indicates that the wise praise whatever reduces greed, hatred and delusion. The tradition also asks for a relationship with a qualified teacher, the context of the community (Three Jewels) and practice (Practice and meditation, Ethics and Monastic Life). An AI assistant can help to locate and summarize, but it does not transmit, does not ordain and does not correct the practitioner, as a teacher does (Orality, Writing and the Transmission of the Texts, Ordination rites). In Pure Land, Zen, Tibet and Theravāda the teacher-disciple relationship is part of the path.

Another limit is discernment (prajñā): the risk of delegating to the machine the effort of reflection that the teaching itself demands (see Noble Eightfold Path). This debate echoes that of the Extended mind and Yogācāra: when a tool is part of my process of thinking, what would it change in me? And, in a different context, it echoes that of McMindfulness, that is, technique detached from ethics.

Robots, images and temples

The Mindar android, at Kōdai-ji temple, is the best-known case of AI in a temple (Wikipedia, see Artificial intelligence and mind). The traditional question is whether the image "speaks" in place of a monk or merely serves as a support for practice. Opinions diverge among communities, and there is no single position of the traditions. An accessible overview is in the entry Buddhism and artificial intelligence, a tertiary source that should be checked against the references cited in it.

In summary

  • AI is useful for digitizing, searching for parallels and translating in a preliminary way, always with human review.
  • Hallucination is a real risk: every quotation must be checked against the source (Kālāma Sutta: verify, do not accept on prestige).
  • The relationship with a teacher, community and practice is not replaced by an assistant.
  • Buddhist positions on AI diverge and are still forming.

Timeline

  1. 2017

    Publication of the Transformer architecturedocumentedSource: arXiv:1706.03762

  2. 2019

    Mindar android inaugurated at Kōdai-ji, KyotodocumentedSource: Wikipedia, Mindar

  3. 2020

    Publication of the GPT-3 paper, a large-scale language modeldocumentedSource: arXiv:2005.14165

Studies