[Paper Review] GAM Changer: Editing Generalized Additive Models with Interactive Visualization
GAM Changer is an open-source, interactive visualization system that enables data scientists and domain experts to responsibly edit Generalized Additive Models (GAMs) by directly manipulating model weights through intuitive, web-based interfaces. It integrates real-time feedback, fairness awareness, and reversible edits to align model behavior with domain knowledge—demonstrated by correcting counterintuitive risk predictions in healthcare, such as a spurious drop in pneumonia mortality risk for older patients and an erroneous protective effect of asthma.
Recent strides in interpretable machine learning (ML) research reveal that models exploit undesirable patterns in the data to make predictions, which potentially causes harms in deployment. However, it is unclear how we can fix these models. We present our ongoing work, GAM Changer, an open-source interactive system to help data scientists and domain experts easily and responsibly edit their Generalized Additive Models (GAMs). With novel visualization techniques, our tool puts interpretability into action -- empowering human users to analyze, validate, and align model behaviors with their knowledge and values. Built using modern web technologies, our tool runs locally in users' computational notebooks or web browsers without requiring extra compute resources, lowering the barrier to creating more responsible ML models. GAM Changer is available at https://interpret.ml/gam-changer.
Motivation & Objective
- To address the gap in actionable model editing despite advances in interpretable ML, where model explanations often reveal harmful data patterns.
- To empower domain experts and data scientists to correct flawed model behaviors that contradict domain knowledge or ethical values.
- To reduce barriers to responsible AI by enabling local, browser-based model editing without extra compute resources.
- To promote transparency and accountability in model editing through reversible actions and documented edit histories.
- To integrate human expertise into the ML lifecycle by supporting direct manipulation of model weights guided by interpretability.
Proposed method
- The system uses a four-panel interface: GAM Canvas for visual editing of feature effects, Metric Panel for real-time performance feedback, Feature Panel to identify correlated features and fairness risks, and History Panel for tracking and reverting edits.
- Users can directly edit GAM weights via drag-and-drop or one-click actions (e.g., 'Interpolate' or 'Delete') on the GAM Canvas to align predictions with domain knowledge.
- The tool leverages WebAssembly and modern web technologies to run locally in notebooks or browsers, ensuring low-latency, secure, and accessible model editing.
- It applies continuous feedback mechanisms to show performance trade-offs and fairness implications in real time during edits.
- The system supports editing both continuous and categorical features, such as interpolating risk curves or removing spurious effects (e.g., the false protective effect of asthma).
- Edits are documented in the History Panel with user comments, enabling auditability and reproducibility of model modifications.
Experimental results
Research questions
- RQ1How can domain experts and data scientists effectively edit machine learning models to correct harmful or counterintuitive behaviors revealed by interpretability?
- RQ2What interactive visualization design patterns enable non-expert users to safely and transparently modify complex model weights?
- RQ3How can model editing be made reversible, auditable, and aligned with domain knowledge and ethical values?
- RQ4What are the trade-offs between model performance and fairness when editing model predictions based on domain knowledge?
- RQ5How can interactive editing systems support responsible AI by integrating interpretability with actionable model modification?
Key findings
- The GAM Changer system successfully enables domain experts to correct a counterintuitive model behavior where predicted pneumonia mortality risk dropped for patients aged 81–86, which contradicted clinical knowledge.
- By using the 'Interpolate' function, users linearly adjusted the risk curve from age 81 to 87, resulting in a gradual, clinically plausible increase in predicted risk.
- The system identified that edits affecting older patients disproportionately impacted females, highlighting a fairness issue through feature correlation analysis in the Feature Panel.
- The model’s erroneous prediction that asthma reduces pneumonia mortality risk was corrected by deleting the effect of the asthma feature, restoring average risk prediction for asthmatic patients.
- After edits, the model’s performance metrics were monitored in real time via the Metric Panel, ensuring no significant degradation in overall predictive accuracy.
- The system’s reversible and documented editing workflow enabled users to compare, revert, and justify changes, supporting accountability and transparency in model development.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.