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:
- RL has delayed rewards (credit assignment problem)
- RL agent's actions affect future states (sequential decision-making)
- RL must balance exploration (trying new actions) vs exploitation (using known good actions)
- 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?
Related questions
- Explain the Bellman equation. How is it used in Q-learning?
- Explain the exploration-exploitation tradeoff. What strategies address it?
- Define the terms: agent, environment, state, action, and reward in the context of reinforcement learning.
- Can you explain the concept of the Markov Decision Process (MDP) in reinforcement learning?
- What is the role of a policy in reinforcement learning?