← All projects
Project record1 mention
Originally shared on Hacker News

NSFW filter for Marginalia search

This project builds an NSFW content filter for the Marginalia search engine. It generates training data by querying the search API and labeling results with Qwen, trains a small custom neural net with hand-selected input features (after a fasttext model performed well in theory but poorly in practice), and iteratively applies the model to a real-world link database, relabeling positive findings with Qwen for more training data. Reported metrics: 90.90% accuracy, 0.8689 precision, 0.8161 recall, 0.8417 F1.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. NSFW filter for Marginalia search

    This project builds an NSFW content filter for the Marginalia search engine. It generates training data by querying the search API and labeling results with Qwen, trains a small custom neural net with hand-selected input features (after a fasttext model performed well in theory but poorly in practice), and iteratively applies the model to a real-world link database, relabeling positive findings with Qwen for more training data. Reported metrics: 90.90% accuracy, 0.8689 precision, 0.8161 recall, 0.8417 F1.

    Posted by @marginalia_nu · Original source ↗

    Source text · @marginalia_nu · · Source ↗

    Cooking up a NSFW filter for marginalia search. Pipeline so far has gone like this: * Use the search engine's API to query a bunch of depravity * Use qwen3.5 to label the search results and generate training data * Try to use fasttext to create a fast model * Get good results in theory but awful results in practice because it picks up weird features * Yolo implement a small neural net using hand selected input features instead * Train using fasttext training data * Do a pretty good job