Skip to content

Add dueling in rainbow iqn#137

Closed
Curt-Park wants to merge 1 commit into
masterfrom
feature/dueling_iqn
Closed

Add dueling in rainbow iqn#137
Curt-Park wants to merge 1 commit into
masterfrom
feature/dueling_iqn

Conversation

@Curt-Park

@Curt-Park Curt-Park commented Apr 10, 2019

Copy link
Copy Markdown
Collaborator

@Curt-Park Curt-Park requested a review from MrSyee April 10, 2019 02:54
@Curt-Park Curt-Park self-assigned this Apr 10, 2019
@Curt-Park

Curt-Park commented Apr 10, 2019

Copy link
Copy Markdown
Collaborator Author

Not trained well.
The performance according to hidden layer sizes:
128 > 64 > 512

@Curt-Park Curt-Park closed this Apr 10, 2019
@MrSyee MrSyee deleted the feature/dueling_iqn branch March 25, 2020 00:25
Curt-Park added a commit to Curt-Park/rainbow-is-all-you-need that referenced this pull request Mar 18, 2026
Dueling architecture empirically degrades IQN performance (see
medipixel/rl_algorithms#137). Replace the separate advantage/value
streams with a single NoisyLinear output head.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Curt-Park added a commit to Curt-Park/rainbow-is-all-you-need that referenced this pull request Mar 18, 2026
* Add Rainbow IQN tutorial (09) replacing C51 with Implicit Quantile Networks

Introduces tutorial 09 which swaps the Categorical DQN (C51) distributional
component in Rainbow with IQN. The network learns a continuous quantile
function via cosine basis embeddings and Hadamard product, trained with
quantile Huber loss — eliminating the need to specify v_min, v_max, or
atom_size. All other Rainbow components (Double DQN, PER, Dueling, NoisyNet,
N-step) remain unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Remove dueling network from Rainbow IQN

Dueling architecture empirically degrades IQN performance (see
medipixel/rl_algorithms#137). Replace the separate advantage/value
streams with a single NoisyLinear output head.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix quantile Huber loss reduction to mean over both tau dimensions

The IQN loss averages over both tau and tau_prime, but the previous code
used sum over tau — inflating the loss ~32x and causing unstable training.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Restore dueling network in Rainbow IQN

The earlier instability was caused by the loss reduction bug (sum
instead of mean over tau), not the dueling architecture itself.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add Rainbow IQN tutorial to README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Test and update session

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant