<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Trufo - Medium]]></title>
        <description><![CDATA[Embedding trust in digital media. - Medium]]></description>
        <link>https://medium.com/trufo?source=rss----10d727d019c0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Trufo - Medium</title>
            <link>https://medium.com/trufo?source=rss----10d727d019c0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:39:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/trufo" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A New Era of Perceptual Hashing]]></title>
            <link>https://medium.com/trufo/a-new-era-of-perceptual-hashing-fce2b7e04591?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/fce2b7e04591</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[fingerprint]]></category>
            <category><![CDATA[watermark]]></category>
            <category><![CDATA[content-provenance]]></category>
            <category><![CDATA[perceptual-hashing]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 05:41:29 GMT</pubDate>
            <atom:updated>2025-09-28T20:28:52.655Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s been a while since our last Medium post. Since then, we’ve expanded our R&amp;D outside of purely watermarking. One of the new core technologies we provide is fingerprinting, a.k.a. perceptual hashing.</p><p>Historically, fingerprinting has been used to detect matching content, such as for reverse image search (pHash), CSAM detection (PDQ), and audio copyright detection (ContentID). For these applications, where the role of fingerprinting is to act as a filter of sorts, the existing algorithms are adequate. It’s OK if a reverse image search returns an unrelated image. It’s OK if horizontally flipping an image for a repost evades detection.</p><p>Now, fingerprinting finds a new use case in content provenance, as a method for information retrieval. Now, the role of fingerprinting is to act as an identifier, so the technical demands on precision and recall are much higher.</p><p>We are happy to announce that, by building upon recent advances in multimodal AI, Trufo is able to bring perceptual hashing technology to a level where it can be deployed at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*1k-3wcjsNTbLQvq5VyQdDA.png" /><figcaption>Comparison of Fingerprints &amp; Watermarks</figcaption></figure><p>In this article, we present a new benchmark, along with model results, for image fingerprinting in a provenance-retrieval setting.</p><h3>The Benchmark</h3><p>We create the following benchmark:</p><ul><li>10,000 baseline images, 512-by-512.</li><li>30,000 positive “A” augmentations, by applying common practical edits, including: flips, rotations, rescaling, blur, compression, grayscale, color jitter, filters, cropping, and combinations thereof.</li><li>30,000 negative “B” interpretations, designed to be tough: they are similar in semantic space but distinct as images, and are generated from the original image.</li></ul><p>The goal is no longer to conduct a binary “is-match” classification on individual image pairs, but to identify the correct “match” from the database of baseline images.</p><p>In this new setting, based on a “similarity threshold” the hash evaluation can either return “match” or “not found” — and this match may or may not be correct. The “precision” and “recall” are defined:</p><ul><li>Precision = (correct match [A]) / (any match [A, B])</li><li>Recall = (correct match [A]) / (total queries [A])</li></ul><p>This new task is much harder, because (1) type “A” augmentations are tougher than usually found in academia, making recall difficult; (2) type “B” interpretations are designed to be collision-susceptible, making precision difficult; (3) the match decision needs to be made over 10,000 images instead of 1.</p><p>This new task is also much more realistic. For a public provenance system, doing well on this benchmark should be a bare minimum.</p><p>If you’re interested in testing on this benchmark, please reach out!</p><h3>Model Comparison</h3><p>Our fingerprint (built on top of DinoV3) is designed specifically for use in a content provenance ecosystem. In particular:</p><ul><li>It is meant to run quickly on edge devices, so the model is distilled down to less than 30M parameters. It is possible to achieve better results with more compute, especially in private solutions.</li><li>It is meant for identification. Figuratively, this means that the hash no longer needs to remember that (cat, dog) are more similar than (cat, airplane), which allows it to be more efficient.</li></ul><p>We run the benchmark on Trufo’s fingerprint and Trufo’s watermark, along with four open-source perceptual hashes. Note that our models are, of course, neither trained nor validated on any of the images used in the benchmark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*Of4yCT8uBI84siCe4t8CJQ.png" /><figcaption>Comparison of Models; AMD Ryzen 9950X3D CPU + NVIDIA RTX 5090 GPU.</figcaption></figure><p>The table can be interpreted as follows:</p><ul><li>pHash (2008) is fast and simple. It’s susceptible to collisions, and only works on about 25% of type “A” augmentations.</li><li>PDQ (2019, Meta) is heavier than pHash, and is much more resistant to collisions. However, it shares the same fundamental architecture so only works on the same 25% of type “A” augmentations.</li><li>There are a number of proprietary models used across the industry that we were unable to test. They are typically at least a few years old. Given the power of transfer learning from SotA foundational models, it is hard for us to imagine them being anywhere near as effective as ours.</li><li>CLIP (2021) is perhaps the first popular LLM for images. At 400M parameters (full model) and 3072 bytes (half-precision features), it is too bulky for widespread deployment. It is able to work on a much larger subset of type “A” augmentation, but lacks precision.</li><li>DinoHash (2025) is an open-source fine-tuning method. It is able to achieve CLIP performance with a much smaller model (20x smaller) and a much shorter hash length (100x shorter).</li><li>Trufo’s fingerprint retains the compactness of DinoHash while being far more effective at identifying matches. At 99% precision, Trufo is able to match 67% of type “A” augmentations, compared to Dinohash’s 13%.</li><li>The invisible-watermark composite DWT/DCT/SVD method is popular on GitHub but quite weak in practice.</li><li>Trustmark (2024, Adobe) is much stronger than pre-ML watermarking, and also much faster, but struggles on tougher modifications.</li><li>Trufo’s watermark provides a substantial upgrade in practical durability. As a watermark, it blows away fingerprints at 100% precision, but falls short on some of the toughest modifications.</li></ul><p>Here is a color-coded F1 graph. Note that the distribution of Hamming distances in Trufo’s hash tends to cluster much more around 0.5 for distinct images; PDQ (used by Meta at scale) is similar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*6uHJut9Uhggp3tk2VYZ9JQ.png" /><figcaption>Summary Comparison</figcaption></figure><p>The data shows three main conclusions:</p><ul><li>Trufo’s fingerprint presents <strong>the first practical improvement</strong> upon the existing PDQ SotA, with recall @99% jumping from 25% with PDQ to 67% with Trufo.</li><li>When 100% precision is important, watermarks are far more powerful than fingerprints. Fundamentally, watermarks allow you to modify the content, but fingerprints do not, so they must be stronger.</li><li>When speed and retroactive indexing are important, fingerprints are far more practical than watermarks.</li></ul><p>The technology will be coming to Trufo’s products soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce2b7e04591" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/a-new-era-of-perceptual-hashing-fce2b7e04591">A New Era of Perceptual Hashing</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Trufo?]]></title>
            <link>https://medium.com/trufo/what-is-trufo-e70ba3fb8cbe?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/e70ba3fb8cbe</guid>
            <category><![CDATA[content-authenticity]]></category>
            <category><![CDATA[watermark]]></category>
            <category><![CDATA[trufo]]></category>
            <category><![CDATA[digital-media]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Sat, 26 Oct 2024 18:53:03 GMT</pubDate>
            <atom:updated>2024-10-26T18:56:45.606Z</atom:updated>
            <content:encoded><![CDATA[<h4>And how you can start labeling in your content.</h4><p>There has been an accelerating focus on digital content provenance, and in particular, on content labels that can be trusted. Much of this is driven by the advent of generative AI models that make creating high-quality media as easy as typing out a chat message. And now Trufo, with new technology and infrastructure, is making these trusted content labels possible.</p><h4>Why are content labels useful?</h4><p>The information put into content labels is valuable:</p><ul><li><strong>Attribution:</strong> Know who made the content and how it was made.</li><li><strong>Compliance:</strong> Stay on top of the new standards and regulations that are being drafted.</li><li><strong>Monetization:</strong> Assert ownership and copyright information; manage your IP rights.</li><li><strong>Protection:</strong> Discourage misuse of your assets with automatic tamper recognition; protect your reputation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X9DPjIC_q2_ayDk1CYTJFg.png" /><figcaption>A content label with some information.</figcaption></figure><p>The information on its own is not sufficient:</p><ul><li>What if the information is lost? Trufo uses watermarks and fingerprints to create <strong>durable</strong> labels.</li><li>What if the information is compromised? Trufo uses new cryptography to create <strong>secure</strong> labels.</li><li>What if the information is ignored? Trufo partners with C2PA and AISIC to create <strong>recognized</strong> labels.</li><li>What if the information is hard to add? Trufo provides user integrations to create <strong>scalable</strong> labels.</li></ul><p>For a more technical overview, check out our <a href="https://trufo.ai/whitepaper">whitepaper</a> or some of our other blog posts.</p><h4>How do Trufo content labels work?</h4><p>There are two components: the annotation and the association.</p><p>The annotation comprises the information, secured with cryptography. A variety of information fields, with varying levels of security implications, are supported, with some important ones being: the content ID, the source entity, the content hashes, and the copyright licenses. Trufo supports both centralized and decentralized records, which means that the information can be accessed from anywhere or modified in the future, if authorized.</p><p>The association is how the label is attached to the content. Trufo adds two things: an attached metadata and an embedded watermark. The metadata follows C2PA specifications, providing a fast and local association. Unlike the metadata, the watermark is not easily (or often accidentally) removed, providing a durable association. Both of these are painless to add: the C2PA metadata slightly increases file size, and the watermark is <a href="https://medium.com/p/d98b78e6f808">invisible</a>.</p><p>One important thing is that, while many companies provide “watermark” services, most existing watermarks fall short. Our watermarks are able to survive a <a href="https://medium.com/p/d98b78e6f808">variety of edits</a>, not just light compression, and they do so at a PSNR of over 46 (better than high-quality JPEG compression). In contrast, most providers have PSNR under 40 (many artifacts are visible), and they break under the simplest modifications (a small crop, a small rotation, a color filter, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/0*rENcWXV4BXVuD-ea.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/0*vIBNedC07K9WzA-K.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*LeoeR2Wa5H_CIMee.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TiiFPvaxLpv9yjYE.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*9dTcvGYd_KfOpHAh.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*__qXcMmHLzVOH3-U.png" /><figcaption>Trufo’s invisible watermark survives a variety of edits.</figcaption></figure><h4>Why not just use an AI detection model?</h4><p>There are a lot of deepfake detection models, and the good ones are able to correctly classify content with a 90% accuracy. If these work well without needing the extra step of labeling content, why bother?</p><p>The reason is simple: the 99.99% you get with content labels is far better than the 90% you get without them.</p><p>The 90% enables human readers to efficiently flag content that requires additional attention — for example, a teacher needs to grade many essays submitted by students, and they want to quickly identify which ones might be written by ChatGPT. However, this only works if the human reader — the teacher in this example — is able to make that final 99.99% judgement.</p><p>The 99.99%, on the other hand, serves as cryptographic proof. A photo that was captured by a camera can be proven so. In fact, even if small edits are made — and typically many small edits are — the information can still be trusted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HK8NmsebekMgbAgF.png" /><figcaption>Label information is proven and content modifications are recognized.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNOJUEFcwjkpjG_jnw6QpA.png" /><figcaption>Fuzzy authentication is enabled by new cryptography + ML assistance.</figcaption></figure><h4>This sounds amazing, but it also sounds expensive, right?</h4><p>In the spirit of our academic roots and our mission to bring this technology to the public, the products Trufo offers are far more accessible than similar solutions that you may have seen.</p><ul><li>C2PA metadata creation is free. (A C2PA-trusted identity is not.)</li><li>The watermark is free. (There is a rate limit, at 100 credits per day, with a typical image being 1 credit.)</li><li>Basic information fields, including common copyright terms, are free. (IP management and transactions are not.)</li></ul><p>Our enterprise solutions are also priced competitively, starting at a cent per image.</p><p>Getting started is easy. Check out <a href="https://trufo.ai/">our website</a> or <a href="/service/mailto:contact@trufo.ai">contact us</a> for next steps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e70ba3fb8cbe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/what-is-trufo-e70ba3fb8cbe">What is Trufo?</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Standards for Content Authenticity]]></title>
            <link>https://medium.com/trufo/setting-standards-for-content-authenticity-464d0d875f64?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/464d0d875f64</guid>
            <category><![CDATA[content-authenticity]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 02:01:12 GMT</pubDate>
            <atom:updated>2024-10-22T02:01:12.701Z</atom:updated>
            <content:encoded><![CDATA[<h4>C2PA, AISIC, and Trufo.</h4><p>We are excited to announce that Trufo is an active member of both the C2PA and AISIC working groups. For those who are not familiar:</p><ul><li><a href="https://c2pa.org/">C2PA</a> is a cryptographic metadata standard that operates in conjunction with the <a href="https://contentauthenticity.org/">CAI</a>. A large number of companies, from news media to social media, are currently adopting the new standard.</li><li>The <a href="https://www.commerce.gov/news/press-releases/2024/02/biden-harris-administration-announces-first-ever-consortium-dedicated">AISIC</a> is a public-private partnership between the NIST and a select group of tech companies and research labs. One of the <a href="https://www.nist.gov/aisi/aisic-working-groups">primary focus areas</a> is synthetic content and provenance.</li></ul><p>In addition to helping design the public standards, this means that Trufo’s content labels will be (1) interoperable with C2PA consumers such as <a href="https://www.theverge.com/2024/9/17/24247004/google-c2pa-verify-ai-generated-images-content">Google</a> + <a href="https://openai.com/index/understanding-the-source-of-what-we-see-and-hear-online/">OpenAI</a> and (2) compliant with impending government regulations.</p><p>What does this mean?</p><ul><li>You can place “do not train” labels and other copyright information on your content that downstream consumers will recognize.</li><li>Not only is C2PA metadata interoperable, but Trufo’s watermarks will be as well, through APIs, SDKs, and standardized soft bindings.</li></ul><p>There are also many other standards and regulations coming out. Staying on top of all the changes is time consuming: there are many meetings to attend, specifications to monitor, development time to invest, and risks of missing something important. Trufo takes care of this for you.</p><p>There is a lot going on.</p><p>For a high-level overview of where technical policy is heading, you can check out this <a href="https://trufo.ai/publications/aisic-202409">invited talk</a> we gave at the AISIC last month. For more details, you can also read our <a href="https://trufo.ai/whitepaper">white paper</a>.</p><p>On the C2PA side, much of the focus now is on certificate governance — using the same X.509 technology that underlies SSL and TLS (HTTPS). This means that there will soon be trusted entities in the C2PA ecosystem: verified cameras, a verified persons, and more. This will require going through a trusted CA, such as Trufo, or becoming one yourself. Once the specifications launch, Trufo will be one of the inaugural CAs.</p><p>For those interested in technicals, you can find Trufo’s CP/CPS <a href="https://trufo.ai/cpcps">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=464d0d875f64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/setting-standards-for-content-authenticity-464d0d875f64">Setting Standards for Content Authenticity</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Differential Analysis]]></title>
            <link>https://medium.com/trufo/differential-analysis-14cf03bed707?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/14cf03bed707</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[content-authenticity]]></category>
            <category><![CDATA[digital-signatures]]></category>
            <category><![CDATA[watermarking]]></category>
            <category><![CDATA[cryptographic-hash]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 01:17:02 GMT</pubDate>
            <atom:updated>2025-01-22T16:31:19.038Z</atom:updated>
            <content:encoded><![CDATA[<h4>A new way to authenticate content.</h4><p>When labeling content, one key requirement is that the content labels are accurate. On the encoding side, this means making sure that the information included in the label is trustworthy. On the decoding side, this means making sure that any significant differences between the original version and the observed version are identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*827VYIYCUsTX4ouK9tUJOg.png" /><figcaption>Example of a differential analysis result.</figcaption></figure><p>Identifying these differences is incredibly important: without it, a bad actor can modify or even completely replace the content, resulting in a misleading (and harmful) content label.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*oNhzsH4v68j_KAb29rmG7g.png" /></figure><p>The simplest solution is to add a digital signature to the content label. The digital signature can prove that the content has not been changed since it was signed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9V2kqmCDhfcat6tBYsk4w.png" /></figure><p>If the content is changed in any way, the digital signature breaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*5UI0KgME9qp5dGlRRRYW-A.png" /></figure><p>This allows us to (mostly) trust content labels if the digital signatures are intact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*f405YTtWVh8CtzZuYB69CA.png" /></figure><p>Digital content, however, is often changed in benign ways. When you export a photo from your iPhone, the file format is changed from HEIC to JPEG (in this case, because HEIC is patent-encumbered). When you attach an image to send via email, the file is compressed and likely resized. And when you crop, clip, or apply a color filter, the content is changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*ifdx25uyyxaBZcIook2Qwg.png" /></figure><p>In all of these cases, the digital signature breaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XST9hqGw_ilH8IlRLWOGpw.png" /></figure><p>Trufo’s cryptography lab has developed a new type of hash to do exactly this: a differential hash.</p><p>While perceptual hashes focus on quantifying how similar two items are, differential hashes focus on identifying differences between two items. As a result, perceptual hashes are most suited for efficiently finding matches in a database (i.e. fingerprinting), such as Google’s reverse image search and YouTube’s copyright infringement detection. In contrast, differential hashes are most suited for localizing and classifying any modifications made after the match has been found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVWD2aV3VASwCh_BdrBfqw.png" /></figure><p>We use this new invention, along with other tools, to provide differential analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*h_CfHmzWHDsbuZUTVDoLDw.png" /></figure><p>As a result, you can quickly see where and what changes have been made — without the privacy concerns of storing (with Trufo or with anyone else) a copy of the original.</p><p>And lastly, this means that the authenticity of your content is not completely reliant on every individual and every application that touches your published content to correctly validate and reapply a series of digital signatures. Even if the provenance chain is broken, Trufo’s differential analysis will still work.</p><p>We will be publishing this work. Come see us (most likely) at RWC’25 and STOC’25!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14cf03bed707" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/differential-analysis-14cf03bed707">Differential Analysis</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Good Are Invisible Watermarks Now?]]></title>
            <link>https://medium.com/trufo/how-good-are-invisible-watermarks-d98b78e6f808?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/d98b78e6f808</guid>
            <category><![CDATA[digital-media]]></category>
            <category><![CDATA[watermark]]></category>
            <category><![CDATA[invisible-watermarks]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 19:19:14 GMT</pubDate>
            <atom:updated>2024-10-06T21:22:20.038Z</atom:updated>
            <content:encoded><![CDATA[<h4>After years of R&amp;D, the technology finally works well enough to be adopted at scale.</h4><p>Over the past two years, invisible watermarking technology has improved by leaps and bounds. With big players like Google and Meta creating their own invisible watermarks (<a href="https://deepmind.google/technologies/synthid/">SynthID</a> and <a href="https://ai.meta.com/blog/stable-signature-watermarking-generative-ai/">Stable Signature</a>, respectively) in response to impending legislation (such as <a href="https://digitaldemocracy.calmatters.org/bills/ca_202320240ab3211">CA-AB3211</a>, among others), the technology is quickly growing into a viable solution for secure labeling in an age where provenance, amidst the AI-generated content, is becoming increasingly important.</p><p>So, what is an invisible watermark? The goal is to embed information into the digital content itself, so that the information is computer-readable but imperceptible to the human eye. It is an invisible QR code. It is metadata that is embedded into the content rather than appended onto the content. It is a robust method of labeling content that remains intact as long as the content itself remains intact.</p><p>The question is: just how durable and invisible are these watermarks? And are they finally good enough to be used?</p><h3>Benchmark</h3><p>Using our <a href="https://medium.com/trufo/benchmarking-watermarking-436cbf1bd9ca">benchmark tool</a>, we can evaluate some different watermarks to see how they stack up in durability and invisibility. A watermark is durable if it survives content alterations: compression, cropping, user edits, color filters, rotation, and so on. A watermark is invisible if it does not alter the image significantly: PSNR and SSIM are some popular metrics. The focus here will be on images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*8jsxQW93IXVbdloJ8UpU0g.png" /></figure><p>Let us go through this chart step-by-step:</p><h4>Disclaimer</h4><p>Please note that the information here is written in a blog setting, not as an academic publication. There may be minor inaccuracies.</p><h4><strong>2000 SotA</strong></h4><p>Leading up to the dot-com bubble, digital steganography saw significant improvements. Many advanced techniques were introduced during this period: <a href="https://pubmed.ncbi.nlm.nih.gov/19384401/">wavelets</a>, <a href="https://user.eng.umd.edu/~minwu/public_paper/Jnl/0105rstwmk_IEEEfinal_TIP.pdf">log-polar DFT</a>, <a href="https://ieeexplore.ieee.org/document/650120">spread-spectrum</a>, and many more.</p><h4><strong>Pre-2023</strong></h4><p>Through the next two decades, industry stalwarts such as Digimarc and Verance have developed some great products, with <a href="https://www.digimarc.com/press-releases/2012/01/31/digimarc-resolves-license-dispute-verance">audio watermarking</a> and <a href="https://www.digimarc.com/press-releases/2024/06/18/digimarc-unveils-digimarc-automate-revolutionizing-product-inspection">invisible barcodes</a> being some of the highlights.</p><p>One of the recent popular watermarking libraries is <a href="https://github.com/ShieldMnt/invisible-watermark">invisible-watermark</a>, which in 2023 was <a href="https://medium.com/@steinsfu/stable-diffusion-the-invisible-watermark-in-generated-images-2d68e2ab1241">adopted</a> by Stable Diffusion. This watermark sits around the (27, 36) coordinate — quite low. The visual artifacts are immediately noticeable, and it rarely survives <a href="https://artshield.io/watermarker">common image edits</a>.</p><h4>Pre-2023 (ML)</h4><p>In the past few years, machine learning techniques have been applied to invisible watermarks, starting with <a href="https://openaccess.thecvf.com/content_ECCV_2018/papers/Jiren_Zhu_HiDDeN_Hiding_Data_ECCV_2018_paper.pdf">HiDDeN</a> in 2018. Note that the only ML watermark shown here is from the aforementioned library; the best ones (HiDDeN, <a href="https://arxiv.org/abs/1904.05343">StegaStamp</a>) likely score high within the blue range.</p><h4>2023 SotA</h4><p>In 2023, President Biden issued an <a href="https://www.whitehouse.gov/briefing-room/presidential-actions/2023/10/30/executive-order-on-the-safe-secure-and-trustworthy-development-and-use-of-artificial-intelligence/">executive order on AI</a>, with a push to watermark AI-generated content. Large tech companies, notably Google and Meta, released models to do just that. Because the watermarks are applied during the generation process, visual artifacts are minimal.</p><p>Some of these watermarks can also be applied to existing “non-AI” content. Adobe’s <a href="https://arxiv.org/abs/2311.18297">Trustmark</a> is one such example that works quite well, and is shown in blue in the chart.</p><h4>Trufo (v0.x)</h4><p>Earlier this year, we introduced our <a href="https://medium.com/trufo/intro-to-trufo-6c1b18882dfb">version 0.1 watermark</a>, which proved to be a significant improvement over previous SotA. One important decision we made was to separate the end-to-end paradigm that most models are trained on in favor of a separate encoding and decoding paradigm. This allows Trufo to improve the watermark without breaking compatibility. This also allows the watermark to work on both AI-generated and existing content despite the encoding workflows being different.</p><h4>Trufo (v1.0)</h4><p>Over the past few months, we have tested our watermark in a closed alpha setting and made numbers improvements. For our public beta launch, we are releasing two image watermarks. Across multiple datasets, they score:</p><ul><li><strong>pawprint:</strong> 84.7–87.2% decoded at 45.3–46.7 PSNR.</li><li><strong>pawprint.lite:</strong> 74.9–75.4% decoded at 48.7–49.8 PSNR.</li></ul><p>Compare this to other watermarks, for example:</p><ul><li><strong>trustmark:</strong> 79.4-80.2% decoded at 42.3–43.5 PSNR.</li><li><strong>dwtdctsvd:</strong> 26.6–28.2% decoded at 40.1–40.2 PSNR.</li></ul><p>In other words, <strong>pawprint</strong> is about 50% less visible and 35% more durable than the best watermarks outside of Trufo.</p><h3>Examples</h3><p>Here are some examples of Trufo’s watermark in action. First, here are some watermarked images:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*NWn1-5LnKE2rdzFRe441Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*pq20x0i-Wq4PGIBDw3QnSQ.png" /><figcaption>Watermarked images: pawprint (left) and pawprint.lite (right). Image credits: Corey Seeman 2020.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-pL4rUfcNsIhkvlQk9nUqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9K_JLr7ntQ8WLoZ7_06CyA.png" /><figcaption>Watermarked images: pawprint (left) and pawprint.lite (right). Image credits: Crunchyroll 2023.</figcaption></figure><p>Next, here are some examples of edits that are decoded successfully (based on the squirrel + pawprint image):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*wGtwphWLszD8zjRTl_3Z_g.png" /><figcaption>Resizing.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*MAFK0f8w0bvHcW2kc80Jnw.png" /><figcaption>Cropping &amp; Rotation.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*mpPkvsS5fXsZlMWMCxXMYw.png" /><figcaption>JPEG Compression.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*U63qUgpDBPtoj485EYXRFw.png" /><figcaption>Color Filters.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*VEG5x3IXZVnZNMJqTcR5tQ.png" /><figcaption>Modifications.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQo9iHoZzLSSQvAglSU_Fg.png" /><figcaption>AI Alterations.</figcaption></figure><p>This is pretty awesome!</p><h3>Viability</h3><p>Based off of the results, watermarks are finally at the point where they can be easily integrated into workflows to immediately add value. Specifically, we now believe that Trufo’s two watermarks have reached that threshold of viability.</p><h4>Invisibility</h4><p>Historically, most research papers have cited 40 PSNR as a target threshold. This is similar to a JPEG compression with a quality of 60 (out of 100), and market research suggests that this degree of invisibility is not enough: the quality of the content is still significantly compromised.</p><p>The base viable threshold is around 45.5 PSNR, which is similar to a JPEG compression at 90 (out of 100) quality and the standard compression option for a “high-quality” image. Trufo’s watermarks, which come in at around 46 and 49 PSNR, achieve this.</p><h4>Durability</h4><p>For watermarks to be useful, they must stick to the content through various alterations in distribution. That is their main advantage over metadata (which carries far more information and requires far less computation).</p><p>As shown in the decoding examples, Trufo’s watermark is able to remain intact even when the content modifications are substantial.</p><h4>Security</h4><p>There are of course some basic security concerns. Chiefly, any watermark can be removed and, with some more effort, forged. For example, in an ongoing NeurIPS <a href="https://erasinginvisible.github.io/index.html">competition</a> (disclosure: we are a sponsor), entrants have been able to remove state-of-the-art watermarks with remarkable efficacy. This means that in order for watermarks to be fully effective, the must be built on top of a secure system.</p><p>For example, through Trufo, the provenance information attached to the watermark is vetted according to <a href="https://c2pa.org/specifications/specifications/1.0/guidance/Guidance.html">C2PA</a> conformance standards: different types of users may opt for different levels of security. Furthermore, Trufo’s suite of perceptual and differential hashes means that false positives are easily prevented and content modifications (benign or malign) are quickly identified.</p><p>For more details on how this can be done, see this <a href="https://trufo.ai/whitepaper">whitepaper</a>.</p><h3>Get Started</h3><p>There are many research papers and existing products available for use. <a href="https://trufo.ai/">Trufo</a> not only provides the best watermark by an order of magnitude, but also makes it extremely easy to use. With a simple drag and drop, you get:</p><ul><li>A Trufo watermark, recognized across platforms and industries.</li><li>Automatic compliance with the new C2PA metadata standards.</li><li>Secure attribution and management of your digital content IP.</li><li>Automatic detection and description of content modifications.</li><li>And much more!</li></ul><p>As part of our mission to make watermarks accessible, professional plans start at just $0.01/image.</p><p>Stay tuned for our v1.0 release, coming soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d98b78e6f808" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/how-good-are-invisible-watermarks-d98b78e6f808">How Good Are Invisible Watermarks Now?</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Embedding & Extraction]]></title>
            <link>https://medium.com/trufo/dynamic-embedding-extraction-4a941b7807ea?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/4a941b7807ea</guid>
            <category><![CDATA[digital-content]]></category>
            <category><![CDATA[watermarking]]></category>
            <category><![CDATA[steganography]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 04:19:06 GMT</pubDate>
            <atom:updated>2024-04-15T19:38:34.871Z</atom:updated>
            <content:encoded><![CDATA[<h4>v0.2a</h4><p>This past month, our R&amp;D team has released a state-of-the-art AI model that (1) knows where to put watermark data and (2) knows where to look for watermark data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Tbj3thG5BdqBqqK0tUK7fQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*QoIoPu1J0GHtbSv5VjhsNQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*3Yv5ix1htp_wPY2ueij-HQ.jpeg" /><figcaption>Original Image // Model View (Human-Friendly) // Watermarked Image</figcaption></figure><p>This new model is now incorporated into our watermarks. As a result, our upgraded watermarks are far less noticeable to the human eye. Not only is the absolute PSNR 25–50% lower than before (and well under that of JPEG Q=95), but because the “noise” is added in a smarter fashion, the practical improvements are even greater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*nARuTuXs8Jsr8vTvSPzYcw.png" /><figcaption>Evaluation of v0.2 (green), v0.1 (blue), and <a href="https://pypi.org/project/blind-watermark/">popular</a> <a href="https://github.com/ShieldMnt/invisible-watermark">libraries</a> (red). Larger circles indicate higher speed.</figcaption></figure><p>At the same time, other factors are not compromised. The watermarks are still recoverable under a variety of edits (e.g. below). Server-side encoding and decoding speeds are still in the range of 20–500ms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*ggtJn5AXzI5G7Dti5EvDBg.jpeg" /></figure><p>Stay tuned for the many Trufo updates to come!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a941b7807ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/dynamic-embedding-extraction-4a941b7807ea">Dynamic Embedding &amp; Extraction</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Release Notes]]></title>
            <link>https://medium.com/trufo/release-notes-730f9f2691e1?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/730f9f2691e1</guid>
            <category><![CDATA[digital-content]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[watermarking]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 19:07:49 GMT</pubDate>
            <atom:updated>2025-03-31T02:39:32.043Z</atom:updated>
            <content:encoded><![CDATA[<h4>Stay up-to-date with Trufo’s R&amp;D.</h4><h3>v1.3 (Mar 30, 2025)</h3><p>Updates:</p><ul><li><strong>Improved Cropping Resistance:</strong> Trufo’s frame watermark can now be toggled to be more robust against cropping: decoding a 20% of the original area is quite reliable now, as opposed to 60% previously. This is the default setting for images.</li><li><strong>Encoding Speed-Up:</strong> We went through some C runtime optimizations, and now encoding is 3x faster.</li><li><strong>C2PA Interim CA:</strong> We are now an official Root CA provider for C2PA; you can see that any Trufo-marked image will be recognized by all C2PA decoders. The trust list conformance guidelines are still being finalized, and roll-out likely will not be until later this year.</li><li><strong>Archival-Grade Watermark:</strong> Trufo’s frame watermark can now be configured to be archival-grade, based on our old “light” watermark. Per market research, there are two broad levels of watermark quality: consumer-grade (45 PSNR) and archival-grade (50 PSNR). The former will not be noticed by viewers, and corresponds to a 90-quality JPEG compression (standard high-res JPEG). The latter will not affect the content in any material way, and corresponds to a 99-quality JPEG compression. For most use cases, consumer-grade is recommended.</li></ul><h3>v1.2 (Feb 2, 2025)</h3><p>We are rolling out a new audio watermark. As with the frame watermark, it is comfortably SotA, with high PESQ scores (&gt;4.3) alongside revolutionary durability. For example, in addition to simple compression/etc., it can withstand stem separation and broadcasting. The watermark is currently in closed beta testing for our design partners.</p><h3>v1.1 (Jan 26, 2025)</h3><p>Updates:</p><ul><li><strong>MPEG Frame Watermark:</strong> Trufo’s frame watermark (pawprint) can now be toggled to be robust against MPEG and other video compression algorithms. The rate of compression in MPEG is much stronger than what is typically seen in images. The Trufo watermark maintains a similar PSNR (~45) while being resistant to resizing + transcoding (720p is safe for most frames, 360p may require I-frames or averaging). The tradeoff is that resistance to cropping is much weaker.</li></ul><h3>v1.0 (Dec 25, 2024)</h3><p>We have updated the design of our watermarks, to better accommodate future improvements.</p><ul><li><strong>Separation of Encoding and Decoding:</strong> In traditional architectures that are trained end-to-end, adding in a new feature to the training pipeline means an entirely new watermark. This makes it difficult to improve the watermark while maintaining continuity of service. With Trufo’s new patent-pending process, the encoding and decoding tasks are now configured so that they can be independently iterated on. This means that Trufo can continue to improve the watermark without destroying backwards compatibility.</li><li><strong>Balance:</strong> The interplay between detecting, decoding, and aligning are now more optimized for practical use.</li></ul><h3>v0.4 (Aug 12, 2024)</h3><p>Updates:</p><ul><li><strong>Improved alignment precision.</strong> Added some statistical inference to improve the alignment precision in certain common settings.</li><li><strong>Watermark consolidation.</strong> Going forward, only a default (formerly heavy) and a light version (formerly light) will be offered for images. Enterprise clients may request custom parameters.</li><li><strong>JWT Authentication.</strong> JWT tokens for external logins (Google, Apple, etc.) will be checked.</li></ul><h3>v0.3 (Apr 21, 2024)</h3><p>Updates:</p><ul><li><strong>Watermark-based alignment.</strong> When an image is cropped, rotated, or otherwise altered, Trufo will be able to use the watermark to re-align the image, enabling fuzzy authentication in these settings.</li><li><strong>iOS application support.</strong> The API and servers are now configured to support device-based applications. In particular, Trufo’s official iOS camera app is in the works!</li></ul><h3>v0.2a (Mar 19, 2024)</h3><p>Updates:</p><ul><li><strong>Improved invisible (heavy) watermark.</strong> The new watermark is around 25% less visible, 10% more robust, and 50% faster to encode/decode. Backwards compatibility is maintained.</li></ul><h3>v0.2 (Mar 15, 2024)</h3><p>Updates:</p><ul><li><strong>Improved invisible (light, medium) watermarks.</strong> The new watermarks are around 50% less visible while maintaining the same durability and scalability. Backwards compatibility is maintained.</li><li><strong>Improved fuzzy authentication.</strong> The differential analysis now includes basic behavior around benign color filters and adversarial attacks.</li></ul><h3>v0.1 (Feb 21, 2024)</h3><p>We are excited to release the first version of <a href="https://trufo.ai/">our app</a>! Here is a quick overview of what there is:</p><ul><li><strong>An invisible watermark.</strong> It comes in three styles: light, medium and heavy. Use the light one if you value image quality and the heavy one if you value watermark durability.</li><li><strong>A patterned watermark.</strong> It is a checkerboard panel added to the bottom of the image, either inside or outside the image.</li><li><strong>A metadata watermark.</strong> It attaches the requisite data, encrypted, and leaves the image alone.</li><li><strong>Preview functionality.</strong> You can play around with settings to see what the watermark would look like before committing.</li><li><strong>Google account integration.</strong> Login quickly with your Google account.</li><li><strong>Source attribution.</strong> Decoded images will be attributed to your account.</li><li><strong>Content tags. </strong>Attach these to your watermarked content.<br><strong>- Creative Commons licenses.<br>- Do-not-train assertions.<br>- Origination claims.</strong></li><li><strong>Cryptographic validation.</strong> If the content is a secure exact match, you will know.</li><li><strong>Fuzzy authentication.</strong> If the content is a convincing match, you will be able to see which areas have changed and which areas have not.</li><li><strong>Fast encoding and decoding.</strong> Most operations take less than a second.</li><li><strong>Informational pages.</strong> From FAQs to benchmark results, these articles are a resource for you.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=730f9f2691e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/release-notes-730f9f2691e1">Release Notes</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Makes a Good Watermark?]]></title>
            <link>https://medium.com/trufo/what-makes-a-good-watermark-a0014138bf90?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/a0014138bf90</guid>
            <category><![CDATA[watermarking]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 17:28:41 GMT</pubDate>
            <atom:updated>2024-02-20T17:28:41.629Z</atom:updated>
            <content:encoded><![CDATA[<h4>Durability. Invisibility. Reliability. Scalability.</h4><p>There are four primary characteristics of a good watermark. Of course, depending on the purpose of the watermark, the relative importance and specific details of each characteristic may differ, but a good watermark will have a healthy balance of all four.</p><h3>Durability</h3><p>The first characteristic is how well the watermark stays computer-readable after the content is edited or distributed. This, also known as robustness, is the main advantage of watermarks over metadata solutions. For example, while metadata is easily lost (e.g. the default iPhone image export setting) and easily changed (it can be directly edited), a good watermark embeds immutable content directly into the content data.</p><p>This durability should be calibrated against both benign and adversarial actions.</p><p>Against mundane benign alterations, such as compression or cropping, the watermark should be able to survive intact as often as possible. If not, then the watermark would not be useful most of the time.</p><p>Against targeted adversarial attacks, the watermark should primarily have protections built in against forgery attacks. Preventing watermark removal is not easy to guarantee (though it can be made quite tedious to do, and is quite important in preventing piracy), but adding in measures that prevent the watermark data from being changed or a fake watermark from being created is doable via cryptography.</p><h3>Invisibility</h3><p>Watermarks should also be largely invisible, or imperceptible to the human eye. This generally means that the application of the watermark should not change the underlying content too much, which poses challenges because the magnitude of the watermark signal must be much lower than the noise of the content data.</p><p>Good watermarks will factor in how human vision is processed and how content data is stored to maximize the invisibility of the watermark.</p><p>Invisibility can also be targeted. For example, our patterened watermark is designed to be completely invisible in 95% of the content, but convey information in a non-disruptive manner in the remaining 5%.</p><p>Lastly, in the context of generated images, a different type of invisibility is possible, because there is no original content to stay true to. Watermarks that directly intervene in the content generation process can change the end result significantly (because the content itself is changed) without the watermark effect being visible.</p><h3>Reliability</h3><p>For any good signal, both the false positive rate and the false negative rate should be low. If a watermark exists, the data should be decodable, and the data decoded should be correct. If a watermark does not exist, decoding should not return any data.</p><p>This is one of the main weaknesses of detection models that aim to use AI to detect AI. The accuracy rate is low, to the point that OpenAI recalled their ChatGPT detection product, and furthermore does not provide any guarantee against future AI models.</p><p>Cryptography, on the other hand, provides provable confidence. By incorporating cryptographic tools into watermarks, a similar style of confidence can be attained.</p><p>As an aside, while digital content is usually presented in a clean format, more physical interactions, such as the scanning of physical objects or whatever we may end up with in AR/VR, requires consistency in more freeform settings.</p><h3>Scalability</h3><p>Content generation is widespread, so an effective watermark needs to be effective at a large scale too. This means that the encoding and decoding processes should be fast and accessible. Specifically, the time and memory cost of compute should be similar to standard image processing or video streaming functions. This means under 100ms for an HD image.</p><p>The decoding side is especially important, because when decoding in a public setting, it is unknown what watermark is in the content. In a more fragmented setting, every watermark needs to be separately decoded, and the user’s patience dwindles quickly.</p><p>Lastly, data storage is limited. Some watermarking schemes require a copy of the original content for decoding. Others decode fine, but require a copy of the original content for authentication. Since digital content tends to be quite large in size, and there is a lot of digital content, this becomes a bit impractical quite quickly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0014138bf90" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/what-makes-a-good-watermark-a0014138bf90">What Makes a Good Watermark?</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do Trufo’s Watermarks Stack Up?]]></title>
            <link>https://medium.com/trufo/how-do-trufos-watermarks-stack-up-af170eea759a?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/af170eea759a</guid>
            <category><![CDATA[watermarking]]></category>
            <category><![CDATA[benchmarking]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 05:53:45 GMT</pubDate>
            <atom:updated>2024-02-20T16:33:16.967Z</atom:updated>
            <content:encoded><![CDATA[<h4>An evaluation of Trufo’s watermarks.</h4><p>Using the open-source <a href="https://github.com/byh-trufo/watermark-benchmark">watermark benchmark library</a>, we evaluated Trufo’s watermarking capabilities. For comparison, we also evaluated the popular <a href="https://pypi.org/project/invisible-watermark/">invisible watermark library</a>, which has over 1000 stars in GitHub and is officially used by established generative AI companies such as <a href="https://medium.com/p/2d68e2ab1241">Stable Diffusion</a>.</p><h3>Methodology</h3><p>There are three primary metrics being measured.</p><ul><li><strong>Durability:</strong> the proportion of edited images from which the watermark payload was recoverable without errors. For each image in the dataset, 60 pseudo-random tests were conducted, ranging from a simple 95-Q JPEG export to a composition of resizing, overlays, compression, and more.</li><li><strong>Invisibility:</strong> an even blend of PSNR, SSIM (scaled to 0–100), and a new perceptibility metric PCPA that addresses some of the weaknesses of the other two.</li><li><strong>Scalability:</strong> the amount of time, in milliseconds divided by the image size, the watermark encoding and decoding processes require.</li></ul><p>These metrics are developed based on first principles, and have not been calibrated or manipulated to benefit Trufo’s watermarks.</p><p>The IMG_1 dataset (10 images) was treated as a training set. The IMG_VOC dataset (132 images) was treated as a blind test set (the evaluation was run once and only once).</p><p>Note that Trufo’s watermarks do come with a suite of useful functionalities, such as content provenance and fuzzy authentication, that are not tested in the evaluation.</p><h3>Results</h3><p>Trufo’s watermarks outperformed the reference implementation by a few orders of magnitude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*YCGR8oqyCP3MLHWkGfxsmA.png" /><figcaption>*This is our current guess at the capabilities of other private watermarking services, and is not based on actual benchmark results. Those that are not optimized for durability and invisibility may see lower scores. Those that are not optimized for reliability and scalability may see higher scores.</figcaption></figure><p>For a deeper dive, here is the summary table of results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RnGZzyOOsrHVAONYXK85Cg.png" /></figure><p>There are a couple of analytical takeaways here:</p><ul><li>The reference implementations slow down significantly for larger image sizes (IMG_1 contains two ~4K images; IMG_VOC contains none). Trufo’s watermarks do not; in particular, the heavy watermark that is substantially slower on small images becomes substantially faster on large images (by 2x and 8x versus DwtDct and DwtDctSvd, respectively; RivaGAN crashed the kernel).</li><li>The PCPA metric is very friendly towards DwtDct and very unfriendly towards DwtDctSvd. From a quick human inspection, DwtDct is indeed far less visible than DwtDctSvd. On the flip side, Trufo’s medium and heavy watermarks have similar invisibility scores, but in practice the heavy version does tend to be more noticeable.</li><li>The AI-only model (reference RivaGAN) requires a large amount of compute. With a hearty setup of H100 graphics cards and proper GPU optimization, the watermark decoding time can probably be reduced to a practical level, but it is tough. Trufo’s decoding time, in contrast, is consistently quick.</li></ul><p>There is still plenty of room for research &amp; improvements in the space of digital watermarking. Stay in tune for updates from Trufo!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af170eea759a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/how-do-trufos-watermarks-stack-up-af170eea759a">How do Trufo’s Watermarks Stack Up?</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmarking Watermarking]]></title>
            <link>https://medium.com/trufo/benchmarking-watermarking-436cbf1bd9ca?source=rss----10d727d019c0---4</link>
            <guid isPermaLink="false">https://medium.com/p/436cbf1bd9ca</guid>
            <category><![CDATA[watermarking]]></category>
            <category><![CDATA[benchmarking]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[TrufoAI]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 04:27:42 GMT</pubDate>
            <atom:updated>2024-02-20T04:27:42.658Z</atom:updated>
            <content:encoded><![CDATA[<h4>An open-source standard for evaluating modern watermarks.</h4><p>As part of our mission to embed trust in digital media, Trufo has released an open-source <a href="https://github.com/byh-trufo/watermark-benchmark">watermark benchmark library</a>. Detailed instructions, for developers and researchers, on how to use the library can be found in the README file in the repository.</p><h3>Why a New Standard?</h3><p>Digital watermarking has been around for half a century, and there is a substantial collection of literature on various techniques and technologies, as well on the assessment of said methods. In the past few years, however, the raison d’être of digital watermarking has evolved significantly.</p><p>The culprit is the advancement of content generation capabilities. One on hand, the availability of phone cameras and the omnipresence of social media means that the main content generators are no longer just a handful of companies but rather the general public at large. On the other hand, the rapid development of generative AI capabilities means that digital content will be increasing easy to create, mimic, or alter.</p><p>Existing evaluations for watermarks are tailored to the old priorities. While they are designed well for their purpose, many of the tested properties are not all that relevant. Here are a few examples:</p><ul><li>When assessing robustness, two common tests are the addition of (1) Gaussian noise and (2) salt &amp; pepper noise. In practice, (2) most often arises in the analog-to-digital conversion, and is rare nowadays due to the widespread use of error-correction in data transmission. And while (1) may naturally arise at very small levels from color space rounding, in practice color filters (including simple gamma correction) are more common and more impactful.</li><li>Many concerns are raised over security, and in particular, over secrecy. Oftentimes, security is dependent solely on the secrecy of the specific methods and parameters of the watermark, which does not scale well with mass adoption. The data that is carried is likewise restricted to a private indication of ownership, with the occasional inclusion of an ID to track down an offending user in the case of a copyright violation.</li><li>PSNR is probably the most common way of assessing perceptibility. It is simple, and it is great because it is simple (we use it too!). However, dig a little deeper and it is not all that representative of how human visual perception works.</li><li>Overall, the focus is on preventing adversarial attacks in the context of controlled distribution. If a cable company wants to send a paywalled movie to a DVR console in a known AV encoding, they do not need to worry about the content being resized and compressed when sent over text or email, but they do need to worry about a hacker trying to pirate the content.</li></ul><p>The watermark benchmark library Trufo is releasing instead focuses on addressing the modern problem. This problem includes:</p><ul><li>Distinguishing generated (AI) content from genuine (camera, human) content.</li><li>Mitigating misinformation, by increasing the difficulty of creating and reducing the impact of receiving.</li><li>Allowing the average creator to assert their content rights.</li></ul><p>There are <a href="https://medium.com/p/a0014138bf90">four primary characteristics</a> associated with a good watermark for these purposes. This library serves as an effective tool to evaluate two of them: durability and invisibility.</p><h3>The Dataset</h3><p>Currently, only images are supported. There are four image datasets.</p><p><strong>IMG_1:</strong> This dataset contains ten images, across a range of sizes, styles, and formats. Attributions are in the <a href="https://drive.google.com/drive/folders/1P3X_-_Ug8fewCxd-a_66Pumr9BsHmsqf?usp=sharing">dataset mirror</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*jxNjzr3ir-zDcP_DmM0Qdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*Z8j79pI_Ar5hBdxiMxcOwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lzOncGSHZBu91B96nOZs2g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*xmcB4ogINwqJw5YYOo0HsQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzOWDDp6HWyX3x82qu06oQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pl-5siVxLEBsrd91isLbyw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*gUoANPVUnpV-5hNg2HRX5Q.png" /><figcaption>Note: two images here are missing because their file formats (.bmp, .tiff) are not supported here.</figcaption></figure><p><strong>IMG_VOC*:</strong> This is a dataset of 132 medium (HD-) images.</p><p><strong>IMG_BIG*:</strong> This is a dataset of 17 large (4K+) images.</p><p><strong>IMG_ART*:</strong> This is a dataset of 47 artistic works.</p><p>*These are compiled by Angela Tan, CS@Princeton ’25. The VOC and BIG selections are balanced across natural landscapes, urban landscapes, and people-centric photos.</p><h3>Evaluating Durability</h3><p>The focus here, at least for the initial release of the library, is on benign content alterations. The first reason is that watermarks, and in particular cryptographic watermarks, serve as a mark of authenticity, so users are generally incentivized to keep it on. The second reason is that benign alterations, such as file downsizing and screenshotting, constitute the lion’s share of content alterations in practice.</p><p>A number of image edits are evaluated. Due to the large number of possible edits and the large number of test images, some degree of reproducible randomness is added to obtain a reasonable balance. The full list of edits include:</p><ul><li>Simple exporting: lossless (PNG) and lossy (JPEG, 95Q).</li><li>Various JPEG compression levels: 99Q, 90Q, 80Q, …, 10Q.</li><li>Cropping: one side (2), all sides (2), random selections (4).</li><li>Resizing: enlarge (2), shrink (2), aspect change (2), fixed sizes (2).</li><li>Rotation: 90-degrees + reflections (3), fixed small angles (4), random angle (1).</li><li>Filters: brightening (2), saturation + hue (2), grayscale (1), negative (1), blurring (1), sharpening (1), discretizing (1).</li><li>Alterations: box overlay (2), lines overlay (2), lines removal (2), text addition (2).</li><li>Composites: “post” ~ filter + alter + compress (2), “share” ~ resize + alter + compress (2), “screenshot” ~ resize + crop (2).</li></ul><p>There are a total of 60 tests. Smaller test selection settings are also available (2 tests, 12 tests), and so is a false positive test setting.</p><h3>Evaluating Invisibility</h3><p>Three separate metrics are used. We have found that the composite score is usually quite representative of true visibility.</p><p>The first is PSNR, which is a log-scale of the average magnitude of the noise (i.e. watermark) added to an image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*iC6H1lVNsO6wsgzQJtY9eQ.png" /></figure><p>The second is SSIM, which factors in luminance, contrast, and structure into a similarity metric. The calculation is done over a number of windows covering an image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*1QPfLPNi5Bt2SDYQUq4udg.png" /></figure><p>To roughly place it onto a 0–100 scale (like PSNR), a transformation is applied in the analysis to obtain a scaled decimal version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*m1IssE_iZEsx6qqgVMaiwg.png" /></figure><p>The third is an in-house metric, which we call PCPA (perceptibility A). The first step is to calculate a local perceptibility score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*V5YTKWWYbtQ77vE9Ejgm2Q.png" /></figure><p>Because the human eye resolves luminosity at a higher precision than color, a larger blend parameter is used for the color channels. The scores across the three color channels are then summed, and a weighted mean is taken across the entire image. In order to achieve a reasonable balance between omnipresent light signals and localized heavy signals, a power factor of 1.5 is used in the mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*VEaTq_9TfUU17DzyEB0IqA.png" /></figure><p>Furthermore, because small images and large images are different, to both humans and computers, the computed scores of the raw image and of a resized version are combined. Finally, the value is placed onto a 0–100 scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*vp78JDe6cx6CdvvpmTShRQ.png" /></figure><p>The computation is neither simple nor elegant, unfortunately, but it does the job well enough.</p><h3>Analysis</h3><p>The library also includes an analysis module, which provides convenient summaries of the raw benchmark data. Three summaries are provided:</p><ul><li>Overall encoding and decoding scores by (watermark / dataset / evaluation).</li><li>Breakdown of decoding scores by (watermark / dataset / evaluation / edit type).</li><li>List of encoding and decoding scores by (watermark / dataset / evaluation / image).</li></ul><p>We have already <a href="https://medium.com/p/af170eea759a">run the analysis</a> on a number of watermarks, including our own. If you have watermarks you would like to analyze (or results you want to share), let us know at <a href="http://engineering@trufo.ai/">engineering@trufo.ai</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=436cbf1bd9ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trufo/benchmarking-watermarking-436cbf1bd9ca">Benchmarking Watermarking</a> was originally published in <a href="https://medium.com/trufo">Trufo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>