Change search
Link to record
Permanent link

Direct link
Publications (10 of 65) Show all publications
Carlsson, F., Broberg, J., Hillbom, E., Sahlgren, M. & Nivre, J. (2024). BRANCH-GAN: IMPROVING TEXT GENERATION WITH (NOT SO) LARGE LANGUAGE MODELS. In: 12th International Conference on Learning Representations, ICLR 2024: . Paper presented at 12th International Conference on Learning Representations, ICLR 2024.Vienna, Austria. 7 May 2024 through 11 May 2024. International Conference on Learning Representations, ICLR
Open this publication in new window or tab >>BRANCH-GAN: IMPROVING TEXT GENERATION WITH (NOT SO) LARGE LANGUAGE MODELS
Show others...
2024 (English)In: 12th International Conference on Learning Representations, ICLR 2024, International Conference on Learning Representations, ICLR , 2024Conference paper, Published paper (Refereed)
Abstract [en]

The current advancements in open domain text generation have been spearheaded by Transformer-based large language models. Leveraging efficient parallelization and vast training datasets, these models achieve unparalleled text generation capabilities. Even so, current models are known to suffer from deficiencies such as repetitive texts, looping issues, and lack of robustness. While adversarial training through generative adversarial networks (GAN) is a proposed solution, earlier research in this direction has predominantly focused on older architectures, or narrow tasks. As a result, this approach is not yet compatible with modern language models for open-ended text generation, leading to diminished interest within the broader research community. We propose a computationally efficient GAN approach for sequential data that utilizes the parallelization capabilities of Transformer models. Our method revolves around generating multiple branching sequences from each training sample, while also incorporating the typical next-step prediction loss on the original data. In this way, we achieve a dense reward and loss signal for both the generator and the discriminator, resulting in a stable training dynamic. We apply our training method to pre-trained language models, using data from their original training set but less than 0.01% of the available data. A comprehensive human evaluation shows that our method significantly improves the quality of texts generated by the model while avoiding the previously reported sparsity problems of GAN approaches. Even our smaller models outperform larger original baseline models with more than 16 times the number of parameters. Finally, we corroborate previous claims that perplexity on held-out data is not a sufficient metric for measuring the quality of generated texts.

Place, publisher, year, edition, pages
International Conference on Learning Representations, ICLR, 2024
Keywords
Computational linguistics; ’current; Computationally efficient; Current modeling; Language model; Modern languages; Parallelizations; Research communities; Sequential data; Text generations; Training dataset; Generative adversarial networks
National Category
Computer and Information Sciences
Identifiers
urn:nbn:se:ri:diva-75007 (URN)2-s2.0-85200551619 (Scopus ID)
Conference
12th International Conference on Learning Representations, ICLR 2024.Vienna, Austria. 7 May 2024 through 11 May 2024
Note

The research presented in this paper was supported by the Swedish Research Council (grant no. 2022-02909) and by a donation from Meta.

Available from: 2024-09-10 Created: 2024-09-10 Last updated: 2025-09-23Bibliographically approved
Sahlgren, M., Karlgren, J., Dürlich, L., Gogoulou, E., Talman, A. & Zahra, S. (2024). ELOQUENT 2024 - Robustness Task. In: CEUR Workshop Proceedings: . Paper presented at 25th Working Notes of the Conference and Labs of the Evaluation Forum, CLEF 2024. Grenoble. 9 September 2024 through 12 September 2024 (pp. 703-707). CEUR-WS, 3740
Open this publication in new window or tab >>ELOQUENT 2024 - Robustness Task
Show others...
2024 (English)In: CEUR Workshop Proceedings, CEUR-WS , 2024, Vol. 3740, p. 703-707Conference paper, Published paper (Refereed)
Abstract [en]

ELOQUENT is a set of shared tasks for evaluating the quality and usefulness of generative language models. ELOQUENT aims to apply high-level quality criteria, grounded in experiences from deploying models in real-life tasks, and to formulate tests for those criteria, preferably implemented to require minimal human assessment effort and in a multilingual setting. One of the tasks for the first year of ELOQUENT was the robustness task, in which we assessed the robustness and consistency of a model output given variation in the input prompts. We found that indeed the consistency varied, both across prompt items and across models, and on a methodological note we find that using a oracle model for assessing the submitted responses is feasible, and intend to investigate consistency across such assessments for different oracle models. We intend to run this task in coming editions for ELOQUENT to establish a solid methodology for further assessing consistency, which we believe to be a crucial component of trustworthiness as a top level quality characteristic of generative language models. 

Place, publisher, year, edition, pages
CEUR-WS, 2024
Keywords
High level languages; First year; Human assessment; Language model; Model outputs; Oracle model; Quality characteristic; Quality criteria; Generative adversarial networks
National Category
Computer and Information Sciences
Identifiers
urn:nbn:se:ri:diva-75019 (URN)2-s2.0-85201575633 (Scopus ID)
Conference
25th Working Notes of the Conference and Labs of the Evaluation Forum, CLEF 2024. Grenoble. 9 September 2024 through 12 September 2024
Note

This lab has been supported by the European Commission through the DeployAI project (grant number 101146490), by the Swedish Research Council (grant number 2022-02909), and by UK Research and Innovation (UKRI) under the UK government's Horizon Europe funding guarantee [grant number 10039436 (Utter)]. 

Available from: 2024-09-09 Created: 2024-09-09 Last updated: 2025-09-23Bibliographically approved
Ekgren, A., Gyllensten, A. C., Stollenwerk, F., Öhman, J., Isbister, T., Gogoulou, E., . . . Sahlgren, M. (2024). GPT-SW3: An Autoregressive Language Model for the Scandinavian Languages. In: 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation, LREC-COLING 2024 - Main Conference Proceedings: . Paper presented at Joint 30th International Conference on Computational Linguistics and 14th International Conference on Language Resources and Evaluation, LREC-COLING 2024 Hybrid, Torino, Italy. 20 May 2024 through 25 May 2024 (pp. 7886-7900). European Language Resources Association (ELRA)
Open this publication in new window or tab >>GPT-SW3: An Autoregressive Language Model for the Scandinavian Languages
Show others...
2024 (English)In: 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation, LREC-COLING 2024 - Main Conference Proceedings, European Language Resources Association (ELRA) , 2024, p. 7886-7900Conference paper, Published paper (Refereed)
Abstract [en]

This paper details the process of developing the first native large generative language model for the North Germanic languages, GPT-SW3. We cover all parts of the development process, from data collection and processing, training configuration and instruction finetuning, to evaluation, applications, and considerations for release strategies. We discuss pros and cons of developing large language models for smaller languages and in relatively peripheral regions of the globe, and we hope that this paper can serve as a guide and reference for other researchers that undertake the development of large generative models for smaller languages. 

Place, publisher, year, edition, pages
European Language Resources Association (ELRA), 2024
Keywords
Computational linguistics; Auto-regressive; Data collection; Development process; Generative model; Language model; Large language model; Low resource languages; Multilinguality; Peripheral regions; Release strategies; Data handling
National Category
Computer and Information Sciences
Identifiers
urn:nbn:se:ri:diva-73777 (URN)2-s2.0-85195971043 (Scopus ID)
Conference
Joint 30th International Conference on Computational Linguistics and 14th International Conference on Language Resources and Evaluation, LREC-COLING 2024 Hybrid, Torino, Italy. 20 May 2024 through 25 May 2024
Note

The GPT-SW3 initiative has been enabled by the collaboration and support from the following organizations: RISE (collaboration on experiments, data storage and compute), NVIDIA (support with the deduplication code base and Nemo Megatron), Vinnova (funding via contracts 2019-02996, 2020-04658 and 2022-00949), WASP WARA media and language (access to Berzelius via SNIC/NAISS). The computations and data handling were enabled by resources provided by the National Academic Infrastructure for Supercomputing in Sweden (NAISS) and the Swedish National Infrastructure for Computing (SNIC) at Berzelius partially funded by the Swedish Research Council through grant agreements 2022-06725 and 2018-05973. Johan Raber at the National Supercomputer Center is acknowledged for assistance concerning technical and implementational aspects in making the code run on the Berzelius resources

Available from: 2024-06-25 Created: 2024-06-25 Last updated: 2025-09-23Bibliographically approved
Dahlberg, S., Axelsson, S., Gyllensten, A., Sahlgren, M., Ekgren, A., Holmberg, S. & Andersson Schwarz, J. (2023). A Distributional Semantic Online Lexicon for Linguistic Explorations of Societies. Social science computer review, 41(2), 308-329
Open this publication in new window or tab >>A Distributional Semantic Online Lexicon for Linguistic Explorations of Societies
Show others...
2023 (English)In: Social science computer review, ISSN 0894-4393, E-ISSN 1552-8286, Vol. 41, no 2, p. 308-329Article in journal (Refereed) Published
Abstract [en]

Linguistic Explorations of Societies (LES) is an interdisciplinary research project with scholars from the fields of political science, computer science, and computational linguistics. The overarching ambition of LES has been to contribute to the survey-based comparative scholarship by compiling and analyzing online text data within and between languages and countries. To this end, the project has developed an online semantic lexicon, which allows researchers to explore meanings and usages of words in online media across a substantial number of geo-coded languages. The lexicon covers data from approximately 140 language–country combinations and is, to our knowledge, the most extensive free research resource of its kind. Such a resource makes it possible to critically examine survey translations and identify discrepancies in order to modify and improve existing survey methodology, and its unique features further enable Internet researchers to study public debate online from a comparative perspective. In this article, we discuss the social scientific rationale for using online text data as a complement to survey data, and present the natural language processing–based methodology behind the lexicon including its underpinning theory and practical modeling. Finally, we engage in a critical reflection about the challenges of using online text data to gauge public opinion and political behavior across the world. © The Author(s) 2022.

Place, publisher, year, edition, pages
SAGE Publications Inc., 2023
Keywords
comparative surveys, distributional semantics, language use, natural language processing, semantic similarities, word2vec
National Category
Media and Communication Studies
Identifiers
urn:nbn:se:ri:diva-59347 (URN)10.1177/08944393211049774 (DOI)2-s2.0-85130070813 (Scopus ID)
Available from: 2022-06-20 Created: 2022-06-20 Last updated: 2025-09-23Bibliographically approved
Lenci, A., Sahlgren, M., Jeuniaux, P., Cuba Gyllensten, A. & Miliani, M. (2022). A comparative evaluation and analysis of three generations of Distributional Semantic Models. Language resources and evaluation, 56, 1219
Open this publication in new window or tab >>A comparative evaluation and analysis of three generations of Distributional Semantic Models
Show others...
2022 (English)In: Language resources and evaluation, ISSN 1574-020X, E-ISSN 1574-0218, Vol. 56, p. 1219-Article in journal (Refereed) Published
Abstract [en]

Distributional semantics has deeply changed in the last decades. First, predict models stole the thunder from traditional count ones, and more recently both of them were replaced in many NLP applications by contextualized vectors produced by neural language models. Although an extensive body of research has been devoted to Distributional Semantic Model (DSM) evaluation, we still lack a thorough comparison with respect to tested models, semantic tasks, and benchmark datasets. Moreover, previous work has mostly focused on task-driven evaluation, instead of exploring the differences between the way models represent the lexical semantic space. In this paper, we perform a large-scale evaluation of type distributional vectors, either produced by static DSMs or obtained by averaging the contextualized vectors generated by BERT. First of all, we investigate the performance of embeddings in several semantic tasks, carrying out an in-depth statistical analysis to identify the major factors influencing the behavior of DSMs. The results show that (i) the alleged superiority of predict based models is more apparent than real, and surely not ubiquitous and (ii) static DSMs surpass BERT representations in most out-of-context semantic tasks and datasets. Furthermore, we borrow from cognitive neuroscience the methodology of Representational Similarity Analysis (RSA) to inspect the semantic spaces generated by distributional models. RSA reveals important differences related to the frequency and part-of-speech of lexical items. © 2022, The Author(s).

Place, publisher, year, edition, pages
Springer Science and Business Media B.V., 2022
Keywords
Contextual embeddings, Distributional semantics, Evaluation, Representational Similarity Analysis
National Category
Natural Language Processing
Identifiers
urn:nbn:se:ri:diva-58900 (URN)10.1007/s10579-021-09575-z (DOI)2-s2.0-85125439429 (Scopus ID)
Available from: 2022-03-25 Created: 2022-03-25 Last updated: 2025-09-23Bibliographically approved
Gogoulou, E., Ekgren, A., Isbister, T. & Sahlgren, M. (2022). Cross-lingual Transfer of Monolingual Models. In: 2022 Language Resources and Evaluation Conference, LREC 2022: . Paper presented at 13th International Conference on Language Resources and Evaluation Conference, LREC 2022, 20 June 2022 through 25 June 2022 (pp. 948-955). European Language Resources Association (ELRA)
Open this publication in new window or tab >>Cross-lingual Transfer of Monolingual Models
2022 (English)In: 2022 Language Resources and Evaluation Conference, LREC 2022, European Language Resources Association (ELRA) , 2022, p. 948-955Conference paper, Published paper (Refereed)
Abstract [en]

Recent studies in cross-lingual learning using multilingual models have cast doubt on the previous hypothesis that shared vocabulary and joint pre-training are the keys to cross-lingual generalization. We introduce a method for transferring monolingual models to other languages through continuous pre-training and study the effects of such transfer from four different languages to English. Our experimental results on GLUE show that the transferred models outperform an English model trained from scratch, independently of the source language. After probing the model representations, we find that model knowledge from the source language enhances the learning of syntactic and semantic knowledge in English. ©  licensed under CC-BY-NC-4.0.

Place, publisher, year, edition, pages
European Language Resources Association (ELRA), 2022
Keywords
Learning systems, Cross-lingual, Generalisation, Model knowledge, Model representation, Pre-training, Semantics knowledge, Source language, Semantics
National Category
Computer Sciences
Identifiers
urn:nbn:se:ri:diva-62612 (URN)2-s2.0-85144427655 (Scopus ID)9791095546726 (ISBN)
Conference
13th International Conference on Language Resources and Evaluation Conference, LREC 2022, 20 June 2022 through 25 June 2022
Note

 Funding details: VINNOVA, 2019-02996; Funding text 1: This work is supported by the Swedish innovation agency (Vinnova) under contract 2019-02996. 

Available from: 2023-01-24 Created: 2023-01-24 Last updated: 2025-09-23Bibliographically approved
Dwibedi, C., Mellergård, E., Gyllensten, A. C., Nilsson, K., Axelsson, A. S., Bäckman, M., . . . Rosengren, A. H. (2022). Effect of self-managed lifestyle treatment on glycemic control in patients with type 2 diabetes. npj Digital Medicine, 5(1), Article ID 60.
Open this publication in new window or tab >>Effect of self-managed lifestyle treatment on glycemic control in patients with type 2 diabetes
Show others...
2022 (English)In: npj Digital Medicine, ISSN 2398-6352, Vol. 5, no 1, article id 60Article in journal (Refereed) Published
Abstract [en]

The lack of effective, scalable solutions for lifestyle treatment is a global clinical problem, causing severe morbidity and mortality. We developed a method for lifestyle treatment that promotes self-reflection and iterative behavioral change, provided as a digital tool, and evaluated its effect in 370 patients with type 2 diabetes (ClinicalTrials.gov identifier: NCT04691973). Users of the tool had reduced blood glucose, both compared with randomized and matched controls (involving 158 and 204 users, respectively), as well as improved systolic blood pressure, body weight and insulin resistance. The improvement was sustained during the entire follow-up (average 730 days). A pathophysiological subgroup of obese insulin-resistant individuals had a pronounced glycemic response, enabling identification of those who would benefit in particular from lifestyle treatment. Natural language processing showed that the metabolic improvement was coupled with the self-reflective element of the tool. The treatment is cost-saving because of improved risk factor control for cardiovascular complications. The findings open an avenue for self-managed lifestyle treatment with long-term metabolic efficacy that is cost-saving and can reach large numbers of people. © 2022, The Author(s).

Place, publisher, year, edition, pages
Nature Research, 2022
Keywords
Blood, Blood pressure, Digital devices, Insulin, Iterative methods, Metabolism, Natural language processing systems, Behavioral changes, Clinical problems, Cost saving, Digital tools, Glycemic control, IS costs, Scalable solution, Self reflection, Self-managed, Type-2 diabetes, Patient treatment
National Category
Clinical Medicine
Identifiers
urn:nbn:se:ri:diva-60532 (URN)10.1038/s41746-022-00606-9 (DOI)2-s2.0-85129954140 (Scopus ID)
Note

 Funding details: Knut och Alice Wallenbergs Stiftelse; Funding text 1: Supported by grants from the Knut and Alice Wallenberg Foundation. We thank Svetlana Johansson, Paul Tyler, Anna-Maria Veljanovska Ramsay, Jasmina Kravic, as well as Louise Qvist, Maria Fälemark, Helene Ferm and Jessica Hedin for managing study visits. We also thank the patients and colleagues who participated in the development and evaluation of the tool.

Available from: 2022-10-19 Created: 2022-10-19 Last updated: 2025-09-23Bibliographically approved
Carlsson, F., Öhman, J., Liu, F., Verlinden, S., Nirve, J. & Sahlgren, M. (2022). Fine-Grained Controllable Text Generation Using Non-Residual Prompting. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers): . Paper presented at 60th Annual Meeting of the Association for Computational Linguistics (pp. 6837-6857).
Open this publication in new window or tab >>Fine-Grained Controllable Text Generation Using Non-Residual Prompting
Show others...
2022 (English)In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2022, p. 6837-6857Conference paper, Published paper (Refereed)
Abstract [en]

The introduction of immensely large Causal Language Models (CLMs) has rejuvenated the interest in open-ended text generation. However, controlling the generative process for these Transformer-based models is at large an unsolved problem. Earlier work has explored either plug-and-play decoding strategies, or more powerful but blunt approaches such as prompting. There hence currently exists a trade-off between fine-grained control, and the capability for more expressive high-level instructions. To alleviate this trade-off, we propose an encoder-decoder architecture that enables intermediate text prompts at arbitrary time steps. We propose a resource-efficient method for converting a pre-trained CLM into this architecture, and demonstrate its potential on various experiments, including the novel task of contextualized word inclusion. Our method provides strong results on multiple experimental settings, proving itself to be both expressive and versatile.

National Category
Natural Language Processing
Identifiers
urn:nbn:se:ri:diva-59296 (URN)978-1-955917-21-6 (ISBN)
Conference
60th Annual Meeting of the Association for Computational Linguistics
Available from: 2022-05-30 Created: 2022-05-30 Last updated: 2025-09-23Bibliographically approved
Sahlgren, M., Carlsson, F., Olsson, F. & Börjeson, L. (2021). It’s Basically the Same Language Anyway: the Case for a Nordic Language Model. In: Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa): . Paper presented at 23rd Nordic Conference on Computational Linguistics (NoDaLiDa), May 31-2 June 2021, Rykjavik, Iceland (pp. 367-372).
Open this publication in new window or tab >>It’s Basically the Same Language Anyway: the Case for a Nordic Language Model
2021 (English)In: Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa), 2021, p. 367-372Conference paper, Published paper (Refereed)
Abstract [en]

When is it beneficial for a research community to organize a broader collaborative effort on a topic, and when should we instead promote individual efforts? In this opinion piece, we argue that we are at a stage in the development of large-scale language models where a collaborative effort is desirable, despite the fact that the preconditions for making individual contributions have never been better. We consider a number of arguments for collaboratively developing a large-scale Nordic language model, include environmental considerations, cost, data availability, language typology, cultural similarity, and transparency. Our primary goal is to raise awareness and foster a discussion about our potential impact and responsibility as NLP community.

National Category
Computer Sciences
Identifiers
urn:nbn:se:ri:diva-59817 (URN)
Conference
23rd Nordic Conference on Computational Linguistics (NoDaLiDa), May 31-2 June 2021, Rykjavik, Iceland
Available from: 2022-07-28 Created: 2022-07-28 Last updated: 2025-09-23
Gogoulou, E., Boman, M., Ben Abdesslem, F., Isacsson, N., Kaldo, V. & Sahlgren, M. (2021). Predicting treatment outcome from patient texts: The case of internet-based cognitive behavioural therapy. In: EACL 2021 - 16th Conference of the European Chapter of the Association for Computational Linguistics, Proceedings of the Conference: . Paper presented at 16th Conference of the European Chapter of the Associationfor Computational Linguistics, EACL 2021, 19 April 2021 through 23 April 2021 (pp. 575-580). Association for Computational Linguistics (ACL)
Open this publication in new window or tab >>Predicting treatment outcome from patient texts: The case of internet-based cognitive behavioural therapy
Show others...
2021 (English)In: EACL 2021 - 16th Conference of the European Chapter of the Association for Computational Linguistics, Proceedings of the Conference, Association for Computational Linguistics (ACL) , 2021, p. 575-580Conference paper, Published paper (Refereed)
Abstract [en]

We investigate the feasibility of applying standard text categorisation methods to patient text in order to predict treatment outcome in Internet-based cognitive behavioural therapy. The data set is unique in its detail and size for regular care for depression, social anxiety, and panic disorder. Our results indicate that there is a signal in the depression data, albeit a weak one. We also perform terminological and sentiment analysis, which confirm those results. 

Place, publisher, year, edition, pages
Association for Computational Linguistics (ACL), 2021
Keywords
Computational linguistics, Sentiment analysis, Data set, Internet based, Social anxieties, Treatment outcomes, Patient treatment
National Category
Applied Psychology
Identifiers
urn:nbn:se:ri:diva-53529 (URN)2-s2.0-85107290691 (Scopus ID)9781954085022 (ISBN)
Conference
16th Conference of the European Chapter of the Associationfor Computational Linguistics, EACL 2021, 19 April 2021 through 23 April 2021
Available from: 2021-06-17 Created: 2021-06-17 Last updated: 2025-09-23Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0001-5100-0535

Search in DiVA

Show all publications