想分析模型内部?CircuitKIT把发现、评估、干预串成一条线,不用再自己拼凑不同工具了。
CircuitKIT是一个开源库,用于连接机械解释性中的电路发现、评估和下游干预工作流。它提供多种发现算法、声明式接口将结构化数据映射为发现任务、补充诊断以及应用模块。该库通过类型化、可序列化的表示统一了电路分析流程,简化了方法比较。论文和代码已发布于arXiv和GitHub。
CircuitKIT : Circuit Discovery, Evaluation, and Application Toolkit for Mechanistic Interpretability
Circuit analysis can support not only model explanation but also downstream interventions such as pruning, editing, steering, and selective fine-tuning. However, conducting such analyses currently requires stitching together separate implementations for discovery, evaluation, and intervention, as well as hand-authoring the contrastive prompts required by many discovery methods. This fragmentation makes methods difficult to compare and limits their application beyond canonical tasks. We introduce CircuitKIT, a source-available library that connects the circuit-analysis workflow through a typed, serializable representation. CircuitKIT provides a suite of discovery algorithms, declarative interfaces for mapping structured data into discovery tasks, complementary circuit diagnostics, and downstream application modules. Together, these components provide common infrastructure for conducting and comparing circuit analyses. The library, examples, notebooks, and documentation are released at https://github.com/Lexsi-Labs/CircuitKIT .