17 comments

  • fzxu221 hour ago
    Working on this: <a href="https:&#x2F;&#x2F;github.com&#x2F;KevinXuxuxu&#x2F;anon_proxy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;KevinXuxuxu&#x2F;anon_proxy</a>, a sort of anonymization proxy to use with LLM providers. It does model (OpenAI privacy filter) + regex PII detection, and replaces them back-and-forth for API requests and responses. With locally hosted detection model, no PII leaves your local environment. I find it very useful especially when you&#x27;re working on sensitive documents (legal, tax, immigration etc.), hope you find it helpful as well :)
  • nl3 hours ago
    I&#x27;m no where near as smart as OpenAI of course, but I did build <a href="https:&#x2F;&#x2F;tools.nicklothian.com&#x2F;webner&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;tools.nicklothian.com&#x2F;webner&#x2F;index.html</a> that uses a BERT based named-entity-recognition model running in your browser to do a subset of PII redaction.<p>It works pretty well for the use cases I was playing with.<p>The OpenAI model is small enough that I might enhance my tool to use it.
    • stingraycharles2 hours ago
      I just used it on a document, but the amount of false positives this generates make it faily difficult to use?<p>I fed it a ~ 100 line markdown document, took about 10 seconds, and it decided that &quot;matter&quot; (as in, frontmatter), &quot;end&quot; (as in, frontend), MCP (as in, mcp server) are organizations.<p>Most of them don&#x27;t even make grammatical sense, e.g. &quot;Following the discussion in &lt;PERSON_1&gt;, blahblah&quot;.<p>Brings me back to what NLP was like a decade ago. I always thought spaCy was a very nice project in that space.
      • nl2 hours ago
        Yeah this really is roughly NLP ~10 years ago.<p>It does work better on plain text than markdown because of casing. I can&#x27;t see what you used (kinda the point - because it run all in your browser) but if you can share the markdown as a gist or something I can take a look and comment more concretely.
  • stratos1232 days ago
    There&#x27;s some interesting technical details in this release:<p>&gt; Privacy Filter is a bidirectional token-classification model with span decoding. It begins from an autoregressive pretrained checkpoint and is then adapted into a token classifier over a fixed taxonomy of privacy labels. Instead of generating text token by token, it labels an input sequence in one pass and then decodes coherent spans with a constrained Viterbi procedure.<p>&gt; The released model has 1.5B total parameters with 50M active parameters.<p>&gt; [To build it] we converted a pretrained language model into a bidirectional token classifier by replacing the language modeling head with a token-classification head and post-training it with a supervised classification objective.
    • LatencyKills5 hours ago
      Couldn&#x27;t this be used to <i>locate</i> private data in unstructured text without having to rely on other means of PII detection?<p>1. Pass the raw text through the filter to obtain the spans.<p>2. Map all the spans back to the original text.<p>Now you have all the PII information.
      • Everdred2dx4 hours ago
        Yep, and already has been done.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;chiefautism&#x2F;privacy-parser" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chiefautism&#x2F;privacy-parser</a>
      • yjftsjthsd-h3 hours ago
        If you have the redacted and unredacted versions, then you can diff them; that seems unsurprising? Unless I&#x27;m really misunderstanding &quot;spans&quot;?
  • aubinkure2 days ago
    Exciting! I took a look through the code and found what appear to be the entity types for future releases - this release (V2 config) supports 8 entity types, but the V4 and V7 taxonomies have &gt;20, mostly more personal ID types. Given this is a preview release, I imagine they&#x27;ll release these.<p>Details in my review article here: <a href="https:&#x2F;&#x2F;piieraser.ai&#x2F;blog&#x2F;openai-privacy-filter" rel="nofollow">https:&#x2F;&#x2F;piieraser.ai&#x2F;blog&#x2F;openai-privacy-filter</a>. Disclaimer: I also build PII detection systems.
  • mplanchard2 days ago
    It would be nice if their examples weren’t mostly things that are easy to catch with regex, but it’s cool to see if released as an open, local model.
    • JLO645 hours ago
      For my customers I use regexes to block them from potentially publishing personal emails&#x2F;phone numbers to their websites but I really wouldn&#x27;t mind running this in addition just for the extra peace of mind. I don&#x27;t have a GPU on our server, but I hope this is light enough of a model to handle CPU only inference on less than 2k tokens at a time.
  • hiAndrewQuinn3 days ago
    I&#x27;m surprised nobody else has commented on this. This is a very straightforward and useful thing for a small locally runnable model to do.
    • apothegm3 days ago
      And also something that it’s dangerous to try to do stochastically.
      • hiAndrewQuinn3 days ago
        It&#x27;s going to be stochastic in some sense whether you want it to be or not, human error never reaches zero percent. I would bet you a penny you&#x27;d get better results doing one two-second automated pass + your usual PII redaction than your PII redaction alone.
        • ori_b4 hours ago
          The advantage of computers was that they didn&#x27;t make human errors; they did things repeatedly, quickly, and predictably. If I&#x27;m going to accept human error, I&#x27;d like it to come from a human.
          • creesch5 minutes ago
            &gt; The advantage of computers was that they didn&#x27;t make human errors;<p>Sure they do, computers repeatedly, quickly, and predictably do what they are programmed to do. Which includes any human errors in that programming.
          • pigpag3 hours ago
            [dead]
        • cyanydeez2 days ago
          I think the problem is most secrets arn&#x27;t stochastic; they&#x27;re determinant. When the user types in the wrong password, it should be blocked. Using a probabilistic model suggests an attacker only now needs to be really close, but not correct.<p>Sure, there&#x27;s some math that says being really close and exact arn&#x27;t a big deal; but then you&#x27;re also saying your secrets don&#x27;t need to be exact when decoding them and they absolutely do atm.<p>Sure looks like a weird privacy veil that sorta might work for some things, like frosted glass, but think of a toilet stall with all frosted glass, are you still comfortable going to the bathroom in there?
          • CityOfThrowaway4 hours ago
            I dunno what use case you&#x27;re thinking this is for.<p>The use case for this is that many enterprise customers want SaaS products to strip PII from ingested content, and there&#x27;s no non-model way to do it.<p>Think, ingesting call transcripts where those calls may include credit card numbers or private data. The call transcripts are very useful for various things, but for obvious reasons we don&#x27;t want to ingest the PII.
            • traceroute661 hour ago
              &gt; Think, ingesting call transcripts where those calls may include credit card numbers or private data. The call transcripts are very useful for various things, but for obvious reasons we don&#x27;t want to ingest the PII.<p>Credit card numbers are deterministic. A five year old could write a script to strip out credit card numbers.<p>As for other PII ? You&#x27;re seriously expecting an LLM to find every instance of every random piece of PII ? Worldwide ? In multiple languages ? I&#x27;ve got an igloo I&#x27;d like to sell you ...
      • moralestapia2 days ago
        The alternative being?
    • hiAndrewQuinn3 hours ago
      For the confused: this link must have gotten revived or something, I posted this comment a few days ago. Looks like it&#x27;s getting the accolades I claim it deserves now.
      • tanelpoder2 hours ago
        It was put into second-chance pool by moderators. I originally submitted this link a few days ago and today got this (semi?)automated email from HN, an excerpt below:<p><pre><code> The submission &quot;OpenAI Privacy Filter&quot; that you posted to Hacker News (https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47870901) looks good, but hasn&#x27;t had much attention so far. We put it in the second-chance pool, so it will get a random placement on the front page some time in the next day or so. This is a way of giving good HN submissions multiple chances at the front page. If you&#x27;re curious, you can read about it at https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26998308 and other links there.</code></pre>
    • ashwindharne3 days ago
      Same here, this is an incredibly useful thing to have in the toolkit
  • flashdesk1 hour ago
    This is where stochastic approaches start to feel a bit uncomfortable.<p>Even small mistakes can make something dealing with sensitive data hard to trust. It seems useful as a first pass, but I’d probably still want some deterministic checks or a human in the loop to feel confident using it.
    • fathermarz1 hour ago
      I built a community tool for exactly this, based on privacy first principals but around the what. It’s workflow based and not “put your sensitive data into ChatGPT and hope it captures the right stuff”. Mostly built for security folks but anyone can use it<p>Check it out: <a href="https:&#x2F;&#x2F;redact.cabreza.com" rel="nofollow">https:&#x2F;&#x2F;redact.cabreza.com</a>
  • mayneack4 hours ago
    Curious how this compares to presidio which mixes regex with a model: <a href="https:&#x2F;&#x2F;microsoft.github.io&#x2F;presidio&#x2F;" rel="nofollow">https:&#x2F;&#x2F;microsoft.github.io&#x2F;presidio&#x2F;</a>
    • pros17 minutes ago
      [dead]
  • flashdesk2 hours ago
    This is exactly where stochastic approaches feel uncomfortable.<p>For anything touching security or privacy, even small inconsistencies can quickly erode trust.
  • 7777777phil3 days ago
    &gt; The model is available today under the Apache 2.0 license on Hugging Face (opens in a new window) and Github (opens in a new window).<p>Bringing back the Open to OpenAI..
  • Havoc2 days ago
    50M effective parameters is impressively light. Is there a similarly light model on the prompt injection side? Most of the mainstream ones seem heavier
  • mentalgear2 days ago
    SuperagentLM made available on-edge PPI redaction models already a few years ago in sizes 20B, 3B, 200M. They still seem to be available via their legacy API - well worth checking out to compare against this one. <a href="https:&#x2F;&#x2F;docs.superagent.sh&#x2F;legacy&#x2F;llms&#x2F;superagent-lm-redact-20b">https:&#x2F;&#x2F;docs.superagent.sh&#x2F;legacy&#x2F;llms&#x2F;superagent-lm-redact-...</a>
  • freakynit4 hours ago
    Can someone explaon how can I reconstruct the original entities back if there are, for example, more than one person names?
    • pros1 hour ago
      [dead]
  • ndom912 days ago
    Where&#x27;s the gguf from Unsloth and co?
  • nickthegreek5 hours ago
    [dead]
  • haricomputer4 hours ago
    [dead]
  • y0eswddl3 days ago
    [flagged]
    • klauserc3 days ago
      Was my first thought as well, but this is an open weights model. You can run it on your own hardware.