---
title: "Tucano: Advancing neural text generation for Portuguese (2025)"
description: "Tucano trains open Portuguese text generators from scratch and tests which benchmarks register improvements as pretraining progresses."
canonical: "https://research.elamur.ai/free/en/papers/correa-2025-tucano-advancing-neural-text-generation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/correa-2025-tucano-advancing-neural-text-generation/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Tucano: Advancing neural text generation for Portuguese

# Tucano: Advancing neural text generation for Portuguese

Paper · 2025 · Nicholas Kluge Corrêa, Aniket Sen, Sophia Falk et al.

**Authors:** Nicholas Kluge Corrêa, Aniket Sen, Sophia Falk and Shiza Fatimah · **Year:** 2025 · **Venue:** Patterns · **Licence:** [CC BY-NC-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

Patterns · [licence](https://creativecommons.org/licenses/by-nc-sa/4.0/)

- [DOI 10.1016/j.patter.2025.101325](https://doi.org/10.1016/j.patter.2025.101325)
- [arXiv 2411.07854](https://arxiv.org/abs/2411.07854)

## Summary

Training a text generator from scratch requires large amounts of written material, and those resources are much easier to assemble for some languages than for others. For Portuguese, an established route has been to adapt a system that has already learned from a large multilingual or predominantly English collection. Tucano takes the other route. The authors assemble a Portuguese pretraining corpus called GigaVerbo, develop a filter for it, and train a family of generators starting from random weights. They focus mainly on Brazilian Portuguese. Their aim is both to make Portuguese [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) more accessible and to make it easier to trace what changes during training.

GigaVerbo contains approximately 200 billion tokens before quality filtering. Tokens are the pieces of text the system reads and predicts. The authors combine public sources, remove exact duplicates, and use scores from GPT-4o to teach a Portuguese classifier which documents to flag. They remove documents when the classifier is highly confident that they belong to its low-quality class. The filtered collection contains 129 billion tokens before any deliberate repetition. The largest Tucano, 2b4, processes roughly 515 billion tokens across repeated passes. The authors also give the larger Tucano variants a separate round of training to help them respond to instructions.

The larger Tucano variants beat several Portuguese and multilingual comparison systems on selected tasks. Tucano also outperforms Bloom-1b7 on CALAME-PT and LAMBADA, which test whether a system can supply the missing final word. Across the training checkpoints, a broader finding emerges. Held-out text becomes easier for Tucano to predict, yet many scores in the Portuguese evaluation suite show little relationship to the amount of training completed. CALAME-PT, LAMBADA, HellaSwag, and ARC-Challenge track training progress consistently across the family. Scores on the Brazilian bar exam benchmark show no apparent relationship to token exposure, even though the training collection contains substantial legal material.

These results give the open release a second use beyond generating Portuguese text. The corpus, intermediate checkpoints, code, and logs let researchers examine why a benchmark might register progress for one task and scarcely move for another. The instruction-tuned versions also perform competitively against some larger systems in the authors’ Portuguese chat evaluation, while losing ground on some benchmarks used for the base versions. The paper therefore documents several different kinds of progress, each tied to a particular training stage and evaluation.

## Deep dive: Tucano: Advancing neural text generation for Portuguese

Tucano trains open Portuguese text generators from scratch and tests which benchmarks register improvements as pretraining progresses. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Starting with Portuguese text

A generator trained to predict the next piece of text learns from a signal that is already present in its reading material. At each point in a passage, the following token is available as the expected answer. This is the form of self-supervision behind the paper. It makes it possible to use material that was never prepared as a set of labeled exercises. It also makes the supply of suitable text a practical constraint. A team needs enough material to sustain training, and it needs a way to decide what to keep when the collection comes from many sources.

The paper places this problem in the broader context of [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). It describes collections for English or Chinese reaching the scale of 10¹³ tokens. Portuguese has enough digital text to support substantial experiments, but the authors’ survey shows how different the starting point had been for much of the community. Until 2024, nearly all the Portuguese efforts they review used datasets with fewer than 10 billion tokens. In many cases that volume describes a round of adaptation, with the original foundation having seen a much larger collection elsewhere. Comparing the Portuguese training totals alone therefore obscures a major difference in what the systems had already learned.

The authors give [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) a specific meaning. It begins with weights learned in a previous training run and updates them on new material. Changing the vocabulary, relearning the input representations, or updating only part of the system can all occur within fine-tuning. Under the paper’s terminology, pretraining starts with random weights. That distinction matters when reading a benchmark result. A score for an adapted generator reflects what it inherited as well as what it acquired during adaptation. When details of the earlier run are private, the effects of those successive stages become especially difficult to trace.

Multilingual training offers another way to make progress when any individual language has a limited data supply. The authors cite systems such as XLM-RoBERTa and BLOOM as examples of pooling languages during pretraining. Their survey also describes work in several languages where a dedicated monolingual approach had advantages. As the paper presents it, the choice depends on which resources a team has and what it needs to control. An existing foundation makes adaptation practical. Starting from scratch gives researchers control over the corpus, the vocabulary, and the conditions under which the resulting artifacts can be shared and studied.

#### What earlier Portuguese projects provided

Several early projects illustrate the range of objectives within Portuguese [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). GPorTuguese-2 adapted a GPT-2 foundation using roughly 1.2 GB of Portuguese Wikipedia text. Its developers also provided a vocabulary tailored to the language. PTT5 adapted multilingual T5 for tasks framed as text inputs and text outputs. Its training used BrWaC, a collection the paper describes as containing roughly 2.68 billion tokens. Both releases show that a team can change how a system reads Portuguese while retaining weights learned in an earlier run.

BERTimbau also combined earlier weights with components trained anew, including a Portuguese vocabulary. Its use of BrWaC made that corpus part of a foundation on which other groups could build. The paper gives BERTikal, trained on 2.6 GB of court documents, as an example of adapting BERTimbau for a domain. The survey also discusses BERTabaporu, a Brazilian Portuguese project that started from scratch using 2.9B tokens of Twitter data. The source of the text and the origin of the weights are separate dimensions in this history. A system can start from scratch on a narrow domain or adapt inherited weights to a new one.

The authors note that encoder-only architectures such as BERT dominated much of this work. An encoder produces representations of input text that can be used for tasks such as classification. A decoder trained causally predicts the next token from a prefix, which makes it a direct basis for open-ended generation. The survey describes a shift toward that second kind of work. Sabiá adapted existing generators using roughly 7.8 billion tokens from a filtered ClueWeb collection. TeenyTinyLlama trained generators from scratch in Brazilian Portuguese with 6.2B tokens. Glória did so for European Portuguese with a corpus of 35.5 billion tokens. These examples made the route taken by Tucano intelligible, while also showing that projects varied in language variety, training scale, and access to their materials.

Combining datasets had already become one way to increase the volume available for pretraining. Glória pooled sources for European Portuguese. The RoBERTaLexPT work used deduplicated collections for general and legal Portuguese. The Tucano authors describe earlier cleaning as predominantly heuristic, covering operations such as removing HTML, repairing misencoded text, and finding duplicates. A rule can detect a broken character sequence or an empty fragment. The harder question is how to judge whether an otherwise well-formed document is informative enough to keep. The paper treats this as a separate problem from collection or cleanup and investigates a classifier for it.

#### Why benchmark choice was part of the problem

A public generator is easier to compare with its peers when researchers share a test protocol. The authors describe a Portuguese research landscape where teams often used different tests or metrics, and where access to some systems was limited. A score from one paper could be difficult to place alongside a score from another. Even a shared dataset could serve different purposes, depending on whether it was used to adapt a system or to test what that system could already do given a prompt.

The available tests were also built for different settings. Some native datasets had served as downstream tasks for BERT-style systems. Using them to test a causal generator with examples in its input changes the way the task is presented and answered. Other tests came from machine translation of English benchmarks. They expanded the menu of tasks researchers could run in Portuguese, while carrying possible differences in wording and cultural setting. The authors wanted to find out how these [evaluation benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) behave during training, as well as where a fully trained generator would rank.

This motivates the paper’s use of intermediate checkpoints. A benchmark score at the end of pretraining says how the generator did at that point. A series of scores along the way can show whether the benchmark responds as the same generator reads more text. The authors ask whether progress on next-token prediction is visible in these other measurements. Their description of earlier work also explains why making the intermediate artifacts available matters. A team can ask that question again with a different prompt or test when it has the actual weights from the training run.

### The method, step by step

#### Assemble and deduplicate GigaVerbo

The authors start by collecting Portuguese portions of public datasets. They concatenate those portions into one collection and use exact hashes to identify duplicate documents. A hash gives the pipeline a compact identifier to compare across a collection. Here the comparison is for exact duplication. A document that turns up unchanged in more than one constituent source need only contribute its text once at this stage. The approach follows earlier efforts to build very large collections by combining existing sources.

The resulting GigaVerbo collection has over 145 million documents and 780 GB of text. The constituents include sources of quite different kinds. Wikipedia and Corpus Carolina appear among the sources from which the authors draw examples for judging quality. Common Crawl and LegalPT are also represented in that sample. The source labels remain meaningful after concatenation because the team considers the overall quality of individual subsets when it later decides what to repeat. Pooling the text gives the authors a large starting supply. It also gives them a mixture whose composition can be altered without collecting every document anew.

From public Portuguese corpora to Tucano The steps in order.

#### Turn example judgments into a corpus filter

The authors want the filter to distinguish informative Portuguese prose from text that may be valid as a sequence of characters but offers little material for language training. They describe the difference through examples such as an article or tutorial and a fragment scraped from a product page. It is difficult to capture that judgment with a length rule alone. Scoring every document with a large external system would be expensive, and the paper also identifies the cost of obtaining human judgments at scale. The approach is to obtain scores for a sample, then teach a smaller classifier to act on the whole collection.

The team randomly draws 110,000 samples from 9 nonsynthetic subsets of GigaVerbo. GPT-4o receives each sampled text and rates how suitable it is as Portuguese training material. The scoring scale runs from 0.0 to 1.0, and the prompt asks the judge to consider qualities such as informativeness and value for training. The authors then create categorical targets from the ends of the score distribution. The two conditions can be expressed separately.

```
s ≥ 0.8
```

Here `s` is the score GPT-4o assigns to an individual text. The symbol `≥` includes scores equal to the cutoff as well as those above it. The cutoff `0.8` defines the high-quality class for the classifier’s training examples.

```
s ≤ 0.6
```

Here `s` again denotes the judge’s score for the text. The symbol `≤` includes the cutoff and all scores below it. The cutoff `0.6` defines the low-quality class. Scores between the cutoffs fall outside these categorical definitions. The resulting labels represent which side of the judge’s quality rubric an example clearly occupies.

The paper gives some texture to what that rubric picks up. On inspected Wikipedia examples, GPT-4o frequently gave scores below 0.5 to documents that were poorly formed, incomplete, or excessively short, including documents with fewer than 20 words. The authors also report that text judged dangerous, toxic, or sexually explicit could receive scores below 0.1. Those observations explain why the resulting data can teach more than formatting detection. They also explain why “quality” needs to be interpreted as a judgment for this training recipe. Different reasons for downgrading text all enter the same scoring channel.

The first candidate filter converts a sample into a numerical representation using LaBSE. Its output is a vector with 768 dimensions, a fixed-length description of the text that can be passed to a classifier. The authors train XGBoost on those vectors. XGBoost combines decision trees, and in this setup the trees learn to distinguish the high and low labels from patterns in the LaBSE features. The reported settings include a learning rate of 0. 1, with 100 estimators and tree depth capped at 10. In a separate experiment the team uses the same representation and learning approach to predict a numerical score directly.

The other route adapts BERTimbau to [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). The system reads each text and learns the quality task through updates to its inherited Portuguese representations. The base version is trained with a learning rate of 4 × 10⁻⁵, a weight decay of 0.01, and batches of 128 examples for 3 epochs. An epoch is a pass through the training data. For the categorical comparison, both approaches are evaluated on a test set of 11,000 examples. The authors also evaluate BERTimbau-large before choosing the base version for the corpus pass.

The procedure for applying the chosen classifier is distinct from the procedure for turning GPT-4o scores into labels. The first thresholds define examples used to teach the classifier. At corpus scale, the authors use the classifier’s assigned class and its confidence in that assignment. They discard a document when it is classified as low quality and the confidence in that class is above 95%. This cautious removal policy is meant to preserve potentially valuable material among ambiguous cases. The released GigaVerbo records the assigned class and confidence for each sample, so the decision about what to keep can be reproduced or varied.

#### Decide how much text each run sees

After filtering, GigaVerbo contains 129 billion tokens before repetition. The authors use this as the starting pool for mixtures with different exposure to the available text. For Tucano-160m, Tucano-630m, and Tucano-1b1, they repeat certain subsets according to their overall assessed quality. The resulting mixture contains 169 billion tokens. For Tucano-2b4, they take a different approach and use four passes through the entire filtered collection, for roughly 515 billion processed tokens.

Selecting sources for repetition changes which kinds of text take up more of the training budget. Repeating the entire filtered collection preserves its proportions across passes. In both cases, another encounter with a passage contributes to the processed-token count. The counts describe training exposure, while the size before repetition describes the available material. The paper motivates this design with earlier work reporting that several passes through a constrained collection can still be useful, with diminishing returns as repetition becomes extensive.

The schedule also helps explain why the authors first remove accidental duplicates and later add intentional repetition. Exact deduplication curbs repetition inherited from overlapping sources. Deliberately repeating a selected subset after that point is a documented decision about the mixture. It lets the authors determine which sources receive more weight for the smaller runs. For the largest run, the authors document the same material being visited across whole-corpus passes. This gives the later checkpoint analysis a clear definition of the horizontal axis, namely tokens actually processed.

#### Encode Portuguese economically

[Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) converts the characters in a document into the discrete pieces the decoder works with. A piece can be smaller than a word, and a vocabulary determines which pieces have their own entries. The same Portuguese passage can therefore occupy different numbers of token positions in different systems. When a passage takes fewer positions, more text can fit inside a fixed token window. There is also a cost to enlarging the vocabulary, because the system must represent and predict its entries.

To choose a tokenizer, the authors repeat an earlier comparison using Portuguese poems. The sample contains roughly 14,000 words and includes material by Fernando Pessoa and Ronald de Carvalho. For a given amount of text, the comparison looks at how much each tokenizer compresses it in token terms and how large a vocabulary it uses. This sets up a choice between tokenizers with extensive coverage from very large inventories and those that get good compression by allocating a smaller inventory to Portuguese.

The selected tokenizer comes from TeenyTinyLlama. It uses SentencePiece’s unigram approach to [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/). A sub-word inventory can represent a word using several pieces when the full form is missing from the vocabulary. The unigram approach provides a way to choose among possible segmentations using a learned inventory and corresponding scores. The tokenizer used for Tucano has a vocabulary of 32,000 entries. The authors use it to encode GigaVerbo and put an end-of-text marker between documents. The marker tells the decoder that a new document has begun within the training stream.

#### Train a decoder to predict the next token

Tucano uses a decoder-only [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) based on Llama and implemented through Hugging Face. Attention lets the decoder draw on different positions in the part of the text it has received. The causal objective limits what it can use for each prediction to earlier tokens. The answer during training is the actual following token, and the decoder allocates probability among the possible entries in its vocabulary. Once it can make that prediction, it can generate a continuation by feeding a predicted token into the next round of prediction.

The paper specifies cross-entropy as the training loss. At any one position, its contribution can be written in terms of the probability given to the observed token.

```
ℓ = −log p
```

The symbol `ℓ` is the loss contribution at the position, `p` is the probability the decoder assigns to the actual next token given its prefix, and `log` is the natural logarithm. The minus sign makes the loss larger when the probability of the observed continuation is smaller. Across token positions, this objective rewards a decoder that gives more probability to the text it actually sees.

The architecture uses root mean square normalization to control the scale of activations and rotary position embeddings, called RoPE, to supply position information to attention. The paper specifies SiLU as the activation, a nonlinear transformation used within the network. Tucano-160m, Tucano-630m, and Tucano-1b1 train with context windows of 2048 tokens. Tucano-2b4 trains on sequences of length 4096. The window length determines how many token positions the training sequence can contain.

The authors select network dimensions so that the decoder, the optimizer state, and batches of training examples fit on their GPUs. They use grouped-query attention for Tucano-630m, Tucano-1b1, and Tucano-2b4, with 4 key-value heads per decoder block. In attention, queries look for relevant information and keys and values give the mechanism something to match and retrieve. With grouped queries, several query heads share the same key and value heads. This reduces the memory cost of storing and processing that part of attention. The authors use the savings to increase token throughput within the hardware budget.

#### Run and monitor pretraining

The training stack uses PyTorch and distributed data parallelism. Each GPU can hold a copy of the network and process part of a batch. The workers combine the information needed to make a common weight update. Tucano-160m and Tucano-630m each train on 8 NVIDIA A100-SXM4-80GB GPUs. Tucano-1b1 and Tucano-2b4 each use 16 of the same GPUs. FlashAttention 2 and Liger Triton kernels help reduce the cost of moving data and carrying out operations during training. The authors also use BF16 mixed precision and enable TF32 for matrix multiplication.

All the pretraining runs use AdamW, which updates the weights from gradients while maintaining running estimates of gradient behavior. The reported stability constant, ε, is 1 × 10⁻⁸. The decay coefficients β₁ and β₂, for the running gradient estimates, are 0.9 and 0.95. A weight decay factor of 0.1 regularizes the weights. The gradient clipping threshold is 1.0, which limits the size of gradients used in updates when their norm grows too large. These settings describe the optimization procedure alongside the data and the architecture.

The learning rate determines how large an update the optimizer attempts. It rises linearly during 1,000 warm-up steps. The schedule then uses a cosine-shaped decrease during 90% of training, bringing the rate down to 10% of its maximum. The rate stays at that minimum during the last 10% of training. The authors describe choosing settings through short exploratory runs of roughly 10,000 steps and drawing others from earlier work on systems of similar size.

The team also tries accumulating gradients across smaller batches before making an update. That would allow an update to represent more tokens than fit simultaneously during a training pass. In their preliminary comparisons, however, early loss falls more quickly with large batches processed directly. The main runs therefore avoid gradient accumulation. During those runs, the team saves intermediate weights at approximately 10.5 billion-token intervals and measures predictive performance on text reserved from training as well as on the task suite. The checkpoints connect each set of weights to the amount of text processed by that point.

#### Adapt the larger variants to instructions

Causal pretraining teaches a decoder to continue text. Training for instructions gives it examples where a desirable continuation is a direct response to a user. The authors create instruction-following versions of Tucano-1b1 and Tucano-2b4 in a separate sequence of updates. They start with the final base checkpoints and add special instruction boundary tokens. For Tucano-1b1 the paper identifies that starting checkpoint as step 480,000.

The first stage is supervised fine-tuning. The data contain over 600K examples of user and assistant interactions generated by systems that had already been adapted for such exchanges. Training on these demonstrations gives Tucano examples of how a response should follow a request framed in the chat format. The two variants run for four epochs with 262K tokens per optimizer step. The learning rate decays to 10% of the minimum rate from pretraining, with no new warm-up period. The paper reports that the other inherited hyper-parameters stay in place.

The second stage uses direct preference optimization. The preference dataset contains 35K triplets. Each triplet connects a prompt to a favored answer and a less favored alternative, giving the training procedure a relative judgment about responses to the same request. The authors start this stage from each variant’s supervised checkpoint and implement it with the Transformer Reinforcement Learning library. They use a cosine schedule with a learning rate of 1 × 10⁻⁶ and weight decay of 0.1. The preference setting beta is 0.5, and the loss uses a sigmoid with zero label smoothing. The dataset is repeated for three epochs. The global batch size is 16 for 1b1 and 8 for 2b4.

The resulting Tucano-1b1-Instruct and Tucano-2b4-Instruct are evaluated as instruction-following systems in addition to being considered alongside the base family. The release includes the generators, intermediate checkpoints, data, implementation, and training logs. The authors make GigaVerbo and its classifier materials available through Hugging Face and the project code through GitHub. This exposes both what went into the training recipe and which parts researchers can revisit using the released artifacts.

### Experiments and results

#### What counts as progress during training

The study follows training loss, validation perplexity, and task-specific scores. Training loss tells the authors how well a decoder predicts the text used for its updates. For validation, they randomly set aside 60,000 samples from GigaVerbo. Validation perplexity summarizes the decoder’s predictive uncertainty on that reserved material. A lower value means the decoder assigned more probability to the observed continuations on average. For the cross-entropy objective, the relationship can be written as follows.

```
PPL = exp(L)
```

Here `PPL` is perplexity, `L` is the mean next-token cross-entropy on the evaluated text, and `exp` is the natural exponential function. The result is tied to the tokenization used to present that text. The authors track it across training checkpoints alongside the training loss and log the learning rate and gradient norm as well.

The authors report larger reductions in loss and validation perplexity for the larger Tucano variants over the course of training. They interpret these curves as consistent with the expected benefits of increasing size and token exposure. The settings changed in other ways across sizes, including the token mixture and the length of training sequences for the largest decoder. The curves describe the behavior of the complete runs. They establish improvement on the predictive objective and supply a reference point for asking whether particular task scores also improve.

GigaVerbo token volume across corpus and training settings Repeating the full filtered corpus gives Tucano’s largest training run the highest token exposure.

**The numbers**

| System or setting | billion tokens |
| --- | --- |
| Filtered GigaVerbo before repetition | 129 |
| GigaVerbo mixture with selected subsets repeated | 169 |
| Tucano-2b4 training with full filtered corpus repeated (this paper) | 515 |

The chart compares token counts for settings derived from the same corpus. The total for Tucano-2b4 is approximate. A higher bar represents greater training exposure, with repeated material included. The first bar gives the filtered supply before repetition, and the mixture used for the smaller variants lies between that supply and the total processed by Tucano-2b4. This difference matters for the checkpoint analysis. A late checkpoint counts additional passes over text even when many of its tokens came from familiar documents.

#### What the benchmark suite measures

The main evaluation harness contains 14 benchmarks. Ten originate in Portuguese, and four are Portuguese machine translations of English tests. The native group includes educational and professional multiple-choice exams, paired-text tasks, and tests of sentiment and hate speech. ENEM and BLUEX are exam benchmarks, and OAB uses questions from the Brazilian bar exam. ASSIN2 RTE and FAQUAD NLI probe inference, where the system needs to judge a relationship between pieces of text. ASSIN2 STS instead examines [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/), the degree to which texts are alike in meaning. HateBR, PT Hate Speech, and TweetSentBR cover forms of text classification.

CALAME-PT joins that native group with a generation task. The system receives a sentence with the last word withheld and must produce the missing word. The authors run it in a zero-shot setting, so the input includes no solved demonstrations to follow. Generation is deterministic and receives credit only for an exact match. A different word can make the sentence fluent and still receive no credit. LAMBADA-PT, translated from the original LAMBADA test set, follows the same procedure because it also asks for a missing final word.

The other translated tasks are ARC-Challenge, HellaSwag, and TruthfulQA. They are drawn from a multilingual implementation of the evaluation harness. The authors retain the standard leaderboard’s prompt-example settings for [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/), where a prompt can show solved instances to demonstrate the expected task. The suite therefore combines evidence obtained through different interfaces. Some tasks ask a system to generate a word. Others ask it to make a choice or render a classification. The effect of more pretraining can be tracked separately for each benchmark under its established setup.

The checkpoint comparisons use evaluation points spaced approximately 10.5 billion processed tokens apart. At each point the authors record the task scores and later calculate the Pearson product-moment correlation between the checkpoint scores and cumulative token exposure. As a compact way of writing the relationship measured, let `T` and `S` denote the paired series.

```
r = cov(T, S) ÷ (σ(T) × σ(S))
```

Here `r` is the Pearson correlation coefficient. `T` is the series of cumulative processed-token counts and `S` is the series of scores on a particular benchmark for a particular Tucano variant. The operation `cov` measures how the paired values vary together. The function `σ` gives the standard deviation of a series. The division sign `÷` divides the covariance by the product of the standard deviations, and `×` denotes multiplication. Covariance and standard deviations use a consistent normalization. The resulting coefficient measures the direction and strength of linear association.

The paper highlights coefficients above 0.6 and pays particular attention to tests that clear that threshold across the whole Tucano family. This question differs from which system gets the highest score at its final checkpoint. A test can register a steady trend during training while its final score remains modest. A higher final score on another test can coexist with a weak or erratic trend. The authors look at both kinds of result because a benchmark used to study pretraining has a different job from one used simply to select a system at the end.

#### Where the scores follow token exposure

The authors identify CALAME-PT and LAMBADA as consistent across the family, along with HellaSwag and ARC-Challenge. Each has a positive relationship above the paper’s 0.6 threshold for every Tucano size. The result spans both native and translated material. It also spans last-word prediction and multiple-choice evaluation. Under these particular prompts and scoring protocols, both task formats can register differences between earlier and later checkpoints.

The native exam tasks tell a different story. ENEM and BLUEX show a moderate positive relationship with cumulative token exposure only for Tucano-1b1. The authors report that OAB scores appear unrelated to cumulative training tokens at every tested size. The training collection contains over 4 billion tokens from the legal domain, which makes OAB a useful example of the distance between topic exposure and exam performance. There is substantial legal text in the reading material. Whether a later checkpoint selects the correct answer in this exam is a separate outcome that depends on the test format and the knowledge it asks the system to use.

FAQUAD NLI is another native benchmark whose performance appears unrelated to cumulative exposure. ASSIN2 RTE scores can fluctuate substantially between adjacent evaluation points. The authors also observe cases of inverse scaling, their term for a benchmark score that worsens as training advances. This occurs on several tasks for Tucano-160m. They report related behavior for Tucano-2b4 on HateBR and ASSIN2 STS, including performance below a random guesser. Their comparison to chance gives those declines an interpretation beyond the mere fact of a negative trend.

Taken together, these outcomes show that the steadily improving pretraining objective can coexist with several kinds of benchmark trajectory. Some tasks improve consistently. Others yield fluctuations, weak trends, or declines. The authors consider whether certain abilities might emerge only above a size threshold, but point to ARC-Challenge and HellaSwag as examples where generators in the tested range already show clear progress on multiple-choice tasks. The type of answer alone explains little about why an individual benchmark responds the way it does.

#### How Tucano compares with other systems

For the main comparison with other generators, the authors focus on the benchmarks that track training across the Tucano family. This gives the comparison a defined purpose. It asks how the resulting systems perform on the subset already shown to respond to changes during causal pretraining. It also means the comparison is conditional on a choice made after examining the checkpoint trajectories. A favorable comparison on that subset answers a narrower question than a ranking across the entire harness.

On those selected tests, the authors report that the largest Tucano variants outperform several Portuguese and multilingual comparison systems across almost all the benchmarks, including Llama-3.2-1b. They single out CALAME-PT and LAMBADA as cases where Tucano exceeds Bloom-1b7. The comparison is especially relevant because the tasks ask for open generation of the missing word, scored with exact matches under the same protocol. Tucano can be competitive with systems drawn from a much larger training effort while using a corpus and recipe built for Portuguese.

Across the full harness, the authors identify the Llama-3.2 series as the exception to their reported advantage over the systems in their comparison table. They also discuss Sabiá-7b, Gervásio-7b, and Llama-2-7b separately. These larger Llama-based systems are substantially stronger on several tasks that track Tucano’s pretraining weakly, including ENEM, BLUEX, OAB, and FAQUAD NLI. This places the checkpoint analysis and the cross-system comparisons in context. The scores on those tasks can be high in other settings, even though they are weak indicators of progress under Tucano’s particular training conditions.

The authors consider several explanations for such results. Training material may contain styles of question and response that help a system handle an evaluation. Some tasks may require particular domain material or stronger capabilities at a larger scale. Chance variation can also matter, as the fluctuating ASSIN2 RTE checkpoints illustrate. The authors do not have the full training data for some baselines, so the evidence supports the comparisons under the evaluation harness but leaves the origin of their scores unresolved.

#### How instruction-following is tested

The authors construct AlpacaEval-PT from a Portuguese machine translation of Alpaca material. This evaluation has 805 prompts. The instruction-tuned systems generate answers, and the comparisons use the original Alpaca completions from text-davinci-003 as the reference standard. GPT-4 Turbo judges paired outputs with attention to relevance, coherence, and whether the response follows the user’s request. The reported measure is a length-controlled win rate, which adjusts the preference comparison for answer length. An advantage under this measure reflects judgments against a reference response on this set of prompts.

The Instruct variants can outperform larger systems including Sabiá-7b and Gervásio-7b in this test, and the authors describe their performance as approaching that of Llama-3.2 variants. The task-suite comparisons also register losses after instruction tuning. The two observations can coexist because the procedures reward different responses. AlpacaEval-PT asks whether an answer serves a request well. An exact last-word match or a benchmark label gives credit for a narrower target. Adapting the response style that a user sees can change how well a system meets those other targets under their established prompts.

The paper supplements the evaluations with examples from Tucano-2b4 and Tucano-2b4-Instruct on subjects tied to Brazilian and Portuguese culture. These examples illustrate the kind of coherent, contextually relevant prose that the authors saw. They also describe a tendency to produce factually incorrect or incomprehensible content. The examples are demonstrations of what can occur under particular prompts and decoding settings. The paper gives the demonstration settings as top-p of 1.0, temperature of 0.3, and top-k of 100.

#### Throughput and the cost of evaluation

The paper puts Tucano-1b1’s training throughput at 24,180 tokens per second for each A100-SXM4-80GB GPU. The authors describe this as similar to the documented throughput of TinyLlama and above what was documented for Pythia. They also estimate FLOPs utilization, a comparison between the throughput achieved in the run and a theoretical hardware maximum. A rate of tokens processed per second is an observed speed for the training stack and configuration. The utilization estimate interprets that speed relative to the capacity of the equipment.

The project tracks energy expenditure during training, experiments, and evaluation with CodeCarbon. The reported total is 16,675 kWh, with roughly 6% used for experiments and evaluations. The authors report approximately 5,900 GPU hours across training and give a cost estimate of approximately 5,990 USD under the hourly assumptions stated in the paper. They estimate total emissions at 6.1 tonnes of carbon dioxide equivalent using a German grid intensity of 0.37 kilograms of carbon dioxide equivalent per kilowatt-hour for 2023. That grid estimate converts electrical consumption to estimated emissions for the reported setting.

Accounting for experiments and evaluation makes visible a cost that a final-run total would miss. The repeated checkpoint measurements that make the benchmark analysis possible require computation of their own. So do the exploratory runs used to choose batch settings and adjust preprocessing. The authors report carrying out most experiments on the smaller Tucano variants to minimize that expenditure. The resulting budget reflects both training the released systems and investigating how to train and assess them.

### What the ablations show

#### Changing how a batch is assembled

The most direct training comparison concerns batch size and gradient accumulation. A batch is the group of training examples whose gradients contribute to an update. When using accumulation, the trainer processes smaller groups in sequence and keeps their gradients until it has enough for an update. This can allow the update to draw on a large effective batch within the memory available. The authors test whether that strategy brings the same convergence benefit they observe with larger batches processed directly.

The main comparison uses the 160 million parameter Tucano. The authors vary the direct batch from 1 million tokens, represented by a batch size of 512 in the figure caption, down to 65 thousand tokens, represented by 32. They also test ways to achieve a batch of 0.5 million tokens, represented by 256, with 2, 4, or 8 gradient accumulation steps. For these tests the learning rate and AdamW decay coefficients stay fixed, as does the linear warm-up of 1,000 steps. This gives the comparison a shared optimizer schedule while allowing batch construction and size to vary across settings.

The largest direct batch produces the fastest early reduction in loss. The authors also report slower initial convergence as more accumulation is used to achieve a target batch size. The figure examines the first 200 million processed tokens and shows that the rates of change in loss become more similar as training proceeds. Its diagnostic can be written without specifying how the plotted slope was estimated.

```
dₗₒₛₛ = rate of change of training loss
```

Here `dₗₒₛₛ` names the diagnostic shown in the training comparison. Training loss is the penalty on the decoder’s next-token predictions. The horizontal progression in the figure is cumulative tokens, so the diagnostic concerns how loss changes over that progression. Early in the runs, the authors see the steeper improvement with larger directly processed batches.

The batch experiments explain the decision to omit accumulation from the full Tucano runs. They establish an early-training pattern under the choices the authors tested. The paper reports similar observations during more limited experiments at other sizes. The authors suggest that the normalization used in the Llama architecture might contribute to the behavior, but they do not present a comparison that varies the normalization while holding the accumulation setup fixed. The proposed cause therefore remains a hypothesis. The comparison directly informs the recipe without resolving the mechanism.

#### Choosing a classifier and a tokenizer

The filter comparison isolates another practical choice. The authors evaluate classifiers on a test set of 11,000 examples derived from the GPT-4o scoring procedure. One route predicts labels from fixed LaBSE embeddings with XGBoost. The other adapts BERTimbau itself to the classification task. An additional LaBSE and XGBoost run predicts a continuous score and records a root mean squared error of 0.16 on the evaluation. That metric measures the magnitude of numerical prediction errors, giving larger errors more influence. It serves a different prediction target from the binary classification test.

The authors choose BERTimbau-base for corpus-wide scoring because of its combination of classification performance and speed. They report that BERTimbau-large performs very similarly on the classification evaluation, and that the chosen base classifier is faster than the large version and the tested XGBoost classifiers. This supports their choice of implementation for the filtering task. The authors hypothesize that LaBSE representations may have been less suitable for Portuguese in this setting. The comparison changes both the representation and the way the prediction is learned, so those results leave the cause of the performance difference open.

On the whole collection, the chosen filter assigns approximately 50 million samples to the low-quality class out of 145 million scored samples, leaving 65% classified as high quality. The policy that removes only high-confidence low-quality cases leaves approximately 70% of GigaVerbo available. The first percentage describes a classification outcome. The second describes what the authors retain under their actual decision rule. These outcomes show how a threshold on confidence affects corpus size. The study leaves an end-to-end comparison of generator quality under alternative thresholds for future investigation.

The tokenizer test makes a different controlled comparison by holding the input passage fixed. The paper reports weak Portuguese compression for the Llama 2 tokenizer and describes Sabiá-2 as the weakest tokenizer in the comparison in spite of having a larger vocabulary than its predecessor. Some of the most compressive options have multilingual vocabularies exceeding 250,000 entries. TeenyTinyLlama provides the combination the authors want, good Portuguese compression and a smaller vocabulary. That supports the engineering choice about context and vocabulary cost. It leaves open how much any of the tokenizer choices would change benchmark outcomes if used to train an otherwise identical Tucano.

#### What remains combined in the main runs

Comparing the base and Instruct variants shows what changes after the complete instruction adaptation procedure. Some base-suite scores fall, while the Instruct variants perform well in the chat comparison. Supervised demonstrations, preference data, and the added chat delimiters enter the adaptation together. The paper’s results give the combined effect in those evaluations. A separate evaluation after each intervention would be needed to attribute the changes to particular parts of the procedure.

The authors also identify corpus ablations as a topic for future work. They vary the mix by design between the smaller and largest runs, but size, context length, and total exposure change as well. The experiments therefore reveal how specific recipes behave, including what their checkpoints can do. They leave the value of any individual GigaVerbo subset, or the overall contribution of learned filtering to downstream generation, unmeasured in a matched pretraining comparison.

### Limitations

#### Limits the authors identify

Tucano is principally a Brazilian Portuguese effort. The authors consider its procedures adaptable to other Portuguese varieties, while their survey notes that varieties such as Angolan Portuguese have very limited representation in the resources they review. The training focus and evaluation mix support claims primarily about the settings actually tested. The fact that Glória and Albertina provided precedents for European Portuguese also helps explain why it is important to keep the regional scope of a release visible.

The authors identify machine translation as a limitation of their material and tests. A substantial part of the pretraining corpus contains material translated from English. The main harness also uses translated benchmarks because native Portuguese tests are scarce in some task categories. Translation makes those categories available for comparison, while the authors regard native tests as better suited to linguistic and cultural nuance. The chat evaluation also begins from translated prompts. Its results describe instruction-following under that particular adaptation of the Alpaca setup.

The paper reports hallucinations in generation, including fluent text with factual errors. The qualitative examples show responses on culturally relevant subjects, while the authors acknowledge that a system can generate plausible prose and still get facts wrong. The examples establish the presence and character of this behavior. The paper does not estimate how frequently it occurs across topics or deployment settings. Likewise, the automatic chat judgments evaluate the stated response qualities for the test prompts, without supplying a general measure of factual reliability.

The reasons for weak benchmark trends remain open. The authors consider the possibility that some tests become informative only at larger sizes and explicitly propose scaling the family further. They also consider evaluation-style familiarity and luck as possible sources of some scores. Unavailable training collections for some comparison systems prevent them from tracing those scores back to specific materials. These are interpretations of the evidence, and the paper leaves the competing explanations unresolved.

#### Limits visible in the design

A Pearson coefficient here measures how scores and token counts move together along one training trajectory. Token exposure increases along with optimizer steps, changes in the learning rate, and further encounters with material in the mixture. Accordingly, an increasing task score can be associated with these later checkpoints without identifying which part of the training process caused the gain. This matters particularly for the largest run, where further exposure includes repeated passes through the same filtered pool.

A single linear correlation also compresses the shape of a trajectory. A task can respond early and then level off, or it can fluctuate before stabilizing. Those patterns have different implications for someone using the task to distinguish checkpoints. The reported positive threshold is a practical way to pick out consistent tasks in this experiment. It does not establish that those tasks cover all desired abilities, or that a task with a weak coefficient would be uninformative after targeted training. OAB is a case in point because performance under general causal pretraining and performance after preparation directed at legal exams answer different questions.

The filter inherits the rubric of its automatic judge. Evaluation against labels derived from GPT-4o measures how well a classifier reproduces those labels. It leaves open how well the rubric corresponds to independent judgments of appropriate Portuguese training material or how its preferences affect a generator trained on the retained set. A low score can reflect formatting problems, lack of informative content, or a reaction to subject matter. Treating all these reasons as a single class makes filtering feasible at scale, while limiting what the class label reveals about the discarded text.

Exact hash deduplication gives a precise rule for repeated documents. The same rule leaves near duplicates, translated equivalents, and overlaps between training documents and benchmark content outside what exact matching alone can establish. The held-out GigaVerbo sample is explicitly reserved for validation, giving the perplexity experiment its own split. That reservation does not establish the relationship between GigaVerbo and independently assembled task sets. The paper’s openness gives subsequent researchers material with which to investigate such relationships.

Finally, the resource figures describe a particular implementation and computing setting. The carbon total uses the authors’ grid intensity assumption, and the throughput comparison brings together figures documented by different projects. These numbers quantify the practical cost and speed of the reported effort. Estimating what another team would spend would depend on its hardware, grid, training configuration, and the extent of its exploration.

### What came after

Later citing work spans evaluation, specialized data, representations, and pretraining. The titles identify each study’s subject. For these citations, the specific use of Tucano’s weights, corpus, filter, or checkpoints remains unspecified. Their connections to the work are clearest where they address the same research questions with a different task or resource.

PHEB introduces a benchmark at the European Portuguese high-school level. Its focus is pertinent to the regional scope of Tucano and to the finding that exam scores can respond unevenly to causal pretraining. A benchmark framed around European Portuguese education brings a different language variety and educational context to the question of what an exam evaluates. Whether PHEB reproduces Tucano’s checkpoint analysis is a separate question from that shared focus. [PHEB](https://md.research.elamur.ai/free/en/papers/tavares-2026-pheb-european-portuguese-high-school/)

NegNLI-BR develops a Brazilian Portuguese benchmark centered on negation in natural language inference. The task focus is narrower than the inference categories in the Tucano harness. Tucano’s FAQUAD NLI results show why such distinctions matter. A broad task name tells the reader what kind of judgment is expected, while the construction of individual examples determines which part of that ability is exercised. A benchmark centered on negation gives the investigation a defined linguistic phenomenon. [NegNLI-BR](https://md.research.elamur.ai/free/en/papers/westhelle-2026-negnli-br-brazilian-portuguese-benchmark/)

The study on benchmark data contamination investigates underrepresented languages using Brazilian data. It addresses a question that matters when interpreting cross-system comparisons. If an evaluation overlaps with training material, its score can give a different account of competence than a score on unfamiliar items. Tucano documents its corpus and follows benchmark performance over time, which makes the relationship between exposure and evaluation a natural subject for investigation. The citing study’s title establishes its focus on contamination without identifying which Tucano artifacts it analyzes. [Benchmark Data Contamination in Underrepresented Languages](https://md.research.elamur.ai/free/en/papers/vilar-2026-benchmark-data-contamination-underrepresented-languages/)

The study of efficient fine-tuning methods examines Portuguese [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) through parameter-efficient adaptation of BERTimbau and an exploratory evaluation of generators. It brings together task-specific adaptation and generative evaluation within the same research topic. Tucano makes a separate distinction between pretraining a foundation and adapting one to answer instructions. The citing work’s scope places that distinction in a practical setting where the form of the question and the adaptation procedure both matter. [Efficient Fine-Tuning Methods for Portuguese Question Answering](https://md.research.elamur.ai/free/en/papers/nina-2026-efficient-fine-tuning-methods-portuguese/)

The sentence-embedding study revisits monolingual approaches for Brazilian Portuguese by comparing global and local representations. An embedding encodes text as a vector so that it can be compared or used by another procedure. Tucano uses embeddings as intermediate inputs in a candidate quality filter and discusses Portuguese representations as a possible downstream direction. The later study focuses on the representations themselves. Its title establishes the comparison of approaches, with the identity of the systems used in that comparison unspecified here. [Global vs. Local Sentence Embeddings for Brazilian Portuguese](https://md.research.elamur.ai/free/en/papers/peixoto-2026-global-vs-local-sentence-embeddings/)

NorBERTo presents a Portuguese ModernBERT effort whose title reports a training corpus of 331 billion tokens. It belongs to the large-scale Portuguese pretraining line that Tucano seeks to support. Its choice of architecture connects to the encoder side of the history surveyed by the Tucano authors. Read together, the topics show how developing a substantial Portuguese corpus can serve both representation learning and causal text generation, with distinct objectives and evaluation needs. [NorBERTo](https://md.research.elamur.ai/free/en/papers/silva-2026-norberto-modernbert-model-trained-portuguese/)

LegalSim-PT builds a dataset for [Portuguese legal document simplification](https://md.research.elamur.ai/free/en/topics/legal-ai/) using linguistic metrics. It addresses a different use of legal language from the bar exam questions that Tucano evaluates. A simplification dataset concerns how legal text can be made easier to read. The exam benchmark asks which answer is correct. The citing work extends the range of legal-language resources represented in this research line and gives its task a more specific purpose than general exposure to legal prose. [LegalSim-PT](https://md.research.elamur.ai/free/en/papers/scalercio-2026-legalsim-pt-building-dataset-legal/)

BIPA develops a Brazilian Portuguese phonetic dataset that represents dialect variation in the International Phonetic Alphabet. It gives language variety a concrete representation at the level of pronunciation. Tucano works with written text and foregrounds the uneven coverage of Portuguese varieties in available resources. The citing work addresses a related issue of coverage for a different kind of linguistic information, where a written corpus alone provides no explicit phonetic analysis. [BIPA](https://md.research.elamur.ai/free/en/papers/sousa-2026-bipa-brazilian-portuguese-phonetic-dataset/)

## Cite

Cite as Nicholas Kluge Corrêa, Aniket Sen, Sophia Falk and Shiza Fatimah. 2025. Tucano: Advancing neural text generation for Portuguese. Patterns.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1016/j.patter.2025.101325](https://doi.org/10.1016/j.patter.2025.101325) · [arXiv 2411.07854](https://arxiv.org/abs/2411.07854)

```bibtex
@inproceedings{correa2025tucano,
  title = {{Tucano: Advancing neural text generation for Portuguese}},
  author = {Nicholas Kluge Corrêa, Aniket Sen, Sophia Falk and Shiza Fatimah},
  booktitle = {Patterns},
  year = {2025},
  doi = {10.1016/j.patter.2025.101325},
  eprint = {2411.07854},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1016/j.patter.2025.101325}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
