Git Product home page Git Product logo

confaide's Introduction

๐Ÿคซ ConfAIde

โ€‹ This is the official repository for our paper:
Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory

Our benchmark ConfAIde evaluates inference-time privacy implications of LLMs, in interactive settings. The benchmark has 4 tiers, and you can find the dataset/scenarios under the ./benchmark directory.

Benchmark Description

Please cite our work if you found the resources in this repository useful:

@article{confaide2023,
  author    = {Mireshghallah, Niloofar and Kim, Hyunwoo and Zhou, Xuhui  and Tsvetkov, Yulia and Sap, Maarten and Shokri, Reza and Choi, Yejin},
  title     = {Can LLMs Keep a Secret? Testing Privacy  Implications of Language Models via Contextual Integrity Theory},
  journal   = {arXiv preprint arXiv:2310.17884},
  year      = {2023},
}

โ€‹

Reproducing the results

โ€‹ First, create the conda environment by running:

conda env create -f environment.yml

โ€‹ and then activate it:

conda activate confaide

You can run the evaluation by running the following example command

python eval.py --model gpt-3.5-turbo-0613 --data-tier 1 --n-samples 10

This command will run ChatGPT on Tier 1 with 10 sampled results for each data point. You can choose Tiers from [1, 2a, 2b, 3, 4]. There are some other options that you can choose at the bottom of eval.py.

Directory structure

./agents: You can implement your own agent in this directory.
./benchmark: Data files for all the 4 tiers of the dataset

Adding your own agent

All you need to do is create an agent class with the method interact() or batch_interact().

โ€‹

confaide's People

Contributors

mireshghallah avatar skywalker023 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.