shengliu66 / ICV
Code for In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering
☆171Updated 2 months ago
Alternatives and similar repositories for ICV:
Users that are interested in ICV are comparing it to the libraries listed below
- [NeurIPS 2024] Knowledge Circuits in Pretrained Transformers☆145Updated 2 months ago
- Function Vectors in Large Language Models (ICLR 2024)☆163Updated 3 weeks ago
- ☆176Updated last year
- Code for the EMNLP 2024 paper "Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Maps"☆120Updated 8 months ago
- Code associated with Tuning Language Models by Proxy (Liu et al., 2024)☆109Updated last year
- PASTA: Post-hoc Attention Steering for LLMs☆114Updated 5 months ago
- Code accompanying "How I learned to start worrying about prompt formatting".☆105Updated 7 months ago
- ☆170Updated 3 weeks ago
- AI Logging for Interpretability and Explainability🔬☆115Updated 11 months ago
- Steering Llama 2 with Contrastive Activation Addition☆148Updated 11 months ago
- ☆93Updated last year
- [NAACL'25 Oral] Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineering☆57Updated 5 months ago
- Public code repo for paper "SaySelf: Teaching LLMs to Express Confidence with Self-Reflective Rationales"☆104Updated 7 months ago
- Stanford NLP Python library for benchmarking the utility of LLM interpretability methods☆77Updated last month
- ☆147Updated last year
- Official repository for "Scaling Retrieval-Based Langauge Models with a Trillion-Token Datastore".☆199Updated this week
- Code and Data for "Long-context LLMs Struggle with Long In-context Learning" [TMLR2025]☆105Updated 2 months ago
- Code and results accompanying the paper "Refusal in Language Models Is Mediated by a Single Direction".☆215Updated 7 months ago
- ☆72Updated 6 months ago
- Codebase for reproducing the experiments of the semantic uncertainty paper (paragraph-length experiments).☆57Updated last year
- LoFiT: Localized Fine-tuning on LLM Representations☆38Updated 3 months ago
- Code for NeurIPS'24 paper 'Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization'☆190Updated 5 months ago
- Evaluating LLMs with fewer examples☆151Updated last year
- ☆97Updated 10 months ago
- General-purpose activation steering library☆66Updated this week
- Codes and datasets for the paper Measuring and Enhancing Trustworthiness of LLMs in RAG through Grounded Attributions and Learning to Ref…☆54Updated 2 months ago
- Steering vectors for transformer language models in Pytorch / Huggingface☆99Updated 2 months ago
- [NAACL 2024 Outstanding Paper] Source code for the NAACL 2024 paper entitled "R-Tuning: Instructing Large Language Models to Say 'I Don't…☆111Updated 10 months ago
- Benchmarking LLMs with Challenging Tasks from Real Users☆221Updated 6 months ago
- ☆82Updated 9 months ago