How I Improved the GPT2 Output Detector | by Michael | GoPenAI


This article details improvements made to a GPT-2 output detector, enhancing its functionality to handle larger texts and multiple files.
AI Summary available โ€” skim the key points instantly. Show AI Generated Summary
Show AI Generated Summary

How I Improved the GPT2 Output Detector

The GPT2 Output Detector is a powerful classifier that detects ChatGPT text with an impressive accuracy. I extended the detectorโ€™s frontend to work for large texts, support custom file uploads, and allow parallel processing of many files.

These new features make the GPT2 detector more usable and accessible. In this blog post I will describe my changes and how they work.

You can try out the application at: https://michaelgithubhype.github.io/Extended-GPT2-Output-Detector/index.html

Here is a full demo:

Background

This project is based on my previous post where I tested the accuracy of the GPT-2 Output Detector. I found that the tool is accurate โ€” it effectively detects the difference between human written vs ai-generated text.

However, there is an issue. The GPT2 Output Detector is limited to 510 tokens. For long posts, the tool is sensitive to small changes at the beginning. This restricts content detection support to social platforms with short texts. Ideally, the tool would take a holistic view of the content.

The problem with the GPT-2 Output Detector is that the API limits the amount of allowed tokens. Here is the response format once a user sends more than 510 tokens:

๐Ÿง  Pro Tip

Skip the extension โ€” just come straight here.

Weโ€™ve built a fast, permanent tool you can bookmark and use anytime.

Go To Paywall Unblock Tool
Sign up for a free account and get the following:
  • Save articles and sync them across your devices
  • Get a digest of the latest premium articles in your inbox twice a week, personalized to you (Coming soon).
  • Get access to our AI features

  • Save articles to reading lists
    and access them on any device
    If you found this app useful,
    Please consider supporting us.
    Thank you!

    Save articles to reading lists
    and access them on any device
    If you found this app useful,
    Please consider supporting us.
    Thank you!