Skip to content

official code for paper Probing the Decision Boundaries of In-context Learning in Large Language Models. https://arxiv.org/abs/2406.11233

Notifications You must be signed in to change notification settings

siyan-zhao/ICL_decision_boundary

Repository files navigation

Probing the Decision Boundaries of In-context Learning in Large Language Models.

The official code for the paper titled "Probing the Decision Boundaries of In-context Learning in Large Language Models."

arXiv | Twitter summary post

In-context Learning GIF


Get LLM decision boundary:

Install packages:

pip install -r requirements.txt

To get the decision boundary of Llama-3-8B on a linear binary classification task with 128 in-context examples per class, run:

python get_llm_decision_boundary.py --grid_size=50 --model_name=Llama-3-8B --num_in_context=128 --data_type=linear

Expected output:

Expected Output


More code for finetuning coming soon.


If you find our work helpful, please consider citing our work:

@article{zhao2024probing,
  title={Probing the Decision Boundaries of In-context Learning in Large Language Models},
  author={Zhao, Siyan and Nguyen, Tung and Grover, Aditya},
  journal={arXiv preprint arXiv:2406.11233},
  year={2024}
}

About

official code for paper Probing the Decision Boundaries of In-context Learning in Large Language Models. https://arxiv.org/abs/2406.11233

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages