Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sparse matrix #1260

Open
1 of 2 tasks
unnonouno opened this issue Jun 7, 2016 · 5 comments
Open
1 of 2 tasks

Support sparse matrix #1260

unnonouno opened this issue Jun 7, 2016 · 5 comments
Labels
cat:feature Implementation that introduces new interfaces. prio:medium Medium priority. Should be worked on but does not require immediate action. roadmap Included in future roadmap.

Comments

@unnonouno
Copy link
Member

unnonouno commented Jun 7, 2016

Especially in NLP, we use sparse information such as in EmbedID. Its current implementation uses dense matrix to store gradient. When minibatch size is small, almost all elements of gradient are zero. Sparse matrices are more efficient in such situation.

  • Use sparse matrices such as scikit-sparse in Chainer
  • Make sparse matrices with CUDA using cuSPARSE
@okuta okuta added the cat:feature Implementation that introduces new interfaces. label Jun 9, 2016
@Crissman
Copy link
Member

Crissman commented Dec 4, 2017

Sparse matrices incorporated into CuPy, but not available yet from Chainer.

@Crissman
Copy link
Member

Crissman commented Dec 4, 2017

Considering as part of future roadmap.

@Crissman Crissman added the roadmap Included in future roadmap. label Dec 4, 2017
@unnonouno
Copy link
Member Author

We now have cupy.sparse even for GPU. We have some ideas to use it in Chainer.

  • use sparse matrices for efficiency on some function such as EmbedID
  • make a function that uses sparse matrices on both train and test time such as sparse linear function
  • provide a feature that sparsify trained linear model or normalization to sparsify linear model, and use sparse matrices on test time

@stale
Copy link

stale bot commented Mar 8, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Not updated for a longer period of time. label Mar 8, 2018
@stale
Copy link

stale bot commented Apr 7, 2018

This issue is closed as announced. Feel free to re-open it if needed.

@stale stale bot closed this as completed Apr 7, 2018
@kmaehashi kmaehashi reopened this Apr 9, 2018
@stale stale bot removed the stale Not updated for a longer period of time. label Apr 9, 2018
@kmaehashi kmaehashi added the prio:medium Medium priority. Should be worked on but does not require immediate action. label Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:feature Implementation that introduces new interfaces. prio:medium Medium priority. Should be worked on but does not require immediate action. roadmap Included in future roadmap.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants