<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Erik Svensson</title>
    <description>The latest articles on DEV Community by Erik Svensson (@wolfoftyresodebug).</description>
    <link>https://dev.to/wolfoftyresodebug</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4233175%2F4f40fca1-36ec-44a2-b7bb-fecf709585c5.png</url>
      <title>DEV Community: Erik Svensson</title>
      <link>https://dev.to/wolfoftyresodebug</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wolfoftyresodebug"/>
    <language>en</language>
    <item>
      <title>What's actually lawful when you train a vision model on document layouts?</title>
      <dc:creator>Erik Svensson</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:17:44 +0000</pubDate>
      <link>https://dev.to/wolfoftyresodebug/whats-actually-lawful-when-you-train-a-vision-model-on-document-layouts-1ecp</link>
      <guid>https://dev.to/wolfoftyresodebug/whats-actually-lawful-when-you-train-a-vision-model-on-document-layouts-1ecp</guid>
      <description>&lt;p&gt;This is a legal and architecture question, not a "how do I scrape a bank" question. At Landvex we need a reference library and training material for document review in Europe: layouts, issuer markers, typical fields. Not customer files.&lt;/p&gt;

&lt;p&gt;I'm trying to understand where the lines really are, because the folklore around "if it's on a public website we can train on it" seems… optimistic!?&lt;/p&gt;

&lt;p&gt;Points I'd like to hear how other teams have handled, ideally with something more concrete than vibes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Official specimen pages and published examples. Some government or document libraries explicitly forbid reuse in a product. Does "I only extract layout features or embeddings, I don't ship the images" change anything, or is that wishful thinking?&lt;/li&gt;
&lt;li&gt;Copyright in the look of a bank statement or an employment certificate template. Who even owns that, and does it matter if the model never reproduces a full page?&lt;/li&gt;
&lt;li&gt;Training on customer-submitted documents, even with a contract. Purpose limitation, storage limitation, the right to erasure — can a model trained on someone's statement ever really forget them?&lt;/li&gt;
&lt;li&gt;Synthetic data generated to resemble a real issuer's layout. Is imitating a protected template for training its own problem?&lt;/li&gt;
&lt;li&gt;Keeping an audit trail: source, date fetched, licence, whether personal data was present, and a way to drop an item from future training runs if the legal basis disappears.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm not asking anyone to be our lawyer, and I'm not looking for ways around terms of service. I want to hear how people have designed the corpus so a later audit doesn't fall apart.&lt;/p&gt;

&lt;p&gt;What did you decide you would &lt;em&gt;not&lt;/em&gt; train on, and why?&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Synthetic documents vs real specimens for training a document detector?</title>
      <dc:creator>Erik Svensson</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:16:44 +0000</pubDate>
      <link>https://dev.to/wolfoftyresodebug/synthetic-documents-vs-real-specimens-for-training-a-document-detector-3hhp</link>
      <guid>https://dev.to/wolfoftyresodebug/synthetic-documents-vs-real-specimens-for-training-a-document-detector-3hhp</guid>
      <description>&lt;p&gt;We're collecting a reference holding at Landvex and also planning heavier YOLO training. I'm uneasy about training on anything that looks like a real customer's file, and some official specimen libraries are pretty clearly not meant for reuse in a product.&lt;/p&gt;

&lt;p&gt;So… has anyone had luck training primarily on synthetic documents — generated layouts, varied stamps and seals, phone-photo augmentation — and using a small, carefully licensed set of genuine public specimens only for evaluation?&lt;/p&gt;

&lt;p&gt;A few things I'm stuck on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How close does synthetic need to be before the model just learns the generator?&lt;/li&gt;
&lt;li&gt;Do you still need confirmed forgeries in the training set if the model's job is to find objects, not to classify fake vs real?&lt;/li&gt;
&lt;li&gt;Any practical way to keep provenance on every training image: source, licence, whether it ever contained personal data?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Curious what's actually worked, including the boring failures.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>machinelearning</category>
      <category>security</category>
    </item>
    <item>
      <title>When do you lock the evaluation set?</title>
      <dc:creator>Erik Svensson</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:11:23 +0000</pubDate>
      <link>https://dev.to/wolfoftyresodebug/when-do-you-lock-the-evaluation-set-5gk3</link>
      <guid>https://dev.to/wolfoftyresodebug/when-do-you-lock-the-evaluation-set-5gk3</guid>
      <description>&lt;p&gt;At Landvex we're about to scale collection and annotation across several document families, mixed image and file inputs. The obvious failure mode is multiplying training material first, then discovering the test set was contaminated — or that "accuracy" was measured against a binary genuine/fake label we no longer believe in.&lt;/p&gt;

&lt;p&gt;I'm leaning toward: define the ground truth per family, lock a held-out test set &lt;em&gt;before&lt;/em&gt; we scale annotation and GPU training, and only then measure whether more data actually moves the dimensions we care about.&lt;/p&gt;

&lt;p&gt;Does that match how you've seen high-stakes document or KYC systems do evaluation? What did you lock besides the files themselves — the label schema? Annotator instructions? The exact questions the model is scored on?&lt;/p&gt;

&lt;p&gt;Also slightly paranoid about test items leaking back into reference examples that reviewers can see. How do you keep those walls up in practice?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>machinelearning</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Collecting a reference library of genuine document layouts — scrape, partner, or buy?</title>
      <dc:creator>Erik Svensson</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:10:36 +0000</pubDate>
      <link>https://dev.to/wolfoftyresodebug/collecting-a-reference-library-of-genuine-document-layouts-scrape-partner-or-buy-16hb</link>
      <guid>https://dev.to/wolfoftyresodebug/collecting-a-reference-library-of-genuine-document-layouts-scrape-partner-or-buy-16hb</guid>
      <description>&lt;p&gt;At Landvex we need a reference holding of what genuine document &lt;em&gt;families&lt;/em&gt; look like: bank statements, employment certificates, invoices, and some ID/travel documents used in Europe. Not customer files. Layout, issuer markers, typical field structure. Receiving country and issuing country are often not the same, which already makes "just scrape one national portal" pretty useless!?&lt;/p&gt;

&lt;p&gt;What's actually worked when the material has to be lawful and auditable?&lt;/p&gt;

&lt;p&gt;A few points I'm turning over:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Public official specimens versus anything that looks like a customer document&lt;/li&gt;
&lt;li&gt;Is scraping those public pages even the right architecture, or do you start with data partnerships and treat crawlers as a last resort?&lt;/li&gt;
&lt;li&gt;How do you store provenance so a later reviewer can see where a reference came from, when it was fetched, and under what licence? Some official libraries are explicitly not for reuse in a product.&lt;/li&gt;
&lt;li&gt;Layout fingerprints versus storing full page images. Full images are easier to train on, and a lot more legally awkward.&lt;/li&gt;
&lt;li&gt;Rate limits, robots.txt, and portals that redesign their HTML every quarter — is a scraper maintainable compared to a small set of official download endpoints you actually monitor?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm specifically not looking for tips on grabbing customer bank files or bypassing logins. That's a hard no. The question is how people have built a clean, traceable reference corpus for document review without walking into a copyright or ToS problem.&lt;/p&gt;

&lt;p&gt;What would you do first if you had to stand this up properly?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>architecture</category>
      <category>security</category>
    </item>
    <item>
      <title>Four different "document problems" — separate types in the data model?</title>
      <dc:creator>Erik Svensson</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:04:01 +0000</pubDate>
      <link>https://dev.to/wolfoftyresodebug/four-different-document-problems-separate-types-in-the-data-model-1798</link>
      <guid>https://dev.to/wolfoftyresodebug/four-different-document-problems-separate-types-in-the-data-model-1798</guid>
      <description>&lt;p&gt;At Landvex we've been lumping too much under "forged". In practice I keep seeing four different situations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A wholly fabricated document&lt;/li&gt;
&lt;li&gt;A genuine document that was later altered&lt;/li&gt;
&lt;li&gt;A genuine document whose content was already false — the issuer wrote something untrue&lt;/li&gt;
&lt;li&gt;A genuine, unaltered document used in a misleading way&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Only the first two are classic forgery. The last two can sail through any vision model and still be exactly what a bank or authority gets wrong.&lt;/p&gt;

&lt;p&gt;So… do you model these as first-class problem types from day one? Or start with visual/file integrity and bolt the rest on later?&lt;/p&gt;

&lt;p&gt;Also: for 3 and 4, the system can't really decide from the file alone. You need external checks, case context, sometimes a human. How do you keep the API honest about that, instead of pretending a model "scored" something it never saw?&lt;/p&gt;

&lt;p&gt;Curious whether this taxonomy matches what others use, or if we're over-splitting.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>security</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Is it a mistake to expose an overall "authenticity %" for document checks?</title>
      <dc:creator>Erik Svensson</dc:creator>
      <pubDate>Sun, 08 Nov 2026 06:02:17 +0000</pubDate>
      <link>https://dev.to/wolfoftyresodebug/is-it-a-mistake-to-expose-an-overall-authenticity-for-document-checks-5a4a</link>
      <guid>https://dev.to/wolfoftyresodebug/is-it-a-mistake-to-expose-an-overall-authenticity-for-document-checks-5a4a</guid>
      <description>&lt;p&gt;At Landvex we're building a review engine for documents that banks and similar recipients use as decision support. Origin-of-funds evidence, invoices, employment certificates — not a toy "is this PDF fake?" score.&lt;/p&gt;

&lt;p&gt;The more we dig, the less a single genuine/fake flag, or a 0–100 number, makes sense. A file can be visually intact but issued by nobody real. It can be a genuine bank file whose content is wrong. It can be genuine, unaltered, and still used for the wrong purpose.&lt;/p&gt;

&lt;p&gt;So we're splitting the answer into separate dimensions: image/file integrity, origin, authority to issue, validity, factual claims, and linkage to the case. Each one can be verified, a deviation, or unclear. No rolled-up authenticity number.&lt;/p&gt;

&lt;p&gt;Two things I keep getting stuck on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clients will invent a score anyway if we don't give them one. Is that an argument for a carefully caveated summary… or for making a single score painfully impossible?&lt;/li&gt;
&lt;li&gt;How do you keep a six-answer report readable for someone who just wants to know "can I rely on this?" without lying to them?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Anyone shipped something in this neighborhood? What broke in the UX?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>architecture</category>
      <category>security</category>
    </item>
  </channel>
</rss>
