{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/graph-transformer-for-graph-to-sequence","title":"Graph Transformer for Graph-to-Sequence Learning","arxiv_id":"1911.07470","date":"2019-11-18","proceeding":null,"authors":["Deng Cai","Wai Lam"],"abstract":"The dominant graph-to-sequence transduction models employ graph neural networks for graph representation learning, where the structural information is reflected by the receptive field of neurons. Unlike graph neural networks that restrict the information exchange between immediate neighborhood, we propose a new model, known as Graph Transformer, that uses explicit relation encoding and allows direct communication between two distant nodes. It provides a more efficient way for global graph structure modeling. Experiments on the applications of text generation from Abstract Meaning Representation (AMR) and syntax-based neural machine translation show the superiority of our proposed model. Specifically, our model achieves 27.4 BLEU on LDC2015E86 and 29.7 BLEU on LDC2017T10 for AMR-to-text generation, outperforming the state-of-the-art results by up to 2.2 points. On the syntax-based translation tasks, our model establishes new single-model state-of-the-art BLEU scores, 21.3 for English-to-German and 14.1 for English-to-Czech, improving over the existing best results, including ensembles, by over 1 BLEU.","url_abs":"https://arxiv.org/abs/1911.07470v2","url_pdf":"https://arxiv.org/pdf/1911.07470v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"graph-transformer-for-graph-to-sequence","repo_url":"https://github.com/jcyk/gtos","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"amr-to-text-generation","task_name":"AMR-to-Text Generation"},{"task_slug":"abstract-meaning-representation","task_name":"Abstract Meaning Representation"},{"task_slug":"graph-representation-learning","task_name":"Graph Representation Learning"},{"task_slug":"graph-to-sequence","task_name":"Graph-to-Sequence"},{"task_slug":"machine-translation","task_name":"Machine Translation"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"text-generation","task_name":"Text Generation"},{"task_slug":"translation","task_name":"Translation"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1911.07470","atlas_url":"https://app.syntology.ai/?focus=1911.07470","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1911.07470"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jcyk/gtos","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"unverified":9},"by_repo_kind":{"official":{"samples":10,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"53445cbd60ba3b37","entry":"need_an_instance","repo":"jcyk/gtos","repo_kind":"official","path":"generator/AMRGraph.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/AMRGraph.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53445cbd60ba3b37"}},{"code_sha256_prefix":"fe61bad3dddd0eec","entry":"ArraysToTensor","repo":"jcyk/gtos","repo_kind":"official","path":"generator/data.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe61bad3dddd0eec"}},{"code_sha256_prefix":"c5f882c733635c4e","entry":"ListsToTensor","repo":"jcyk/gtos","repo_kind":"official","path":"generator/data.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c5f882c733635c4e"}},{"code_sha256_prefix":"87fc425b3f5fde1f","entry":"ListsofStringToTensor","repo":"jcyk/gtos","repo_kind":"official","path":"generator/data.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"87fc425b3f5fde1f"}},{"code_sha256_prefix":"5846e0e199be3a49","entry":"is_attr_or_abs_form","repo":"jcyk/gtos","repo_kind":"official","path":"generator/AMRGraph.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/AMRGraph.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5846e0e199be3a49"}},{"code_sha256_prefix":"5d147ec91127fd39","entry":"make_vocab","repo":"jcyk/gtos","repo_kind":"official","path":"generator/extract.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/extract.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d147ec91127fd39"}},{"code_sha256_prefix":"3a4c43adbea21ba8","entry":"ngram_counts","repo":"jcyk/gtos","repo_kind":"official","path":"generator/chrF++.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/chrF%2B%2B.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3a4c43adbea21ba8"}},{"code_sha256_prefix":"2d5fc1b136ce1835","entry":"search_by_batch","repo":"jcyk/gtos","repo_kind":"official","path":"generator/search.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/search.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d5fc1b136ce1835"}},{"code_sha256_prefix":"7433cd65c050cff7","entry":"separate_characters","repo":"jcyk/gtos","repo_kind":"official","path":"generator/chrF++.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/chrF%2B%2B.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7433cd65c050cff7"}},{"code_sha256_prefix":"df31e08a070ba2fb","entry":"separate_punctuation","repo":"jcyk/gtos","repo_kind":"official","path":"generator/chrF++.py","file_url":"https://github.com/jcyk/gtos/blob/HEAD/generator/chrF%2B%2B.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"df31e08a070ba2fb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}