Catching Unicorns with GLTR: A Tool for Detecting Generated Text

Kazuki Nakayashiki

Hatched by Kazuki Nakayashiki

Aug 15, 2023

3 min read

0

Catching Unicorns with GLTR: A Tool for Detecting Generated Text

In the world of artificial intelligence (AI) and natural language processing (NLP), the generation of fake or synthetic text has become a prevalent issue. With the rise of powerful language models like GPT-2, it has become increasingly difficult to distinguish between human-written and machine-generated text. However, recent research and innovative tools like GLTR offer a promising solution to this problem.

GLTR, short for "Getting Little Technical Reports," is a tool developed by OpenAI. It uses AI models to analyze text and determine the likelihood of it being generated by a machine or a human. The underlying principle behind GLTR is that human writing tends to incorporate unpredictable words that make sense in the context. By detecting these patterns, GLTR can identify whether a text is likely to be from a human or a machine writer.

The inspiration for GLTR came from the idea that if there is a generator that can produce fake text, it is possible to build a detector using the same models. This project was brought to life at Inception Studio, where the team utilized the GPT-2 model to generate non-conditioned text by sampling from the top 40 predictions. The resulting output gave a clear picture of the model's ability to detect its own text, with most words being ranked as green or yellow.

To understand the effectiveness of GLTR, it is crucial to delve into the academic research conducted on this topic. A study published in the National Library of Medicine explored the application of machine learning techniques in detecting machine-generated text. The researchers found that natural writing, which is more likely to be from a human writer, tends to have a higher frequency of unpredictable words that are relevant to the domain. This finding supports the premise on which GLTR is built.

Upon visual inspection of text analyzed by GLTR, it becomes evident that certain indicators can help distinguish between human and machine-generated text. For example, a significant presence of unexpected purple and red words, along with high uncertainty, suggests that the text is likely human-written. On the other hand, a predominantly green and yellow ranking indicates a higher probability of the text being machine-generated.

So how can we apply the insights from GLTR and related research in our own writing and content creation? Here are three actionable pieces of advice:

  1. Embrace unpredictability: To make your writing more authentic and human-like, consciously incorporate unpredictable words that make sense within the context. This can help your content stand out and avoid sounding robotic or machine-generated.

  2. Use tools like GLTR: Incorporate tools like GLTR into your writing process to analyze and evaluate the authenticity of your text. These tools can provide valuable feedback and help you identify areas where your writing may need improvement.

  3. Continuously evolve your writing style: Stay updated with the latest advancements in AI and NLP to understand how machine-generated text is evolving. Adapt your writing style accordingly, striking a balance between creativity and authenticity to maintain a human touch.

In conclusion, GLTR offers a promising solution to the challenge of distinguishing between human-written and machine-generated text. By leveraging AI models and analyzing the presence of unpredictable words, GLTR can effectively detect the authenticity of a given text. Incorporating insights from GLTR and related research can help writers create more authentic and engaging content in an increasingly AI-driven world. So, let's catch those unicorns with GLTR and ensure that the written word retains its human touch.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣
Catching Unicorns with GLTR: A Tool for Detecting Generated Text | Glasp