├── LICENSE ├── README.md ├── assets └── overview.png ├── requirements.txt ├── text ├── config │ ├── EWD.json │ ├── EXP.json │ ├── EXPEdit.json │ ├── KGW.json │ ├── SIR.json │ ├── SWEET.json │ ├── UPV.json │ ├── Unigram.json │ └── XSIR.json ├── data │ └── c4 │ │ ├── c4.json │ │ └── processed_c4.json ├── evaluation │ ├── dataset.py │ ├── examples │ │ ├── assess_detectability.py │ │ ├── assess_quality.py │ │ └── assess_robustness.py │ ├── pipelines │ │ ├── detection.py │ │ └── quality_analysis.py │ └── tools │ │ ├── oracle.py │ │ ├── success_rate_calculator.py │ │ ├── text_editor.py │ │ └── text_quality_analyzer.py ├── exceptions │ └── exceptions.py ├── job.sh ├── main.py ├── utils │ ├── openai_utils.py │ ├── transformers_config.py │ └── utils.py └── watermark │ ├── auto_watermark.py │ ├── base.py │ ├── ewd │ ├── __init__.py │ └── ewd.py │ ├── exp │ ├── __init__.py │ └── exp.py │ ├── exp_edit │ ├── __init__.py │ ├── cython_files │ │ ├── levenshtein.c │ │ ├── levenshtein.cpython-39-x86_64-linux-gnu.so │ │ ├── levenshtein.pyx │ │ └── setup.py │ ├── exp_edit.py │ └── mersenne.py │ ├── kgw │ ├── __init__.py │ └── kgw.py │ ├── sir │ ├── __init__.py │ ├── mapping │ │ ├── 300_mapping_256206.json │ │ ├── 300_mapping_32000.json │ │ ├── 300_mapping_32128.json │ │ ├── 300_mapping_49152.json │ │ └── 300_mapping_50272.json │ ├── sir.py │ └── transform_model.py │ ├── sweet │ ├── __init__.py │ └── sweet.py │ ├── unigram │ ├── __init__.py │ └── unigram.py │ └── upv │ ├── __init__.py │ ├── network_model.py │ └── upv.py └── vision ├── cv_attack.py ├── cv_utils.py ├── data.py ├── detector.py ├── eval.py ├── generator.py └── job.sh /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/README.md -------------------------------------------------------------------------------- /assets/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/assets/overview.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/requirements.txt -------------------------------------------------------------------------------- /text/config/EWD.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/EWD.json -------------------------------------------------------------------------------- /text/config/EXP.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/EXP.json -------------------------------------------------------------------------------- /text/config/EXPEdit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/EXPEdit.json -------------------------------------------------------------------------------- /text/config/KGW.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/KGW.json -------------------------------------------------------------------------------- /text/config/SIR.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/SIR.json -------------------------------------------------------------------------------- /text/config/SWEET.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/SWEET.json -------------------------------------------------------------------------------- /text/config/UPV.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/UPV.json -------------------------------------------------------------------------------- /text/config/Unigram.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/Unigram.json -------------------------------------------------------------------------------- /text/config/XSIR.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/config/XSIR.json -------------------------------------------------------------------------------- /text/data/c4/c4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/data/c4/c4.json -------------------------------------------------------------------------------- /text/data/c4/processed_c4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/data/c4/processed_c4.json -------------------------------------------------------------------------------- /text/evaluation/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/dataset.py -------------------------------------------------------------------------------- /text/evaluation/examples/assess_detectability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/examples/assess_detectability.py -------------------------------------------------------------------------------- /text/evaluation/examples/assess_quality.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/examples/assess_quality.py -------------------------------------------------------------------------------- /text/evaluation/examples/assess_robustness.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/examples/assess_robustness.py -------------------------------------------------------------------------------- /text/evaluation/pipelines/detection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/pipelines/detection.py -------------------------------------------------------------------------------- /text/evaluation/pipelines/quality_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/pipelines/quality_analysis.py -------------------------------------------------------------------------------- /text/evaluation/tools/oracle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/tools/oracle.py -------------------------------------------------------------------------------- /text/evaluation/tools/success_rate_calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/tools/success_rate_calculator.py -------------------------------------------------------------------------------- /text/evaluation/tools/text_editor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/tools/text_editor.py -------------------------------------------------------------------------------- /text/evaluation/tools/text_quality_analyzer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/evaluation/tools/text_quality_analyzer.py -------------------------------------------------------------------------------- /text/exceptions/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/exceptions/exceptions.py -------------------------------------------------------------------------------- /text/job.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/job.sh -------------------------------------------------------------------------------- /text/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/main.py -------------------------------------------------------------------------------- /text/utils/openai_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/utils/openai_utils.py -------------------------------------------------------------------------------- /text/utils/transformers_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/utils/transformers_config.py -------------------------------------------------------------------------------- /text/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/utils/utils.py -------------------------------------------------------------------------------- /text/watermark/auto_watermark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/auto_watermark.py -------------------------------------------------------------------------------- /text/watermark/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/base.py -------------------------------------------------------------------------------- /text/watermark/ewd/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/ewd/__init__.py -------------------------------------------------------------------------------- /text/watermark/ewd/ewd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/ewd/ewd.py -------------------------------------------------------------------------------- /text/watermark/exp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp/__init__.py -------------------------------------------------------------------------------- /text/watermark/exp/exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp/exp.py -------------------------------------------------------------------------------- /text/watermark/exp_edit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/__init__.py -------------------------------------------------------------------------------- /text/watermark/exp_edit/cython_files/levenshtein.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/cython_files/levenshtein.c -------------------------------------------------------------------------------- /text/watermark/exp_edit/cython_files/levenshtein.cpython-39-x86_64-linux-gnu.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/cython_files/levenshtein.cpython-39-x86_64-linux-gnu.so -------------------------------------------------------------------------------- /text/watermark/exp_edit/cython_files/levenshtein.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/cython_files/levenshtein.pyx -------------------------------------------------------------------------------- /text/watermark/exp_edit/cython_files/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/cython_files/setup.py -------------------------------------------------------------------------------- /text/watermark/exp_edit/exp_edit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/exp_edit.py -------------------------------------------------------------------------------- /text/watermark/exp_edit/mersenne.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/exp_edit/mersenne.py -------------------------------------------------------------------------------- /text/watermark/kgw/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/kgw/__init__.py -------------------------------------------------------------------------------- /text/watermark/kgw/kgw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/kgw/kgw.py -------------------------------------------------------------------------------- /text/watermark/sir/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/__init__.py -------------------------------------------------------------------------------- /text/watermark/sir/mapping/300_mapping_256206.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/mapping/300_mapping_256206.json -------------------------------------------------------------------------------- /text/watermark/sir/mapping/300_mapping_32000.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/mapping/300_mapping_32000.json -------------------------------------------------------------------------------- /text/watermark/sir/mapping/300_mapping_32128.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/mapping/300_mapping_32128.json -------------------------------------------------------------------------------- /text/watermark/sir/mapping/300_mapping_49152.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/mapping/300_mapping_49152.json -------------------------------------------------------------------------------- /text/watermark/sir/mapping/300_mapping_50272.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/mapping/300_mapping_50272.json -------------------------------------------------------------------------------- /text/watermark/sir/sir.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/sir.py -------------------------------------------------------------------------------- /text/watermark/sir/transform_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sir/transform_model.py -------------------------------------------------------------------------------- /text/watermark/sweet/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sweet/__init__.py -------------------------------------------------------------------------------- /text/watermark/sweet/sweet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/sweet/sweet.py -------------------------------------------------------------------------------- /text/watermark/unigram/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/unigram/__init__.py -------------------------------------------------------------------------------- /text/watermark/unigram/unigram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/unigram/unigram.py -------------------------------------------------------------------------------- /text/watermark/upv/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/upv/__init__.py -------------------------------------------------------------------------------- /text/watermark/upv/network_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/upv/network_model.py -------------------------------------------------------------------------------- /text/watermark/upv/upv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/text/watermark/upv/upv.py -------------------------------------------------------------------------------- /vision/cv_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/cv_attack.py -------------------------------------------------------------------------------- /vision/cv_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/cv_utils.py -------------------------------------------------------------------------------- /vision/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/data.py -------------------------------------------------------------------------------- /vision/detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/detector.py -------------------------------------------------------------------------------- /vision/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/eval.py -------------------------------------------------------------------------------- /vision/generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/generator.py -------------------------------------------------------------------------------- /vision/job.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hlzhang109/impossibility-watermark/HEAD/vision/job.sh --------------------------------------------------------------------------------