Skip to main content
QUICK REVIEW

[Paper Review] Understanding Programmatic Weak Supervision via Source-aware Influence Function

Jieyu Zhang, Haonan Wang|arXiv (Cornell University)|May 25, 2022
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes source-aware Influence Function (SIF), a novel method that decomposes the training loss in Programmatic Weak Supervision (PWS) to estimate the influence of individual components—such as source votes, labeling functions (LFs), and training data—on the end model’s behavior. By leveraging the label generation process and using reweighting and weight-moving perturbations, SIF enables fine-grained debugging, mislabeling detection (9–37% better than baselines), and improved generalization (13–24% better than ordinary IF).

ABSTRACT

Programmatic Weak Supervision (PWS) aggregates the source votes of multiple weak supervision sources into probabilistic training labels, which are in turn used to train an end model. With its increasing popularity, it is critical to have some tool for users to understand the influence of each component (e.g., the source vote or training data) in the pipeline and interpret the end model behavior. To achieve this, we build on Influence Function (IF) and propose source-aware IF, which leverages the generation process of the probabilistic labels to decompose the end model's training objective and then calculate the influence associated with each (data, source, class) tuple. These primitive influence score can then be used to estimate the influence of individual component of PWS, such as source vote, supervision source, and training data. On datasets of diverse domains, we demonstrate multiple use cases: (1) interpreting incorrect predictions from multiple angles that reveals insights for debugging the PWS pipeline, (2) identifying mislabeling of sources with a gain of 9%-37% over baselines, and (3) improving the end model's generalization performance by removing harmful components in the training objective (13%-24% better than ordinary IF).

Motivation & Objective

  • To address the lack of interpretability tools for Programmatic Weak Supervision (PWS) pipelines, where users need to understand the influence of individual components like labeling functions (LFs), source votes, and training data.
  • To overcome the limitations of standard Influence Function (IF), which treats weakly labeled data as atomic units and ignores the underlying source-level generation process in PWS.
  • To develop a general, label-model-agnostic framework that enables component-level influence estimation in PWS while preserving the interpretability and ranking fidelity of traditional IF.
  • To enable practical applications such as debugging model errors, detecting mislabeled LFs, and improving model generalization through targeted training loss perturbation.

Proposed method

  • Decompose the training loss in PWS into terms associated with each (data, source, class) tuple, termed $(i,j,c)$-effect, to model the contribution of each labeling function $j$ on data point $i$ for class $c$.
  • Propose two perturbation-based methods—reweighting and weight-moving—to compute source-aware influence scores by modifying the contribution of specific $(i,j,c)$-effects in the training objective.
  • Use the resulting influence scores to estimate the influence of higher-level components: individual source votes (by aggregating over class), labeling functions (by aggregating over data and class), and training data (by aggregating over all sources and classes).
  • Leverage the additive property of influence scores to enable efficient and interpretable influence estimation across different components of the PWS pipeline.
  • Apply label model approximation (e.g., replacing non-linearities with identity functions) to enable differentiable and scalable computation of influence scores while maintaining performance.
  • Validate the method on 13 datasets across tabular, text, and image domains, using Spearman’s rank correlation to confirm that source-aware IF preserves the ranking of standard IF.

Experimental results

Research questions

  • RQ1How can we estimate the influence of individual labeling function votes on the end model’s predictions in a Programmatic Weak Supervision pipeline?
  • RQ2Can source-aware Influence Function provide better interpretability than standard data-level Influence Function when diagnosing model mispredictions?
  • RQ3To what extent can source-aware IF detect mislabeled labeling functions compared to existing baselines?
  • RQ4Can fine-grained training loss perturbation guided by source-aware IF improve the generalization performance of the end model?
  • RQ5Does the proposed method maintain the ranking fidelity of standard Influence Function while enabling component-level influence estimation?

Key findings

  • Source-aware IF achieves a Spearman’s rank correlation of 0.71–0.99 with standard data-level Influence Function, confirming its reliability in influence ranking.
  • Source-aware IF enables more precise debugging of model errors by identifying the most influential labeling function or source vote, unlike standard IF which may misattribute influence to data points.
  • The method outperforms baselines in detecting mislabeled labeling functions by 9%–37% in F1-score across multiple datasets.
  • By perturbing the training objective based on source-aware IF, the method improves test loss by 13%–24% compared to ordinary Influence Function and group IF.
  • Label model approximation using identity functions for non-linearities enables effective and scalable influence computation, with minimal performance drop on average test loss.
  • The method is general and agnostic to the choice of label model, making it applicable to various PWS pipelines with different label modeling techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.