pytorch / pytorch/tutorials

docs: add ethical context note to CIFAR-10 classifier tutorial

Open
#3,781 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

Suggestion

Add a brief ethical context note to the "Training a Classifier" tutorial regarding the CIFAR-10 dataset's treatment of animals as classification objects.

Context

The "Training a Classifier" tutorial is one of PyTorch's most-visited pages and many developers' first exposure to image classification. It uses CIFAR-10, which is 60% animal classes (bird, cat, deer, dog, frog, horse).

The tutorial trains a model to classify animals purely as objects — identical to how it classifies airplanes, automobiles, ships, and trucks. While this is technically correct for the classification task, it's worth acknowledging the ethical dimensions of animal classification in AI, particularly given:

  1. Precedent: The CIFAR-10 parent dataset (80 Million Tiny Images) was taken offline in 2020 after MIT researchers identified racist, sexist, and offensive labels. This established that ethical review of classification datasets is appropriate.

  2. Research: Peer-reviewed papers have documented how AI classification systems perpetuate speciesist assumptions:

    • Hagendorff et al. (2023). "Speciesist bias in AI." AI and Ethics. Notes that image classification schemas "treat animals identically to inanimate objects."
    • ImageNet's ILSVRC schema has ~400 animal classes among its 1,000 classes with no ethical distinction from object classes.

Suggested Change

A brief note (2-3 sentences) in the tutorial acknowledging that:

  • Datasets reflect choices about what to classify and how
  • Practitioners should consider the ethical implications of classification systems, especially those involving sentient beings
  • Links to resources on responsible AI and dataset documentation

This doesn't require changing the tutorial's content or code — just adding a brief awareness note consistent with PyTorch's commitment to responsible AI.

Scope

A single paragraph addition. No code changes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the “Training a Classifier” tutorial and identify where the CIFAR-10 dataset and classification task are introduced. Add one brief paragraph covering dataset choices, ethical implications for classifying sentient beings, and links to responsible-AI or dataset-documentation resources; done means the tutorial has the requested awareness note without code changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
documentation, machine-learning
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.