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

Abierto
#274 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
47/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python, pytorch

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
2 h 9 min
PR fusionados (30 d)
164

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de neurodata/prolearn

Todos los issues de neurodata/prolearn

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.