{"id":4817,"date":"2024-04-14T01:03:53","date_gmt":"2024-04-14T01:03:53","guid":{"rendered":"https:\/\/jimhphoto.com\/?p=4817"},"modified":"2025-03-09T16:57:30","modified_gmt":"2025-03-09T16:57:30","slug":"generative-ai-lets-pull-back-the-curtain","status":"publish","type":"post","link":"https:\/\/jimhphoto.com\/index.php\/2024\/04\/14\/generative-ai-lets-pull-back-the-curtain\/","title":{"rendered":"Generative AI: Let&#8217;s Pull Back The Curtain"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Many photographers and artists see &#8220;Generative AI&#8221; as a ripoff, a way for non-creatives to generate images by combining and altering copyrighted works in a way that&#8217;s obviously totally derivative without quite seeming to be a &#8220;copy&#8221;. But what&#8217;s really going on behind the curtain?<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"333\" src=\"https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/03\/wizard-of-oz_curtain.webp\" alt=\"\" class=\"wp-image-4866\" srcset=\"https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/03\/wizard-of-oz_curtain.webp 420w, https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/03\/wizard-of-oz_curtain-300x238.webp 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/figure>\n<\/div>\n\n\n<!--more-->\n\n\n\n<div style=\"height:70px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">I worked in software development. Neural nets aren&#8217;t new &#8211; they were invented in the 1940s, but didn&#8217;t go anywhere because there wasn&#8217;t enough computing power and data storage for them to do much.  Over the decades, AI hype came and went, research papers were written, computers played chess and wrote poetry, and the public wasn&#8217;t really all that impressed. But now the hardware is catching up with the software and surprising new things are possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After years of generating as much excitement as a dead raccoon on a hot highway, &#8220;artificial intelligence&#8221; hype is running wild. Pundits say it will wipe out entire job categories. Highly leveraged Silicon Valley execs tell baffled judges and politicians that AI systems &#8220;learn like a child&#8221; and warn them not to lay down in front of a train by trying to regulate it. And talentless wannabe artists are &#8220;crafting prompts&#8221;, generating attention-grabbing mages and representing them as their own &#8220;work&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So what&#8217;s really going on? Did something major just happen, and is &#8220;generative AI&#8221; based on a big breakthrough that I hadn&#8217;t heard about? I wanted <strong>an honest, non-technical explanation of how something like Stable Diffusion, Midjourney or DALL-E works<\/strong>. <br><br><a href=\"https:\/\/en.wikipedia.org\/wiki\/Stable_Diffusion\" target=\"_blank\" rel=\"noopener\" title=\"\">This Wikipedia article<\/a> is a good starting point. But reality still hides behind jargon like &#8220;denoising autoencoders&#8221; and &#8220;multimodal transformers&#8221;, while ethical responsibility is obscured with weasel words about &#8220;research&#8221;, &#8220;nonprofits&#8221; and &#8220;publicly accessible data sets&#8221; &#8211; and some very creative interpretations of copyright law.<\/p>\n\n\n\n<div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here is the 2 minute summary<em> <\/em>of what really went on at Stability AI <\/strong>(the company behind Stable Diffusion):<\/p>\n\n\n\n<div style=\"height:13px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">They started with a &#8220;publicly available dataset&#8221; containing &#8220;5 billion image-text pairs&#8221; &#8211; that means images and associated text taken from web sites like Pinterest, WordPress blogs, DeviantArt and Flickr.. (Roughly 700k came from Fine Art America, where I sell photos, so I&#8217;m probably in there somewhere.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that &#8220;publicly available&#8221; just means &#8220;publicly accessible&#8221;, and that these images were used <em>without regard for copyright, permission, privacy or attribution<\/em> &#8211; so no surprise that <a href=\"https:\/\/petapixel.com\/2023\/02\/07\/getty-images-are-suing-stable-diffusion-for-a-staggering-1-8-trillion\/\" title=\"\">Getty Images is now suing Stability AI for a trillion dollars.<\/a> The web-scraping was done by a &#8220;non profit&#8221; called Common Crawl, giving Stability AI a fig leaf of cover for a massive misappropriation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The images were then &#8220;filtered&#8221; (AI term) to decompose them into visual elements software can work with &#8211; think lines, shapes, edges, textures and colors. This process, analogous to turning raster images into vectors, is the basis for claims by execs and lawyers that the images weren&#8217;t &#8220;copied&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, the heavy lifting: a neural network build a vast set of correlations between those filtered elements &#8211; visual similarities, and statistical correspondence with identifying words &#8211; according to set of human-created rules called &#8220;weights&#8221;. It&#8217;s a huge computing task, involving enormous amounts of data, and neural networks are indeed powerful new tools for this work. (To really learn something about neural nets, see <a href=\"https:\/\/writings.stephenwolfram.com\/2023\/02\/what-is-chatgpt-doing-and-why-does-it-work\/\" title=\"\">this excellent post<\/a> by Stephen Wolfram.) The end product is a sort of gigantic database that can do one thing: produce an image of something specified by text. That image will be a clever amalgam of a subset of those millions of images lifted from the web. And the text associated with these images ( embedded key works, ALT text ) is the only way AI &#8220;knows&#8221; what the images contain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The magic is in all those &#8220;weights&#8221;, essentially the rules governing how image elements will connect and relate to each other &#8211; where do they come from?  This part gets deep and is obviously highly proprietary, but weights are assigned by humans, with the intent of getting a result they like, and to some extent it&#8217;s trial-and-error on a very large scale.   In the end, it&#8217;s whatever works.   <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But wait &#8211; the resulting images are beautiful, right? Doesn&#8217;t this imply knowledge of the principles of aesthetics and design? Didn&#8217;t the AI &#8220;learn&#8221; this somehow? Not quite. The correlations in Stable Diffusion were also weighted by the inclusion of another data set called &#8220;LAION-Aesthetics Predictor&#8221;, which was itself created by showing large numbers of images to humans, who scored them for visual appeal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>This process &#8211; collecting our images and our descriptive without permission,  extracting the content, finding the correlations and similarities in that content, and ranking its aesthetics using algorithms based on human reactions, is basically what&#8217;s called &#8220;training a model&#8221;.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The system now has the ability to generate an image based on text input &#8211; <em>if<\/em> the model contains images matching that text &#8211; and make it superficially similar to images with high aesthetic scores. Given the size of the input data, practically everything in the world is in there, so you&#8217;ll get <em>some<\/em> sort of image as output. And here&#8217;s where an AI model really departs from a relational database: because the neural net builds connections based on relative similarity, it can now generate seemingly &#8220;new&#8221; images, which are really combinations of the contents of some of the originals used in the the training. Think of these generated images as existing &#8220;in between&#8221; the human-created originals, and combining the content of their neighbors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So there you have it: a grossly unfair over-simplification of an enormously complicated software system. But I think it captures the essence.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may be thinking: &#8220;wait a minute, where&#8217;s the <em>intelligence<\/em>? All I see is other people&#8217;s content, reduced to numeric data, correlated according to predetermined rules, indexed by keywords, and mashed up in clever ways.&#8221; You&#8217;re not wrong. Generative AI is just an information processing system, totally passive; it produces an image in response to a prompt, from human-created content that&#8217;s been linked to those keywords. The image won&#8217;t look exactly like any of those used to create it, although it may be <a href=\"https:\/\/petapixel.com\/2024\/03\/07\/recreating-iconic-photos-with-ai-image-generators\/\" title=\"\">darn close<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Now, consider this<\/strong>: the process of &#8220;training a model&#8221; is <em> very expensive<\/em> in terms of computing power, bandwidth and storage; it&#8217;s not going to happen every time someone requests an image. In fact, the interval between refreshes of that data could be very long &#8211; possibly years. Especially if the AI company is meanwhile tied up in court, defending itself against accusations of copyright violation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>And this:<\/strong> so-called AI has absolutely no visual input other than the work of humans. It&#8217;s never &#8220;seen&#8221; anything in the real world, and it won&#8217;t, until it gets a swarm of camera drones. And even then it won&#8217;t know what anything actually &#8220;is&#8221; until humans tell it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>So we could starve it to death<\/strong> &#8211; well, hypothetically &#8211; if we all removed all our content from the internet next week. Or, just stopped adding any new images, period. These marvelous &#8220;generative AIs&#8221; would then be <em>stuck in 2024 forever<\/em>, unable to update their models. And in a few years, their output will be seriously out of date and won&#8217;t look so awesome anymore&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"870\" height=\"446\" src=\"https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/04\/70s-3.jpg\" alt=\"\" class=\"wp-image-4892\" srcset=\"https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/04\/70s-3.jpg 870w, https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/04\/70s-3-300x154.jpg 300w, https:\/\/jimhphoto.com\/wp-content\/uploads\/2024\/04\/70s-3-768x394.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Generative AI is a massive appropriation of the work of real artists and photographers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[654],"tags":[542,780,791,787,790,786,789,792,788],"post_folder":[],"class_list":["post-4817","post","type-post","status-publish","format-standard","hentry","category-thoughts-on-photography","tag-ai","tag-artificial-intelligence","tag-copy","tag-copyright","tag-creative","tag-generative","tag-neural-net","tag-non-technical","tag-stable-diffusion"],"_links":{"self":[{"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/posts\/4817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/comments?post=4817"}],"version-history":[{"count":0,"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/posts\/4817\/revisions"}],"wp:attachment":[{"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/media?parent=4817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/categories?post=4817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/tags?post=4817"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/jimhphoto.com\/index.php\/wp-json\/wp\/v2\/post_folder?post=4817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}