{"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/towards-real-time-panoptic-narrative","title":"Towards Real-Time Panoptic Narrative Grounding by an End-to-End Grounding Network","arxiv_id":"2301.03160","date":"2023-01-09","proceeding":null,"authors":["Haowei Wang","Jiayi Ji","Yiyi Zhou","Yongjian Wu","Xiaoshuai Sun"],"abstract":"Panoptic Narrative Grounding (PNG) is an emerging cross-modal grounding task, which locates the target regions of an image corresponding to the text description. Existing approaches for PNG are mainly based on a two-stage paradigm, which is computationally expensive. In this paper, we propose a one-stage network for real-time PNG, termed End-to-End Panoptic Narrative Grounding network (EPNG), which directly generates masks for referents. Specifically, we propose two innovative designs, i.e., Locality-Perceptive Attention (LPA) and a bidirectional Semantic Alignment Loss (SAL), to properly handle the many-to-many relationship between textual expressions and visual objects. LPA embeds the local spatial priors into attention modeling, i.e., a pixel may belong to multiple masks at different scales, thereby improving segmentation. To help understand the complex semantic relationships, SAL proposes a bidirectional contrastive objective to regularize the semantic consistency inter modalities. Extensive experiments on the PNG benchmark dataset demonstrate the effectiveness and efficiency of our method. Compared to the single-stage baseline, our method achieves a significant improvement of up to 9.4% accuracy. More importantly, our EPNG is 10 times faster than the two-stage model. Meanwhile, the generalization ability of EPNG is also validated by zero-shot experiments on other grounding tasks.","url_abs":"https://arxiv.org/abs/2301.03160v1","url_pdf":"https://arxiv.org/pdf/2301.03160v1.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":"towards-real-time-panoptic-narrative","repo_url":"https://github.com/mr-neko/epng","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2301.03160","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2301.03160"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":"deterministic:regex_extraction","url":"https://github.com/Mr-Neko/EPNG","reach":null}],"summary":{"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":7,"ran":4,"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":7,"samples":[{"code_sha256_prefix":"d9e991d7f5ac42e6","entry":"DSAMultiHeadAttention","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d9e991d7f5ac42e6"}},{"code_sha256_prefix":"e078fed1456dc142","entry":"MultiHeadAttention","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e078fed1456dc142"}},{"code_sha256_prefix":"ae58a70d08cb83df","entry":"PositionWiseFeedForward","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ae58a70d08cb83df"}},{"code_sha256_prefix":"ab52e975308b27c0","entry":"ScaledDotProductAttention","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ab52e975308b27c0"}},{"code_sha256_prefix":"996ac8b6ae8e9c3b","entry":"DecoderLayer","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"996ac8b6ae8e9c3b"}},{"code_sha256_prefix":"d2eede7568fbb65d","entry":"MainModule","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d2eede7568fbb65d"}},{"code_sha256_prefix":"022ce73894d880ff","entry":"TextVisualEncoder","repo":"Mr-Neko/EPNG","repo_kind":"official","path":"models/EPNG/MainModule.py","file_url":"https://github.com/Mr-Neko/EPNG/blob/HEAD/models/EPNG/MainModule.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"022ce73894d880ff"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}