Include Typical Sampling in DetectGPT Performance Tests #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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