Coder Social home page Coder Social logo

grid's Introduction

GRiD: GPT Reddit Dataset

This repository contains the official code and data for the paper "GPT-generated Text Detection: Benchmark Dataset and Tensor-based Detection Method" published in the WWW 2024 short paper track.

Dataset

The Reddit dataset is available in reddit_datasets, where the filtered and unfiltered variants of the dataset can be found.

Each of the files is a Comma Separated Values (CSV) file with two columns:

  • Data: The text of the snippet.
  • Label: The label of the snippet, where 0 indicates that the snippet is human-written and 1 indicates that the snippet is GPT-generated.

The reddit data scrapers are located in the scrapers folder. The dataset construction and cleaning process is facilitated through the Load_Full_Dataset.ipynb notebook.

Please refer to the paper for more details on how the dataset was collected and processed.

Running GpTen

The code for our method, GpTen, is primarily available in the pipeline.py script. If the input tensor is too large to be processed by the pipeline.py script, you can use the decomp.m MATLAB script to decompose the tensor into its factors. After decomposition, you can use the norms.m MATLAB script to calculate the reconstruction error. This allows you to handle larger datasets/tensors that might otherwise be un-manageable by the python pipeline script.

The required Python packages and versions can be found in the requirements.txt file. For the MATLAB scripts, tensor_toolbox is required. Please note that MATLAB 2021b or higher is required to run the decomp.m and norms.m scripts.

Credits

The data itself is sourced from Reddit and from OpenAI's GPT3.5.

Citation

If you use this code or data, please cite the following paper:

TODO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.