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|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- pszemraj/scientific_lay_summarisation-plos-norm
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
widget:
|
8 |
+
- text: >-
|
9 |
+
large earthquakes along a given fault segment do not occur at random
|
10 |
+
intervals because it takes time to accumulate the strain energy for the
|
11 |
+
rupture. The rates at which tectonic plates move and accumulate strain at
|
12 |
+
their boundaries are approximately uniform. Therefore, in first
|
13 |
+
approximation, one may expect that large ruptures of the same fault
|
14 |
+
segment will occur at approximately constant time intervals. If subsequent
|
15 |
+
main shocks have different amounts of slip across the fault, then the
|
16 |
+
recurrence time may vary, and the basic idea of periodic mainshocks must
|
17 |
+
be modified. For great plate boundary ruptures the length and slip often
|
18 |
+
vary by a factor of 2. Along the southern segment of the San Andreas fault
|
19 |
+
the recurrence interval is 145 years with variations of several decades.
|
20 |
+
The smaller the standard deviation of the average recurrence interval, the
|
21 |
+
more specific could be the long term prediction of a future mainshock.
|
22 |
+
example_title: earthquakes
|
23 |
+
- text: ' A typical feed-forward neural field algorithm. Spatiotemporal coordinates are fed into a neural network that predicts values in the reconstructed domain. Then, this domain is mapped to the sensor domain where sensor measurements are available as supervision. Class and Section Problems Addressed Generalization (Section 2) Inverse problems, ill-posed problems, editability; symmetries. Hybrid Representations (Section 3) Computation & memory efficiency, representation capacity, editability: Forward Maps (Section 4) Inverse problems Network Architecture (Section 5) Spectral bias, integration & derivatives. Manipulating Neural Fields (Section 6) Edit ability, constraints, regularization. Table 2: The five classes of techniques in the neural field toolbox each addresses problems that arise in learning, inference, and control. (Section 3). We can supervise reconstruction via differentiable forward maps that transform Or project our domain (e.g, 3D reconstruction via 2D images; Section 4) With appropriate network architecture choices, we can overcome neural network spectral biases (blurriness) and efficiently compute derivatives and integrals (Section 5). Finally, we can manipulate neural fields to add constraints and regularizations, and to achieve editable representations (Section 6). Collectively, these classes constitute a ''toolbox'' of techniques to help solve problems with neural fields There are three components in a conditional neural field: (1) An encoder or inference function € that outputs the conditioning latent variable 2 given an observation 0 E(0) =2. 2 is typically a low-dimensional vector, and is often referred to aS a latent code Or feature code_ (2) A mapping function 4 between Z and neural field parameters O: Y(z) = O; (3) The neural field itself $. The encoder € finds the most probable z given the observations O: argmaxz P(2/0). The decoder maximizes the inverse conditional probability to find the most probable 0 given Z: arg- max P(Olz). We discuss different encoding schemes with different optimality guarantees (Section 2.1.1), both global and local conditioning (Section 2.1.2), and different mapping functions Y (Section 2.1.3) 2. Generalization Suppose we wish to estimate a plausible 3D surface shape given a partial or noisy point cloud. We need a suitable prior over the sur- face in its reconstruction domain to generalize to the partial observations. A neural network expresses a prior via the function space of its architecture and parameters 0, and generalization is influenced by the inductive bias of this function space (Section 5).'
|
24 |
+
example_title: scientific paper
|
25 |
+
- text: >-
|
26 |
+
Is a else or outside the cob and tree written being of early client rope
|
27 |
+
and you have is for good reasons. On to the ocean in Orange for time. By's
|
28 |
+
the aggregate we can bed it yet. Why this please pick up on a sort is do
|
29 |
+
and also M Getoi's nerocos and do rain become you to let so is his brother
|
30 |
+
is made in use and Mjulia's's the lay major is aging Masastup coin present
|
31 |
+
sea only of Oosii rooms set to you We do er do we easy this private
|
32 |
+
oliiishs lonthen might be okay. Good afternoon everybody. Welcome to this
|
33 |
+
lecture of Computational Statistics. As you can see, I'm not socially my
|
34 |
+
name is Michael Zelinger. I'm one of the task for this class and you might
|
35 |
+
have already seen me in the first lecture where I made a quick appearance.
|
36 |
+
I'm also going to give the tortillas in the last third of this course. So
|
37 |
+
to give you a little bit about me, I'm a old student here with better
|
38 |
+
Bulman and my research centres on casual inference applied to biomedical
|
39 |
+
disasters, so that could be genomics or that could be hospital data. If
|
40 |
+
any of you is interested in writing a bachelor thesis, a semester paper
|
41 |
+
may be mastathesis about this topic feel for reach out to me. you have my
|
42 |
+
name on models and my email address you can find in the directory I'd Be
|
43 |
+
very happy to talk about it. you do not need to be sure about it, we can
|
44 |
+
just have a chat. So with that said, let's get on with the lecture.
|
45 |
+
There's an exciting topic today I'm going to start by sharing some slides
|
46 |
+
with you and later on during the lecture we'll move to the paper. So bear
|
47 |
+
with me for a few seconds. Well, the projector is starting up. Okay, so
|
48 |
+
let's get started. Today's topic is a very important one. It's about a
|
49 |
+
technique which really forms one of the fundamentals of data science,
|
50 |
+
machine learning, and any sort of modern statistics. It's called cross
|
51 |
+
validation. I know you really want to understand this topic I Want you to
|
52 |
+
understand this and frankly, nobody's gonna leave Professor Mineshousen's
|
53 |
+
class without understanding cross validation. So to set the stage for
|
54 |
+
this, I Want to introduce you to the validation problem in computational
|
55 |
+
statistics. So the problem is the following: You trained a model on
|
56 |
+
available data. You fitted your model, but you know the training data you
|
57 |
+
got could always have been different and some data from the environment.
|
58 |
+
Maybe it's a random process. You do not really know what it is, but you
|
59 |
+
know that somebody else who gets a different batch of data from the same
|
60 |
+
environment they would get slightly different training data and you do not
|
61 |
+
care that your method performs as well. On this training data. you want to
|
62 |
+
to perform well on other data that you have not seen other data from the
|
63 |
+
same environment. So in other words, the validation problem is you want to
|
64 |
+
quantify the performance of your model on data that you have not seen. So
|
65 |
+
how is this even possible? How could you possibly measure the performance
|
66 |
+
on data that you do not know The solution to? This is the following
|
67 |
+
realization is that given that you have a bunch of data, you were in
|
68 |
+
charge. You get to control how much that your model sees. It works in the
|
69 |
+
following way: You can hide data firms model. Let's say you have a
|
70 |
+
training data set which is a bunch of doubtless so X eyes are the features
|
71 |
+
those are typically hide and national vector. It's got more than one
|
72 |
+
dimension for sure. And the why why eyes. Those are the labels for
|
73 |
+
supervised learning. As you've seen before, it's the same set up as we
|
74 |
+
have in regression. And so you have this training data and now you choose
|
75 |
+
that you only use some of those data to fit your model. You're not going
|
76 |
+
to use everything, you only use some of it the other part you hide from
|
77 |
+
your model. And then you can use this hidden data to do validation from
|
78 |
+
the point of you of your model. This hidden data is complete by unseen. In
|
79 |
+
other words, we solve our problem of validation.
|
80 |
+
example_title: transcribed audio - lecture
|
81 |
+
- text: >-
|
82 |
+
Transformer-based models have shown to be very useful for many NLP tasks.
|
83 |
+
However, a major limitation of transformers-based models is its O(n^2)O(n
|
84 |
+
2) time & memory complexity (where nn is sequence length). Hence, it's
|
85 |
+
computationally very expensive to apply transformer-based models on long
|
86 |
+
sequences n > 512n>512. Several recent papers, e.g. Longformer, Performer,
|
87 |
+
Reformer, Clustered attention try to remedy this problem by approximating
|
88 |
+
the full attention matrix. You can checkout 🤗's recent blog post in case
|
89 |
+
you are unfamiliar with these models.
|
90 |
+
|
91 |
+
BigBird (introduced in paper) is one of such recent models to address this
|
92 |
+
issue. BigBird relies on block sparse attention instead of normal
|
93 |
+
attention (i.e. BERT's attention) and can handle sequences up to a length
|
94 |
+
of 4096 at a much lower computational cost compared to BERT. It has
|
95 |
+
achieved SOTA on various tasks involving very long sequences such as long
|
96 |
+
documents summarization, question-answering with long contexts.
|
97 |
+
|
98 |
+
BigBird RoBERTa-like model is now available in 🤗Transformers. The goal of
|
99 |
+
this post is to give the reader an in-depth understanding of big bird
|
100 |
+
implementation & ease one's life in using BigBird with 🤗Transformers.
|
101 |
+
But, before going into more depth, it is important to remember that the
|
102 |
+
BigBird's attention is an approximation of BERT's full attention and
|
103 |
+
therefore does not strive to be better than BERT's full attention, but
|
104 |
+
rather to be more efficient. It simply allows to apply transformer-based
|
105 |
+
models to much longer sequences since BERT's quadratic memory requirement
|
106 |
+
quickly becomes unbearable. Simply put, if we would have ∞ compute & ∞
|
107 |
+
time, BERT's attention would be preferred over block sparse attention
|
108 |
+
(which we are going to discuss in this post).
|
109 |
+
|
110 |
+
If you wonder why we need more compute when working with longer sequences,
|
111 |
+
this blog post is just right for you!
|
112 |
+
|
113 |
+
Some of the main questions one might have when working with standard
|
114 |
+
BERT-like attention include:
|
115 |
+
|
116 |
+
Do all tokens really have to attend to all other tokens? Why not compute
|
117 |
+
attention only over important tokens? How to decide what tokens are
|
118 |
+
important? How to attend to just a few tokens in a very efficient way? In
|
119 |
+
this blog post, we will try to answer those questions.
|
120 |
+
|
121 |
+
What tokens should be attended to? We will give a practical example of how
|
122 |
+
attention works by considering the sentence 'BigBird is now available in
|
123 |
+
HuggingFace for extractive question answering'. In BERT-like attention,
|
124 |
+
every word would simply attend to all other tokens.
|
125 |
+
|
126 |
+
Let's think about a sensible choice of key tokens that a queried token
|
127 |
+
actually only should attend to by writing some pseudo-code. Will will
|
128 |
+
assume that the token available is queried and build a sensible list of
|
129 |
+
key tokens to attend to.
|
130 |
+
|
131 |
+
>>> # let's consider following sentence as an example >>> example =
|
132 |
+
['BigBird', 'is', 'now', 'available', 'in', 'HuggingFace', 'for',
|
133 |
+
'extractive', 'question', 'answering']
|
134 |
+
|
135 |
+
>>> # further let's assume, we're trying to understand the representation
|
136 |
+
of 'available' i.e. >>> query_token = 'available' >>> # We will initialize
|
137 |
+
an empty `set` and fill up the tokens of our interest as we proceed in
|
138 |
+
this section. >>> key_tokens = [] # => currently 'available' token doesn't
|
139 |
+
have anything to attend Nearby tokens should be important because, in a
|
140 |
+
sentence (sequence of words), the current word is highly dependent on
|
141 |
+
neighboring past & future tokens. This intuition is the idea behind the
|
142 |
+
concept of sliding attention.
|
143 |
+
example_title: bigbird blog intro
|
144 |
+
- text: >-
|
145 |
+
To be fair, you have to have a very high IQ to understand Rick and Morty.
|
146 |
+
The humour is extremely subtle, and without a solid grasp of theoretical
|
147 |
+
physics most of the jokes will go over a typical viewer's head. There's
|
148 |
+
also Rick's nihilistic outlook, which is deftly woven into his
|
149 |
+
characterisation- his personal philosophy draws heavily from Narodnaya
|
150 |
+
Volya literature, for instance. The fans understand this stuff; they have
|
151 |
+
the intellectual capacity to truly appreciate the depths of these jokes,
|
152 |
+
to realise that they're not just funny- they say something deep about
|
153 |
+
LIFE. As a consequence people who dislike Rick & Morty truly ARE idiots-
|
154 |
+
of course they wouldn't appreciate, for instance, the humour in Rick's
|
155 |
+
existential catchphrase 'Wubba Lubba Dub Dub,' which itself is a cryptic
|
156 |
+
reference to Turgenev's Russian epic Fathers and Sons. I'm smirking right
|
157 |
+
now just imagining one of those addlepated simpletons scratching their
|
158 |
+
heads in confusion as Dan Harmon's genius wit unfolds itself on their
|
159 |
+
television screens. What fools.. how I pity them. 😂
|
160 |
+
|
161 |
+
And yes, by the way, i DO have a Rick & Morty tattoo. And no, you cannot
|
162 |
+
see it. It's for the ladies' eyes only- and even then they have to
|
163 |
+
demonstrate that they're within 5 IQ points of my own (preferably lower)
|
164 |
+
beforehand. Nothin personnel kid 😎
|
165 |
+
example_title: Richard & Mortimer
|
166 |
+
- text: >-
|
167 |
+
The tower is 324 metres (1,063 ft) tall, about the same height as an
|
168 |
+
81-storey building, and the tallest structure in Paris. Its base is
|
169 |
+
square, measuring 125 metres (410 ft) on each side. During its
|
170 |
+
construction, the Eiffel Tower surpassed the Washington Monument to become
|
171 |
+
the tallest man-made structure in the world, a title it held for 41 years
|
172 |
+
until the Chrysler Building in New York City was finished in 1930. It was
|
173 |
+
the first structure to reach a height of 300 metres. Due to the addition
|
174 |
+
of a broadcasting aerial at the top of the tower in 1957, it is now taller
|
175 |
+
than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters,
|
176 |
+
the Eiffel Tower is the second tallest free-standing structure in France
|
177 |
+
after the Millau Viaduct.
|
178 |
+
example_title: eiffel
|
179 |
+
parameters:
|
180 |
+
max_length: 64
|
181 |
+
min_length: 8
|
182 |
+
no_repeat_ngram_size: 3
|
183 |
+
early_stopping: true
|
184 |
+
repetition_penalty: 3.5
|
185 |
+
encoder_no_repeat_ngram_size: 4
|
186 |
+
length_penalty: 0.4
|
187 |
+
num_beams: 4
|
188 |
+
pipeline_tag: summarization
|
189 |
+
tags:
|
190 |
+
- lay summaries
|
191 |
+
- paper summaries
|
192 |
+
- biology
|
193 |
+
- medical
|
194 |
+
library_name: transformers
|
195 |
---
|
196 |
+
|
197 |
+
|
198 |
+
# long-t5-tglobal-base-sci-simplify-elife
|
199 |
+
|
200 |
+
This model is a fine-tuned version of [google/long-t5-tglobal-base](https://huggingface.co/google/long-t5-tglobal-base) on the None dataset.
|
201 |
+
It achieves the following results on the evaluation set:
|
202 |
+
- Loss: 1.9990
|
203 |
+
- Rouge1: 38.5587
|
204 |
+
- Rouge2: 9.7336
|
205 |
+
- Rougel: 21.1974
|
206 |
+
- Rougelsum: 35.9333
|
207 |
+
- Gen Len: 392.7095
|
208 |
+
|
209 |
+
## Model description
|
210 |
+
|
211 |
+
More information needed
|
212 |
+
|
213 |
+
## Intended uses & limitations
|
214 |
+
|
215 |
+
More information needed
|
216 |
+
|
217 |
+
## Training and evaluation data
|
218 |
+
|
219 |
+
More information needed
|
220 |
+
|
221 |
+
## Training procedure
|
222 |
+
|
223 |
+
### Training hyperparameters
|
224 |
+
|
225 |
+
The following hyperparameters were used during training:
|
226 |
+
- learning_rate: 0.0004
|
227 |
+
- train_batch_size: 4
|
228 |
+
- eval_batch_size: 2
|
229 |
+
- seed: 42
|
230 |
+
- distributed_type: multi-GPU
|
231 |
+
- gradient_accumulation_steps: 16
|
232 |
+
- total_train_batch_size: 64
|
233 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
234 |
+
- lr_scheduler_type: cosine
|
235 |
+
- lr_scheduler_warmup_ratio: 0.01
|
236 |
+
- num_epochs: 3.0
|
237 |
+
|
238 |
+
### Training results
|
239 |
+
|
240 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
241 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|:------:|:-------:|:---------:|:--------:|
|
242 |
+
| 2.2995 | 1.47 | 100 | 2.0175 | 35.2501 | 8.2121 | 20.4587 | 32.4494 | 439.7552 |
|
243 |
+
| 2.2171 | 2.94 | 200 | 1.9990 | 38.5587 | 9.7336 | 21.1974 | 35.9333 | 392.7095 |
|
244 |
+
|