Giter VIP home page Giter VIP logo

conditional-probing's Introduction

Data valuation using the conditional probing

Here we try to compute the value of data using conditional probing as the utility function. In the original paper, conditional probing is defined as:

$I_{\mathcal{V}}(\phi(X) \xrightarrow{} Y\mid B) = H_{\mathcal{V}}(Y\mid B) - H_{\mathcal{V}}(Y\mid B,\phi(x)) \ .$

And the way that the original paper interprets it is that the information that the pretrained representations have which are not at the original embedding $B$. And the function family specifies the function family that tells us how much the usable information we have about Y when extracting from representation using the function in the function family. And the original conditional probing paper uses $f=\argmin_{f\in\mathcal{V}} \frac{1}{|D_{train}|} \sum_{(x,y)\in D_{train}} \ell(f(x),y)$ to get $f$ and estimate the usable information. However, when different data points are used in the training dataset, the usable information can be different. Intuitively, some data points can make resultant model $f$ extract more usable information than some others. Therefore, we propose to use the following utility function to define the value of a coalition of data points $S$.

$U(S) = I_{\mathcal{V}{S}}(\phi(X) \xrightarrow{} Y\mid B), \mathcal{V}S = {g: g=\argmin{f\in\mathcal{V}} \frac{1}{|S|} \sum{(x,y)\in S} \ell(f(x),y)}$.

Where $\mathcal{V}_S$ is a set of minimizers of loss function on the data subset $S$. Empirically, we just let $\mathcal{V}$ be a single element set that contains a single model trained on the data subset $S$.

With this utility function $U(S)$, we can use data Shapley to compute the data value of each data point.

Configuration files

The example configuration file is put under configs/dshap/layer0-0.yaml

Prepare the conda environment

conda create -n cprob -f environment.yml

Dowload the data needed

Download the data folder in CodaLab executable paper and put the whole folder under ./

How to run the code

python vinfo/experiment.py configs/dshap/layer0-0.yaml

The running result will be stored at configs/dshap/layer0-0.yaml.results folder.

conditional-probing's People

Contributors

john-hewitt avatar xqlin98 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.