Concept-based representations that decompose images into sets of disentangled visual concepts increase interpretability and enable precise feature intervention. However, most approaches interpret concepts using a limited pre-defined vocabulary, require training on curated concept label data, or generate multiple images for hypothesis testing. Furthermore, they manually inspect concepts to determine which ones should be intervened on. We propose a modular framework for automatic concept labeling and intervention which uses a visually grounded captioner and an LLM to 1) label concepts in an open-ended, training-free manner that does not require multiple image generations; and 2) identify features to intervene on without manual inspection. We use our pipeline to label concepts in an SAE and show that compared to labels from pre-defined vocabularies, our open-ended labels are more expressive and descriptive of nuanced concepts. We further evaluate our pipeline on feature intervention by mitigating shortcut features in image classification, demonstrating competitive and improved results without manually identifying concepts to ablate. Code is available at https://github.com/patrick-john-ramos/label-by-looking
翻译:暂无翻译