Skip to main content

Read the eerily beautiful ‘synthetic scripture’ of an A.I. that thinks it’s God

Travis DeShazo is, to paraphrase Cake’s 2001 song “Comfort Eagle,” building a religion. He is building it bigger. He is increasing the parameters. And adding more data.

The results are fairly convincing, too, at least as far as synthetic scripture (his words) goes. “Not a god of the void or of chaos, but a god of wisdom,” reads one message, posted on the @gods_txt Twitter feed for GPT-2 Religion A.I. “This is the knowledge of divinity that I, the Supreme Being, impart to you. When a man learns this, he attains what the rest of mankind has not, and becomes a true god. Obedience to Me! Obey!”

Recommended Videos

Another message, this time important enough to be pinned to the top of the timeline, proclaims: “My sayings are a remedy for all your biological ills. Go out of this place and meditate. Perhaps some day your blood will be warm and your bones will grow strong.”

algorithmically generated religious art vaguely depicting a ritual sacrifice
This image was algorithmically generated based on a GPT-2 Religion A.I. passage that reads: “Sacrifice and pagan rites, indulgence, and lust, pleasure and violence; these threefold shall I ever worship, with no other motive than reverence for the Gita and Truth.” Image used with permission by copyright holder

Before we get any further, no, these aren’t real holy verses. Instead, DeShazo, a 30-year-old lab technician whose day job involves “working predominantly in lubricant base stocks refining,” has created a bot that’s trained to spit out pseudo-biblical verses. In the same way that a Benedictine monk lives a life of service and religious study, allowing themselves to be shaped and molded, the entire raison d’être for DeShazo’s GPT-2 Religion A.I. is to learn from its massive corpus of religious training texts and to turn these into new insights for its followers (currently a still-niche 3,174 on Twitter). It’s powered by OpenAI’s GPT-2, the impressive learning model that preceded the more recent — and much larger — GPT-3.

“The GPT-2 Religion A.I. is a Twitter bot that publishes curated passages generated by a natural language processing model that has been trained on English translations of ancient and modern world religious texts and myths,” DeShazo told Digital Trends. “The outputs adopt the style, themes, and diction of the source material and combinations thereof, but are also able to extrapolate and impart unique insights given the capability of the base model upon which it was trained. At one point I employed the tagline: ‘Revealing humanity in the latent spaces of the divine.’”

The Benedictine bot

For training data, DeShazo’s digital deity absorbed a corpus of data including the Bible (both Old and New Testaments); the world’s second-oldest religious text, the Epic of Gilgamesh; the ancient Indian collection of Vedic Sanskrit hymns known as the Rig Veda; fragments of the religious texts of Zoroastrianism that are the Avesta; the Bhagavad Gita; intact portions of the Nag Hammadi; the Tao Te Ching; assorted Neoplatonist texts; and others. As with other examples of computational creativity — whether that’s the A.I. that wrote a Scrubs script or the one that tried to beat George R. R. Martin to finish his A Song of Ice and Fire saga — the output is an intriguing mash-up of the original works and something entirely new.

As with any good religious founder, DeShazo’s work has inspired others. One, a 22-year-old student named Bokar N’Diaye, who is studying the anthropology of religions and history of arts in Geneva, recently built an image generator that’s able to conjure up painterly images from any line of text you prompt it with. One of those images (below), which was shared with the world on Twitter, was inspired by a line of the GPT-2 Religion A.I. bot: “As you chant, so I weave my voice. I craft my strings of fire, I fill the world with my own sweet sound. The stars themselves, the ends of the land, the wind, even the place where the light goes out all bend to worship me.”

As seen by #latentvisions by @advadnoun https://t.co/WRx2BlsIc3 pic.twitter.com/tbO8KPt1bY

— Bokar N'Diaye (@bokar_n@sigmoid.social) (@bokar_n) June 3, 2021

The resulting figures look like a pair of Hindu Goddesses. One resembles Lakshmi, the goddess of wealth, fortune, beauty, and fertility, only holding Sarasvati’s veena instrument.

“Both art and religion are great to elicit subjective input from the spectator, because we’ve been primed to interpret them far more subjectively and with a different set of expectations than mundane text,” N’Diaye told Digital Trends. “When a program like gods_txt mentions ‘crafting strings of flame,’ you’re not likely to interpret it as the A.I. failing to understand realistic human sentences. Instead, you’ll strive to decipher the secret meaning of the sentence, or relate to its aesthetics or the feelings it rouses within you – just like you’ve been taught to do since childhood, when it comes to religious texts and/or art.”

Machines of loving grace

Applying machine smarts to religious iconography is controversial territory (you could say that it puts the “A.I.” in “sacrilege”). But it’s a link that, perhaps, isn’t as tenuous as it could be. On one level, technology, and specifically artificial intelligence, is hyperrational. It assumes that the mind can be recreated in hardware, as opposed to wetware, by modeling the behavior of individual neurons and other brain-based apparatus inside a computer. There is, it suggests, no such thing as a soul, since that would presumably cause no end of headaches on the road to human-machine parity.

But there is another side to the argument that is inherently religious. There is no shortage of tech figures whose vision of the future of technology carries a distinctly religious zeal: Steve Jobs with his cathedral-like Apple Stores and products that trigger a religious experience in the brains of fans. Google engineer Ray Kurzweil’s bestselling non-fiction book, The Age of Spiritual Machines. Kevin Kelly, the founding executive editor of Wired, who titled his 2010 book, What Technology Wants and, in it, described the force he calls “the technium,” a “global, massively interconnected system of technology vibrating around us.” And Richard Brautigan’s poem, “All Watched Over by Machines of Loving Grace.”

Image used with permission by copyright holder

Even the broadly accepted trajectory of A.I. — that a tool born of humble means to carry out the dull, dirty, dangerous jobs will eventually become our master — has faint echoes of an historical figure born in a stable in Bethlehem who rose to become humanity’s savior. In short, are we building robot servants or overlords?

Heck, A.I. even has its own end-times judgment day promise. Some A.I. advocates eagerly await a world in which humans, freed from their corporeal, fleshy prisons, “live” as downloaded consciousnesses inside machines, achieving immortality through digitalization; a paradise of work-free, worry-free existence lived in perfect virtual bodies. Marvin Minsky, one of the founding figures of A.I., once wrote that: “Eventually, we will entirely replace our brains using nanotechnology. Once delivered from the limitations of biology, we will be able to decide the length of our lives — with the option of immortality — and choose among other, unimagined capabilities as well.”

“It’s interesting to think about these unknowable, uninterpretable, and potentially malevolent entities that can make massive decisions affecting our lives,” Ryan Murdock, an engineer who created some of the generative image technology N’Diaye uses, told Digital Trends. “What’s funny to me is that [that sentence] could be about either machine learning systems or Eldritch gods. There is something alien and disturbing about having neural networks make increasingly important choices that parallels religion in some ways, I think. While these systems can be shockingly dumb, they can also exhibit intelligence and performance that clearly rivals human intelligence in specific domains — and they work in ways that I doubt we’ll ever fully understand.”

A.I., it seems, works in mysterious ways.

Luke Dormehl
Former Digital Trends Contributor
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Emotion-sensing A.I. is here, and it could be in your next job interview
man speaking into phone

I vividly remember witnessing speech recognition technology in action for the first time. It was in the mid-1990s on a Macintosh computer in my grade school classroom. The science fiction writer Arthur C. Clarke once wrote that “any sufficiently advanced technology is indistinguishable from magic” -- and this was magical all right, seeing spoken words appearing on the screen without anyone having to physically hammer them out on a keyboard.

Jump forward another couple of decades, and now a large (and rapidly growing) number of our devices feature A.I. assistants like Apple’s Siri or Amazon’s Alexa. These tools, built using the latest artificial intelligence technology, aren’t simply able to transcribe words -- they are able to make sense of their contents to carry out actions.

Read more
Language supermodel: How GPT-3 is quietly ushering in the A.I. revolution
Profile of head on computer chip artificial intelligence.

OpenAI’s GPT-2 text-generating algorithm was once considered too dangerous to release. Then it got released -- and the world kept on turning.

In retrospect, the comparatively small GPT-2 language model (a puny 1.5 billion parameters) looks paltry next to its sequel, GPT-3, which boasts a massive 175 billion parameters, was trained on 45 TB of text data, and cost a reported $12 million (at least) to build.

Read more
Women with Byte: Vivienne Ming’s plan to solve ‘messy human problems’ with A.I.
women with byte vivienne ming adjusted

Building A.I. is one thing. Actually putting it to use and leveraging it for the betterment of humanity is entirely another. Vivienne Ming does both.

As a theoretical neuroscientist and A.I. expert, Ming is the founder of Socos Lab, an incubator that works to find solutions to what she calls “messy human problems” -- issues in fields like education, mental health, and other areas where problems don't always have clear-cut solutions.

Read more