EleutherAI/knowledge-neurons

A library for finding knowledge neurons in pretrained transformer models.

50
/ 100
Established

This tool helps AI researchers understand how pre-trained language models like BERT and GPT-2 store specific factual knowledge. You input a pre-trained model and a set of sentences expressing a fact (e.g., "Paris is the capital of France"), and it identifies the specific internal components (neurons) responsible for that knowledge. It's designed for researchers studying the interpretability and internal workings of large language models.

159 stars. No commits in the last 6 months. Available on PyPI.

Use this if you need to pinpoint and manipulate the exact "neurons" within a transformer model that encode particular facts, to understand or alter its knowledge.

Not ideal if you're looking for a tool to improve the performance of a language model on a task, rather than investigating its internal knowledge representation.

AI interpretability NLP research Transformer models Model analysis Knowledge representation
Stale 6m No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 15 / 25

How are scores calculated?

Stars

159

Forks

19

Language

Python

License

MIT

Last pushed

Feb 13, 2022

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/EleutherAI/knowledge-neurons"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.