Explainer Wrappers ================== |quanda| ships wrappers around several existing TDA libraries, exposing them through a single :doc:`Explainer ` interface. The tables below list every wrapper class and cite the paper that introduced the underlying method. All wrapper sources live under ``quanda/explainers/wrappers/``. All wrappers can be imported directly from ``quanda.explainers.wrappers``, for example: .. code:: python from quanda.explainers.wrappers import ( CaptumSimilarity, TRAK, Kronfluence, RepresenterPoints, DattriIFExplicit, ) Captum ------ Wrappers around the influence methods provided by `Captum `_. Source: ``quanda/explainers/wrappers/captum_influence.py``. .. list-table:: :header-rows: 1 :widths: 25 75 * - Wrapper - Reference * - ``CaptumSimilarity`` - Similarity between test and training samples in the representation space of a chosen layer. See `Captum's SimilarityInfluence docs `__. * - ``CaptumArnoldi`` - Schioppa et al., 2022. *Scaling Up Influence Functions.* `arXiv:2112.03052 `__ * - ``CaptumTracInCP`` - Pruthi et al., 2020. *Estimating Training Data Influence by Tracing Gradient Descent.* `NeurIPS 2020 `__ * - ``CaptumTracInCPFast`` - Pruthi et al., 2020. *Estimating Training Data Influence by Tracing Gradient Descent.* `NeurIPS 2020 `__ * - ``CaptumTracInCPFastRandProj`` - Pruthi et al., 2020. *Estimating Training Data Influence by Tracing Gradient Descent.* `NeurIPS 2020 `__ Representer Point Selection --------------------------- Source: ``quanda/explainers/wrappers/representer_points.py``. .. list-table:: :header-rows: 1 :widths: 25 75 * - Wrapper - Reference * - ``RepresenterPoints`` - Yeh et al., 2018. *Representer Point Selection for Explaining Deep Neural Networks.* `NeurIPS 2018 `__ — original implementation: `chihkuanyeh/Representer_Point_Selection `__ TRAK ---- Source: ``quanda/explainers/wrappers/trak_wrapper.py``. .. list-table:: :header-rows: 1 :widths: 25 75 * - Wrapper - Reference * - ``TRAK`` - Park et al., 2023. *TRAK: Attributing Model Behavior at Scale.* `ICML 2023 `__ — original implementation: `MadryLab/trak `__ Kronfluence ----------- Source: ``quanda/explainers/wrappers/kronfluence.py``. .. list-table:: :header-rows: 1 :widths: 25 75 * - Wrapper - Reference * - ``Kronfluence (incl. EK-FAC)`` - Grosse et al., 2023. *Studying Large Language Model Generalization with Influence Functions.* `arXiv:2308.03296 `__ — original implementation: `pomonam/kronfluence `__ Dattri ------ Wrappers around the unified TDA family provided by `Dattri `_ (Deng et al., 2024, `arXiv:2410.04555 `__). Source: ``quanda/explainers/wrappers/dattri_influence.py``. .. list-table:: :header-rows: 1 :widths: 25 75 * - Wrapper - Reference * - ``DattriIFExplicit`` - Koh and Liang, 2017. *Understanding Black-box Predictions via Influence Functions.* `ICML 2017 `__ * - ``DattriIFCG`` - Koh and Liang, 2017 (conjugate-gradient solver). `ICML 2017 `__ * - ``DattriIFLiSSA`` - Agarwal et al., 2017. *Second-Order Stochastic Optimization for Machine Learning in Linear Time.* `JMLR 2017 `__ * - ``DattriIFDataInf`` - Kwon et al., 2024. *DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Models.* `ICLR 2024 `__ * - ``DattriArnoldi`` - Schioppa et al., 2022. *Scaling Up Influence Functions.* `arXiv:2112.03052 `__ * - ``DattriEKFAC`` - Grosse et al., 2023. *Studying Large Language Model Generalization with Influence Functions.* `arXiv:2308.03296 `__ * - ``DattriTracInCP`` - Pruthi et al., 2020. *Estimating Training Data Influence by Tracing Gradient Descent.* `NeurIPS 2020 `__ * - ``DattriGradDot`` - Charpiat et al., 2019. *Input Similarity from the Neural Network Perspective.* `NeurIPS 2019 `__ * - ``DattriGradCos`` - Charpiat et al., 2019. *Input Similarity from the Neural Network Perspective.* `NeurIPS 2019 `__ * - ``DattriTRAK`` - Park et al., 2023. *TRAK: Attributing Model Behavior at Scale.* `ICML 2023 `__