These are the final weights for a CS 654 (Reinforcement Learning) course project. The project compares DQN, Laya, and a Laya-shielded DQN on highway-env (highway-fast-v0).
| Folder | Contents |
|---|---|
laya-highway/ |
Laya, fine-tuned to judge driving actions as safe or unsafe and to choose actions |
hf download adamlizerbram/cs654-final-project --include "laya-highway/*" --local-dir models/final # -> models/final/laya-highway
import laya
agent = laya.load("adamlizerbram/cs654-final-project", subfolder="laya-highway")
One checkpoint answers two questions about a text description of the highway around the ego car:
noul): will a proposed action lead to a collision or a gap under 5 m within 3 s? This yes/no answer drives the safety shield.choice): which legal action is safest while still making good progress? This is the Laya-alone driving policy.Data. Labels come from simulation, not humans. For each visited state and each legal action, a copy of the simulator applies the action and then keeps lane and speed for 2 more steps.
Training. laya-train from laya 0.4.30 on an A100:
rlcd objective, --shuffle-options, and an effective batch of 64Validation results (before → after fine-tuning):
| Question | Items | Accuracy | ECE |
|---|---|---|---|
| Safety | 2,754 | 0.503 → 0.947 | 0.303 → 0.025 |
| Action | 697 | 0.144 → 0.891 | 0.586 → 0.048 |
The fine-tuned P(unsafe) is nearly binary: 99% of predictions fall below 0.1 or at 0.9 and above, and both clusters are well calibrated. 6.2% of truly unsafe actions are scored below 0.1.
Limitations.
highway-fast-v0 uses coarse 5 Hz physics.convaiinnovations/laya