Skip to main content
Interactive 3D/Multi-Task Learning Architecture
Hard Parameter Sharing
Shared Backbone (Encoder)
all tasks share 100% of parameters
↓ shared representation ↓
Classification Head
Click prediction
loss weight: 1.0
Regression Head
Dwell time
loss weight: 1.0
Ranking Head
Item ranking
loss weight: 1.0
Generation Head
Content summary
loss weight: 0.5
Training Curve: Multi-task vs Single-task
70%80%90%Epochssingle-taskmulti-task (3)
Per-Task Accuracy
Classification (Click prediction)87%→ 89.0% (+2.0)
Regression (Dwell time)82%→ 83.3% (+1.3)
Ranking (Item ranking)79%→ 82.3% (+3.3)
Generation (Content summary)74%single only
MTL Controls
Task Loss Weights
Classification1.0
Regression1.0
Ranking1.0
Generation0.5
Sharing Mode
Active Tasks
Domain
Warnings
MTL shines on data-sparse tasks. A sparse task borrows signal from related tasks - but conflicting tasks hurt each other (negative transfer).

Multi-Task Learning Architecture - Interactive Visualization

Multi-task learning (MTL) trains a single model on multiple related tasks simultaneously, sharing a backbone encoder across all task heads. The key benefit is data efficiency: a data-sparse task (e.g., ranking with few labeled examples) can borrow signal from a data-rich related task (e.g., classification). Hard parameter sharing uses one shared backbone for all tasks - simple, fewer parameters, but tasks can interfere. Soft parameter sharing gives each task its own backbone but regularizes them to stay similar - more parameters but less interference. Negative transfer occurs when task objectives conflict: adding a generation head alongside a classification head can hurt both, because generation requires diverse representations while classification requires tight discriminative boundaries.

  • Hard sharing: all tasks share the same encoder layers - 80% reduction in parameters vs training separate models
  • Soft sharing: separate encoders per task with L2 regularization pulling weights together - reduces negative transfer
  • Task loss weighting: upweight data-sparse tasks to give them more gradient signal; downweight noisy or conflicting tasks
  • Negative transfer detection: monitor per-task validation loss separately - if adding task B increases task A validation loss, negative transfer is occurring

Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.