Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Typical Sampling in DetectGPT Performance Tests #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

clarencechen
Copy link

When coming across your work, I thought of including tests on texts generated through Locally Typical Sampling, a sampling method that selects tokens with conditional logits close to the information content of the estimated next-token distribution, in order to mimic information efficiency found in natural human dialogue and text. Locally Typical Sampling seems to be already implemented as an API option in the Huggingface Transformers library, and I have taken advantage of this implementation for my tests.

Initial tests seem to indicate DetectGPT performs as well at detecting texts generated by Locally Typical Sampling as with texts generated through methods that always select from a maximum-likelihood subset, possibly because high-entropy next-token distributions do not arise often enough to force the sampler away from selecting maximum-likelihood tokens.

Arxiv reference:
https://arxiv.org/pdf/2202.00666.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant