Views
No views yet
transient-global attention fine-tuned on pubmed summarization dataset for 3,000 training steps. It may be worth continuing in the fine-tuning as we did not train the model until the convergence.beam_search=3 and without any specific calibration of generation parameters are presented below, altogether with the results from the original paper (the original scores are higher, very likely due to a higher number of training steps).| Metric | Score | Score (original paper) |
|---|---|---|
| Rouge-1 | 47.44 | 49.98 |
| Rouge-2 | 22.68 | 24.69 |
| Rouge-L | 29.83 | x |
| Rouge-Lsum | 43.13 | 46.46 |
Adafactor optimizer with a constant learning rate 0.001. The full training hyper-parameters and logs can be found via the following W&B run. The model was trained using the HuggingFace's trainer.1LONG_ARTICLE = """"anxiety affects quality of life in those living
2with parkinson 's disease ( pd ) more so than
3overall cognitive status , motor deficits , apathy
4, and depression [ 13 ] . although anxiety and
5depression are often related and coexist in pd
6patients , recent research suggests that anxiety
7rather than depression is the most prominent and
8prevalent mood disorder in pd [ 5 , 6 ] . yet ,
9our current understanding of anxiety and its
10impact on cognition in pd , as well as its neural
11basis and best treatment practices , remains
12meager and lags far behind that of depression .
13overall , neuropsychiatric symptoms in pd have
14been shown to be negatively associated with
15cognitive performance . for example , higher
16depression scores have been correlated with lower
17scores on the mini - mental state exam ( mmse ) [
188 , 9 ] as well as tests of memory and executive
19functions ( e.g. , attention ) [ 1014 ] . likewise
20, apathy and anhedonia in pd patients have been
21associated with executive dysfunction [ 10 , 1523
22] . however , few studies have specifically
23investigated the relationship between anxiety and
24cognition in pd . one study showed a strong
25negative relationship between anxiety ( both state
26and trait ) and overall cognitive performance (
27measured by the total of the repeatable battery
28for the assessment of neuropsychological status
29index ) within a sample of 27 pd patients .
30furthermore , trait anxiety was negatively
31associated with each of the cognitive domains
32assessed by the rbans ( i.e. , immediate memory ,
33visuospatial construction , language , attention ,
34and delayed memory ) . two further studies have
35examined whether anxiety differentially affects
36cognition in patients with left - sided dominant
37pd ( lpd ) versus right - sided dominant pd ( rpd
38) ; however , their findings were inconsistent .
39the first study found that working memory
40performance was worse in lpd patients with anxiety
41compared to rpd patients with anxiety , whereas
42the second study reported that , in lpd , apathy
43but not anxiety was associated with performance on
44nonverbally mediated executive functions and
45visuospatial tasks ( e.g. , tmt - b , wms - iii
46spatial span ) , while in rpd , anxiety but not
47apathy significantly correlated with performance
48on verbally mediated tasks ( e.g. , clock reading
49test and boston naming test ) . furthermore ,
50anxiety was significantly correlated with
51neuropsychological measures of attention and
52executive and visuospatial functions . taken
53together , it is evident that there are limited
54and inconsistent findings describing the
55relationship between anxiety and cognition in pd
56and more specifically how anxiety might influence
57particular domains of cognition such as attention
58and memory and executive functioning . it is also
59striking that , to date , no study has examined
60the influence of anxiety on cognition in pd by
61directly comparing groups of pd patients with and
62without anxiety while excluding depression . given
63that research on healthy young adults suggests
64that anxiety reduces processing capacity and
65impairs processing efficiency , especially in the
66central executive and attentional systems of
67working memory [ 26 , 27 ] , we hypothesized that
68pd patients with anxiety would show impairments in
69attentional set - shifting and working memory
70compared to pd patients without anxiety .
71furthermore , since previous work , albeit limited
72, has focused on the influence of symptom
73laterality on anxiety and cognition , we also
74explored this relationship . seventeen pd patients
75with anxiety and thirty - three pd patients
76without anxiety were included in this study ( see
77table 1 ) . the cross - sectional data from these
78participants was taken from a patient database
79that has been compiled over the past 8 years (
80since 2008 ) at the parkinson 's disease research
81clinic at the brain and mind centre , university
82of sydney . inclusion criteria involved a
83diagnosis of idiopathic pd according to the united
84kingdom parkinson 's disease society brain bank
85criteria and were confirmed by a neurologist (
86sjgl ) . patients also had to have an adequate
87proficiency in english and have completed a full
88neuropsychological assessment . ten patients in
89this study ( 5 pd with anxiety ; 5 pd without
90anxiety ) were taking psychotropic drugs ( i.e. ,
91benzodiazepine or selective serotonin reuptake
92inhibitor ) . patients were also excluded if they
93had other neurological disorders , psychiatric
94disorders other than affective disorders ( such as
95anxiety ) , or if they reported a score greater
96than six on the depression subscale of the
97hospital anxiety and depression scale ( hads ) .
98thus , all participants who scored within a
99depressed ( hads - d > 6 ) range were excluded
100from this study , in attempt to examine a refined
101sample of pd patients with and without anxiety in
102order to determine the independent effect of
103anxiety on cognition . this research was approved
104by the human research ethics committee of the
105university of sydney , and written informed
106consent was obtained from all participants . self
107- reported hads was used to assess anxiety in pd
108and has been previously shown to be a useful
109measure of clinical anxiety in pd . a cut - off
110score of > 8 on the anxiety subscale of the hads (
111hads - a ) was used to identify pd cases with
112anxiety ( pda+ ) , while a cut - off score of < 6
113on the hads - a was used to identify pd cases
114without anxiety ( pda ) . this criterion was more
115stringent than usual ( > 7 cut - off score ) , in
116effort to create distinct patient groups . the
117neurological evaluation rated participants
118according to hoehn and yahr ( h&y ) stages and
119assessed their motor symptoms using part iii of
120the revised mds task force unified parkinson 's
121disease rating scale ( updrs ) . in a similar way
122this was determined by calculating a total left
123and right score from rigidity items 3035 ,
124voluntary movement items 3643 , and tremor items
1255057 from the mds - updrs part iii ( see table 1 )
126. processing speed was assessed using the trail
127making test , part a ( tmt - a , z - score ) .
128attentional set - shifting was measured using the
129trail making test , part b ( tmt - b , z - score )
130. working memory was assessed using the digit span
131forward and backward subtest of the wechsler
132memory scale - iii ( raw scores ) . language was
133assessed with semantic and phonemic verbal fluency
134via the controlled oral word associated test (
135cowat animals and letters , z - score ) . the
136ability to retain learned verbal memory was
137assessed using the logical memory subtest from the
138wechsler memory scale - iii ( lm - i z - score ,
139lm - ii z - score , % lm retention z - score ) .
140the mini - mental state examination ( mmse )
141demographic , clinical , and neuropsychological
142variables were compared between the two groups
143with the independent t - test or mann whitney u
144test , depending on whether the variable met
145parametric assumptions . chi - square tests were
146used to examine gender and symptom laterality
147differences between groups . all analyses employed
148an alpha level of p < 0.05 and were two - tailed .
149spearman correlations were performed separately in
150each group to examine associations between anxiety
151and/or depression ratings and cognitive functions
152. as expected , the pda+ group reported
153significant greater levels of anxiety on the hads
154- a ( u = 0 , p < 0.001 ) and higher total score
155on the hads ( u = 1 , p < 0.001 ) compared to the
156pda group ( table 1 ) . groups were matched in age
157( t(48 ) = 1.31 , p = 0.20 ) , disease duration (
158u = 259 , p = 0.66 ) , updrs - iii score ( u =
159250.5 , p = 0.65 ) , h&y ( u = 245 , p = 0.43 ) ,
160ledd ( u = 159.5 , p = 0.80 ) , and depression (
161hads - d ) ( u = 190.5 , p = 0.06 ) . additionally
162, all groups were matched in the distribution of
163gender ( = 0.098 , p = 0.75 ) and side - affected
164( = 0.765 , p = 0.38 ) . there were no group
165differences for tmt - a performance ( u = 256 , p
166= 0.62 ) ( table 2 ) ; however , the pda+ group
167had worse performance on the trail making test
168part b ( t(46 ) = 2.03 , p = 0.048 ) compared to
169the pda group ( figure 1 ) . the pda+ group also
170demonstrated significantly worse performance on
171the digit span forward subtest ( t(48 ) = 2.22 , p
172= 0.031 ) and backward subtest ( u = 190.5 , p =
1730.016 ) compared to the pda group ( figures 2(a )
174and 2(b ) ) . neither semantic verbal fluency (
175t(47 ) = 0.70 , p = 0.49 ) nor phonemic verbal
176fluency ( t(47 ) = 0.39 , p = 0.70 ) differed
177between groups . logical memory i immediate recall
178test ( u = 176 , p = 0.059 ) showed a trend that
179the pda+ group had worse new verbal learning and
180immediate recall abilities than the pda group .
181however , logical memory ii test performance ( u =
182219 , p = 0.204 ) and logical memory % retention (
183u = 242.5 , p = 0.434 ) did not differ between
184groups . there were also no differences between
185groups in global cognition ( mmse ) ( u = 222.5 ,
186p = 0.23 ) . participants were split into lpd and
187rpd , and then further group differences were
188examined between pda+ and pda. importantly , the
189groups remained matched in age , disease duration
190, updrs - iii , dde , h&y stage , and depression
191but remained significantly different on self -
192reported anxiety . lpda+ demonstrated worse
193performance on the digit span forward test ( t(19
194) = 2.29 , p = 0.033 ) compared to lpda , whereas
195rpda+ demonstrated worse performance on the digit
196span backward test ( u = 36.5 , p = 0.006 ) , lm -
197i immediate recall ( u = 37.5 , p = 0.008 ) , and
198lm - ii ( u = 45.0 , p = 0.021 ) but not lm %
199retention ( u = 75.5 , p = 0.39 ) compared to
200rpda. this study is the first to directly compare
201cognition between pd patients with and without
202anxiety . the findings confirmed our hypothesis
203that anxiety negatively influences attentional set
204- shifting and working memory in pd . more
205specifically , we found that pd patients with
206anxiety were more impaired on the trail making
207test part b which assessed attentional set -
208shifting , on both digit span tests which assessed
209working memory and attention , and to a lesser
210extent on the logical memory test which assessed
211memory and new verbal learning compared to pd
212patients without anxiety . taken together , these
213findings suggest that anxiety in pd may reduce
214processing capacity and impair processing
215efficiency , especially in the central executive
216and attentional systems of working memory in a
217similar way as seen in young healthy adults [ 26 ,
21827 ] . although the neurobiology of anxiety in pd
219remains unknown , many researchers have postulated
220that anxiety disorders are related to
221neurochemical changes that occur during the early
222, premotor stages of pd - related degeneration [
22337 , 38 ] such as nigrostriatal dopamine depletion
224, as well as cell loss within serotonergic and
225noradrenergic brainstem nuclei ( i.e. , raphe
226nuclei and locus coeruleus , resp . , which
227provide massive inputs to corticolimbic regions )
228. over time , chronic dysregulation of
229adrenocortical and catecholamine functions can
230lead to hippocampal damage as well as
231dysfunctional prefrontal neural circuitries [ 39 ,
23240 ] , which play a key role in memory and
233attention . recent functional neuroimaging work
234has suggested that enhanced hippocampal activation
235during executive functioning and working memory
236tasks may represent compensatory processes for
237impaired frontostriatal functions in pd patients
238compared to controls . therefore , chronic stress
239from anxiety , for example , may disrupt
240compensatory processes in pd patients and explain
241the cognitive impairments specifically in working
242memory and attention seen in pd patients with
243anxiety . it has also been suggested that
244hyperactivation within the putamen may reflect a
245compensatory striatal mechanism to maintain normal
246working memory performance in pd patients ;
247however , losing this compensatory activation has
248been shown to contribute to poor working memory
249performance . anxiety in mild pd has been linked
250to reduced putamen dopamine uptake which becomes
251more extensive as the disease progresses . this
252further supports the notion that anxiety may
253disrupt compensatory striatal mechanisms as well ,
254providing another possible explanation for the
255cognitive impairments observed in pd patients with
256anxiety in this study . noradrenergic and
257serotonergic systems should also be considered
258when trying to explain the mechanisms by which
259anxiety may influence cognition in pd . although
260these neurotransmitter systems are relatively
261understudied in pd cognition , treating the
262noradrenergic and serotonergic systems has shown
263beneficial effects on cognition in pd . selective
264serotonin reuptake inhibitor , citalopram , was
265shown to improve response inhibition deficits in
266pd , while noradrenaline reuptake blocker ,
267atomoxetine , has been recently reported to have
268promising effects on cognition in pd [ 45 , 46 ] .
269overall , very few neuroimaging studies have been
270conducted in pd in order to understand the neural
271correlates of pd anxiety and its underlying neural
272pathology . future research should focus on
273relating anatomical changes and neurochemical
274changes to neural activation in order to gain a
275clearer understanding on how these pathologies
276affect anxiety in pd . to further understand how
277anxiety and cognitive dysfunction are related ,
278future research should focus on using advanced
279structural and function imaging techniques to
280explain both cognitive and neural breakdowns that
281are associated with anxiety in pd patients .
282research has indicated that those with amnestic
283mild cognitive impairment who have more
284neuropsychiatric symptoms have a greater risk of
285developing dementia compared to those with fewer
286neuropsychiatric symptoms . future studies should
287also examine whether treating neuropsychiatric
288symptoms might impact the progression of cognitive
289decline and improve cognitive impairments in pd
290patients . previous studies have used pd symptom
291laterality as a window to infer asymmetrical
292dysfunction of neural circuits . for example , lpd
293patients have greater inferred right hemisphere
294pathology , whereas rpd patients have greater
295inferred left hemisphere pathology . thus ,
296cognitive domains predominantly subserved by the
297left hemisphere ( e.g. , verbally mediated tasks
298of executive function and verbal memory ) might be
299hypothesized to be more affected in rpd than lpd ;
300however , this remains controversial . it has also
301been suggested that since anxiety is a common
302feature of left hemisphere involvement [ 48 , 49 ]
303, cognitive domains subserved by the left
304hemisphere may also be more strongly related to
305anxiety . results from this study showed selective
306verbal memory deficits in rpd patients with
307anxiety compared to rpd without anxiety , whereas
308lpd patients with anxiety had greater attentional
309/ working memory deficits compared to lpd without
310anxiety . although these results align with
311previous research , interpretations of these
312findings should be made with caution due to the
313small sample size in the lpd comparison
314specifically . recent work has suggested that the
315hads questionnaire may underestimate the burden of
316anxiety related symptomology and therefore be a
317less sensitive measure of anxiety in pd [ 30 , 50
318] . in addition , our small sample size also
319limited the statistical power for detecting
320significant findings . based on these limitations
321, our findings are likely conservative and
322underrepresent the true impact anxiety has on
323cognition in pd . additionally , the current study
324employed a very brief neuropsychological
325assessment including one or two tests for each
326cognitive domain . future studies are encouraged
327to collect a more complex and comprehensive
328battery from a larger sample of pd participants in
329order to better understand the role anxiety plays
330on cognition in pd . another limitation of this
331study was the absence of diagnostic interviews to
332characterize participants ' psychiatric symptoms
333and specify the type of anxiety disorders included
334in this study . future studies should perform
335diagnostic interviews with participants ( e.g. ,
336using dsm - v criteria ) rather than relying on
337self - reported measures to group participants ,
338in order to better understand whether the type of
339anxiety disorder ( e.g. , social anxiety , phobias
340, panic disorders , and generalized anxiety )
341influences cognitive performance differently in pd
342. one advantage the hads questionnaire provided
343over other anxiety scales was that it assessed
344both anxiety and depression simultaneously and
345allowed us to control for coexisting depression .
346although there was a trend that the pda+ group
347self - reported higher levels of depression than
348the pda group , all participants included in the
349study scored < 6 on the depression subscale of the
350hads . controlling for depression while assessing
351anxiety has been identified as a key shortcoming
352in the majority of recent work . considering many
353previous studies have investigated the influence
354of depression on cognition in pd without
355accounting for the presence of anxiety and the
356inconsistent findings reported to date , we
357recommend that future research should try to
358disentangle the influence of anxiety versus
359depression on cognitive impairments in pd .
360considering the growing number of clinical trials
361for treating depression , there are few if any for
362the treatment of anxiety in pd . anxiety is a key
363contributor to decreased quality of life in pd and
364greatly requires better treatment options .
365moreover , anxiety has been suggested to play a
366key role in freezing of gait ( fog ) , which is
367also related to attentional set - shifting [ 52 ,
36853 ] . future research should examine the link
369between anxiety , set - shifting , and fog , in
370order to determine whether treating anxiety might
371be a potential therapy for improving fog ."""
372
373import torch
374from transformers import AutoTokenizer, LongT5ForConditionalGeneration
375
376tokenizer = AutoTokenizer.from_pretrained("Stancld/longt5-tglobal-large-16384-pubmed-3k_steps")
377
378input_ids = tokenizer(LONG_ARTICLE, return_tensors="pt").input_ids.to("cuda")
379
380model = LongT5ForConditionalGeneration.from_pretrained("Stancld/longt5-tglobal-large-16384-pubmed-3k_steps", return_dict_in_generate=True).to("cuda")
381
382sequences = model.generate(input_ids).sequences
383
384summary = tokenizer.batch_decode(sequences)