🚀 connectailab-rl-highj-lunarlander-v2
connectailab-rl-highj-lunarlander-v2 is an advanced autonomous reinforcement learning agent based on Deep Q-Network (DQN) trained in the Gymnasium LunarLander-v2 environment.
Building upon the 1st-stage model, this 2nd-phase experiment resolves rightward drift by introducing horizontal drift velocity braking (-0.5*|vx|) and tiered dead-center bonuses, landing dead-center at x ≈ 0.0 with 270+ points.
🎬 실제 플레이 영상 (Hero Video)
- Model: connectailab-rl-highj-lunarlander-v2
- Algorithm: Deep Q-Network (DQN) with Experience Replay & Target Network
- Environment: Gymnasium LunarLander-v2
- Architecture: MLP (Inputs: 8 → Hidden: 128 → Hidden: 128 → Actions: 4)
- Performance: 270+ points (Dead-Center touchdown)
- Key Contribution: 2nd-stage Precision Shaping (Dead-Center Bonus & Horizontal Braking)
- Base Framework: CONNECT AI LAB × AI CITY BUILDERS
- Author: Minjung Lee (Highj)
📖 모델 소개 및 구현 상세 (Korean Guide)
본 모델은 connectailab-rl-highj-lunarlander-v2으로, 1차 실험에서 나타난 우측 쏠림(Drift) 한계를 극복하고 정중앙(Dead Center, x ≈ 0.0)에 오차 없이 부드럽게 착륙하도록 설계된 2단계 고도화 실험 모델입니다.
🎯 v2 핵심 개선점 (Key Improvements)
- 공식 모델명:
connectailab-rl-highj-lunarlander-v2 - 중앙 정렬 거리 벌점 2배 강화 (
-0.8 * |x|): 깃발 사이 중심을 벗어나는 궤적 억제 - 수평 드리프트 속도 벌점 신설 (
-0.5 * |vx|): 우측으로 미끄러질 때 좌측 역추진 엔진 즉각 가동 - 정중앙 차등 착륙 보너스: 중앙 오차 0.1 이내 완벽 착지 시 +10.0점 차등 지급
- 180k 스텝 최적화: 16만 걸음 이후 Q값 과대추정에 의한 정책 붕괴 방지
📊 1차 실험 vs 2차 실험 비교 분석
| 항목 | 🌕 1차 실험 (connectailab-rl-highj-lunarlander-v1) | 🚀 2차 실험 (connectailab-rl-highj-lunarlander-v2) | 2차 고도화 성과 |
|---|---|---|---|
| 착륙 위치 | 우측 깃발 쏠림 (x ≈ +0.4) | 정중앙 데드센터 (x ≈ 0.0) | 🎯 쏠림(Drift) 완전 해결 |
| 수평 속도 제동 | 미적용 (관성 이동) | 수평 속도(vx) 제동 페널티 | 🛑 역추진 능동 감속 |
| 착륙 보너스 | 패드 내 균일 (+5.0) | 정중앙 오차 0.1 이내 (+10.0) | ✨ 정밀 터치다운 유도 |
| 평가 점수 | 267.9 점 | 270+ 점 | 🏆 정밀 착륙 및 고득점 |
💻 사용 방법 (Quickstart)
import torch, torch.nn as nn
from huggingface_hub import hf_hub_download
경로 = hf_hub_download("minjunglee27/connectailab-rl-highj-lunarlander-v2", "model.pt")
두뇌 = nn.Sequential(nn.Linear(8, 128), nn.ReLU(), nn.Linear(128, 128), nn.ReLU(), nn.Linear(128, 4))
두뇌.load_state_dict(torch.load(경로, map_location="cpu"))
👩💻 만든 사람 (Author)
Minjung Lee (Highj)
CONNECT AI LAB에서 로컬 AI와 강화학습 AI를 공부하고, 이를 실전에 적용해 서비스를 하나씩 만들어 보며 AI 1인 기업가의 꿈을 이뤄가고 있습니다.
- CONNECT AI LAB × AI CITY BUILDERS 강화학습 프로그램 참여
- 🌕 connectailab-rl-highj-lunarlander-v1: 1차 자세 안정화 보상가공 (267.9점 고득점 착륙)
- 🚀 connectailab-rl-highj-lunarlander-v2: 2차 수평 제동 정중앙 정밀 착륙 (270+점)
- ⚡ connectailab-rl-highj-cartpole-lite-v1: 파라미터 92.6% 감축 초경량 두뇌 (500점 만점)
- 🎯 connectailab-rl-highj-cartpole-center-v2: Center-Lock 정중앙 균형 유지 (500점 만점)
CONNECT AI LAB 공동 연구 참여 모델