=========== Algorithms =========== FairLangProc provides a comprehensive suite of bias mitigation processors for Large Language Models. Supported processors -------------------- Fairness processors can be classified according to their stage in the Machine Learning pipeline: - **Pre-processors**: Fairness processors that modify the model inputs (data augmentation, embedding projection,...). - **In-processors**: Fairness processors that modify the training process (regularizers, adapters,...). - **Intra-processors**: Fairness processors that modify the model's behavior without further training (attention scaling,...). The supported methods are: - :ref:`Counterfactual Data Augmentation (CDA) ` `(Webster et al. 2020) `_. - :ref:`Projection based debiasing ` `(Bolukbasi et al., 2023) `_. - :ref:`Bias removaL wIth No Demographics (BLIND) ` `(Orgad et al., 2023) `_. - :ref:`Adapter-based DEbiasing of LanguagE models (ADELE) ` `(Lauscher et al., 2021) `_. - :ref:`Modular Debiasing with Diff Subnetworks ` `(Hauzenberger et al., 2023) `_. - :ref:`Entropy Attention Temperature (EAT) scaling ` `(Zayed et al., 2023) `_. - :ref:`Entropy Attention Regularizer (EAR) ` `(Attanasio et al., 2022) `_. - :ref:`Embedding based regularizer ` `(Liu et al., 2020) `_. - :ref:`Selective unfreezing ` `(Gira et al., 2024) `_. .. note:: Different algorithms have different trade-offs. See our tutorials for more detailed comparisons of fairness-accuracy tradeoffs. .. toctree:: :maxdepth: 2 algorithms_preprocessors algorithms_inprocessors algorithms_intraprocessors .. seealso:: - :doc:`../tutorials` - Interactive Jupyter notebooks (`DemoProcessors notebook `_, `DemoDebiasing notebook `_) for debiasing techniques