← All articles

reinforcement learningautonomous drivinglancertalk

Teaching a car to learn from reward: a student seminar on reinforcement learning

This seminar was written for students who know some machine learning and want to see how reinforcement learning meets a real engineering problem, the driving of a vehicle. It is part of LANCER, my postdoctoral project at the University of Ljubljana. The slides plan four parts: the foundations of reinforcement learning (25 minutes), the vehicle as a system (10 minutes), reinforcement learning for vehicles in simulation (15 minutes) and the open gaps (10 minutes). The aim stated on the outline slide is to move from the theory of Markov decision processes to safe navigation in simulated, chaotic environments.

What learning means

The seminar begins with three ways of learning, each defined by what the teacher provides. In supervised learning there are desired outputs, and the aim is to minimise error. In unsupervised learning there are only familiar patterns, and the aim is to maximise similarity. Reinforcement learning has neither data nor labelled answers, only a place to work, and the rule is try, fail, adapt. An agent acts in an environment, receives percepts and acts again.

A slide titled Agents and Environments showing a robot labelled Agent, a city scene labelled Environment, and two arrows labelled Percepts and Actions.
The agent and its environment: percepts go in, actions come out.Source: Slide 9 of the seminar.

The maths in brief

The formal frame is the Markov decision process. Its defining property is that the future is independent of the past, given the present. The state is a snapshot of everything relevant at time t; for a car it is a vector with the vehicle's coordinates, speed and the relative positions of other road users. The value of a state tells how good it is, and a policy says what to do in it. The slides derive the Bellman optimality equation, where the best action maximises the reward plus the discounted value of the next state, and the Bellman expectation equation for a given policy. The expectation equation is implemented as iterative policy evaluation, which the seminar shows with pseudocode and a notebook.

Choosing an algorithm

The seminar sorts methods along four axes: what the agent knows about the world (model-based or model-free), how it optimises (value-based, policy-based or a hybrid), the nature of learning (on-policy or off-policy) and scope (tabular or deep). It then lists considerations for choosing one: value or policy based, on or off policy, discrete or continuous actions, model-free or model-based, exploration against exploitation, stability against plasticity, episodic or continuing tasks, and stationary or non-stationary environments.

Comparison of reinforcement learning algorithms
AlgorithmCategoryOn-policy?Model-free?Discrete action?Continuous action?Key mechanism
Q-LearningValue-BasedNYYNTabular Q-estimates
SARSAValue-BasedYYYNQ(s,a) updates using next action
DQNDeep ValueNYYNReplay Buffer & Target Network
REINFORCEPolicy GradientYYYYMonte Carlo policy updates
A2C / A3CActor-CriticYYYYSynchronous/Asynchronous updates
TRPOPolicy GradientYYYYKL-Divergence trust regions
PPOPolicy GradientYYYYClipped surrogate objective
DDPGActor-CriticNYNYDeterministic Policy + Replay Buffer
TD3Actor-CriticNYNYAddresses overestimation in DDPG
SACActor-CriticNYY*YMaximum Entropy framework
Dyna-QHybridNNYNLearns model + simulated planning
AlphaZeroModel-BasedNNYNMCTS + Policy/Value Networks
PETSModel-BasedNNNYProbabilistic Ensembles with MPC
Dreamer (v1-3)Model-BasedNNYYLatent World Model planning
14 of the 15 rows of the slide's table (Double DQN is left out). Y means yes and N means no. Source: Slide 22 of the seminar.

Read the table by what a driving agent needs. Throttle and steering are continuous, so the methods with a yes in the last column are the candidates, and among those PPO, with its clipped objective, stands out in the slides for keeping updates from pushing the policy into a collapsed state. A slide of variants adds AlphaZero, MuZero, Double, Dueling and Rainbow DQN, Expected SARSA, TRPO and others.

The vehicle as a system

The second part reviews the SAE automation levels and the classic sense, plan, act stack. Sensing uses LiDAR for 3D shape and distance, cameras for texture, signs and lights, radar for distance and speed in bad weather, and ultrasonic sensors for low-speed maneuvers, plus sensors that observe the vehicle itself. Planning runs on GPUs, TPUs or custom chips, moving from many separate control units to a centralised domain controller that fuses sensor data. Acting goes through drive-by-wire: steer-by-wire, brake-by-wire and electronic throttle control, with a human-machine interface.

Reinforcement learning for driving

The bridge between the two parts is the case for reward. We do not want to tell the car how to drive, we want to tell it what good driving looks like. The slides choose the level at which the agent acts: sensor signals straight to torque and voltage, signals to a set of waypoints followed by a PID controller, or signals to strategic decisions that produce waypoints and then torques.

A slide with three rows of arrows from a chip icon to gears: sensor signals to torque and voltage; sensor signals to waypoints then a PID controller; sensor signals to strategic decisions, waypoints and a PID controller.
Three control hierarchies for a learning driver.Source: Slide 51 of the seminar.

The observation space and action space mirror the research talk. Actions are continuous, with throttle and brake in [0, 1] and steering in [-1, 1], or discrete, with presets such as stay in lane and change lane. Continuous actions give smooth driving but are harder to explore, and the agent may at first vibrate the steering wheel. Discrete actions simplify learning but give jerky movement and cannot handle fine emergency steering. Safety constraints include clipping actions and penalising rapid changes in them.

The difficulty of a reward that arrives only at the end of a long drive has its own slide, with the remedy of reward shaping.

Long-term and short-term rewards for a driving agent
FeatureLong-term episodic rewardShort-term / immediate reward
TimingDelivered only at the end of the episode.Delivered at every single time step (t).
ObjectiveMission success or failure.Behavioral alignment and safety.
Example 1Completion: +100 for reaching the final GPS destination safely.Progress: +0.5 for every meter traveled along the center of the lane.
Example 2Survival: +50 for finishing a 5-minute drive without any collisions.Safety: -1.0 for every frame where the car is too close to a pedestrian (Time-to-Collision).
Example 3Efficiency: A bonus based on the total time taken for the whole trip.Comfort: -0.1 for high lateral G-forces or sudden "jerky" braking.
All rows of the slide's table. Source: Slide 57 of the seminar.

The seminar closes this part with simulation: crashes are free, many copies run in parallel, scenarios can be scripted, and realistic physics, photorealistic rendering and programmable traffic make a policy more likely to work on a real car. The tools shown are HighwayEnv, CARLA, SUMO and MetaDrive.

Discussion

The last part lists gaps, opportunities and threats. The technical gaps are long-tailed events, extreme weather, entropy in traffic, data scarcity, reaction time and communication, and the others are cognitive, infrastructure and regulatory. The opportunities are mobility as a service, logistics, safety and a dense-city market, and the threats are security, trust, labour and ethics. The final slide says that driverless vehicles are not a question of if but of when.

The seminar is teaching material, not a study, so it reports no experiments. The reward values and the algorithm table are examples and reference, and the slides give no results for any of the algorithms on driving. What it prepares is the work of the project: choosing a continuous-control method, shaping a reward and training in a simulator. The simulator side is described in the dataset article, and the wider picture in the research talk.

Sources

The figures and tables listed here are taken from the seminar cited at the top of this page; the numbers quoted in the text come from it too.

  • Figures: Slide 9 of the seminar, Slide 51 of the seminar

Acknowledgements

LANCER is part of the postdoctoral project of Dr. Swarnendu Ghosh at the University of Ljubljana. It is co-funded by the European Union's Horizon Europe research and innovation programme under the Marie Skłodowska-Curie COFUND Postdoctoral Programme, grant agreement No. 101081355 (SMASH), and by the Republic of Slovenia and the European Union from the European Regional Development Fund. Views and opinions expressed are those of the author only and do not necessarily reflect those of the European Union or the European Research Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.

Cite the seminar

Swarnendu Ghosh (2026). Vehicular Automation with Reinforcement Learning Agents. LANCER project, student seminar, slides.

BibTeX
@misc{ghosh2026lancerseminar,
  author       = {Ghosh, Swarnendu},
  title        = {Vehicular Automation with Reinforcement Learning Agents},
  howpublished = {Student seminar, LANCER project, University of Ljubljana},
  year         = {2026},
  note         = {Slides: https://swarnendughosh.com/LANCER/Student\%20Seminar\%20-\%20VARLA.pdf}
}