apartresearch / specificityplus Goto Github PK
View Code? Open in Web Editor NEW👩💻 Code for the ACL paper "Detecting Edit Failures in LLMs: An Improved Specificity Benchmark"
Home Page: https://specificityplus.apartresearch.com
License: Other
👩💻 Code for the ACL paper "Detecting Edit Failures in LLMs: An Improved Specificity Benchmark"
Home Page: https://specificityplus.apartresearch.com
License: Other
#47 adds barplots grouped by dataset. These plots are still missing errorbars. Asymmetric errorbars for pandas barplots turn out to be surprisingly tricky to get right; hence, the separate issue
We want to see (tentatively) whether model edits are more, less, or equally sensitive if the model size increases
Goal: confirm that specificity++ works by
Our experiments require the outputs (incl. next token log probs) of the unedited model and multiple edit algorithms. Currently, the evaluation is a separate step and requires a separate call for each algorithm, leading to inefficiencies in computation and mental overhead.
To increase efficiency and ease of handling, we aim to evaluate a given test dataset batch directly for all edit algorithms and the unedited model. This dispenses with the need for transferring log prob files between the compute node and DFS when running on a cluster, and makes it easier to quickly experiment with all edit algorithms on a small slice of the test data.
Clean up the README file
Currently, experiments/evaluate.py
does not store info about which LLM has been anywhere (see screenshot below for an overview over which information is available, currently)
Goal: Make sure the model which has been used gets logged inside the run_dir
. Best will be to log it in the *case_*.json
file since then it would be traceable on the individual test case level (in principle, edits for different LLMs could end up in the same run_dir
if the --continue_from_run
flag is used)
The reporting of experimental results in summarize.py should be improved to facilitate a more in-depth analysis:
Goal: take the output of runs of our e2e.py script and produce statistics and ploys for our paper.
Output of e2e.py: results.csv files in the "combined" subfolder of our results directory.
To do: new script e2e_analyze.py which produces statistics and plots using these four lines from experiments/analyze.py
dfs = get_statistics(df)
print(format_statistics(dfs))
plot_statistics(dfs)
export_statistics(dfs)
the code in experiments/evaluate.py
behaves differently in the MEMIT repo compared to the ROME repo:
case_{case_id}.json
file, results for the latter in the "pre" key.goal: allow to run the unedited model as well using the CLI
results/IDENTITY/...
folderAllow to evaluate specificity on CounterFact with the edit-prompt prepended to the test prompt and using KL divergence between edited and unedited model as the metric.
Add results to the main text and figure
Esben needs maintainer access to connect the website or we should move it to https://github.com/apartresearch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.