FADE: Why Bad Descriptions Happen to Good Features
FADE helps you evaluate the alignment between LLM features and their natural language descriptions across four key metrics: Clarity, Responsiveness, Purity, and Faithfulness.
🔍 Features
- Model-agnostic evaluation of feature-to-description alignment
- Works with standard tramsformer neurons and SAE features
- Support for OpenAI, Azure, Ollama, vLLM, and other evaluation models
Installation
pip install fade-language
Tutorial
Check out our Tutorial Notebook that walks you through:
- A basic evaluation setup
- Using cached activations for improved performance
- Working with SAE features
- Using different evaluation models
- Advanced configuration options
Quickstart
from fade import EvaluationPipeline
# custom evaluation-model configuration with OpenAI LLM
config = {
'evaluationLLM': {
'type': 'openai', # type of evaluation model
'name': 'gpt-4o-mini-2024-07-18', # the model variant
'api_key': 'YOUR-KEY-HERE',
}
}
# initialize evaluation pipeline
eval_pipeline = EvaluationPipeline(
subject_model=model, # e.g. huggingface model
subject_tokenizer=tokenizer, # e.g. huggingface tokenizer
dataset=dataset, # dict with int keys and str values
config=config, # the custom config
device=device, # torch device
)
# example neuron specification
neuron_module = 'named.module.of.the.feature' # str of the module name
neuron_index = 42 # int of the neuron index
concept = "The feature description you want to evaluate." # str of the feature description
# run evaluation
(clarity, responsiveness, purity, faithfulness) = eval_pipeline.run(
neuron_module=neuron_module,
neuron_index=neuron_index,
concept=concept
)
Citation
@misc{puri2025fadebaddescriptionshappen,
title={FADE: Why Bad Descriptions Happen to Good Features},
author={Bruno Puri and Aakriti Jain and Elena Golimblevskaia and Patrick Kahardipraja and Thomas Wiegand and Wojciech Samek and Sebastian Lapuschkin},
year={2025},
eprint={2502.16994},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2502.16994},
}
🚧 This repository is still in active development! More examples and detailed documentation will follow soon! 🚧
Metadata
Release files for fade-language 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fade_language-0.1.2.tar.gz | 23.3 kB | Without provenance | Details for fade_language-0.1.2.tar.gz |
Release files / fade_language-0.1.2.tar.gz
| Download URL | fade_language-0.1.2.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a8b8f7fdc8f80ae0fc721f42ccbab2f9386476330014a07b467d5a71093b261
|
|
BLAKE2b-256 checksum How to use checksums |
dc971b77506be5b4231e18c64e86970480e3d0eeabeb14d888ad337f8dabb100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for fade-language 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.