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:

Was this article displayed correctly? Not happy with what you see?

Featured Extension

Tame your tab chaos with Taskify Tabs

Reading too many articles at once? Don't let your browser slow down. Magically save your open tabs as dynamic tasks, set reminders, and get immediate peace of mind.

  • 1-Click Tab Conversion: Turn cluttered tabs into structured tasks in seconds.
  • Smart Reminders: Set due dates so you never forget an important read.
  • 100% Private: Everything stays stored securely, only on your local device.
📑 Cluttered Tab
✓ Action Task
Add to Chrome — It's Free

Share this article with your
friends and colleagues.

Facebook



Share this article with your
friends and colleagues.

Facebook