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

Coloring algorithms to be implemented #29

Open
4 of 5 tasks
pkj-m opened this issue Jun 22, 2019 · 7 comments
Open
4 of 5 tasks

Coloring algorithms to be implemented #29

pkj-m opened this issue Jun 22, 2019 · 7 comments
Assignees

Comments

@pkj-m
Copy link
Contributor

pkj-m commented Jun 22, 2019

@ChrisRackauckas
Copy link
Member

For Hessians, is it just the same coloring but on the adjacency matrix?

@ChrisRackauckas
Copy link
Member

What methods are used in the bidirectional coloring?

@pkj-m
Copy link
Contributor Author

pkj-m commented Jun 22, 2019

In case of direct recovery, star coloring would work for Hessians. If we plan on extending the stack to include substitution based evaluation, we will have to employ acylic coloring as well.

@pkj-m
Copy link
Contributor Author

pkj-m commented Jun 22, 2019

We can use either greedy distance-2 coloring (similar to distance-1 coloring) or partial distance-2 coloring in cases where we do not mix both forward and backward AD modes.

@pkj-m
Copy link
Contributor Author

pkj-m commented Jun 22, 2019

Star coloring must satisfy the two conditions: (1) every pair of adjacent vertices receives distinct colors (a distance-1 coloring), and (2) every path on four vertices uses at least three colors.

Acyclic coloring has the conditions: (1) the coloring corresponds to a distance-1 coloring, and (2) vertices in every cycle of the graph are assigned at least three distinct colors. The name acyclic comes from the fact that subgraph induced by vertices assigned any two colors is a collection of trees—and hence is acyclic.

reference: What Color is your Jacobian?

@ChrisRackauckas
Copy link
Member

Add some acyclic coloring to the list as well then since substitution seems to be the proper way to handle bidirectional and forward-over-reverse.

@pkj-m
Copy link
Contributor Author

pkj-m commented Jun 23, 2019

The original paper does not talk about acyclic coloring and I can't find any good resources that discuss it either. Will add it to the to-do as soon as I get a reliable paper on it.

@pkj-m pkj-m self-assigned this Jul 2, 2019
@pkj-m pkj-m mentioned this issue Aug 7, 2019
3 tasks
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

No branches or pull requests

2 participants