Work
Abstract
A compressed neural network embedded in the World Computer.
Artificial After All is a collection of 256 autonomous artworks, deployed as individual smart contracts (Artificial) from a single parent contract (Artificial After All). Every piece contains a compressed neural network with its weights embedded directly in Ethereum bytecode and produces its image by computing from an immutable seed.
An Artificial 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 through Ethereum network.
1. Introduction
What if the artwork is not a file, but a system? What if it exists as code, defines its own behavior, and produces itself through execution?
Artificial After All is built around this idea. A neural network is compressed and embedded directly into smart contract bytecode, forming a self-contained object that can compute, be owned, and be traded without relying on any external system.
2. System Overview
The system consists of two layers:
- ArtificialAfterAll.sol: The parent contract that maps a finite latent space into deployed instances
- Artificial.sol: Individual contracts, each representing a single piece.
The parent defines a fixed supply of 256. Each mint creates a new contract with a unique seed derived at creation time and contains:
- A compressed neural network (~15K parameters)
- An inference engine implemented in Solidity
- A deterministic rendering pipeline
- Built-in ownership and marketplace logic
There is no shared state between Artificial contracts. Each one exists independently.
3. Training
The model is a generative adversarial network trained on a publicly available dataset of 43,000 anime faces. Training used quantization-aware fine-tuning, where the network learned to produce images under the same integer arithmetic constraints it would face onchain. The weights were not approximated after training. The int8 model that completed quantization-aware training is the model that was deployed.
After training, the 15,657 parameters were compressed using Huffman coding and embedded directly into contract bytecode. The compression is lossless, decompression happens onchain before each inference.
The choice of training data is part of the work. The model does not reproduce its training set. It learned a compressed representation of visual structure from those images and generates new outputs from that representation.
4. The Model as Artwork
The neural network is embedded directly in bytecode as compressed weight data. It is executed onchain using fixed-point arithmetic.
Calling the artwork function derives latent input from the seed, performs a forward pass, and applies normalization, shaping, and dithering to produce a 32×32 grayscale image. A 1-pixel border is applied, resulting in a 30×30 visible output.
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: bytecode, the weights, the inference engine, the rendering pipeline, the algorithm.
7. The Standard
The image emerges from learned representations through a continuous computational process. It is meant to be encountered as a whole. This is a deliberate choice.
Each piece is sovereign. Ownership, transfer, and sale are handled by the piece itself. It does not follow the ERC-721 model, nor include attributes or bidding systems. Buy and sell are embedded directly into each contract.
The intent is not to withhold, but to preserve a direct relationship between the viewer and the output, between a person and a computed image.
8. Finite Latent Space
The collection is limited to 256 instances.
The parent contract acts as a registry that maps a finite latent space into deployed contracts. Each mint consumes one position in this space and instantiates a new object.
9. Distribution Model
The first 64 of the collection 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:
- The remaining pieces are publicly mintable for 0.128 ETH.
- All participants mint under the same conditions
10. Technical Constraints
The network architecture was designed to fit within Ethereum's 24KB contract size limit. The model was trained using quantization aware fine-tuning. The network learned to produce images under integer arithmetic constraints, rather than having its weights approximated after training. The weight precision, layer dimensions, and activation functions were all chosen with the deployment target in mind.
Running a neural network fully onchain introduces constraints:
- No floating point operations → fixed-point math
- Strict gas limits → compressed weights and optimized loops
- Memory limitations → minimal buffer design
- Bytecode size limits → ~24kb
After training locally, the weights were compressed using canonical Huffman coding, reducing 15,657 parameters into dense bytecode that is decompressed at inference time. The inference engine itself is written in Solidity assembly, optimized inner loops with incremental pointer arithmetic and output-channel unrolling to stay within gas limits.
The system is designed specifically around these constraints, not abstracted away from them. The offchain work exists to make the onchain execution possible. There will always be artifacts, whether the model runs in an optimal environment or within this constrained onchain setting. These deviations are not flaws to eliminate but inherent qualities of the system. The unexpected outputs, the distortions, the moments where the model misinterprets its own latent space, these are embraced as part of the work. I am drawn to these irregularities; they reveal the system thinking beyond intention, producing results that are not entirely predictable, yet still fully its own.
11. On Characters
The work draws from the visual language of anime faces as a familiar structure through which identity can emerge. The face becomes a minimal surface for expression.
After years of working through systems, abstractions, and non-figurative outputs, this marks a shift. For the first time, my work engages directly with identity and character. I am glad to arrive at this point, where these forms exist as computational formations discovered within the latent space.
12. The Name
The images are artificial, the intelligence is artificial, the art is artificial.
And yet something emerges. A model trained on tens of thousands of faces develops its own internal representation of what a face is. It computes something that did not exist before, from structure it was never explicitly given. The output is synthetic, but the process that produces it is not trivial. There is a learned compression of visual reality inside and it runs every time when its called.
And the most beautiful part of all, this happens in a virtual world computer.
“The electric light did not come from the continuous improvement of candles.” (Oren Harari)
Statement
The medium is the message.
The Question
What happens when a machine learns to see faces, and that learned vision is made permanent? Not as a file to be copied, not as a server to be maintained, but as a living computation on a decentralized machine that no one controls and no one can turn off?
The Work
Artificial After All is a collection of 256 standalone smart contracts deployed on Ethereum. Each contract contains a compressed neural network, a generative adversarial network trained on a publicly available dataset of 43,000 anime faces, quantized to 15,657 integer parameters, and embedded directly into bytecode.
There are no images stored anywhere. No IPFS. No servers. No databases. No oracles. When a contract is called, it runs the full neural network inside Ethereum's virtual machine, dense layers, transposed convolutions, activation functions, normalization, dithering, and produces a unique 32x32 grayscale image from an immutable seed. The artwork is computed, not retrieved.
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?
Artificial After All has no dependency on any of these. The neural network lives in bytecode on a blockchain maintained by hundreds of thousands of nodes across the planet. The same seed will produce the same face today, tomorrow, and a thousand years from now, on any machine that speaks the protocol. The art exists as long as Ethereum exists.
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 Artificial 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 neural network, and its own behavior. It does not reference a parent. 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 Learned to See
The neural network at the heart of each piece was trained through a specific process: a generative adversarial network learning from a publicly available dataset of 43,000 anime faces, then quantized from floating-point to 8-bit integers through quantization-aware training, then compressed via Huffman encoding, then exported as Solidity bytecode.
This is not an AI generating art on demand. This is a frozen moment of machine perception, a neural network that learned to see faces, then was crystallized into immutable code. Each piece is a window into what the machine learned, selected by the deterministic seed baked into 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 32-dimensional latent space, shaped by the training data and the mathematics of the network. They are artificial, after all.
The Factory
It begins with a single parent contract, a factory that anyone can call to create their own Artificial. Each creation deploys a new smart contract onto Ethereum. The factory enforces scarcity: exactly 256 pieces can ever exist. The first 64 are reserved for the artist. The remaining 192 are publicly mintable at a fixed price. Once 256 contracts are deployed, the factory is complete, it will reject every future call, forever.
The number 256 is not arbitrary. It is 2^8, the number of values a single byte can hold, the fundamental unit of digital information. A 32x32 image, each pixel one of 256 shades. 256 pieces in the collection. The constraints are computational, not aesthetic.
The Name
“Artificial After All” is a statement about the nature of the work. These faces are not real. The intelligence that generated them is not conscious. The permanence of the blockchain is maintained by machines, not by memory. Everything about this project, the artist's tool, the artwork's medium, the collector's marketplace, the network's permanence, is artificial.
And yet it produces something that feels strangely human: faces that gaze back at you from 1,024 pixels of grayscale, computed by mathematics that learned what a face looks like by studying thousands of them.
They are artificial, after all.
Tech
24 kilobytes on the World Computer.
1. Overview
Artificial After All is a fully onchain AI art system deployed on Ethereum. A compressed neural network, consisting of 15,657 int8 parameters trained on a publicly available dataset of 43,000 anime faces, is embedded directly in smart contract bytecode. Each minted piece is a standalone sovereign contract that runs full neural network inference inside the Ethereum Virtual Machine to produce a unique 32x32 grayscale image from an immutable seed. No IPFS, no servers, no oracles, no external dependencies. The artwork is computed, not stored.
2. System Architecture
The system operates across three layers. The training pipeline, built in PyTorch, produces a quantized generator network that is exported as Solidity bytecode. On Ethereum, a factory contract (ArtificialAfterAll) deploys up to 256 child contracts (Artificial), each containing the full neural network, an inference engine, ownership logic, and a self-contained marketplace. An off-chain indexer watches the chain via events, caches all state, and serves a REST API. The frontend is a pure static site that reads from the indexer and writes transactions through the user's wallet.
3. Neural Network
The generator follows a DCGAN-inspired architecture adapted for extreme compression. A 32-element latent vector passes through a dense layer with ReLU activation, producing 512 values reshaped to 16 channels at 4x4 spatial resolution. Three transposed convolution layers with ReLU progressively upsample: 16 channels at 8x8, then 8 channels at 16x16, then 8 channels at 32x32. A final 1x1 convolution reduces to a single-channel 32x32 output. Total: 15,657 int8 parameters.
Training proceeds in four phases. Full GAN training over 2,000 epochs using WGAN-GP with DiffAugment, EMA, and spectral normalization. Quantization-aware training over 500 epochs. BatchNorm folding (verified MSE = 0.0). Export to Solidity with separate weight and bias quantization scales.
Weight data is Huffman-compressed before embedding in bytecode. Decompression happens onchain at inference time.
4. Inference Engine
The inference engine is implemented in EVM assembly. A seed is hashed via keccak256 to produce 32 int8 latent values. The dense layer uses 4-element unrolled multiply-accumulate with signextend. Transposed convolutions implement stride-2 upsampling with 3x3 kernels. All arithmetic is integer.
Output normalization uses dynamic meanAbs, mapping to 32 dither levels. A white border is applied to all edges. The final output is 1,024 bytes. Gas cost per inference: ~5M gas (free as eth_call).
5. Smart Contracts
The factory contract enforces a hard supply cap of 256, an artist reserve of 64 free mints, and a fixed public price baked into bytecode. Each Artificial contract contains the full neural network, single-owner ownership, and a complete marketplace with list, cancel, buy, and withdraw functions. Pull-based withdrawals prevent reentrancy. Transfer cancels listings atomically.
There is no ERC-721 interface, no tokenURI, no metadata. Identity is the contract address itself. The factory is 24,065 bytes (97.9% of the 24,576 limit).
6. Determinism and Permanence
Given the same seed, the same contract will always produce the same image. The seed is immutable, keccak256 is deterministic, all arithmetic is integer, and weights are embedded in immutable bytecode. The artwork is a pure function from seed to pixels.
The neural network weights, seed, and inference engine live in contract bytecode, immutable on Ethereum. The pixel output will produce the same result on any EVM-compatible machine at any point in the future.
7. Constraints
The Ethereum contract size limit of 24,576 bytes shaped every decision. Int8 quantization. Huffman compression. Assembly-level inference. Minimal marketplace. No ERC-721 overhead. The 32x32 resolution, the grayscale palette, the dither levels, the face-like quality, all are consequences of fitting a neural network into 24 kilobytes of bytecode on the world computer.
8. Deployment
Factory: 0xa7a3022249415e25752C4cF8696c2418DEfdF2Db on Ethereum mainnet. 256/256 minted. Marketplace active. 267 Foundry tests passing. Source verified on Etherscan.
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.
Notes
What if a painting had to be drawn again, every time someone looked at it?
Each piece is a 32 × 32 grayscale image. Small, dense, singular. Rendered straight from the bytes its contract returns.
Owning a token is usually owning a deed to data: a JPEG on a server, a pixel array sitting in storage, an SVG saved as bytes. An Artificial has no file. There is nothing to point at. Inside the contract is a generative model, a runnable program. To see the piece, Ethereum has to run it.
There are 256 of them. Every piece sits at its own Ethereum address, carrying a compressed generative model embedded directly into the contract's bytecode. Call the contract, the model runs, on chain. It hands back 32 × 32 pixels. Same seed, same image, every time. But the picture is never saved. Ethereum draws it again, on every call.
Training · 1 of 3
A generative model was trained on a dataset the artist had built up over time: hundreds of small grayscale images he wanted the machine to learn the feel of. Two networks competed: one inventing images, the other trying to spot fakes. Over thousands of rounds, the inventor got good enough that its fakes were indistinguishable. What it learned was its own abstract sense of "Artificial-ness".
Compression · 2 of 3
The trained model weighed hundreds of megabytes. A smart contract is allowed a few tens of kilobytes. For a long stretch, that gap looked impossible. Every weight had to be quantized, packed, and embedded straight into the bytecode.
20,000× smaller.
Encoding · 3 of 3
A parent contract was deployed once. From it, 256 child contracts were born. Each holds the same compressed model but a different seed, its own marketplace, its own permanent independence. After birth, the parent has no power over them.
Two hundred fifty-six total. Sixty-four kept by the artist. The number 256 is 16², a square that maps to the 16 × 16 grid on the site. Following the tradition of fine-art editions, the artist retains a portion of the run. The rest were minted publicly.

One piece, up close
Meet Artificial C6DF. The image below is rendered from the real pixel bytes its contract returns on chain, the same image you would get from calling the contract yourself.
Inside the piece itself, every Artificial exposes the same six functions, each callable directly from chain. The owner can list, cancel, or transfer. Anyone can buy. The seller can withdraw their proceeds. No proxy, no escrow contract, no exchange required. The piece manages itself.
- listForSale(uint256 price): owner opens an offer.
- cancelFromSale(): owner removes the listing.
- buyNow() payable: anyone buys at the listed price.
- transferOwnership(address to): gift the piece.
- withdraw(): seller pulls escrowed proceeds.
- artificial() view returns (bytes): anyone runs the model.
The afterlife
Every action a piece takes is permanently recorded: listed, canceled, transferred, sold. The whole life of one Artificial, compressed into a list anyone can verify. Below is the real history of 0x8e054f…c6df, read directly from on-chain events. Newest first.
All 256 are live. Every pixel you see on the site came from a piece's contract. You can verify any of them yourself by calling the contract directly.
Trained. Compressed. Encoded. Deployed. Now they wait, at 256 addresses, for someone to call them and watch the image appear.
I don't know what happens to them next. But they will keep drawing themselves, whether anyone is watching or not.