SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.14822 · 2023

MGTBench: Benchmarking Machine-Generated Text Detection

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 26 functions out of this paper's own repositories and ran 15 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
michalspiegel/imgtb pwc_unofficial 9 of 16
trustairlab/mgtbench pwc_unofficial 5 of 9
kinit-sk/imgtb extension 1 of 1
FunctionStatusWhere it lives
check_period Ran trustairlab/mgtbench/dataset_loader.py
code served (permissive licence) · get_code("ca626759d96b1cf5")
filter_test_data Ran michalspiegel/imgtb/methods/utils.py
code served (permissive licence) · get_code("3409c93cd092820c")
get_lls Ran trustairlab/mgtbench/methods/metric_based.py
code served (permissive licence) · get_code("a82535fe98a7e04b")
get_rank Ran trustairlab/mgtbench/methods/metric_based.py
code served (permissive licence) · get_code("0c7cd9182dadcefb")
get_supervised_model_prediction_multi_classes Ran michalspiegel/imgtb/methods/abstract_methods/supervised_experiment.py
code served (permissive licence) · get_code("68c8b968f55907b7")
load_TruthfulQA Ran michalspiegel/imgtb/lib/dataset_loader_attribution.py
code served (permissive licence) · get_code("2eeb7e1b194357da")
make_method_names_unique Ran michalspiegel/imgtb/results_analysis.py
code served (permissive licence) · get_code("8709358702e01ea5")
read_multiple_to_pandas Ran michalspiegel/imgtb/lib/dataset_loader.py
code served (permissive licence) · get_code("d4bc8c999e20811c")
run_all_available Ran kinit-sk/imgtb/benchmark.py
code served (permissive licence) · get_code("c032d17914012abc")
select_train_data Ran michalspiegel/imgtb/methods/utils.py
code served (permissive licence) · get_code("416e7dabab64e070")
select_train_data Ran trustairlab/mgtbench/methods/utils.py
code served (permissive licence) · get_code("c116b3bbce725a3d")
set_pos_bit Ran michalspiegel/imgtb/methods/abstract_methods/supervised_experiment.py
code served (permissive licence) · get_code("16e5e8f717e9e63b")
timeit Ran michalspiegel/imgtb/methods/utils.py
code served (permissive licence) · get_code("58ba64be72bc1b9e")
tokenize_and_mask Ran michalspiegel/imgtb/methods/abstract_methods/pertubation_based_experiment.py
code served (permissive licence) · get_code("639b00cb6787d6d0")
tokenize_and_mask Ran trustairlab/mgtbench/methods/detectgpt.py
code served (permissive licence) · get_code("4fed12f8c019459e")
count_masks Not yet run michalspiegel/imgtb/methods/abstract_methods/pertubation_based_experiment.py
code served (permissive licence) · get_code("23c3416429f69fee")
get_ll Not yet run trustairlab/mgtbench/methods/metric_based.py
code served (permissive licence) · get_code("3c45c72617228b17")
get_supervised_model_prediction Not yet run michalspiegel/imgtb/methods/abstract_methods/supervised_experiment.py
code served (permissive licence) · get_code("ffed340b4b1b0302")
get_supervised_model_prediction Not yet run trustairlab/mgtbench/methods/supervised.py
code served (permissive licence) · get_code("c4c6872281f5e3a2")
load_multiple_from_file Not yet run michalspiegel/imgtb/lib/dataset_loader.py
code served (permissive licence) · get_code("5badef7a89b1732c")
prim_tree Not yet run trustairlab/mgtbench/methods/IntrinsicDim.py
code served (permissive licence) · get_code("595d1d025c7e692d")
process_spaces Not yet run michalspiegel/imgtb/lib/dataset_loader_attribution.py
code served (permissive licence) · get_code("c5d3444c3ea71db9")
process_string Not yet run trustairlab/mgtbench/methods/IntrinsicDim.py
code served (permissive licence) · get_code("ad5f00016ee9222a")
process_text_truthfulqa_adv Not yet run michalspiegel/imgtb/lib/dataset_loader_attribution.py
code served (permissive licence) · get_code("dd7573db30a9bd4e")
read_dir_to_pandas Not yet run michalspiegel/imgtb/lib/dataset_loader.py
code served (permissive licence) · get_code("9db5a280b863548b")
replace_masks Not yet run michalspiegel/imgtb/methods/abstract_methods/pertubation_based_experiment.py
code served (permissive licence) · get_code("3b992344e4b4f98b")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Nowadays, powerful large language models (LLMs) such as ChatGPT have demonstrated revolutionary power in a variety of tasks. Consequently, the detection of machine-generated texts (MGTs) is becoming increasingly crucial as LLMs become more advanced and prevalent. These models have the ability to generate human-like language, making it challenging to discern whether a text is authored by a human or a machine. This raises concerns regarding authenticity, accountability, and potential bias. However, existing methods for detecting MGTs are evaluated using different model architectures, datasets, and experimental settings, resulting in a lack of a comprehensive evaluation framework that encompasses various methodologies. Furthermore, it remains unclear how existing detection methods would perform against powerful LLMs. In this paper, we fill this gap by proposing the first benchmark framework for MGT detection against powerful LLMs, named MGTBench. Extensive evaluations on public datasets with curated texts generated by various powerful LLMs such as ChatGPT-turbo and Claude demonstrate the effectiveness of different detection methods. Our ablation study shows that a larger number of words in general leads to better performance and most detection methods can achieve similar performance with much fewer training samples. Moreover, we delve into a more challenging task: text attribution. Our findings indicate that the model-based detection methods still perform well in the text attribution task. To investigate the robustness of different detection methods, we consider three adversarial attacks, namely paraphrasing, random spacing, and adversarial perturbations. We discover that these attacks can significantly diminish detection effectiveness, underscoring the critical need for the development of more robust detection methods.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2303.14822")
get_code_for_paper("2303.14822")
have("2303.14822")

Connect an agent — have() is free.