Published November 16, 2023 | Version v1

Detecting Usage Protocol Violations in Deep Learning Applications

Authors/Creators

Description

This repo contains a replication package of the "Detecting Usage Protocol Violations in Deep Learning Applications" paper.

In the paper, we use two benchmarks:  

  • The first benchmark we used from NeuraLint can be found under the director name Benchmark1/SOSamples
  • The second benchmark we used from Humbatova et al. can be found under the director name Benchmark2/SOSamples

To reproduce the results in the paper:  

  • Download the NeuralStateAnalysis Zip file.
  • Extract the file and go to the NeuralStateAnlaysis directory.
  • ( Optional ) Install the requirements by running 'Pip install requirements.txt.' N.B: The requirements.txt file is already in this repo.
    • To run NeuralState on Benchmark1:
      • Go to Benchmark1/SOSamples directory,
      • Open any of the programs you want to run,
      • Set the path: Path-to-folder/NeuralStateAnalysis/
      • Then, do 'python program_id.' Since the 'NeuralStateAnalysis(model).debug()' call is already present in all programs, you'll be able to reproduce results.
    • To run NeuralState on Benchmark2:
      • Go to Benchmark2/SOSamples directory,
      • Open any of the programs you want to run,
      • Set the path: Path-to-folder/NeuralStateAnalysis/
      • Then, do 'python program_id.' Since the 'NeuralStateAnalysis(model).debug()' call is already present in all programs, you'll be able to reproduce results.

Files

NeuralStateAnalysisReplication.zip

Files (80.1 kB)

Name Size Download all
md5:31541eb85912cb7fb88de59ba823d6e5
80.1 kB Preview Download