MLCrack

    REINFORCEMENT LEARNING · INTERVIEW QUESTION

    What is reinforcement learning, and how does it differ from supervised and unsupervised learning?

    🟢 beginner · Fundamentals & MDPs

    Hint: Think about the feedback signal: labels vs rewards vs no signal.

    Answer

    Supervised learning uses labeled input-output pairs. Unsupervised learning finds patterns without labels. Reinforcement learning learns through interaction with an environment by maximizing cumulative reward.

    Key differences:

    1. RL has delayed rewards (credit assignment problem)
    2. RL agent's actions affect future states (sequential decision-making)
    3. RL must balance exploration (trying new actions) vs exploitation (using known good actions)
    4. Online RL collects data through interaction; offline RL instead learns from a fixed logged dataset with coverage and distribution-shift limitations. RL is appropriate when: outcomes are sequential, the environment responds to actions, and optimal behavior must be discovered.

    Examples: game AI (AlphaGo), robotics, recommendation systems, LLM alignment (RLHF).

    Likely follow-up: When would you choose RL over supervised learning?