Researchers Release Reproducible Code to Detect AI-Written Movie Reviews
Overview
Researchers have published a complete, reproducible codebase for detecting AI-generated movie reviews, addressing the growing need for transparency in artificial intelligence authorship verification. The repository, hosted on GitHub under the name ai-slop-detection-reproduction, allows independent researchers and journalists to rerun the exact experiments that formed the basis of recent findings in this domain.
This release comes at a time when the line between human and machine-generated content is increasingly blurred. As large language models become more sophisticated, the ability to verify the origin of text has become critical for maintaining integrity in media, academia, and creative industries. By open-sourcing their methodology, the developers aim to democratize access to detection tools and foster rigorous scientific scrutiny.
Key Insight: The repository does not merely provide scripts; it includes the exact frozen inputs and reference outputs used in the original study, ensuring that results can be verified without reliance on proprietary APIs or variable model versions.
Experiment Design and Methodology
The core of the project is a comprehensive experiment comparing multiple detection strategies against a curated dataset of movie reviews. The team employed a multi-faceted approach, evaluating four distinct scoring mechanisms to identify patterns characteristic of AI-generated text. These detectors were then integrated into a pipeline to assess their real-world utility.
Detection Metrics
The experiment evaluated the following detector scores:
- Perplexity: Measures how well a language model predicts a given text. AI-generated content often exhibits different perplexity profiles compared to human writing.
- Near-Duplicate Similarity: Checks for overlaps or structural similarities with known training data, a common trait in generative models.
- Embedding Density: Analyzes the geometric distribution of text in vector space, looking for clusters typical of AI outputs.
- Combined Score: A synthesized metric that aggregates the results of the above detectors to provide a more robust classification.
These metrics were applied to a training set comprising 600 reviews—200 sourced from human writers and 400 generated by AI models. The use of generated reviews preserved from the original run ensures consistency, as regenerating them would require specific API keys and model versions that could yield different textual outputs.
Classifier Evaluation
Beyond detection, the study assessed how the presence of AI-written content impacts downstream natural language processing tasks. A sentiment classifier was trained on the same dataset to determine if AI reviews could be distinguished based on their emotional tone or structural qualities. The model was evaluated on a separate test set of 200 human-written reviews, kept apart from the training data to ensure an unbiased assessment of generalization performance.
Reproducibility and Technical Details
A major claim of the repository is its emphasis on reproducibility. The developers recognize that small numerical differences can arise across different operating systems, hardware configurations, or library versions. Therefore, they provide reference outputs saved from their original run, allowing users to compare their local results against a known baseline.
System Requirements
To run the experiment, users need:
- Python 3.11 or newer: The scripts are written in Python and rely on modern language features.
- Dependencies: A
requirements.txtfile lists all necessary packages, which can be installed via pip. - Disk Space: Approximately 2 GB of free space is required for the first run to download pretrained models.
- Hugging Face Access: The first execution downloads GPT-2 and the
all-MiniLM-L6-v2sentence-embedding model from Hugging Face, after which all processing occurs locally.
Dataset Provenance
The dataset includes a unique audit component. The researchers examined a Mendeley Data collection containing reviews purportedly extracted from IMDb and published in 2019. Because this publication date predates the public launch of ChatGPT, these reviews are treated as human-written for the purpose of the study. However, the collection does not verify each review's authorship, so the audit serves as a detector flagging exercise rather than a confirmation of AI authorship.
Running the Audit
Users can replicate the archive audit by downloading version 1 of the source collection from Mendeley Data. After extracting the dataset, the audit_mendeley_collection.py script compares the Mendeley reviews against the training and test sets. This process highlights potential discrepancies and tests the detector's ability to handle real-world data sources that may contain mixed or unverified origins.
Implications for Content Integrity
The release of this code underscores the accelerating arms race between AI generation and detection. As generative models become more prevalent, tools that can reliably distinguish human from machine text are becoming essential for combating misinformation, plagiarism, and fraud.
Democratizing Detection
By making the code and data publicly available, the researchers are lowering the barrier to entry for those who wish to study AI authorship. This openness encourages peer review and community improvement, potentially leading to more accurate and robust detection algorithms. It also serves as a educational resource for students and practitioners interested in the intersection of AI and digital forensics.
Limitations and Considerations
While the tool is powerful, the authors caution against over-reliance on any single metric. The combined score offers a balanced view, but no detector is perfect. The study highlights that even with frozen inputs, variations in the environment can lead to slight differences in results. Users are encouraged to treat these tools as part of a broader investigative process rather than definitive arbiters of truth.
Future Directions
The publication of reproducible code also invites further research into the nuances of AI-generated text. Future studies may explore more sophisticated detectors, larger datasets, or applications beyond movie reviews, such as academic papers, news articles, and social media posts. As the technology evolves, so too must the methods for verifying authenticity.
In summary, this repository represents a significant step toward transparency in AI research. It provides a practical, verified framework for detecting AI-written content while fostering a culture of open science and rigorous validation.
Sources
- 1
Researchers Release Reproducible Code to Detect AI-Written Movie Reviews
https://github.com/abduldattijo/ai-slop-detection-reproduction
Tools mentioned
GEO Radar
https://geodetect.io
Gromore
https://gromore.io
BrandMagnet
https://brandmagnet.ai
Claude Citation Tracker
https://citation.tracker
Gemini Brand Scanner
https://gemini-brand.scanner
Ahrefs
https://ahrefs.com
SEMrush
https://semrush.com
Moz Pro
https://moz.com
SpyFu
https://spyfu.com
SERPstat
https://serpstat.com