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?

Tabs Reminder: Tabs piling up in your browser? Set a reminder for them, close them and get notified at the right time.

Try our Chrome extension today!


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device