Pro-GRU, and a GRU of about the MLPs' size

Aperta
#274 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
47/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, pytorch

Direzione di ricerca

Start with docs/algorithms/transformer.md and trace how the existing GRU arms, time features, settings, seeds, and parameter counts are defined. Add the four proposed Pro-GRU arms, update the pseudocode, and add the small GRU arm with its parameter count. Done means the arms use the specified settings and features, and the small arm's parameter count is within 20% of Pro-MLP's before runs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The context-learning page claims that context learners need time. The GRU reads only the order of its context and each query's offset, so it shows a context learner without time, but no GRU reads time. This issue adds Pro-GRU arms, and a small GRU of about the MLPs' size.

The context-learner pseudocode (transformer.md) already says each token carries $\phi_{t}(s)$ of its step. Pro-GRU follows it with the GRU in place of the Transformer, so the pseudocode page needs one line naming Pro-GRU.

Decided by the agent, under AGENTS.md's naming and reuse rules: arm slugs batch-gru-harmonic, online-gru-harmonic, batch-gru-monomial-ahead and online-gru-monomial-ahead. The names are Pro-GRU (Fourier), Pro-OGRU (Fourier), Pro-GRU (monomial) and Pro-OGRU (monomial). The features and windows are the MLP's and the Transformer's.

  1. How the GRU reads time. The GRU reads each context sample's input and label, and its head reads the final state, the query's input and an embedding of the query's offset.
    Proposed: concatenate $\phi_{t}(s)$ to each context sample's input, and the query's $\phi_{t}(s)$ to the query's input in the head. The offset embedding stays.
    The alternative is adding the features to the head only, so the recurrent layer reads no time.

  2. Which settings. The context-learning figures read periodic-single and linear-drift-steep. The Generality table reads periodic-poisson and linear-drift-steep.
    Proposed: all three, five seeds each.

  3. Small GRU size. The GRU has 2 layers of 64 units. An offset embedding of horizon × 64 alone is 12,800 parameters on switching, and the head is 64 wide. Pro-MLP has 2,786 parameters.
    Proposed: one GRU layer of 16 units, an offset embedding of width 4, and a head of one hidden layer of 16. The arm is batch-gru-small (GRU (small)) and records its parameter count. I will compute the count from the architecture and adjust the widths to land within 20% of Pro-MLP's before running.
    The alternative is shrinking only the recurrent layer and keeping the 64-wide offset embedding and head, which stays far above the MLPs' size.

Lingua principale
Python
Stelle
0
Fork
0
Merge medio
2h 9m
PR unite (30g)
164

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di neurodata/prolearn

Tutte le issue di neurodata/prolearn

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.