---
title: "Cross-domain Author Gender Classification in Brazilian Portuguese"
description: "Dias and Paraboni test how well author gender classification transfers across Brazilian Portuguese text genres when target labels are unavailable."
canonical: "https://research.elamur.ai/free/en/papers/dias-2020-cross-domain-author-gender-classification/"
---
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/dias-2020-cross-domain-author-gender-classification/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Cross-domain Author Gender Classification in Brazilian Portuguese

# Cross-domain Author Gender Classification in Brazilian Portuguese

Paper · 2020 · Rafael Dias and Ivandré Paraboni

**Authors:** Rafael Dias and Ivandré Paraboni · **Year:** 2020 · **Venue:** Proceedings of the Twelfth Language Resources and Evaluation Conference · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

Proceedings of the Twelfth Language Resources and Evaluation Conference · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/2020.lrec-1.154/)
- [PDF](https://aclanthology.org/2020.lrec-1.154.pdf)

## Summary

A classifier trained on social media posts may be asked to read something quite different, such as a request for government information. When there are no labeled examples of the new kind of writing, how much can the classifier learn from other sources? Dias and Paraboni investigate this question for author gender classification in Brazilian Portuguese. The task is to predict the male or female label recorded for an author from that author’s text. The authors compare Facebook status updates, solicited opinions on public issues, personal blogs, and requests to a government information service.

The authors first establish how well classification works when training and testing use the same kind of writing. They compare a majority-class baseline, a classifier that counts words from pre-defined psycholinguistic categories, and approaches that represent individual words through their frequencies or through [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/). The word-based approaches lead on every domain’s held-out test set. On Facebook, logistic regression using [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) word weights reaches a weighted F1 of 0.80, compared with 0.73 for the embedding approach. The embedding approach leads on Opinion and Blog, and both approaches reach 0.79 on E-gov. Because the simpler word-weight classifier is competitive and takes less computation, the authors use it for both transfer experiments.

The first transfer experiment trains on a single outside source at a time. Facebook is the clearest case of successful transfer. Training on E-gov gives a weighted F1 loss of 0.01 relative to the same-domain reference. The second experiment pools every available source except the target. Pooling leaves Facebook’s loss at 0.01 and reduces Blog’s loss from 0.09 with its best individual outside source to 0.05. It also lowers E-gov’s loss from 0.22 to 0.16 and Opinion’s from 0.29 to 0.26. The authors judge the remaining losses on E-gov and Opinion likely too large for practical use.

The results make the choice of test domain central to the interpretation. Several different sources come close to the Facebook reference, while even the best mixture falls well short of the Opinion reference. Combining sources helps in most of the comparisons, but it changes the amount and composition of the training data together. The experiments establish where transfer worked for these corpora. The reasons for the differences, including the roles of training volume and the kind of language authors use in each setting, remain open.

## Deep dive: Cross-domain Author Gender Classification in Brazilian Portuguese

Dias and Paraboni test how well author gender classification transfers across Brazilian Portuguese text genres when target labels are unavailable. · about 32 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

#### What changes when the source of the writing changes

Author profiling uses a person’s writing to predict an attribute of its author. The paper places gender classification alongside work on age and personality. Its task is a form of supervised [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). The training examples pair text with a recorded category, and the classifier learns associations it can use to assign a category to a new example. Here the category refers to the author. A text can therefore contribute evidence even when its subject has nothing to do with the person who wrote it.

A same-domain experiment draws both the training and evaluation examples from the same kind of writing. A classifier may train on some Facebook authors and be evaluated on other Facebook authors. It has to generalize to examples it has yet to see, but both sets come from the same collection context. Typical subject matter, register, and the amount of text available per example can recur across the split. A cross-domain test adds another demand. The classifier must use associations learned from one collection to make predictions about a different kind of writing.

Consider how the Facebook and E-gov collections were produced. A Facebook author can write informally about everyday activities. A person contacting a government information service is writing to obtain information, and the text may describe an administrative matter with little reference to the writer. In either corpus, word use could be associated with the recorded label. The association might arise from recurring ways of expressing oneself, from which topics different people discuss, or from the kinds of requests people in the collection make. The source-domain classifier learns from the patterns available to it. Its performance in the second domain depends on whether those patterns still help there.

The motivating situation is a shortage of suitable training labels. A project may have labeled texts from a different platform or genre, while the intended material has no comparable training collection. The question then becomes practical. Which outside source is worth using, how far does it fall behind a same-domain reference, and does putting several outside sources together recover some of the lost performance? The paper uses target labels to measure the answers to these questions in an experiment. It withholds those labels from training in the transfer conditions.

The authors mention marketing research, online fraud detection, and investigations involving copyright or plagiarism as motivations for author profiling. Those examples explain why the availability of training data might matter to someone choosing an approach. The paper chooses gender as an experimental target because the authors describe gender-labeled collections as relatively available and note that earlier work frequently obtained better results on gender than on other profiling attributes. Its experiment concerns the prediction task itself.

#### How earlier work represented writing

In its account of earlier same-domain research, the paper emphasizes that genre, text quality, and the amount of writing all make a difference to the task. Prior results also span multiple languages and different definitions of the classification problem. A reported score in one study can be difficult to compare with a score in another when both the test material and the conditions for prediction have changed. Shared tasks offer a common set of conditions under which quite different feature choices can be compared.

The PAN-CLEF Twitter evaluation discussed in the paper provides such an example. Basile and colleagues used a support vector machine with character sequences and won the competition’s overall comparison. A character sequence can record fragments of words and regularities in spelling or punctuation. Martinc and colleagues supplemented a related approach with [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), using information such as grammatical word classes. The paper also describes Sierra and colleagues’ convolutional neural approach and notes that several submitted systems placed ahead of it. These accounts motivate the paper’s decision to take inexpensive, familiar classifiers seriously.

Other studies in the paper’s background illustrate how much the representation can vary with the writing setting. Fatima and colleagues used word and character sequences with support vector machines for gender and age prediction. Reddy and colleagues investigated hotel recommendations and found that TF-IDF weights for recurring grammatical-category sequences could outperform alternatives such as a bag of words. An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) is a sequence of adjacent units, and those units can be grammatical categories, words, or characters. Changing the unit changes what the classifier can pick up. A sequence of tags can represent a repeated grammatical pattern even when its particular words differ.

The paper also considers approaches that aggregate words into psychologically motivated categories. Isbister and colleagues explored the contribution of LIWC categories to gender prediction and compared the availability of LIWC resources across languages. This design offers a different way to represent texts. A category can accumulate evidence from several words, giving documents a common feature even if they use different vocabulary. Its usefulness depends on the available dictionary and on how informative the categories are for the task at hand.

The neural approaches in the background show other ways of organizing the same basic evidence. Gopinathan and Berg combined a character-level classifier and a word-level classifier using [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/). The paper reports that their combined approach improved on the individual components and several standard baselines. Kim and colleagues treated demographic inference in Twitter text as a graph-based classification problem and compared recursive neural approaches with alternatives including lexica and logistic regression. The authors also describe a PAN-CLEF shared task combining text and images, in which Takahashi and colleagues’ system drew on both forms of evidence. Dias and Paraboni focus their own experiment on what can be learned from text.

#### Why prior transfer experiments mattered

The paper traces the cross-domain question to earlier PAN-CLEF work that trained on Twitter and tested on such sources as blogs, other social media, and hotel reviews. The shared task covered Dutch, Spanish, and [English](https://md.research.elamur.ai/free/en/topics/english/). This work made the distinction between learning from new examples and learning across genres explicit. Evaluation outside Twitter asked whether a predictor could still operate when its assumptions about the writing source changed.

The study by Medvedeva and colleagues is the paper’s closest point of comparison. It examined how far a strong cross-domain submission carried over to genres beyond Twitter in English and Spanish. In Dias and Paraboni’s account, Medvedeva and colleagues identify several influences on transfer. One is training volume. Another is how similar the writing is across the two domains. A third is the quality of the text, including the noise that can make some social media material difficult to classify. Genres that are relatively close may share enough predictive cues for additional data to help.

That explanation suggests a way to organize the Brazilian Portuguese experiments. A same-domain comparison establishes what the different representations can achieve under favorable conditions. Individual transfers reveal which specific sources are promising substitutes for labeled target writing. Pooling then asks whether the available sources are more useful together. Because the corpora differ in style, vocabulary, and size, the resulting comparisons can show the behavior of those source choices. Establishing which underlying property causes a transfer to succeed requires an additional kind of experiment.

### The method, step by step

#### From a corpus to a classification decision

The basic input is a document associated with an author. An example can contain a substantial body of writing, as in the collection of Facebook posts, or much less text, as in the E-gov corpus. The supervised part of the procedure uses documents that have a male or female label. The authors distinguish these learning instances from the full document totals because some documents are available as text without a gender label. They also use the full collections when creating domain-trained word representations.

Each classifier starts by converting text into a list of numerical features. A LIWC feature describes the use of a category of words. A TF-IDF feature describes the prominence of a particular word. The embedding approach uses word weights too, but it combines the vectors associated with the words to describe the document as a whole. The classifier then learns how values in its chosen representation relate to the recorded categories.

The same-domain experiment compares these representations using training and test portions drawn from the same corpus. The transfer experiments keep the TF-IDF classifier and change the origin of its supervised examples. In one experiment, each outside corpus takes a turn as the only source. In the other, the authors concatenate the outside corpora and use the resulting collection for training. Every target is evaluated separately.

From labeled author text to a transfer comparison The steps in order.

#### The reference split and the majority baseline

For the initial experiment, the paper randomly assigns 80% of each corpus to training and reserves 20% for testing. The split is stratified, which means it is made to preserve class proportions across the portions. That matters because the classes have unequal support and the more common class changes from corpus to corpus. A training portion with an unusually different label mix could alter the difficulty of the test for reasons unrelated to the representation. Stratification makes the intended comparison clearer.

The majority-class baseline predicts the more frequent category for every example. Its value is to reveal what can be achieved from prevalence alone. A classifier that never reads the input can still get some labels right when one category is common. It also fails on every author belonging to the other category. Weighted F1 reflects both the support of the more common class and the performance on the less common class, so the baseline is a more informative point of comparison than a raw count of correct majority predictions.

The authors tune the feature and network settings on training material. The reserved test portions provide the scores for the initial comparison. The paper also refers to a 10-fold cross-validation procedure for the same-domain results used as the transfer reference. Cross-validation rotates the held-out portion within a dataset and evaluates a succession of training runs. The paper describes these reference procedures differently, a distinction that matters when interpreting the reported test scores and the later transfer losses.

#### Logistic regression with LIWC categories

LR-LIWC takes its features from the Brazilian Portuguese version of Linguistic Inquiry and Word Count, or LIWC. A dictionary of this kind assigns words to categories intended to summarize aspects of language use. The document is represented through the resulting category features. If two writers use different words covered by the same category, their texts can contribute to a shared dimension of the representation. This is the sense in which the approach draws on [psycholinguistics](https://md.research.elamur.ai/free/en/concepts/psycholinguistics/).

The paper uses the dictionary’s 64 features. Logistic regression assigns learned weights to features and uses their combined evidence to predict the recorded category. A category that has different distributions across the training labels can contribute to the decision. Its influence depends on the evidence for that distinction in the training data and on the other features available to the classifier.

The paper describes the logistic-regression implementations as multinomial and specifies the liblinear solver, an L2 penalty, and balanced class weights. The solver is the procedure used to fit the classifier’s weights. The L2 penalty discourages excessively large learned weights. Balanced class weighting adjusts each class’s contribution to fitting so that the more frequent label does not dominate solely because it supplies more examples. Both the dictionary-based and the TF-IDF classifiers use these reported settings, which makes their comparison largely a comparison of representations within the same learning approach.

#### Logistic regression with weighted words

LR-Tfidf keeps track of particular words. The features are unigrams, so each word is represented separately without adjoining words forming part of that feature. The term-frequency component of TF-IDF reflects how much the word appears in the document. The inverse-document-frequency component discounts words that occur widely across the collection. A word that is prominent in a document can therefore receive more weight when it is relatively distinctive in the corpus.

Distinctiveness in the corpus and usefulness for predicting a label are separate properties. A term can be rare enough to get a useful TF-IDF value and still have little bearing on the classification. The authors address this by selecting the k best features using an ANOVA F score. Here k is the number of terms retained. The score assesses each feature separately, comparing how much its values differ across the labels with how much they vary within each label. That is what makes it a univariate selection procedure. Its score for one term does not depend on whether another term would be useful in combination with it.

The authors search over values of k on the training data. The reported range is 1000..30000 at intervals of 500. The selected k is 1,000 for Opinion, 3,500 for Facebook, 9,000 for E-gov, and 27,500 for Blog. These are feature counts for the fitted representations, as opposed to counts of all the word types present in a corpus. Retaining 27,500 features for Blog, for example, still leaves a substantial gap between the selected feature set and the full Blog vocabulary reported in the paper.

This representation is the basis for transfer. Its learned word weights and selected vocabulary come from the training setting. At test time, the source-derived representation is used to describe authors in the target domain. A useful source feature can remain predictive if evidence from the source recurs in the target. A word that is absent from the target contributes nothing to a target document, and vocabulary specific to the target has no fitted source association unless it was represented in training. The transfer experiment measures how well the overall representation works under those conditions.

#### Averaging skip-gram word vectors

The embedding approach begins with a vocabulary whose entries have learned vectors. A vector gives a word a position in a space of numerical features. Skip-gram learns these features from the contexts in which words appear. The method is connected to the earlier work by Mikolov and colleagues on [distributed word and phrase representations](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/).

The authors consider both skip-gram vectors trained from their domain corpora and pretrained Portuguese vectors from Hartmann and colleagues. Domain-trained vectors can reflect how words are used in the particular collection. Pretrained vectors bring a representation already learned outside it. This choice concerns the vectors supplied to the classifier. The later supervised fitting step still learns the relationship between a document representation and the gender labels.

The article’s weighting procedure can be expressed as a weighted average.

```
v(d) = (∑ₜ a(t, d) e(t)) / (∑ₜ a(t, d))
```

Here d denotes a document, v(d) is its resulting vector, and t indexes the words included in the average. The term e(t) is the skip-gram vector for word t, and a(t, d) is the word’s TF-IDF weight for document d. The symbol ∑ₜ means to sum across the included words. Multiplication by a scalar weight applies to each coordinate of the word vector. The denominator is the sum of the weights and serves to normalize the average. This notation expresses the paper’s verbal description of the weighting procedure.

The average collects evidence from multiple words into one fixed-size document representation. A heavily weighted word contributes more to the result than a lightly weighted word. Exact word identities are no longer separate columns as they are in the unigram representation. The average also discards the positions of the included words. It can express which parts of the vector space the document emphasizes, while different arrangements of the same weighted words give the same representation.

The authors consider two different kinds of feature filtering. One filters the input words before constructing the average, using the k best terms from the word-feature selection. The other reduces the number of numerical coordinates retained from the vector representation. That second decision again uses univariate ANOVA scores. The paper motivates the latter choice by computational efficiency and mentions principal component analysis as a different dimensionality-reduction approach explored by Raunak. The experiments here use the supervised feature-ranking procedure.

#### Fitting and tuning the perceptron

MLP-skipgram feeds the document vectors to a multilayer perceptron, a classifier whose hidden layers transform the input before the final prediction. Its activation functions let the layers represent nonlinear relationships between features. The authors use the limited-memory Broyden–Fletcher–Goldfarb–Shanno solver, abbreviated lbfgs in the paper. Along with the choice of word vectors and filtering, they tune properties of the classifier itself.

The grid includes embedding sizes of 50, 100, 300, 600, and 1000. It also varies vector source, the retained feature count, input-word filtering, training iterations, hidden layers, neurons per layer, and the activation function and alpha parameter. Iterations are part of the fitting budget. Hidden layers and neurons specify the architecture, activation specifies how a unit transforms its input, and alpha controls regularization. A grid search compares candidate settings drawn from such choices on the training material.

The selected settings vary by corpus. Facebook and Opinion both select self-trained vectors of dimension 100, word filtering, and 3 hidden layers with tanh activation. The Facebook choice keeps 100 embedding features, whereas the Opinion choice keeps 80. For Blog, the selected configuration uses pretrained vectors of dimension 600, keeps 600 features, and leaves word filtering off. The E-gov entry lists pretrained vectors of dimension 1000, retains 1000 features, and uses word filtering. Blog and E-gov each list 1 hidden layer with ReLU activation.

The authors report narrowing the search for the larger corpora because of computational cost. They describe restricting the Blog and E-gov searches to larger embeddings of sizes 300 and 600 and to ReLU, while the selected E-gov entry lists 1000 and the text specifies that this size was available only in pretrained form. The E-gov alpha was held at 1e-05. The selected configurations are clear from the parameter table, while the exact path by which the 1000-dimensional option entered the E-gov search is unclear from the accompanying description.

#### Changing the source while keeping the prediction task

In the individual-source transfer experiment, the same classifier family is trained separately on each of the four corpora. A fitted classifier is then evaluated on the other domains. For a Blog target, for example, the outside choices are Facebook, Opinion, and E-gov. This creates a set of directional comparisons. A successful transfer from E-gov to Facebook and a successful transfer from Facebook to E-gov would be distinct results, because the learned weights and the test examples differ.

In the pooled experiment, each target gets its own training corpus made by concatenating the other sources. When Facebook is the target, the inputs to training are Opinion, Blog, and E-gov. When E-gov is the target, training draws on Facebook, Opinion, and Blog. This is a new fit on combined data. The experiment does not combine the predictions of the independently trained classifiers. Excluding the target from the training pool preserves the problem that motivated the study.

The authors use weighted F1 to assess the predictions. F1 brings together precision and recall. Precision for a category asks how many predictions of that category are right. Recall asks how much of the category present in the test set is recovered. Weighted F1 combines the class scores in proportion to the classes’ representation in the evaluation data. This gives the more common category more influence on the reported value.

The transfer measure is the loss relative to the target’s own reference.

```
Δ(d, s) = Fᵂ_same(d) − Fᵂ_transfer(d, s)
```

Here d is the target domain and s is the training source, which may be one domain or a pool of outside domains. The symbol Fᵂ represents weighted F1. The subscript same refers to the target’s same-domain reference, and the subscript transfer refers to the score achieved on that target using source s. The subtraction gives Δ(d, s), the weighted F1 loss. Among the reported positive losses, a smaller value means the transferred classifier stayed closer to its target’s reference.

### Experiments and results

#### The four corpora

The Facebook material comes from b5-post. The paper describes over 194k status updates and reports 1,019 documents for the corpus. Its descriptive statistics give 441 male and 578 female labeled learning instances. The unit used in the classification statistics is an author’s document, so the individual updates contribute text to the author-level input. The paper describes these updates as wide-ranging, frequently informal, and frequently concerned with what the authors themselves do.

The Opinion collection contains elicited moral stances from Brazilian online micro-volunteers. The paper describes over 3400 short responses from 433 participants and reports 285 male and 148 female learning instances. Prompts ask about issues such as drug legalization, abortion policies, and the death penalty. The authors describe the writing as more formal than Facebook updates and closely focused on the issues raised. The corpus has a vocabulary of 11,004 and a total word count of 187,118 in the descriptive table. The average author document is reported at 432 words.

The Blog data come from BlogSetBR. Personal life is one subject in the collection, alongside topics as broad as international politics. The authors also note the presence of material originating with other writers and of passages in other languages. The paper’s descriptive table reports 5,801 documents, with 1,038 male and 1,564 female labeled instances. It also reports a vocabulary of 207,947, the widest of the four collections, and 9,119,406 words. The corpus description separately refers to 2.4 million words for BlogSetBR. The paper does not reconcile the scope of those word counts, so the tabulated figures identify the descriptive statistics and the label counts identify the supervised examples.

E-gov draws on requests sent to Brazil’s e-sic citizen information service. Topics include taxation, companies, public policy, and the responsibilities of public bodies. Some texts resemble formal institutional correspondence. Others are brief individual requests about such matters as rights or benefits. The corpus table gives 49,449 documents and 28,805 male and 15,893 female labeled learning instances. It reports 76 words per document on average. E-gov thus contributes many more supervised examples than the other sources even though each example generally offers relatively little text.

The corpus statistics give several meanings to the phrase “more data.” E-gov leads by supervised instance count. The table gives Blog the broadest vocabulary and a higher total word count than E-gov. Facebook supplies author documents with an average of 2,389 words, considerably more material per example than E-gov. Opinion combines the smallest vocabulary with a relatively limited range of topics. These properties enter the experiments together. A change in training source can change the number of labels, the amount of writing per example, and the range of language covered.

#### Same-domain results on the held-out portions

On the Facebook held-out portion, LR-Tfidf gives the highest weighted F1 of the tested approaches. MLP-skipgram improves on the majority and LIWC baselines, but its weighted F1 is lower than that of the unigram-based classifier. This is an important first result because Facebook is also the target with the smallest reported transfer loss. The same-domain performance confirms that there is useful predictive evidence in the text within the study’s setup.

Weighted F1 on the held-out Facebook test portion TF-IDF logistic regression leads the Facebook comparison.

**The numbers**

| System or setting | Weighted F1 |
| --- | --- |
| Majority class | 0.41 |
| LR-LIWC | 0.50 |
| MLP-skipgram | 0.73 |
| LR-Tfidf (this paper) | 0.80 |

The Opinion ranking changes at the top. On the held-out test portion, the majority baseline records a weighted F1 of 0.52 and LR-LIWC reaches 0.63. LR-Tfidf improves to 0.70, and MLP-skipgram is best at 0.74. The comparison shows that Opinion supports useful prediction when labeled examples come from the same collection. Its later transfer losses cannot be read as saying that the text offers no predictive evidence under any training condition.

On Blog, both word-based representations outperform the category-based approach. The embedding classifier leads LR-Tfidf, while LR-LIWC itself scores above the majority baseline. This is a different pattern from Facebook’s ordering of the two word-based approaches. It illustrates why the authors treat the initial experiment as a comparison by domain and use practical cost as well as predictive results in choosing the classifier for transfer.

Weighted F1 on the held-out Blog test portion The skip-gram perceptron has the highest score on Blog.

**The numbers**

| System or setting | Weighted F1 |
| --- | --- |
| Majority class | 0.45 |
| LR-LIWC | 0.66 |
| LR-Tfidf | 0.75 |
| MLP-skipgram (this paper) | 0.78 |

On E-gov’s held-out test portion, the majority baseline gives 0.51 weighted F1 and LR-LIWC gives 0.60. LR-Tfidf and MLP-skipgram each give 0.79. The paper uses results such as this tie to justify taking LR-Tfidf forward. It is competitive across the four held-out comparisons and has a lower computational cost. The transfer experiments consequently describe the performance of a consistent, relatively inexpensive classifier family across several training choices.

The LIWC approach exceeds the majority baseline in all four same-domain comparisons. Its scores also trail those of both word-based approaches throughout. The important comparison is therefore between the value of the dictionary features on their own and what the word-based representations add. Because the paper fits separate classifiers, the results say how well each standalone representation performs. They do not estimate how much category features might contribute if joined to the word-based inputs.

#### Transfer from one outside corpus

The individual-source transfers report weighted F1 loss against a same-domain reference for the same target. The loss is an answer to a specific question about substitution. Someone trying to classify Blog authors can ask how much of the Blog reference performance survives when the only labeled material comes from E-gov. Someone trying to classify E-gov authors has a different reference and asks the reverse question. This use of a target-specific comparison keeps the analysis centered on the cost of lacking matched training data.

The Facebook test offers the clearest cases of small loss. E-gov training has a weighted F1 loss of 0.01 and Blog training has a loss of 0.08. Training on Opinion produces a loss of 0.52. The high loss for Opinion qualifies any simple description of Facebook as easy to transfer to. The target supports successful transfer from some sources, yet the choice of which source to use still matters greatly.

With Blog as the target, E-gov training gives the best individual outside result, a weighted F1 loss of 0.09. Facebook training gives 0.14, and Opinion training gives 0.31. With E-gov as the target, Blog is the strongest outside source at a loss of 0.22. Facebook gives 0.24 and Opinion gives 0.25. The two directions between E-gov and Blog consequently have different outcomes against their respective target references.

For the Opinion target, the best individual source is Blog, with a weighted F1 loss of 0.29. E-gov training gives 0.35, and Facebook training gives 0.38. The fact that E-gov has many more labeled examples than Facebook makes this a useful comparison. The authors observe that the losses on Opinion are fairly close for these two sources despite the difference in their supervised training sizes. This result motivates looking at what the source contains as well as how many labels it provides.

Taken together, these transfers show a broad tendency for the larger training collections to be useful. They also give direct examples in which availability of more labeled authors does not determine the best source. E-gov is the most effective individual source for Facebook and Blog, whereas Blog is the most effective for Opinion. All such rankings concern the source collections as assembled, with the differences in genre, text quantity, and vocabulary that accompany their instance counts.

#### Transfer from all outside corpora together

The pooled training sets have similar label counts when the target is Facebook, Opinion, or Blog. Those pools all include E-gov. For the Facebook target, the paper reports 30,654 male and 17,079 female learning instances in the combined training data. The Opinion-target pool has 30,810 male and 17,509 female instances, and the Blog-target pool has 29,531 male and 16,619 female instances. When E-gov is held out as the target, the pool has 2,290 male and 1,764 female instances. This is the condition where excluding the target also removes the largest available supply of training labels.

For Blog, pooling reduces the weighted F1 loss from the best single-source result of 0.09 to 0.05. The two settings answer a straightforward comparison. Training solely on E-gov already retains much of the Blog reference performance. Training jointly on E-gov, Facebook, and Opinion comes closer still.

Weighted F1 loss on Blog with individual and pooled training Pooling the outside corpora brings Blog closer to its same-domain reference.

**The numbers**

| System or setting | Weighted F1 loss |
| --- | --- |
| E-gov alone | 0.09 |
| E-gov, Facebook, and Opinion (this paper) | 0.05 |

For E-gov, pooling brings weighted F1 loss to 0.16, compared with 0.22 when Blog alone supplies training data. For Opinion, the loss goes to 0.26, compared with 0.29 when Blog alone is the source. Facebook remains at 0.01 with pooled training, the same reported loss as with E-gov alone. The pool therefore improves the reported result on three targets and ties the best individual source on Facebook.

The same-domain reference is essential when comparing the meaning of these numbers. A loss of 0.01 on Facebook says the classifier trained outside Facebook comes close to the Facebook reference. A loss of 0.26 on Opinion says that a substantial shortfall remains relative to the Opinion reference. These losses are neither absolute weighted F1 scores nor estimates of how frequently a particular kind of error occurs. The initial held-out results provide a separate view of how the representations perform when training comes from the target genre.

The pooled experiment gives the authors a mixed answer to the original data question. Using everything available outside the target helps in several cases, and Blog comes appreciably closer to its same-domain reference. The authors consider the residual E-gov and Opinion losses too large for likely practical use. Facebook’s result is already close to its reference with a suitable individual source, so adding the others does not improve the reported score.

### What the ablations show

The paper reports no component-by-component ablation. Its closest evidence comes from comparisons of representations in the same domain, changes to the outside training source with the classifier family held fixed, and the addition of outside corpora to form pooled training sets. These comparisons identify useful choices in the reported experiments. Each varies a different part of the setup.

#### What the representation comparison can isolate

LR-LIWC and LR-Tfidf use the same reported logistic-regression setup. This makes their difference more informative about representation than a comparison in which the features and classifier change together. LIWC compresses the writing into pre-defined categories. TF-IDF retains particular words and uses supervised selection to concentrate the features on terms that distinguish the labels in training. The consistent advantage for LR-Tfidf shows that for these same-domain tasks, its package of word weighting and selection preserves useful distinctions that the dictionary approach, by itself, does not recover.

Several mechanisms could produce that advantage. The selected words might preserve details about subject matter that are too specific for broad categories. They might also reflect lexical or stylistic distinctions that share a category under LIWC. The experiment compares the complete representations, so it cannot attribute the improvement to either interpretation. It also leaves open how weighting, supervised selection, and the size of the term set contribute individually.

MLP-skipgram makes a broader change. It replaces the direct term features with weighted averages of vectors and uses a perceptron in place of logistic regression. It also introduces decisions about pretrained or domain-trained vectors, word filtering, retained dimensions, and architecture. The advantage on Blog and Opinion is an advantage of the selected configuration as a whole. The result on Facebook shows that the direct word-weight representation can do better within the same study. Neither comparison shows what would happen if only the type of classifier or only the type of input vector changed.

The tuning results describe choices that worked together. They show, for example, that the selected Blog configuration uses pretrained vectors without filtering the input words, whereas the two smaller Facebook and Opinion configurations use domain-trained vectors with filtering. A reader cannot recover an effect size for filtering from those choices, as the domains and other settings differ. The grid search serves to select a configuration, while an ablation would report a comparison with the other relevant choices held constant.

#### What the direction of transfer reveals

The individual-source experiment holds the feature and classifier strategy fixed as the training corpus changes. This lets the reader compare source choices on the very same target. Facebook is especially revealing. E-gov is textually different in obvious ways from personal status updates, yet E-gov yields the smallest observed Facebook loss. Opinion gives a much larger loss on that target. Descriptions such as “personal” and “impersonal” help frame a hypothesis about the result, but a broad description of genre does not determine which source wins.

The comparison between E-gov and Facebook in the two directions also matters. The reported loss with E-gov as the source and Facebook as the target is 0.01, compared with 0.24 when Facebook trains the classifier for E-gov. The amount of material, the type and length of target texts, and the same-domain reference all change with the direction. This establishes that transfer is asymmetric in the experiment. It does not tell us which of those directional differences is responsible.

The authors suggest that Facebook may be easier to classify from outside sources because people frequently write about themselves there. That explanation would be consistent with evidence about an author appearing in personal updates even if the classifier was fitted on other types of language. The experiment does not measure how much of each document concerns the writer, remove such material, or inspect its contribution to the decision. The result identifies a target with some successful source choices. The proposed mechanism remains an interpretation of the kind of writing the collection contains.

#### What adding corpora reveals

Comparing a pooled source with the best individual source is a direct test of a decision available in the study’s setting. Given the existing collections, the authors can select one of them or use all the labeled outside writing together. The comparison favors pooling for Blog, E-gov, and Opinion, and produces a tie at the reported precision for Facebook. It shows that having multiple styles of writing in the same training set does not prevent the fitted classifier from benefiting on several targets.

The pooled comparison changes both sample size and sample composition. On Blog, for example, the move from E-gov alone to the pooled source adds examples and introduces language from Facebook and Opinion. The result is compatible with a benefit from additional observations, a benefit from the new types of writing, or a contribution from both. The paper provides neither a size-matched control nor separate trials removing one added source at a time from the winning pool.

Opinion also places a limit on what can be inferred from the pooled comparison. Its training pool includes the large E-gov collection and is similar in size to the pools used to predict Facebook and Blog. Its loss remains substantially higher. That is evidence that pooled training volume alone cannot account for the differences among these target results. The texts, label distributions, and same-domain reference differ as well. The comparison locates a case in which additional sources are insufficient, leaving the reason for the remaining gap unresolved.

### Limitations

#### Limits identified by the authors

The authors identify the restriction to gender classification as an important limit. Their data and comparisons show how this particular outcome behaves across the selected domains. Other author attributes may be expressed through different features or may be less predictable from the available text. The authors propose age and personality as extensions. Those extensions would need their own training labels and comparisons before the conclusions from this paper could be generalized to them.

The authors also call for a closer examination of dataset size. Their results support the idea that additional data can help cross-domain classification in some settings. They propose larger training collections and suggest that E-gov might come closer to its same-domain reference if substantially more outside data were available. The current E-gov-target pool is particularly small relative to the supply of labeled E-gov examples. The effect of increasing such a pool remains open, and even a successful increase would need to be interpreted in light of what kinds of text were added.

For Opinion, the authors are more cautious about the reason for the poor transfer. The limited set of topics and the elicited, largely impersonal style distinguish the collection from other sources. Its substantial transfer loss is consistent with a lack of shared predictive cues. The paper leaves open whether the cause is genre difference, text quality, some aspect of the corpus construction, or a combination of factors. Its final discussion treats quality and domain difference as questions for examination in this setting.

The authors also identify lexicon-based profiling as a possible direction. They point to approaches such as [Developing Age and Gender Predictive Lexica over Social Media](https://md.research.elamur.ai/free/en/papers/sap-2014-developing-age-gender-predictive-lexica/) as attractive for computational efficiency and possible generalization. Those are reasons to investigate the approach. The comparison of LR-LIWC with word-based classifiers gives results for the particular dictionary representation used here and does not test the proposed predictive lexica.

Finally, the authors propose using profiling outputs as additional evidence for an authorship attribution system. Profiling predicts an attribute of a writer, whereas attribution attempts to identify a writer. The suggested connection would allow information from the first task to inform the second. Its effect on identification accuracy is a proposed extension of the research. The experiments in this paper evaluate the label prediction from text.

#### Limits visible in the experimental design

The supervision is defined by the male and female categories in the corpora. Weighted F1 measures how well the classifier reproduces those recorded categories from a document. The evaluation does not establish a basis for assigning gender outside that labeling setup or for treating a prediction as an account of the writer’s identity. It also gives no evidence for other gender categories, because those categories are outside the classification task used in the study.

The data make genre a practical description of a corpus instead of an isolated experimental factor. Facebook, Opinion, Blog, and E-gov differ in where their texts originated, what authors were writing about, how much they wrote per document, and how many examples with each label are available. As a result, a corpus comparison measures the effect of using one available source in place of another. A study specifically of style or genre would need to account for the other ways in which the sources differ.

The wording of the paper’s evaluation procedures also limits direct comparison across its results. The initial experiment reports an 80% training and 20% test split for each corpus. The transfer section refers to 10-fold cross-validation for the same-domain reference. It does not give a separate set of absolute cross-domain weighted F1 values alongside the losses. The holdout scores and the reported transfer losses are therefore best read as results for their named comparisons. Using the displayed holdout scores as the starting values for reconstructing absolute cross-domain scores would assume an equivalence that the evaluation description does not establish.

The paper says that it considered the full document collections when creating domain-trained embeddings, including documents without supervised labels. Its description does not establish whether the text of the reserved test documents was excluded from the self-training of vectors. That detail affects what the embedding comparison can establish about performance on entirely unseen text. The cross-domain loss experiments use LR-Tfidf, so their main results do not depend on the self-trained embeddings.

Weighted F1 also limits what can be inferred from the displayed results alone. Two conditions can have the same weighted F1 while making different errors by class. The class distributions change across the corpora, and the more common label contributes more to the reported metric. Without a breakdown by class, the reader cannot infer whether the gains from pooling are shared across categories or concentrated in the category with greater support. The paper gives point estimates. A reported tie, such as the Facebook single-source and pooled losses, is a tie at the published precision, and the small numerical gaps have no accompanying estimate of uncertainty.

The use of LR-Tfidf throughout transfer gives a consistent basis for comparing sources. It also limits the transfer conclusion to that approach. The held-out results show that the perceptron with skip-gram features is competitive within domains, but its transfer behavior is unmeasured. The same is true for LR-LIWC. It is possible for a representation that is weaker within a domain to preserve some associations better when genre changes. The experimental design leaves that question open.

Finally, choosing an outside source for a new domain poses a different decision from comparing sources on a target that can already be scored. The paper identifies the best outside source after measuring performance against target labels. In the motivating situation, those labels may be unavailable at the point when the choice of training source has to be made. The results show that source selection matters and that pooling is a viable option in some of the observed conditions. They do not establish a way to identify the best source for a new target in advance or a rule that guarantees a small loss.

### What came after

The later work citing this study includes research on Brazilian Portuguese product reviews. Dias and Paraboni use collections with distinct writing purposes, from status updates to government requests, to ask whether an author-label classifier can be trained on one type of text and applied to another. The product-review study shares the language and the gender-identification task while making reviews the setting of interest. Its title also makes a comparison among classical, BERT-based, and large language system approaches central to its scope. The connection is a continuation of the question of how the choice of classifier matters for gender identification in a particular writing collection. The title does not establish whether the study applies Dias and Paraboni’s source-pooling procedure or reproduces their transfer tests. [Gender Identification in Brazilian Portuguese Product Reviews](https://md.research.elamur.ai/free/en/papers/melo-2026-gender-identification-brazilian-portuguese-product/)

Another citing work studies gendered stylistic variation in Brazilian Portuguese Google Play reviews. Its focus on variation in style is related to the earlier paper’s discussion of the evidence that text can provide about an author. Dias and Paraboni compare how much predictive performance survives when the kind of writing changes. They suggest that the more personal character of Facebook writing may partly explain its transfer results, leaving the explanation untested. A study of stylistic variation in reviews places differences in writing within a particular setting at the center of the question. The shared subject is the relationship between recorded author categories and the language used in a specified corpus. [Gendered Stylistic Variation in Brazilian Portuguese Google Play Reviews](https://md.research.elamur.ai/free/en/papers/melo-2026-gendered-stylistic-variation-brazilian-portuguese/)

Both works are dated 2026 and cite the earlier study. One emphasizes a comparison of approaches to label prediction in reviews, and the other emphasizes stylistic variation in writing from a particular review platform. Their documented scope supports those connections. Whether either later study verifies the earlier source rankings, quantifies the contribution of training size to transfer, or resolves the Opinion result remains unspecified.

## Cite

Cite as Rafael Dias and Ivandré Paraboni. 2020. Cross-domain Author Gender Classification in Brazilian Portuguese. Proceedings of the Twelfth Language Resources and Evaluation Conference.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{dias2020cross,
  title = {{Cross-domain Author Gender Classification in Brazilian Portuguese}},
  author = {Rafael Dias and Ivandré Paraboni},
  booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference},
  year = {2020},
  url = {https://aclanthology.org/2020.lrec-1.154/}
}
```

> 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)
