Closed LucyFann closed 3 years ago
Hi Lucy,
Every node is iteratively generated in an autoregressive fashion. Q itself doesn't represent the latest graph decision. Q is the projection of the [CLS]
token as you can see from our codes. You might read "the latest graph decision" from Cai and Lam 2019, but that's wrong since this encoder is a text encoder adopted from their codes. I'd say that's a very well written paper which sells their approach successfully, but the actual codes tell another story. The graph encoder will reflect the latest decision though, otherwise this thing won't work. Our paper basically shows that this "graph sequence iterative inference" is not necessarily better than cross-attention but consumes more parameters and decoding time.
Arc and concept confidence are summed up to do beam search, see these codes: https://github.com/emorynlp/levi-graph-amr-parser/blob/484aa90ee995907002acabc260b9bdac88e6353d/amr_parser/parser.py#L145
Hi han, first of all, thanks for your work.