FACE TO FACE

Work

Face to FaceNOV 2026 · ONGOINGA compressed neural network trained in the World Computer.

Abstract

A compressed neural network trained in the World Computer.

Face to Face is a collection of 512 autonomous artworks deployed as individual smart contracts (Face) from a single parent contract (FaceToFace). The parent is a neural network taught 64 historical portraits (CC0), one lesson per transaction, 1,024 lessons in total.

Every piece reads from that compressed neural network, whose weights are written into Ethereum storage by the lessons themselves, and computes its face from an immutable seed: a face the network was never shown.

A Face contract includes built-in ownership and simple marketplace logic. It tracks ownership, allows the owner to set a price, and enables direct purchase, making the piece a self-contained computational and economic object.

Collectors in this system own the algorithm itself rather than a pointer. The artifact exists, operates and transacts entirely on the Ethereum network.

1. Introduction

Artificial After All asked what an artwork becomes when it is not a file but a system: a trained network compressed into bytecode, computing its image on every call. Face to Face moves one step earlier. This time the network is trained on the blockchain itself, by the transactions Han sends to teach it.

The question is then not only what a machine produces, but how it comes to produce it, and whether that process can take place in public, on a shared computer that keeps its record.

2. System Overview

The system consists of two contracts, as in Artificial After All:

  • FaceToFace.sol: The parent contract and the neural network itself. It is trained by the 1,024 lessons, then maps a finite latent space into deployed instances, drawing each of their faces on request.
  • Face.sol: Individual contracts, each representing a single piece, holding its seed, its owner and its market.

The parent defines a fixed supply of 512. Each mint creates a new contract with a seed derived at creation time. Each Face contains:

  • Its seed
  • The algorithm that turns the seed into a face, using the trained network
  • The drawing of that face as a bitmap and a small HTML page
  • Built-in ownership and marketplace logic

There is no shared state between Faces. They share only the network they read from, and that network does not change.

3. Training

The mind is a small neural network of about 135,000 weights. Each portrait it is taught receives a memory of 31 numbers. A first layer turns a memory into 127 hidden units; only the 12 strongest, with one bias unit, contribute to each drawing. A second layer turns them into 1,024 cells: a face of 32 by 32 in ten tones of gray.

The class is 64 portraits: Fayum mummy portraits from Roman Egypt, Rembrandt and his circle, Albrecht Dürer and the German Renaissance. Every image is in the public domain, published under CC0 by its museum or on Wikimedia Commons. The dataset was prepared by reducing each portrait to 32 by 32 cells in ten tones of gray, 512 bytes. This preparation is the only part of the work computed offchain.

Each lesson is one transaction. In it the contract draws the portrait from memory, measures the distance between that drawing and the original, publishes the error, propagates it back through both layers, and writes the corrected weights. This is backpropagation in integer arithmetic, within the gas limit of a single transaction.

Over sixteen epochs the mean error falls from about five tones per cell, the error of a blank mind, to about one. The whole learning curve can be read from the chain.

4. The Trained Model as Artwork

The trained network is held in contract storage as integer weights, written there by the lessons. It is executed onchain using integer arithmetic.

Calling the artwork function derives a memory from the seed, performs a forward pass through both layers, and rounds each of the 1,024 cells to one of ten tones, producing a 32×32 grayscale image. The face is none of the 64 portraits; it is a position between them.

As in Artificial After All, the Face returns a bitmap: 1,024 grays, one byte per pixel. It also returns a small HTML page that shows the same pixels on white paper.

The output is recomputed on every call.

5. Determinism and Permanence

Each artwork is defined by an immutable seed, immutable model weights, and deterministic computation.

Given the same seed, the output will always be identical.

6. Sovereign Art Objects

The collector owns the actual sovereign digital being: its bytecode, its seed, the algorithm and its market. The trained network it reads from belongs to no one; it is public and fixed.

7. The Standard

The image emerges from what the mind learned through a continuous computational process. It is meant to be encountered as a whole. This is a deliberate choice.

Each Face is sovereign. Ownership, transfer and sale are handled by the Face itself. It does not follow the ERC-721 model, nor include attributes or bidding systems. Buying and selling are built into each contract, with the same market as Artificial After All.

The intent is not to withhold, but to keep a direct relationship between the viewer and the output, between a person and a computed face.

8. Finite Latent Space

The collection is limited to 512 instances.

The parent contract acts as a registry that maps a finite latent space into deployed contracts. A position in this space is a memory of 31 numbers, each between minus 127 and 127.

Both sizes come from Ethereum's 32 byte words. 31 numbers and a bias make 32 inputs, so each hidden unit reads its 32 one byte weights from a single storage slot, and a whole memory fits in one word. A byte holds 256 values; the range leaves out minus 128 so that it is symmetric around zero. The space therefore holds 255 to the power of 31 positions, a number of 75 digits.

Each mint consumes one position in this space and instantiates a new object.

9. Distribution Model

The first 64 of the collection, one for each portrait taught, are reserved for the artist. These pieces will be minted first and cannot be bypassed. The artist will decide whether to keep all of them or gift some to patrons.

After this initial phase:

  • For one day, the owners of Artificial After All can mint, as many as they like.
  • Then the remaining pieces are publicly mintable for 0.128 ETH.
  • All participants mint under the same conditions.

10. Technical Constraints

Learning onchain is more demanding than running onchain. A lesson has to draw, measure, correct and write within the limit of a single Ethereum transaction: 16,777,216 gas.

Training a neural network fully onchain introduces constraints:

  • No floating point operations → integer arithmetic, weights stored as small integers
  • Strict gas limits → only the 12 strongest hidden units and the bias unit learn in each lesson
  • Storage costs → 32 weights packed into each storage slot
  • Bytecode size limits → 24,576 bytes per contract; the mind, its learning, the mint and the code of a Face use 14,549

The heaviest lesson uses about 12 million gas, the whole training about 5.4 billion. Before anything was deployed, every lesson was checked bit for bit against an independent reference implementation.

The system is designed around these constraints, not abstracted away from them. A small mind, taught sixteen times over 64 faces, does not draw like a camera. Its faces are grainy and dark, sometimes unfinished, sometimes two memories at once. I do not treat these as flaws to remove. They show a mind still learning what a face is, and I find them more truthful than a clean result would be.

11. On Portraits

The work draws from the portrait, one of the oldest forms of the face in art.

Artificial After All engaged with character through the face of anime. With Face to Face, my work turns to the portrait and to memory: what a machine keeps of a face after seeing it sixteen times. I am glad to arrive at this point, where new faces exist as computational formations discovered between the ones it learned.

12. The Name

The name describes three encounters. I face a mind that has never seen a face, and teach it one portrait at a time, in public. The mind faces 64 portraits painted to be remembered, and keeps a memory of each. The collector faces a face that never existed, drawn by a contract of its own from the space between them.

Each encounter is recorded: the lessons are transactions, the memory is contract state, and the face is computed again on every call.

And the most beautiful part of all, this happens in a virtual world computer.

"Instead of trying to produce a programme to simulate the adult mind, why not rather try to produce one which simulates the child's?" Alan Turing, 1950

Statement

The medium is the message.

The Question

What happens when a machine learns to see faces in public, and what it learns is made permanent? Not trained in private and uploaded as a file, but taught on a decentralized machine that no one controls, one lesson per transaction, each lesson readable by anyone?

The Work

Face to Face is a collection of 512 standalone smart contracts deployed on Ethereum by a single parent contract. The parent contains a compressed neural network, a generative network of about 135,000 integer weights, trained onchain on a public domain dataset of 64 portraits (CC0), one lesson per transaction, 1,024 lessons in total.

There are no images of the artworks stored anywhere. No IPFS. No servers. No databases. No oracles. The portraits enter the chain only as the 512 byte images of the lessons. When a Face is called, it derives a memory from its seed and runs the trained network inside Ethereum's virtual machine, the first layer, the twelve strongest hidden units, the second layer, the ten tones, and produces a unique 32x32 grayscale image. The artwork is computed, not retrieved.

The Performance

Training a neural network is usually invisible: a process on private hardware, a loss curve on a screen, a file delivered at the end. In this work the training is the performance. Each lesson is public when it happens: the portrait, its image, the error before the lesson, and a fingerprint of everything learned so far.

The learning curve is therefore a record rather than a claim: 1,024 transactions that anyone can read and replay.

Permanence

Every digital artwork faces the same question: what happens when the server goes down? When the startup folds? When the domain expires? When the cloud provider changes its terms?

Face to Face has no dependency on any of these. The neural network, its weights and the record of how it learned live on a blockchain maintained by nodes across the planet. The same seed will produce the same face today, tomorrow, and for as long as Ethereum runs, on any machine that speaks the protocol.

This is not metaphorical permanence. It is computational permanence, a function that cannot be altered, censored, or deleted by any individual, corporation, or government.

Sovereignty

In most digital art systems, a piece is a token, an entry in someone else's registry, a row in someone else's database, a pointer to someone else's storage. The artwork exists at the pleasure of the platform.

Each Face is different. It is not a token in a collection. It is an independent smart contract with its own address, its own bytecode, its own seed, and its own behavior. It reads from one shared network that no one can change, and it does not depend on a platform. It is a sovereign object on the world computer.

Ownership is not managed by a marketplace. Each contract carries its own built-in economy, owners can list, price, sell, transfer, and withdraw, all encoded in the contract itself. No intermediaries. No platform fees. No permission required. The market is as permanent as the art.

The Machine That Learns to See

The neural network at the heart of the work is trained through a specific process: a generative network learning from 64 portraits over sixteen epochs, one lesson per transaction, in integer arithmetic, with backpropagation computed by the Ethereum Virtual Machine itself. Nothing is trained elsewhere, approximated afterwards, or uploaded.

This is not an AI generating art on demand. This is a record of machine learning, carried out in public and then made immutable. Each Face is a window into what the machine learned, selected by the seed given to its contract at the moment of creation.

The faces are not designed. They are not curated. They are not chosen. They emerge from learned representations in a 31 dimensional latent space, shaped by the portraits and the mathematics of the network.

The Factory

It begins with a single parent contract, a factory that creates the Faces once the training is complete. Each creation deploys a new smart contract onto Ethereum. The factory enforces scarcity: exactly 512 Faces can ever exist. The first 64, one for each portrait taught, are reserved for the artist. The remaining 448 are minted at a fixed price: for the first day by the owners of Artificial After All, then by anyone. Once 512 contracts are deployed, the factory is complete, it will reject every future call, forever.

The number 512 is not arbitrary. It is the number of bytes in which each portrait goes onchain: 1,024 cells in ten tones, two cells to a byte. A 32x32 image of 1,024 cells. 512 Faces in the collection. The constraints are computational, not aesthetic.

The Name

"Face to Face" describes the encounters at the heart of the work. The artist faces a network that has never seen a face, and teaches it one portrait at a time. The network faces 64 portraits, and keeps a memory of each. The collector faces a face that never existed, drawn from the space between them.

Each encounter is recorded: the lessons are transactions, the memory is contract state, and the face is computed again on every call. Faces that look back at you from 1,024 cells of grayscale, computed by mathematics that learned what a face looks like from 64 portraits, in public.

They are learned, after all.

Tech

1,024 transactions on the World Computer.

1. Overview

Face to Face is a fully onchain neural network trained on Ethereum. A generative network of about 135,000 integer weights learns 64 public domain portraits in 1,024 transactions, each running the forward pass, the loss and backpropagation inside the Ethereum Virtual Machine. After the seal, the same contract creates up to 512 standalone Face contracts, each drawing a unique 32 by 32 grayscale face from an immutable seed. No IPFS, no servers, no oracles, no external dependencies, no external code.

2. System Architecture

The system has three parts. The dataset pipeline, offchain, reduces each portrait to 32 by 32 cells in ten tones, 512 bytes. On Ethereum, one contract (FaceToFace) is the mind, the record of its training and the factory of up to 512 child contracts (Face), each holding its seed, its drawing and its own marketplace. An offchain indexer watches the events and serves a REST API; the frontend is a static site that reads from the indexer and the chain, and writes transactions through the user's wallet.

3. Neural Network

Each portrait has a memory: 31 signed 8 bit numbers and a constant bias. A first layer of 127 hidden units reads the memory; only the 12 strongest units, and the bias unit, speak. A second layer turns the speaking units into 1,024 cell sums, and each sum is rounded into one of ten tones, from white paper to the darkest ink. In all: 4,064 weights in the first layer and 131,072 in the second, about 135,000, every one a small integer in contract storage, 32 to a slot.

At birth the second layer is zero and the first layer is a fixed pseudorandom pattern that anyone can recompute.

4. A Lesson, Onchain

A lesson is teach(portrait, image): a portrait's number and its 1,024 tones, packed in 512 bytes. In one transaction the contract makes four passes. In each, it finds the speaking units, draws the portrait from its memory, compares every cell with the image, and moves the memory toward the image. On the last pass it corrects the second layer weights of the speaking units and the first layer rows that led to them. A portrait's first lesson only listens: it shapes the portrait's own memory, not the shared weights.

The loss before the lesson, the sum over the 1,024 cells of the distance between the drawn tone and the image tone, is published in the Lesson event with the image itself. The event also carries a history: a keccak256 chain over every lesson so far, its portrait, its image, the new memory and a digest of the changed weights. One hash fingerprints the whole training.

Gas is bounded by construction: a lesson that would read more than 40 rows of weights reverts. Mean lesson: 5.29 million gas. Heaviest: 11.98 million. The limit: 16,777,216.

5. The Seal

freeze() is possible once every portrait has been taught at least 15 times, and only once. It counts the 64 memories in a histogram and stores, for each of the 31 numbers, the median and the spread between the first and third quartile: the dream space. The same transaction opens the mint. Gas: 1.74 million.

6. A Dream

The seed of a mint is keccak256 of the block's randomness, the minter and the count. From it the Face derives 31 noise values, each the sum of four random bytes, roughly bell shaped. Its memory is the median plus the noise scaled by the spread. The sealed mind decodes that memory with its sealed weights into 1,024 tones, and the Face returns them as grays, 255 minus 217 times the tone divided by nine: from white paper to the darkest ink.

face() returns the 1,024 bytes. faceHTML() returns a small page that draws the same pixels, sharp, on white. Both are recomputed on every call.

7. Smart Contracts

The mind enforces a hard supply cap of 512, an artist reserve of 64 free mints, and a fixed public price set in its bytecode. The artist's 64th mint opens a one day collectors phase: createFace(artificial) asks Artificial After All's own contracts whether the caller owns the piece it names; after the day anyone can mint. Each Face is created by the mind with new Face(seed, minter) and carries single owner ownership and a complete marketplace: list, cancel, buy, transfer and withdraw. Withdrawals are pulled, which prevents reentrancy; a transfer cancels a listing atomically. The market is that of Artificial After All, line for line.

There is no ERC-721 interface, no tokenURI, no metadata. A Face is its contract address. The mind is 14,549 bytes of the 24,576 limit; each Face, 5,023. Every line of onchain code is the artist's own: no imported libraries.

8. Verification

Every lesson's arithmetic was checked bit for bit against an independent reference implementation before deployment. A full replay of the 1,024 lessons from the plan reproduces the trained mind byte for byte, and every dream drawn in rehearsal was redrawn exactly. The final history of the training is public, so anyone can check that the mind they read is the mind that was taught.

9. Constraints

The gas limit of one transaction shaped every decision. Integer weights. Twelve speakers. Forty rows at most. Four passes. A memory of 31 numbers: with the bias, 32 inputs, one storage slot of 32 one byte weights per hidden unit and one word per memory. The 32 by 32 resolution, the ten tones, the grain of the faces: all are consequences of fitting a whole learning step into a single Ethereum transaction.

10. Precedents

Neural networks have been trained in Ethereum contracts before: a perceptron and other simple classifiers (Microsoft Research, 2019), a small classifier with one hidden layer, on a local Ethereum node with the block gas limit removed (EPFL, 2022), and a perceptron that learned on mainnet in Hello World Computer, an earlier work created by Han, Jalil and Ygg.

Face to Face extends this to a generative network. Each lesson runs the forward pass, the loss and backpropagation into the memories and both layers of the decoder, within one transaction, and no weights are trained offchain or uploaded.

Bio

Who is Han?

Han Saglam (also known as hanrgb) is an artist pioneering the world computer as an artistic medium. His work operates through generative systems, smart contracts, data, and machine intelligence. His practice focuses on autonomous systems and digital permanence, where code becomes art and smart contracts function as living, self-executing works. He explores what art becomes when it exists independently within computation. His works are held in the permanent collections of LACMA, Dataland Museum, and Museum Francisco Carolinum, and have performed above estimates at auction houses including Sotheby's and Christie's. He has collaborated with over a hundred artists, including GMUNK, Refik Anadol, Zach Lieberman, DeeKay, Erick Calderon, Raf Grassetti, Rik Oostenbroek, and Six N. Five.

Currently developing a broader theoretical frame around what computation can become when it lives on a permanent, shared substrate, under the title On Artificialism.

X

Instagram

Notes

What if a mind had to learn in public, and could never unlearn?

Each Face is a 32 × 32 grayscale image. Small, dense, singular. Drawn straight from the bytes its contract returns.

Most neural networks are trained somewhere else, in private, and arrive finished. This one arrives blank. Everything it knows, it learns on Ethereum, in 1,024 transactions anyone can read. Then it is sealed, and from what it remembers it dreams faces that never existed.

There are 512 of them. Every Face sits at its own Ethereum address and reads from one network that was taught onchain. Call the contract, the network runs, on chain. It hands back 32 × 32 pixels. Same seed, same face, every time. But the picture is never saved. Ethereum draws it again, on every call.

Teaching · 1 of 3

The artist teaches it 64 portraits from the history of painting: Fayum mummy portraits, Rembrandt and his circle, the German Renaissance. Each lesson is one transaction. The mind draws the portrait from memory, measures how wrong it is, and corrects itself.

1,024Lessons
5.4 BGas

Its error falls from about five tones per cell to about one.

Sealing · 2 of 3

Then one transaction closes the class. The mind fixes the space it will dream in, the middle and the spread of its 64 memories, and its weights are locked forever. Not even the artist can change them.

64Memories
31Numbers each

Dreaming · 3 of 3

A mint draws a random seed. The Face turns it into a point between the memories and the sealed mind draws it: a face it was never shown. From the parent, 512 Face contracts are born. Each reads the same network but holds a different seed, its own marketplace, its own permanent independence. After birth, the parent has no power over them.

Five hundred twelve total. Sixty-four kept by the artist. 512, as many as the bytes in which each portrait goes onchain. Following the tradition of fine-art editions, the artist retains a portion of the run. The rest are minted at the same price, for the first day by the owners of Artificial After All, then by anyone.

One Face, up close

Meet Face BC5A. The image below is drawn from the real bytes its contract returns on chain, the same image you would get from calling the contract yourself.

address0x3a0865…bc5aunique URL on Ethereum, forever this one
seed0xd7e799…8b12the input number that made this specific face
face()returns bytesruns the trained network on chain, hands back 1,024 grays
owner—whoever holds it right now

Every Face exposes the same six functions, each callable directly from chain. The owner can list, cancel, or transfer. Anyone can buy. The seller withdraws the proceeds. No proxy, no escrow, no exchange. The Face manages itself.

  • listForSale(uint256 price): the owner opens an offer.
  • cancelFromSale(): the owner removes the listing.
  • buyNow() payable: anyone buys at the listed price.
  • transferOwnership(address to): gift the Face.
  • withdraw(): the seller pulls the proceeds.
  • face() view returns (bytes): anyone asks it to dream.

The afterlife

Every action a Face takes is permanently recorded: listed, canceled, transferred, sold. The whole life of one Face, compressed into a list anyone can verify. Below is the real history of Face BC5A, read directly from onchain events. Newest first.

Every pixel you see on the site comes from a Face's contract. You can verify any of them yourself by calling the contract directly.

Taught. Sealed. Dreamed. Now they wait, at their addresses, for someone to call them and watch the face appear.

I don't know what happens to them next. But they will keep dreaming, whether anyone is watching or not.

Links