<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Savas Yıldırım on Medium]]></title>
        <description><![CDATA[Stories by Savas Yıldırım on Medium]]></description>
        <link>https://medium.com/@savasy-22028?source=rss-ea930aa36b95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZDd1PRY4W1JlRNds79r6bw.png</url>
            <title>Stories by Savas Yıldırım on Medium</title>
            <link>https://medium.com/@savasy-22028?source=rss-ea930aa36b95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:37:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@savasy-22028/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Prompting in NLP: Prompt-based zero-shot learning]]></title>
            <link>https://savasy-22028.medium.com/prompting-in-nlp-prompt-based-zero-shot-learning-3f34bfdb2b72?source=rss-ea930aa36b95------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f34bfdb2b72</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[nlp-deep-learning]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[bert]]></category>
            <category><![CDATA[zero-shot-learning]]></category>
            <dc:creator><![CDATA[Savas Yıldırım]]></dc:creator>
            <pubDate>Thu, 24 Mar 2022 12:10:56 GMT</pubDate>
            <atom:updated>2022-03-24T12:10:56.242Z</atom:updated>
            <content:encoded><![CDATA[<p>Prompt-based learning is getting a new paradigm in the NLP field due to its simplicity. GPTs and T5 are the strongest early examples of this prompting paradigm. The GPT-3 model achieved remarkable few-shot performance based on in-context learning by leveraging natural-language prompt and few task demonstrations.</p><p>T5 showed that we can recast any NLP problem as text-to-text and made a breakthrough (T5, T0, ExT5).</p><p>Likewise, the autoencoder models reformulate downstream tasks as MLM or any objective function of a pre-trained language model showed great effect recently. Reformulating is done by adding task-specific tokens to the input sequence for conditioning, which gives us the ability to solve many problems with input manipulations. For instance, to get the sentiment of the sentence “I liked the film” in zero-shot mode, we just do forward-pass “I like the film. <strong>It was [MASK]</strong>” to MLM. Most probably the model will return a positive word such as <em>great, good</em>. Theoretically, it sounds to be nice, but it might not be that simple.</p><p>With prompting, we do not have to hold any supervised learning process and any parameter update since we simply and directly rely on the objective function (such as MLM or CLM). During its forward pass, we have a chance to guide the model with interventions to the input rather than passing as it is. Changing input X a bit might make many downstream tasks surprisingly easier if those tasks could be naturally posed as a “fill-in-the-blank” problem as in MLM.</p><p>Adding extra tokens or prefix to the input [X;P]= X’ makes the model condition on during inference. We simply define it in three steps</p><p><strong>The original X-&gt; Prompt(X’) -&gt; Final X -&gt; y</strong></p><p>First, a proper template modifies the original X into a textual string prompt<strong> X’ </strong>including empty &lt;mask&gt; slot. Second, LM fills the slot (or generates text). Third, the words are mapped to original labels such as great -&gt; 1, bad-&gt; 0. It is a mapping function M : V → Y from the individual word (or token) in the vocabulary to task label space.</p><p>Here is a simple illustration of how prompting works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*wOGpaxAPKdAYENNtx2MTlw.jpeg" /><figcaption>Exploit LM with Prompt</figcaption></figure><p>We apply similar template-based solutions to a variety of NLP tasks exploiting the language model objective. Here are some template examples for prompting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*-6g8BKPG69sY2YopEZ99wQ.png" /><figcaption>Prompting type for different tasks</figcaption></figure><p>Another important idea to improve prompting performance is incorporating demonstrations as additional context. Large pre-trained language models such as GPT-3 have the good ability to do in-context learning, randomly sampling the examples, and concatenating them with the input X. The model learns downstream tasks simply by conditioning on prompt and input-output examples. Without being explicitly trained to do so, the language model learns from these examples during inference time without gradient updates. However, the number of demonstrations to be used is limited by the maximum input length that the model allowed.</p><p>Here is the demonstration illustration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*OiTRiWwbfpSCMdelq088Sg.jpeg" /></figure><p>Let&#39;s see somes code in the next part!</p><h3>Hands-on implementation for prompting</h3><p>You can access the entire codes that I dropped here in the following repo</p><p><a href="https://github.com/savasy/prompt-based-learning">GitHub - savasy/prompt-based-learning: This is a simple implementation of how to leverage a Language Model for a prompt-based learning model</a></p><p>First, we load the necessary vanilla library and bert model!</p><pre><strong>from</strong> transformers <strong>import</strong> AutoModelForMaskedLM , AutoTokenizer<br><strong>import</strong> torch<br>model_path<strong>=</strong>&quot;bert-base-uncased&quot;<br>tokenizer <strong>=</strong> AutoTokenizer<strong>.</strong>from_pretrained(model_path)</pre><p>Load Prompting class (please use the promping.py in the Github repo that I shared)!</p><pre><strong>from</strong> prompt <strong>import</strong> Prompting<br>prompting<strong>=</strong> Prompting(model<strong>=</strong>model_path)<br>prompt=&quot;Because it was [MASK].&quot;</pre><p>Let’s Pass a positive sentence</p><pre>text=&quot;I really like the film a lot.&quot;<br>prompting.prompt_pred(text+prompt)[:10]</pre><pre>Output:<br>(‘fantastic’, tensor(8.1031)), (‘funny’, tensor(8.0502)), (‘fun’, tensor(7.8139)), ...]</pre><p>Passing a negative sentence:</p><pre>text=&quot;I did not like the film.&quot;<br>prompting.prompt_pred(text+prompt)[:10]</pre><pre>Output:<br>[(&#39;bad&#39;, tensor(9.8677)),  (&#39;wrong&#39;, tensor(8.6400)),  (&#39;awful&#39;, tensor(8.5508)),...</pre><h3>Producing the results based on a list of neg/pos words</h3><p>Now we pass a list of neg/pos words rather than single neg/pos words (tokens).</p><pre>text=&quot;not worth watching&quot;<br>prompting.compute_tokens_prob(text+prompt, token_list1=[&quot;great&quot;,&quot;amazin&quot;,&quot;good&quot;], token_list2= [&quot;bad&quot;,&quot;awfull&quot;,&quot;terrible&quot;])</pre><pre>Output:<br>tensor([0.5319, 0.4681])</pre><h3><strong>Unbiasing the language model</strong></h3><p>Biased training inputs may produce biased language models. We know LM are biased models such that training data can be sensitive frequent words much more htne infrequent ones. It is very similar to the fact that LM may contain racist, sexist content and make such decisions as we may know. Since the token embeddings suffer from biases, the model tends to classify masked token [MASK] as “good” label more than expected.</p><p>Let us pass an empty template to the model to see that bias!</p><pre>prompting.compute_tokens_prob(&quot;it was &quot;+ prompting.tokenizer.mask_token +&quot;.&quot;, token_list1=[&quot;good&quot;], token_list2= [&quot;bad&quot;])</pre><pre>Output:<br>tensor([0.85, 0.15])</pre><p>As you see the model classified the empty template input as &quot;Good&quot; label (word) with 85 % probability. Therefore we set THRESHOLD to that value to get better results.</p><p>Here is what I got for IMDB sentiment analysis dataset in this setting using the Threshold method!</p><blockquote>bert-base-uncased 73.5</blockquote><blockquote>bert-large-uncased 77.25</blockquote><p>I got better results with the large model than the base ones as you see. Many papers suggest that large models are better especially using prompting!</p><h3>Name Entity Recognition in zero-shot setting</h3><p>We apply the following template to solve NER problem!</p><blockquote><em>&lt;Sentence.... John ... &gt; John is a type of [MASK]</em></blockquote><p>Here is the code to do so!</p><pre>prompting.prompt_pred(&quot;John went to Paris to visit the University. John is a type of [MASK].&quot;)[:5]</pre><pre>Output:</pre><pre>[(&#39;man&#39;, tensor(8.1382)),<br> (&#39;john&#39;, tensor(7.1325)),<br> (&#39;guy&#39;, tensor(6.9672)),<br> (&#39;writer&#39;, tensor(6.4336)),<br> (&#39;philosopher&#39;, tensor(6.3823))]</pre><p>John is a very common name and the model can know directly that it is a person without any context, and this may not be surprising. Let me use my own name <em>Savaş</em> since it is not used much in English texts, training data of the model.</p><pre>prompting.prompt_pred(“Savaş went to Paris to visit the university. Savaş is a type of [MASK].”)[:5]</pre><pre>[(‘philosopher’, tensor(7.6558)), (‘poet’, tensor(7.5621)), (‘saint’, tensor(7.0104)), (‘man’, tensor(6.8890)), (‘pigeon’, tensor(6.6780))]</pre><p>Vaow! Bert model says I am a philosopher. Thank you BERT, it is very kind of you!</p><p>Lets apply person-or-city binary classification. Check if savas is a city or person. But before we run an empty template first to see bias!</p><pre>prompting.compute_tokens_prob(“It is a type of [MASK].”, token_list1=[“person”,”man”], token_list2=[“location”,”city”,”place”])</pre><pre>Output: tensor([0.7603, 0.2397])</pre><p>Well. Our threshold is 76.03 probability.</p><pre>prompting.compute_tokens_prob(“Savaş went to Paris to visit the parliament. Savaş is a type of [MASK].”,  token_list1=[“person”,”man”], token_list2=[“location”,”city”,”place”])</pre><pre>Output: tensor([9.9987e-01, 1.2744e-04])</pre><p>99.98 % perfect. Savaş is not a city for sure! Let&#39;s check Paris. But Paris is very common as a type of City. Let&#39;s change it as Laris</p><pre>prompting.compute_tokens_prob(“Savaş went to Laris to visit the parliament. Laris is a type of [MASK].”,  token_list1=[“person”,”man”], token_list2=[“location”,”city”,”place”])</pre><pre>Output: tensor([0.3263, 0.6737])</pre><p>Wonderfull!. Less than 76%. So Laris is city then! Another run to make it harder.</p><pre>prompting.compute_tokens_prob(“Savas went to XYZ to visit friends. XYZ is a type of [MASK].”,  token_list1=[“person”,”man”], token_list2=[“location”,”city”,”place”])<br>Output: tensor([0.5516, 0.4484])</pre><p>Good. Since it is lower than the threshold we classy it as location (LOC). Indeed, person-city binary classification make the problem simpler than normal NER setting. Therfore, we need to define the problem as four class classification problem since some token can not be classified ny of pre-defined entity such as , be, the, like, to, atc. We can simply extend the model based on Person, LOC, ORG, Other class. I leave it as a home work for you :)</p><h3>Topic Classification</h3><p>We simply add prompt text to the end of the sentence as follows.</p><pre>prompting.prompt_pred(“Savas went to Paris to study computer science. he started to learn basic staff like programming, algorithm, operating systemvisit the parliament. The topic is a type of [MASK].”)[:10]</pre><pre>Output: [(&#39;mathematics&#39;, tensor(8.8438)),  (&#39;computer&#39;, tensor(7.9713)),  (&#39;programming&#39;, tensor(7.7146)),  (&#39;computing&#39;, tensor(7.6635)),  (&#39;math&#39;, tensor(7.5143)),  (&#39;algebra&#39;, tensor(7.1716)),  (&#39;computers&#39;, tensor(7.0013)),  (&#39;game&#39;, tensor(6.9694)),  (&#39;physics&#39;, tensor(6.9225)),  (&#39;computation&#39;, tensor(6.8152))]</pre><p>We simply cast it as multi-label classification problem. Another homework :)</p><h3>Sentence Embeddings</h3><p>It will be surprisingly easy to take the sentence embedding using prompting. Here is the code</p><pre>text=”the film is ok. it means [MASK].”<br>indexed_tokens= tokenizer(text, return_tensors=”pt”).input_ids<br>tokenized_text= tokenizer.convert_ids_to_tokens (indexed_tokens[0])<br>mask_pos= (indexed_tokens[0]== tokenizer.mask_token_id).nonzero().item()<br>text_emb=fe(text)<br>mask_emb=text_emb[0][mask_pos]<br>len(mask_emb)</pre><p>The last <strong>mask_emd</strong> is our sentence embedding of the “<strong><em>text</em></strong>”. Actually, Bert model produces CLS and other position embeddings. The classic way to get the sentence embedding using these token embeddings, CLS or average pooling. But applying prompting can get better result. If you know how to do so, please read the paper<a href="https://arxiv.org/abs/2201.04337?context=cs.CL"> “PromptBERT: Improving BERT Sentence Embeddings with Prompts”</a></p><h3><strong>Advanced Prompt-based Methods</strong></h3><p>We have seen that prompt-based zero-shot learning can achieve great results in a fully unsupervised setting. However, this approach does not outperform its supervised counterpart. However, it is possible to fine-tune prompt-based model with a few examples. Since fully supervised approach is highly dependent on large-scale labeled data points, and it could be expensive to obtain and prepare for training, following a method in between these two approaches is more feasible, called <strong>prompt-based fine-tuning.</strong> The results can be improved by incorporating a few examples. We can either fine-tune LM by examples or can use these examples for demonstration.</p><p>In the literature, there are many successful applications achieving SOTA results using prompting in a few-shot fashion even with a far smaller LM than GPTs. (Schick and Schütze, 2020a,b), applied semi-supervised training procedure, namely PET, with a smaller LM got more successful results than GPTs. PET utilized several MASK patterns to get many models fine-tuned on small training examples, even with 10 examples. The ensemble of these models is then used to label an unlabeled dataset with soft labels. This cycle is iteratively repeated several times with increasing training examples, namely iPET. This study showed great performance than its fully supervised counterpart. They also propose some techniques to automatically explore ways of identifying label words.</p><p>Another work is LM-BFF: Better few-shot fine-tuning of language models by (Gao et al., 2021, Making Pre-trained Language Models Better Few-shot Learners). They studied few-shot learning within smaller language models, which is computationally efficient fine-tuning. LM-BFF has four important contributions to prompt-based fine-tuning. First, they explore the way of identifying label words to outperform manual prompts. Second, they also showed how to solve and exploit the regression problem with the prompting method. The classification task is formulated as a regression problem in the range [0, 1], where holding “bad” -&gt;0 and “good” -&gt; 1 mapping. Third, they addressed the problem of automatically finding suitable templates. To find the template,T5 is utilized to fill in missing spans.</p><p>The last contribution is about the demonstration. GPT-3’s in-context learning approach naively concatenates the input with up to many demonstrative examples that are randomly drawn from the training set. But the number of examples to be concatenated is limited by the maximum input length of the model, typically 512. Therefore, instead of adding random examples, it is possible to add higher-quality demonstrations. The LM-BFF chose semantically close sentences to be added to the main sentence based on sentence embedding methods such as S-BERT.</p><p>The language models that we mentioned so far have been classified as <strong>discrete prompts</strong> where natural language prefixes are added to the original sentence. But we know that models can produce numeric representation in the end . That is, models can effectively work with a learnable soft prompt to perform many downstream tasks. Rather than additional human-understandable word prompts, numeric prompts may be better since The learnable<strong> soft prompts </strong>can be trained more easily instead of discrete prompt search<em>. </em>Unlike the discrete text prompts, soft prompts are learned through backpropagation and can be tuned.</p><p>The study<strong> The Power of Scale for Parameter-Efficient Prompt Tuning</strong> , explored “prompt tuning”, and built an effective mechanism for learning “soft prompts”. Such an approach uses frozen language models and fine-tunes tunable soft prompts which yield a parameter efficient tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*cEmgwxfL1O8rIhKbzCraHA.png" /></figure><p>Unlike other approaches, tuned prompts would only require around ~100K parameters per task rather than 1B parameters, which makes such soft-prompt model parameter efficient!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f34bfdb2b72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doğal Dil İşleme (NLP) çözümleri neden bu kadar başarılı hale geldi ?]]></title>
            <link>https://savasy-22028.medium.com/do%C4%9Fal-dil-i%CC%87%C5%9Fleme-nlp-%C3%A7%C3%B6z%C3%BCmleri-neden-bu-kadar-ba%C5%9Far%C4%B1l%C4%B1-hale-geldi-28bb6158213c?source=rss-ea930aa36b95------2</link>
            <guid isPermaLink="false">https://medium.com/p/28bb6158213c</guid>
            <category><![CDATA[natural-language-process]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[doğal-dil-işleme]]></category>
            <category><![CDATA[rnn]]></category>
            <dc:creator><![CDATA[Savas Yıldırım]]></dc:creator>
            <pubDate>Mon, 01 Feb 2021 09:17:01 GMT</pubDate>
            <atom:updated>2021-02-01T09:17:01.779Z</atom:updated>
            <content:encoded><![CDATA[<h3>Doğal Dil İşleme (NLP) çözümleri neden bu kadar başarılı hale geldi ?</h3><p>Son 20 yılda yapay zekada (YZ), görüntü işlemede (Gİ) ve özellikle Doğal Dil İşleme (DDİ) çalışmalarında köklü değişiklikler görüldü. Bu süreçte farklı paradigmalar deneyimledik ve Transformer mimarisinin hakim olduğu yeni bir döneme girdik. Yıllar boyunca, n-gram dil modelleri, TF-IDF tabanlı bilgi erişim modelleri, one-hot kodlanmış belge-terim matrisi gibi geleneksel Doğal Dil İşleme (DDİ) yaklaşımlarını kullandık ve hala kullanmaktayız. Tüm bu yaklaşımlar, dizi işleme, dil üretimi, dil anlama ve benzeri birçok DDİ sorununun çözümüne katkıda bulunmuştur. Ancak seyreklik, boyutsallık, gizli (latent) kelime temsili, long-term bağımlılıkları takip edememe gibi sorunları çözmek için yetersiz kaldığı görülmüştür.</p><p>Bu geleneksel mimariler zamanla yerlerini derin öğrenme tabanlı modellere bırakmışlardır. Tekrarlayan Sinir Ağı (RNN), Evrişimli Sinir Ağı (CNN), İleri Beslemeli Sinir Ağı (FFNN) dil modelleri ve bunlardan türeyen çeşitli derin öğrenme yaklaşımlarından yararlandık. Bu derin öğrenme mimarileri sorunları bir dereceye kadar çözdüler ve tüm NLP problemlerinin performanslarını geleneksel ngram ve bag-of-words yaklaşımına kıyasla iyileştirdiler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*13tzbng9Romm4BLMtxWNRw.png" /></figure><p>FFNN tabanlı kelime kodlayıcı modelleri, kelime gömmeleri adı verilen kısa ve yoğun temsiller kullanarak boyutluluk problemini çözebildiler. İlk modeller, statik kelime gömmeleri üretmek için basit ve kolayca eğitilebilir bir FFNN kullandı. Word2vec, fastText gibi en popüler modeller, ya bağlam kullanarak hedef kelimeyi tahmin eden ya da kayan bir pencereye dayalı komşu kelimeleri tahmin eden denetimsiz metin verilerini denetimli bir veriye dönüştürdü (self-supervision). Bir diğer popüler model olan Glove, global kelime-kelime birliktelik istatistiklerine dayanmaktadır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*V2AKskdyEg8v-GMXxysqFw.png" /></figure><p>RNN, CNN, LSTM gibi tekrarlayan ve evrişimli mimariler, diziden diziye (sequence-sequence) problemlerde kodlayıcı ve kod çözücü olarak kullanılmaya başlandı. Bu erken modellerle ilgili temel sorun çok anlamlılıktır. Her kelimeye tek bir sabit temsil atandığı için kelimelerin çok anlamlılığı göz ardı edildi ve özellikle çok anlamlı kelimeler için ciddi bir problem oldu.</p><p>Daha sonraki çalışmalar, cümle düzeyindeki bilgileri kodlamayı başardı ve sonunda belirli bir sinir ağını kullanarak çok anlamlılık sorununu belirli bir ölçüde çözdü. LSTM’ye dayanan ELMo (Dil Modellerinden Gömme Üretme, Embeddings from Language Models) temsilleri, derinlemesine bağlamsallaştırılmış kelime temsillerini başarıyla oluşturdu ve anlam ile cümle kodlama problemini çözdü. ELMo temsilleri, her kelime gösteriminin tüm girdi cümlesinin bir işlevi olması açısından geleneksel kelime gömmelerinde farklılık göstererek daha başarılı oldu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*kipuchAMsZ02GeuPmBfNzA.png" /><figcaption>Source: <a href="https://medium.com/saarthi-ai/elmo-for-contextual-word-embedding-for-text-classification-24c9693b0045">https://medium.com/saarthi-ai/elmo-for-contextual-word-embedding-for-text-classification-24c9693b0045</a></figcaption></figure><p>Bu sırada özellikle diziden diziye problemlerde (attention mechanism) dikkat mekanizması önemli başarılar elde etti. Önceki yöntemler girdi dizisinin bütününden elde edilen temsili (context vector or thougth vector) ayıklamadan çıktı dizisine aktarırdı. Dikkat mekanizması ile girdi dizisinden belirli kelimeleri çıktı dizisindeki belirli kelimelere bağlayarak daha incelikli bir model kurabildi. Diyelim ki Türkçe-İngilizce çeviri probleminde uzun bir girdi cümlesinde Türkiye Cumhuriyeti kelime öbeği var. Bu kelime öbeği çıktı cümlesindeki Republic of Turkey kelime öbeği ile sıkı sıkıya bağlanır ve geri kalan kelimelerle daha zayıf bir bağ kurar. Böylelikle çeviri, soru cevaplama, metin özetleme gibi diziden diziye modellerde daha başarılı olur. Bu encode-decoder modelleri genellikle RNN tabanlı mimarilerle oluşturuldu ve başarılı oldu.</p><p>2017 yılında Transformer tabanlı encoder-decoder modeli daha ileri giderek dikkat mekanizmasındaki RNN yinelemelerini attı ve feed-forward tabanlı dikkat mekanizması oluştu. Bu yapıda sadece dikkat mekanizmaları kullanılmaya başlandı (All you need is attention). Bu modeller diğer modellerin zayıflıklarının üstesinden geldi ve yeni bir paradigma haline dönüştü. Bu paradigmaların mimarileri birbirinden farklı olsa da, çoğu kelimeyi veya cümleyi anlamak için çevreleyen bağlam bilgisini işlemeye dayanmaktadır. Geleneksel yöntemler, kelime sırasını göz ardı ederek kelime torbası tekniklerini kullanırken, RNN modeli, değişken uzunluklu dizileri kelime kelime işler. Transformer mimarisi ise kelime konumlarını da dikkate alarak her bir simge ve cümle düzeyinde bilgiyi kodlamak için tüm cümleyi bir kerede Feed-Forward mantığı ile işler. Aşağıdaki figürde de görüldüğü üzere herhangi bir Reccurency yoktur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IzQUuHtsaGh-ANjifsameA.png" /></figure><p>2018 yılında BERT isimli mimari Transformer mimarisinin sadece encoder kısmını kullanarak daha çok sınıflandırma problemlerine özgü bir encoder yapısı kurdu. Bu model pre-trained özelliği sayesinde transfer learning olgusunu DDİ alanına kazandırdı. Böylelikle önceden eğitilmiş (pre-trained) modeller başka çalışmalarda da biraz farklı eğitilerek kullanılabilir hale geldi. Görüntü işlemede 2013 yılında karşımıza çıkan bu özellik DDİ alanında 2018 yılında karşımıza çıktı.</p><p>Bu model özellikle encoder’a özgü aşağıdaki problemler çok iyi çözebildi.</p><ul><li>Duygu Tahmini</li><li>Döküman Sınıflama</li><li>Adlı-Varlık Tanıma</li><li>Paraphrase Cümle Tespiti</li><li>Soru cevaplama</li><li>Bilgi Çıkarımı</li><li>Metin Özetleme</li></ul><p>Bu problemlere ilişikin çok geniş bir çözüm modellerinin bulunduğu hugginface model deposunu inceleyebilirsiniz.</p><p><a href="https://huggingface.co/models">Models - Hugging Face</a></p><p>Referanslar</p><ul><li>Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics</li><li>Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A Robustly Optimized BERT Pretraining Approach. CoRR abs/1907.11692 (2019)</li><li>Tomas Mikolov, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. 2013. Efficient Estimation of Word Representations in Vector Space. CoRR abs/1301.3781 (2013).</li><li>Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. Glove: Global Vectors for Word Representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, Doha, Qatar, 1532ś1543.<a href="https://doi.org/10.3115/v1/D14-1162"> https://doi.org/10.3115/v1/D14-1162</a></li><li>Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. CoRR abs/1802.05365 (2018). arXiv:1802.05365 <a href="http://arxiv.org/abs/1802.05365">http://arxiv.org/abs/1802.05365</a></li><li>Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language Models are Unsupervised Multitask Learners.</li><li>Stefan Schweter. 2020. BERTurk — BERT models for Turkish.<a href="https://doi.org/10.5281/zenodo.3770924"> https://doi.org/10.5281/zenodo.3770924</a></li><li>Gökhan Akın Şeker and Gülşen Eryiğit. 2012. Initial explorations on using CRFs for</li><li>Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention Is All You Need. CoRR abs/1706.03762 (2017). arXiv:1706.03762 <a href="http://arxiv.org/abs/1706.03762">http://arxiv.org/abs/1706.03762</a></li><li>Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, Brussels,</li><li>Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc Le. 2019. XLNet: Generalized Autoregressive Pretraining for Language Understanding. (06 2019).</li><li>Reyyan Yeniterzi, Gökhan Tür, and Kemal Oflazer. 2018. Turkish Named-Entity Recognition. Springer International Publishing, Cham, 115ś132.<a href="https://doi.org/10.1007/978-3-319-90165-7_6"> https://doi.org/10.1007/978-3-319-90165-7_6<br></a>Savaş Yildirim. 2020. Comparing Deep Neural Networks to Traditional Models for Sentiment Analysis in Turkish Language. Springer Singapore, Singapore, 311ś319.</li><li>Zhuosheng Zhang, Hai Zhao, and Rui Wang. 2020. Machine Reading Comprehension: The Role of Contextualized Language Models and Beyond. ArXiv abs/2005.06249 (2020)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28bb6158213c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>