I'm a PhD student in the Language Technology Group at the University of Oslo, as part of the dScience center. My main academic interest is language modeling, particularly how to make large pre-trained language models more efficient and effective. I also like to parse some semantic graphs from time to time.
Some of my recent projects:
Publikasjoner
-
-
David Samuel, Lilja Øvrelid, Erik Velldal & Andrey Kutuzov
(2026).
Fluent Alignment with Disfluent Judges: Post-training for lower-resource languages.
I C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang & A. Faust (Red.),
International Conference on Learning Representations (ICLR) 2026.
International Conference on Learning Representations (ICLR).
ISSN 9798331339678.
s. 94000–94027.
doi:
https:/proceedings.iclr.cc/paper_files/paper/2026/hash/97a057ab1235218027dc07c50eedee0d-Abstract-Conference.html.
Fulltekst i vitenarkiv
Vis sammendrag
We propose a post-training method for lower-resource languages that preserves the fluency of language models even when aligned by disfluent reward models. Preference optimization is now a well-researched topic, but previous work has mostly addressed models for English and Chinese. Lower-resource languages lack both datasets written by native speakers and instruction-tuned language models capable of generating fluent synthetic data. To address this, we focus on developing a fluent preference-aligned language model without any instruction-tuning data in the target language. Our approach uses an on-policy training method, which we compare with two common alternatives: supervised finetuning on machine-translated data and multilingual finetuning. We conduct a case study on Norwegian Bokmål and evaluate fluency through native-speaker assessments. The results show that the on-policy aspect is crucial and outperforms the alternatives without relying on any hard-to-obtain data.
-
David Samuel, Vladislav Mikhailov, Erik Velldal, Lilja Øvrelid, Lucas Georges Gabriel Charpentier & Andrey Kutuzov
[Vis alle 7 forfattere av denne artikkelen]
(2025).
Small Languages, Big Models: A Study of Continual Training on Languages of Norway.
I Richard Johansson & Sara Stymne (Red.),
Proceedings of the Joint 25th Nordic Conference on Computational Linguistics and 11th Baltic Conference on Human Language Technologies (NoDaLiDa/Baltic-HLT 2025).
University of Tartu Library.
ISSN 9789908531090.
s. 573–608.
doi:
https:/aclanthology.org/2025.nodalida-1.61/.
Fulltekst i vitenarkiv
Vis sammendrag
Training large language models requires vast amounts of data, posing a challenge for less widely spoken languages like Norwegian and even more so for truly low-resource languages like Northern S{\'a}mi. To address this issue, we present a novel three-stage continual training approach that substantially improves the downstream performance together with the inference efficiency for the target languages. Based on our findings, we train, evaluate, and openly release a new generative language model for Norwegian Bokm{\r{a}}l, Nynorsk, and Northern S{\'a}mi with 11.4 billion parameters: NorMistral-11B.
-
Mariia Fedorova, Jonas Sebulon Frydenberg, Victoria Handford, Victoria Ovedie Chruickshank Langø, Solveig Helene Willoch & Marthe Løken Midtgaard
[Vis alle 9 forfattere av denne artikkelen]
(2025).
Multi-label Scandinavian Language Identification (SLIDE).
I Špela Arhar Holdt, Nikolai Ilinykh, Barbara Scalvini, Micaella Bruton, Iben Nyholm Debess & Crina Madalina Tudor (Red.),
Proceedings of the Third Workshop on Resources and Representations for Under-Resourced Languages and Domains (RESOURCEFUL-2025).
Tartu Ülikool Kirjastus.
ISSN 9789908531212.
s. 179–189.
Fulltekst i vitenarkiv
Vis sammendrag
Identifying closely related languages at sentence level is difficult, in particular because it is often impossible to assign a sentence to a single language. In this paper, we focus on multi-label sentence-level Scandinavian language identification (LID) for Danish, Norwegian Bokmål, Norwegian Nynorsk, and Swedish. We present the Scandinavian Language Identification and Evaluation, SLIDE, a manually curated multi-label evaluation dataset and a suite of LID models with varying speed–accuracy tradeoffs. We demonstrate that the ability to identify multiple languages simultaneously is necessary for any accurate LID method, and present a novel approach to training such multi-label LID models.
-
Vladislav Mikhailov, Tita Ranveig Enstad, David Samuel, Hans Christian Farsethås, Erik Velldal & Lilja Øvrelid
[Vis alle 7 forfattere av denne artikkelen]
(2025).
NorEval: A Norwegian Language Understanding and Generation Evaluation Benchmark.
I Wanxiang Che, Joyce Nabende, Ekaterina Shutova & Mohammad Pilehvar (Red.),
Findings of the Association for Computational Linguistics: ACL 2025.
Association for Computational Linguistics (ACL).
ISSN 9798891762565.
s. 3495–3541.
doi:
10.18653/v1/2025.findings-acl.181.
Fulltekst i vitenarkiv
Vis sammendrag
This paper introduces NorEval, a new and comprehensive evaluation suite for large-scale standardized benchmarking of Norwegian generative language models (LMs). NorEval consists of 24 high-quality human-created datasets – of which five are created from scratch. In contrast to existing benchmarks for Norwegian, NorEval covers a broad spectrum of task categories targeting Norwegian language understanding and generation, establishes human baselines, and focuses on both of the official written standards of the Norwegian language: Bokmål and Nynorsk. All our datasets and a collection of over 100 human-created prompts are integrated into LM Evaluation Harness, ensuring flexible and reproducible evaluation. We describe the NorEval design and present the results of benchmarking 19 open-source pretrained and instruction-tuned LMs for Norwegian in various scenarios. Our benchmark, evaluation framework, and annotation materials are publicly available.
-
Laurie Burchell, Ona de Gibert, Nikolay Arefev, Mikko Aulamo, Marta Bañón & Pinzhen Chen
[Vis alle 35 forfattere av denne artikkelen]
(2025).
An Expanded Massive Multilingual Dataset for High-Performance Language Technologies (HPLT).
I Wanxiang Che, Joyce Nabende, Ekaterina Shutova & Mohammad Pilehvar (Red.),
Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
Association for Computational Linguistics (ACL).
ISSN 9798891762510.
s. 17452–17485.
doi:
10.18653/v1/2025.acl-long.854.
Fulltekst i vitenarkiv
Vis sammendrag
Training state-of-the-art large language models requires vast amounts of clean and diverse textual data. However, building suitable multilingual datasets remains a challenge. In this work, we present HPLT v2, a collection of high-quality multilingual monolingual and parallel corpora, extending prior work of the HPLT project. The monolingual portion of the data contains 8T tokens covering 193 languages, while the parallel data contains 380M sentence pairs covering 51 languages. We document the entire data pipeline and release the code to reproduce it. We provide extensive analysis of the quality and characteristics of our data. Finally, we evaluate the performance of language models and machine translation systems trained on HPLT v2, demonstrating its value.
-
-
Lucas Georges Gabriel Charpentier & David Samuel
(2024).
GPT or BERT: why not both?
I Michael Y. Hu, Aaron Mueller, Candace Ross, Adina Williams, Tal Linzen, Chengxu Zhuang, Leshem Choshen, Ryan Cotterell, Alex Warstadt & Ethan Gotlieb Wilcox (Red.),
The 2nd BabyLM Challenge at the 28th Conference on Computational Natural Language Learning.
Association for Computational Linguistics (ACL).
ISSN 9798891762220.
s. 262–283.
Fulltekst i vitenarkiv
-
David Samuel
(2024).
BERTs are Generative In-Context Learners.
I Amir Globerson, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub Tomczak & Cheng Zhang (Red.),
Advances in Neural Information Processing Systems 37 (NeurIPS 2024).
Curran Associates, Inc..
ISSN 9781713899921.
s. 2558–2589.
doi:
10.52202/079017-0084.
Fulltekst i vitenarkiv
Vis sammendrag
While in-context learning is commonly associated with causal language models, such as GPT, we demonstrate that this capability also 'emerges' in masked language models. Through an embarrassingly simple inference technique, we enable an existing masked model, DeBERTa, to perform generative tasks without additional training or architectural changes. Our evaluation reveals that the masked and causal language models behave very differently, as they clearly outperform each other on different categories of tasks. These complementary strengths suggest that the field's focus on causal models for in-context learning may be limiting – both architectures can develop these capabilities, but with distinct advantages; pointing toward promising hybrid approaches that combine the strengths of both objectives.
-
Petter Mæhlum, David Samuel, Rebecka Maria Norman, Elma Jelin, Øyvind Andresen Bjertnæs & Lilja Øvrelid
[Vis alle 7 forfattere av denne artikkelen]
(2024).
It’s Difficult to be Neutral – Human and LLM-based
Sentiment Annotation of Patient Comments,
Proceedings of the First Workshop on Patient-Oriented Language Processing (CL4Health).
ELRA Language Resources Association.
ISSN 9782493814258.
s. 8–19.
Fulltekst i vitenarkiv
-
David Samuel, Lucas Georges Gabriel Charpentier & Sondre Wold
(2024).
More room for language: Investigating the effect of retrieval on language models.
I Kevin Duh, Helena Gomez & Steven Bethard (Red.),
Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers).
Association for Computational Linguistics (ACL).
ISSN 9798891761155.
s. 282–305.
Fulltekst i vitenarkiv
-
-
David Samuel, Andrei Kutuzov, Lilja Øvrelid & Erik Velldal
(2023).
Trained on 100 million words and still in shape: BERT meets British National Corpus.
I Andreas Vlachos & Isabelle Augenstein (Red.),
Findings of the Association for Computational Linguistics: EACL 2023.
Association for Computational Linguistics (ACL).
ISSN 9781959429470.
s. 1954–1974.
doi:
10.18653/v1/2023.findings-eacl.146.
Fulltekst i vitenarkiv
Vis sammendrag
While modern masked language models (LMs) are trained on ever larger corpora, we here explore the effects of down-scaling training to a modestly-sized but representative, well-balanced, and publicly available English text source – the British National Corpus. We show that pre-training on this carefully curated corpus can reach better performance than the original BERT model. We argue that this type of corpora has great potential as a language modeling benchmark. To showcase this potential, we present fair, reproducible and data-efficient comparative studies of LMs, in which we evaluate several training objectives and model architectures and replicate previous empirical results in a systematic way. We propose an optimized LM architecture called LTG-BERT.
-
Lucas Georges Gabriel Charpentier, Sondre Wold, David Samuel & Egil Rønningstad
(2023).
BRENT: Bidirectional Retrieval Enhanced Norwegian Transformer.
I Tanel Alumäe & Mark Fishel (Red.),
Proceedings of the 24th Nordic Conference on Computational Linguistics (NoDaLiDa).
University of Tartu.
ISSN 9789916219997.
Fulltekst i vitenarkiv
-
Lucas Georges Gabriel Charpentier & David Samuel
(2023).
Not all layers are equally as important: Every Layer Counts BERT.
I Alex Warstadt, Aaron Mueller, Leshem Choshen, Ethan Wilcox, Chengxu Zhuang, Juan Ciro, Rafael Mosquera, Bhargavi Paranjabe, Adina Williams, Tal Linzen & Ryan Cotterell (Red.),
Proceedings of the BabyLM Challenge at the 27th Conference on Computational Natural Language Learning.
Association for Computational Linguistics (ACL).
ISSN 9781952148026.
s. 238–252.
doi:
10.18653/v1/2023.conll-babylm.20.
Fulltekst i vitenarkiv
-
David Samuel
(2023).
Mean BERTs make erratic language teachers: the effectiveness of latent bootstrapping in low-resource settings.
I Alex Warstadt, Aaron Mueller, Leshem Choshen, Ethan Wilcox, Chengxu Zhuang, Juan Ciro, Rafael Mosquera, Bhargavi Paranjabe, Adina Williams, Tal Linzen & Ryan Cotterell (Red.),
Proceedings of the BabyLM Challenge at the 27th Conference on Computational Natural Language Learning.
Association for Computational Linguistics (ACL).
ISSN 9781952148026.
s. 221–237.
doi:
10.18653/v1/2023.conll-babylm.19.
Fulltekst i vitenarkiv
-
David Samuel, Andrei Kutuzov, Samia Touileb, Erik Velldal, Lilja Øvrelid & Egil Rønningstad
[Vis alle 8 forfattere av denne artikkelen]
(2023).
NorBench – A Benchmark for Norwegian Language Models.
I Tanel Alumäe & Mark Fishel (Red.),
Proceedings of the 24th Nordic Conference on Computational Linguistics (NoDaLiDa).
University of Tartu.
ISSN 9789916219997.
s. 618–633.
Fulltekst i vitenarkiv
Vis sammendrag
We present NorBench: a streamlined suite of NLP tasks and probes for evaluating Norwegian language models (LMs) on standardized data splits and evaluation metrics. We also introduce a range of new Norwegian language models (both encoder and encoder-decoder based). Finally, we compare and analyze their performance, along with other existing LMs, across the different benchmark tests of NorBench.
-
-
Huiling You, David Samuel, Samia Touileb & Lilja Øvrelid
(2022).
EventGraph at CASE 2021 Task 1: A General Graph-based Approach to Protest Event Extraction,
The 5th Workshop on Challenges and Applications of Automated Extraction of Socio-political Events from Text.
Association for Computational Linguistics (ACL).
ISSN 9781959429050.
s. 155–160.
Fulltekst i vitenarkiv
-
David Samuel, Jeremy Barnes, Robin Kurtz, Stephan Oepen, Lilja Øvrelid & Erik Velldal
(2022).
Direct parsing to sentiment graphs.
Association for Computational Linguistics (ACL). Annual Meeting Conference Proceedings.
ISSN 0736-587X.
2(60),
s. 470–478.
doi:
10.18653/v1/2022.acl-short.51.
Fulltekst i vitenarkiv
-
David Samuel & Milan Straka
(2021).
ÚFAL at MultiLexNorm 2021: Improving Multilingual Lexical Normalization by Fine-tuning ByT5,
Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021).
Association for Computational Linguistics (ACL).
ISSN 9781954085909.
s. 483–492.
Fulltekst i vitenarkiv
Vis sammendrag
We present the winning entry to the Multilingual Lexical Normalization (MultiLexNorm) shared task at W-NUT 2021 (van der Goot et al., 2021a), which evaluates lexical-normalization systems on 12 social media datasets in 11 languages. We base our solution on a pre-trained byte-level language model, ByT5 (Xue et al., 2021a), which we further pre-train on synthetic data and then fine-tune on authentic normalization data. Our system achieves the best performance by a wide margin in intrinsic evaluation, and also the best performance in extrinsic evaluation through dependency parsing. The source code is released at https://github.com/ufal/multilexnorm2021 and the fine-tuned models at https://huggingface.co/ufal.
-
David Samuel & Milan Straka
(2020).
ÚFAL at MRP 2020: Permutation-invariant Semantic Parsing in PERIN.
I Stephan Oepen, Omri Abend, Lasha Abzianidze, Johan Bos, Jan Hajic, Daniel Hershcovich, Bin Li, Tim O'Gorman & Daniel Zeman (Red.),
Proceedings of the CoNLL 2020 Shared Task:Cross-Framework Meaning Representation Parsing.
Association for Computational Linguistics (ACL).
ISSN 9781952148644.
s. 53–64.
doi:
10.18653/v1/2020.conll-shared.5.
Fulltekst i vitenarkiv
Vis sammendrag
We present PERIN, a novel permutation-invariant approach to sentence-to-graph semantic parsing. PERIN is a versatile, cross-framework and language independent architecture for universal modeling of semantic structures. Our system participated in the CoNLL 2020 shared task, Cross-Framework Meaning Representation Parsing (MRP 2020), where it was evaluated on five different frameworks (AMR, DRG, EDS, PTG and UCCA) across four languages. PERIN was one of the winners of the shared task. The source code and pretrained models are available at http://www.github.com/ufal/perin.
Se alle arbeider i NVA
-
David Samuel, Andrey Kutuzov, Lilja Øvrelid & Erik Velldal
(2026).
Data-Constrained Language Modeling.
Universitetet i Oslo.
Fulltekst i vitenarkiv
Vis sammendrag
Language model performance scales with training data, yet the reservoir of human-written text is finite– a constraint that already limits most languages and will eventually affect even English as models continue to scale. This thesis addresses data constraints across the entire life cycle of language models: we develop architectural improvements and training methods that maximize learning from limited and repeated data, and we propose post-training methods that enable fluency-preserving preference optimization without native instruction-tuning datasets.
Se alle arbeider i NVA
Publisert
30. sep. 2021 17:33
- Sist endret
8. okt. 2023 23:07