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

Đang mở
#274 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
47/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, pytorch
Lĩnh vực
machine-learning

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
2 giờ 9 phút
Pull request đã merge (30 ngày)
164

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của neurodata/prolearn

Tất cả issue của neurodata/prolearn

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.