SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.07216 · ACL Findings · 2022

A Novel Perspective to Look At Attention: Bi-level Attention-based Explainable Topic Modeling for News Classification

Dairui Liu, Derek Greene, Ruihai Dong

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2203.07216.json · badge: /api/ran/2203.07216.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Ruixinhua/BATM community
Papers with Code archive
5 ran · 2 no recorded run
FunctionStatusWhere it lives
AttLayer Ran
ran on a synthesized input
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("ae39ebe9b461169b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BaseClassifyModel Ran
ran on a synthesized input
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("f33ee413f30ccb0b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MultiHeadedAttention Ran
ran on a synthesized input
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("587f583c6bb53989")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

attention Ran
ran; our contract draft was wrong, not the code
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("f49f69ecc50ef233")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

clones Ran
ran; our contract draft was wrong, not the code
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("cd43759ae3ce9c77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BaseModel Not yet run
unverified (harvested, no recorded run)
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("12ae508b754da36f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

BiAttentionClassifyModel Not yet run
unverified (harvested, no recorded run)
Ruixinhua/BATM/models/nc_bi_attention.py
pointer only (licence: NONE) · get_code("ae382f70d27a7cb6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ruixinhua/BATM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
attention
brick of this paper's assembly: helper
27 other papers
16 dated earlier, 1 the same month, 10 later
1411.4555 (2014-11)
Show and Tell: A Neural Image Caption Generator
1609.08144 (2016-09)
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
1612.00563 (2016-12)
Self-critical Sequence Training for Image Captioning
and 24 more not named here
clones
brick of this paper's assembly: helper
2 other papers
2 dated earlier
1904.11574 (2019-04)
TVQA+: Spatio-Temporal Grounding for Video Question Answering
2005.06409 (2020-05)
Dense-Caption Matching and Frame-Selection Gating for Temporal Localization in VideoQA

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Many recent deep learning-based solutions have adopted the attention mechanism in various tasks in the field of NLP. However, the inherent characteristics of deep learning models and the flexibility of the attention mechanism increase the models' complexity, thus leading to challenges in model explainability. To address this challenge, we propose a novel practical framework by utilizing a two-tier attention architecture to decouple the complexity of explanation and the decision-making process. We apply it in the context of a news article classification task. The experiments on two largescaled news corpora demonstrate that the proposed model can achieve competitive performance with many state-of-the-art alternatives and illustrate its appropriateness from an explainability perspective. We release the source code here 1 .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2203.07216")
get_code_for_paper("2203.07216")
have("2203.07216")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2203.07216.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2203.07216.svg)](https://syntology.ai/paper/2203.07216)

Connect an agent — have() is free.