Skip to main content
QUICK REVIEW

[Paper Review] Slice-based Learning: A Programming Model for Residual Learning in Critical Data Slices

Vincent S. Chen, Sen Wu|arXiv (Cornell University)|Sep 13, 2019
Machine Learning and AlgorithmsComputer Science37 references23 citations
TL;DR

This paper proposes Slice-based Learning (SBL), a programming model that improves model performance on critical data subsets—called slices—by learning slice-specific expert representations through slicing functions (SFs) and an attention mechanism. SBL achieves up to 19.0 F1 improvement on slices and 4.6 F1 overall gain across NLP, vision, and industrial datasets, while maintaining parameter efficiency with only a 5–7% relative parameter increase per slice, outperforming MoE and weak supervision baselines.

ABSTRACT

In real-world machine learning applications, data subsets correspond to especially critical outcomes: vulnerable cyclist detections are safety-critical in an autonomous driving task, and "question" sentences might be important to a dialogue agent's language understanding for product purposes. While machine learning models can achieve high quality performance on coarse-grained metrics like F1-score and overall accuracy, they may underperform on critical subsets---we define these as slices, the key abstraction in our approach. To address slice-level performance, practitioners often train separate "expert" models on slice subsets or use multi-task hard parameter sharing. We propose Slice-based Learning, a new programming model in which the slicing function (SF), a programming interface, specifies critical data subsets for which the model should commit additional capacity. Any model can leverage SFs to learn slice expert representations, which are combined with an attention mechanism to make slice-aware predictions. We show that our approach maintains a parameter-efficient representation while improving over baselines by up to 19.0 F1 on slices and 4.6 F1 overall on datasets spanning language understanding (e.g. SuperGLUE), computer vision, and production-scale industrial systems.

Motivation & Objective

  • To address the challenge of improving model performance on critical, often rare, data subsets (slices) without degrading overall performance.
  • To provide a parameter-efficient programming model that allows practitioners to specify critical data subsets via slicing functions (SFs).
  • To enable stable, slice-aware prediction by learning residuals between base and slice-specific predictions using attention mechanisms.
  • To scale effectively to hundreds of slices without incurring prohibitive parameter growth, unlike mixture-of-experts or multi-task learning with hard parameter sharing.
  • To integrate with state-of-the-art models (e.g., BERT, ResNet) without architectural modification, enhancing performance on real-world industrial and benchmark datasets.

Proposed method

  • Slicing functions (SFs) are user-defined heuristics that map input data to binary indicators for critical data subsets (slices).
  • Slice-Residual-Attention Modules (SRAMs) learn residuals between the base model’s predictions and slice-specific predictions, enabling attention-based fusion of slice expert representations.
  • The model initializes slice expert representations using shared backbone parameters, maintaining parameter efficiency.
  • An attention mechanism reweights slice expert representations based on slice membership and prediction confidence, producing a slice-aware final prediction.
  • The approach is architecture-agnostic and can be applied to any neural network backbone, including BERT and ResNet.
  • SBL uses weak supervision from SFs and avoids explicit labeling, making it suitable for real-world deployment with noisy or imperfect slice definitions.

Experimental results

Research questions

  • RQ1Can a programming model be designed to improve model performance on critical data slices without degrading overall performance?
  • RQ2How can slice-specific performance be enhanced while maintaining parameter efficiency, especially when hundreds of slices are involved?
  • RQ3Can attention-based fusion of slice expert representations outperform traditional multi-task learning or mixture-of-experts in slice-specific performance?
  • RQ4To what extent can SBL improve state-of-the-art models on real-world benchmarks like SuperGLUE and industrial datasets?
  • RQ5Does access to deep features in the attention mechanism provide a performance advantage over weak supervision methods that rely only on heuristic voting?

Key findings

  • SBL improved F1 scores by up to 19.0 points on individual slices and 4.6 points overall on SuperGLUE benchmarks using BERT-base.
  • On autonomous vehicle data, SBL achieved up to 15.6 F1 improvement on context-dependent slices (e.g., presence of bus or traffic light).
  • SBL outperformed MoE, which required an order-of-magnitude more parameters per slice, while achieving comparable or better performance with only a 5–7% relative increase in parameters per slice.
  • On weak supervision tasks (Spouses and CDR), SBL achieved +0.9 and +1.3 F1 overall improvement, respectively, and up to 15.9 F1 gain on heuristically defined slices.
  • In a SuperGLUE submission, SBL improved average F1 by +3.8 and accuracy by +2.8 on the Commitment Bank (CB) benchmark.
  • SBL demonstrated consistent gains across diverse domains, including NLP (SuperGLUE), computer vision (CyDet), and industrial-scale systems, proving its generalizability and scalability.

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.