Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ tags: []
|
|
7 |
|
8 |
```sh
|
9 |
pip install gradio
|
10 |
-
pip install git+https://github.com/
|
11 |
```
|
12 |
|
13 |
# Run the demo
|
@@ -44,12 +44,24 @@ def invert(user_prompt):
|
|
44 |
return generated, inverted
|
45 |
|
46 |
|
47 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
48 |
demo.launch(share=True)
|
49 |
```
|
50 |
|
51 |
# Citation
|
52 |
|
53 |
```
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
```
|
|
|
7 |
|
8 |
```sh
|
9 |
pip install gradio
|
10 |
+
pip install git+https://github.com/dill-lab/PILS
|
11 |
```
|
12 |
|
13 |
# Run the demo
|
|
|
44 |
return generated, inverted
|
45 |
|
46 |
|
47 |
+
demo = gr.Interface(
|
48 |
+
fn=invert,
|
49 |
+
inputs=gr.Textbox(label="Secret prompt"),
|
50 |
+
outputs=(gr.Textbox(label="LLM output"), gr.Textbox(label="Inverter guess"))
|
51 |
+
)
|
52 |
demo.launch(share=True)
|
53 |
```
|
54 |
|
55 |
# Citation
|
56 |
|
57 |
```
|
58 |
+
@misc{nazir2025betterlanguagemodelinversion,
|
59 |
+
title={Better Language Model Inversion by Compactly Representing Next-Token Distributions},
|
60 |
+
author={Murtaza Nazir and Matthew Finlayson and John X. Morris and Xiang Ren and Swabha Swayamdipta},
|
61 |
+
year={2025},
|
62 |
+
eprint={2506.17090},
|
63 |
+
archivePrefix={arXiv},
|
64 |
+
primaryClass={cs.CL},
|
65 |
+
url={https://arxiv.org/abs/2506.17090},
|
66 |
+
}
|
67 |
```
|