Miguel Moura Ramos
Author directory2026
Fine-Grained Reward Optimization for Machine Translation using Error Severity Mappings
Miguel Moura Ramos | Tomás Almeida | Daniel Vareta | Filipe Azevedo | Sweta Agrawal | Patrick Fernandes | André F. T. Martins
Transactions of the Association for Computational Linguistics, Volume 14
Miguel Moura Ramos | Tomás Almeida | Daniel Vareta | Filipe Azevedo | Sweta Agrawal | Patrick Fernandes | André F. T. Martins
Transactions of the Association for Computational Linguistics, Volume 14
Reinforcement learning (RL) has been proven to be an effective and robust method for training neural machine translation systems, especially when paired with powerful reward models that accurately assess translation quality. However, most research has focused on RL methods that use sentence-level feedback, leading to inefficient learning signals due to the reward sparsity problem—the model receives a single score for the entire sentence. To address this, we propose a novel approach that leverages fine-grained, token-level quality assessments along with error severity levels using RL methods. Specifically, we use xCOMET, a state-of-the-art quality estimation system, as our token-level reward model. We conduct experiments on small and large translation datasets with standard encoder-decoder and large language models-based machine translation systems, comparing the impact of sentence-level versus fine-grained reward signals on translation quality. Our results show that training with token-level rewards improves translation quality across language pairs over baselines according to both automatic and human evaluation. Furthermore, token-level reward optimization improves training stability, evidenced by a steady increase in mean rewards over training epochs.
AMALIA: A Fully Open Large Language Model for European Portuguese
Afonso Simplício | Gonçalo Vinagre | Miguel Moura Ramos | Diogo Tavares | Rafael Ferreira | Giuseppe Attanasio | Duarte M. Alves | Inês Calvo | Inês Vieira | Rui Guerra | James Furtado | Beatriz Canaverde | Iago Paulo | Vasco Ramos | Diogo Glória-Silva | Miguel Faria | Marcos Treviso | Daniel Gomes | Pedro Gomes | David Semedo | André Martins | João Magalhães
Proceedings of the 17th International Conference on Computational Processing of Portuguese (PROPOR 2026) - Vol. 1
Afonso Simplício | Gonçalo Vinagre | Miguel Moura Ramos | Diogo Tavares | Rafael Ferreira | Giuseppe Attanasio | Duarte M. Alves | Inês Calvo | Inês Vieira | Rui Guerra | James Furtado | Beatriz Canaverde | Iago Paulo | Vasco Ramos | Diogo Glória-Silva | Miguel Faria | Marcos Treviso | Daniel Gomes | Pedro Gomes | David Semedo | André Martins | João Magalhães
Proceedings of the 17th International Conference on Computational Processing of Portuguese (PROPOR 2026) - Vol. 1
Despite rapid progress in open large language models (LLMs), European Portuguese (pt-PT) remains underrepresented in both training data and native evaluation, with machine-translated benchmarks likely missing the variant’s linguistic and cultural nuances. We introduce AMALIA, a fully open LLM that prioritizes pt-PT by using more high-quality pt-PT data during both the mid- and post-training stages. To evaluate pt-PT more faithfully, we release a suite of pt-PT benchmarks that includes translated standard tasks and four new datasets targeting pt-PT generation, linguistic competence, and pt-PT/pt-BR bias. Experiments show that AMALIA matches strong baselines on translated benchmarks while substantially improving performance on pt-PT-specific evaluations, supporting the case for targeted training and native benchmarking for European Portuguese.
A Recipe for Long-Context Reasoning in Large Language Models via On-Policy Optimization and Distillation
Miguel Moura Ramos | Duarte Miguel Alves | Andre Martins
Findings of the Association for Computational Linguistics: EMNLP 2026
Miguel Moura Ramos | Duarte Miguel Alves | Andre Martins
Findings of the Association for Computational Linguistics: EMNLP 2026
Existing approaches to post-train models for long-context tasks face complementary limitations: (i) supervised fine-tuning (SFT) provides stable supervision but suffers from exposure bias; (ii) reinforcement learning methods such as Group Relative Policy Optimization (GRPO) train on model-generated trajectories but struggle with long-horizon credit assignment and sparse rewards; and (iii) on-policy distillation (OPD) provides dense token-level guidance but does not directly optimize task rewards. We study these complementary strategies for long-context alignment and derive a recipe that combines GRPO with OPD-style teacher guidance: the student learns from its own rollouts using outcome-level rewards, while a stronger teacher provides dense token-level regularization in place of the standard reference policy. This is especially useful when process-level supervision is difficult to obtain. To support this study, we introduce LongBlocks, a synthetic multilingual dataset spanning multi-hop reasoning, contextual grounding, and long-form generation. Through controlled ablations, we isolate the roles of cold-start initialization, teacher anchoring, and data mixing, showing that our recipe yields a more stable and effective path to long-context reasoning than GRPO or OPD while preserving short-context capabilities.
Fine PT-PT Web: A High-Quality 41 Billion Tokens Data Collection of the European Portuguese Web
Gonçalo Vinagre | Rui Pedro Guerra | Pedro Gomes | Miguel Moura Ramos | Duarte Miguel Alves | Afonso Simplício | Diogo Tavares | David Semedo | Daniel Gomes | Joao Magalhaes
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Gonçalo Vinagre | Rui Pedro Guerra | Pedro Gomes | Miguel Moura Ramos | Duarte Miguel Alves | Afonso Simplício | Diogo Tavares | David Semedo | Daniel Gomes | Joao Magalhaes
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Curating Web corpora for regional language variants like European Portuguese (PT-PT) is heavily bottlenecked by dialectal overlap (mainly with PT-BR) and data processing scale. This paper presents an efficient pipeline to curate a production-ready PT-PT corpus from the Portuguese Web, spanning 411 TB of raw data from Arquivo.pt. We introduce a novel post-scraping block that removes boilerplate and line duplicates prior to filtering. This early-stage intervention increases final document yield by 19.04% by rescuing valid text that standard heuristic filters prematurely discard. Integrated with rigorous language identification, weighted fuzzy deduplication, and neural quality classification, our pipeline offers a scalable framework and a clean, representative corpus optimized for LLM pre-training.
How Well Do Vision-Language Models Understand Movies?
Emmanouil Zaranis | António Farinhas | Saul Santos | Beatriz Canaverde | Miguel Moura Ramos | Wafaa Mohammed | Giuseppe Attanasio | Chrysoula Zerva | Nithin Sivakumaran | Shoubin Yu | Elena Bueno-Benito | Aditya K Surikuchi | Ben Peters | Danae Sanchez Villegas | Andre G. Viveiros | Pavlo Vasylenko | Baohao Liao | Sonal Sannigrahi | Jaehong Yoon | Elias Stengel-Eskin | Mariella Dimiccoli | Oswald Lanz | Alessandro Suglia | Mohit Bansal | Sandro Pezzelle | Stella Frank | Vlad Niculae | Desmond Elliott | Raffaella Bernardi | Raquel Fernández | Andre Martins
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Emmanouil Zaranis | António Farinhas | Saul Santos | Beatriz Canaverde | Miguel Moura Ramos | Wafaa Mohammed | Giuseppe Attanasio | Chrysoula Zerva | Nithin Sivakumaran | Shoubin Yu | Elena Bueno-Benito | Aditya K Surikuchi | Ben Peters | Danae Sanchez Villegas | Andre G. Viveiros | Pavlo Vasylenko | Baohao Liao | Sonal Sannigrahi | Jaehong Yoon | Elias Stengel-Eskin | Mariella Dimiccoli | Oswald Lanz | Alessandro Suglia | Mohit Bansal | Sandro Pezzelle | Stella Frank | Vlad Niculae | Desmond Elliott | Raffaella Bernardi | Raquel Fernández | Andre Martins
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Vision-language models (VLMs) can increasingly handle extended contexts and answer questions about long videos—but can they understand the narrative structure of movies as humans do? To investigate this question, we introduce MF2 (Movie Facts and Fibs), a fully manually curated benchmark designed to evaluate whether models can identify, recall, and comprehend information central to the movie’s storyline, using both the visual and textual modalities. MF2 includes over 50 open-licensed movies, each paired with manually constructed sets of claim pairs: one true claim (fact) and one plausible but false (fib), totaling over 850 pairs. Our analysis across 20 open-source and 2 proprietary models reveals a substantial gap relative to human performance. While subtitles provide a strong signal for narrative understanding, other textual sources (e.g., synopses) are less informative. In contrast, when visual information is distributed across the entire movie and jointly embedded with subtitles, models struggle to identify and effectively use the relevant content. However, when the visual input is restricted to claim-relevant visual content, models improve significantly, indicating substantial room for improvement in processing large multimodal contexts and distinguishing relevant from irrelevant information. Overall, our findings highlight persistent challenges in multimodal narrative understanding for current VLMs. We release our data and code to support further research in this direction.
Search
Fix author
Co-authors
- André F. T. Martins 4
- Duarte Miguel Alves 2
- Giuseppe Attanasio 2
- Beatriz Canaverde 2
- Daniel Gomes 2
- Pedro Gomes 2
- Joao Magalhaes 2
- David Semedo 2
- Afonso Simplício 2
- Diogo Tavares 2
- Gonçalo Vinagre 2
- Sweta Agrawal 1
- Tomás Almeida 1
- Duarte M. Alves 1
- Filipe Azevedo 1
- Mohit Bansal 1
- Raffaella Bernardi 1
- Elena Bueno-Benito 1
- Inês Calvo 1
- Mariella Dimiccoli 1
- Desmond Elliott 1
- Miguel Faria 1
- António Farinhas 1
- Patrick Fernandes 1
- Raquel Fernández 1
- Rafael Ferreira 1
- Stella Frank 1
- James Furtado 1
- Diogo Glória-Silva 1
- Rui Guerra 1
- Rui Pedro Guerra 1
- Oswald Lanz 1
- Baohao Liao 1
- Wafaa Mohammed 1
- Vlad Niculae 1
- Iago Paulo 1
- Ben Peters 1
- Sandro Pezzelle 1
- Vasco Ramos 1
- Danae Sanchez Villegas 1
- Sonal Sannigrahi 1
- Saul Santos 1
- Nithin Sivakumaran 1
- Elias Stengel-Eskin 1
- Alessandro Suglia 1
- Aditya K Surikuchi 1
- Marcos Treviso 1
- Daniel Vareta 1
- Pavlo Vasylenko 1
- Inês Vieira 1
- Andre G. Viveiros 1
- Jaehong Yoon 1
- Shoubin Yu 1
- Emmanouil Zaranis 1
- Chrysoula Zerva 1