Elamur Research

A Novel Estimator of Mutual Information for Learning to Disentangle Textual Representations

Paper · 2021 · Pierre Colombo, Pablo Piantanida and Chloé Clavel

Summary

A representation built to predict the sentiment of a tweet can also reveal information about the writer’s race, even when race is irrelevant to the intended use of the prediction. A related problem arises in rewriting. A system asked to reverse the sentiment of a restaurant review needs to retain what the review says about the restaurant while letting go of the original judgment. In both cases, the authors ask how to reduce the information a text representation carries about a designated attribute, and how to control the amount removed without losing too much of what the task needs.

Their method starts from mutual information, a measure of how much observing one variable tells us about another. Here the variables are the encoded text and the attribute. The true quantity is hard to calculate, so the authors derive an upper bound using a learned predictor of the attribute and a correction for errors in that predictor’s probability estimates. They give versions based on Kullback–Leibler and Rényi divergence, both of which measure differences between distributions. In training, a separate critic estimates a quantity needed by the correction. The resulting penalty is added to the ordinary task loss, with a weight that lets the authors vary the pressure to remove attribute information.

On the tweet sentiment and mention tasks, the proposed penalties give the authors more control over race predictability than the adversarial and vCLUB-S baselines. A classifier trained after the text encoder reaches guessing-level race accuracy at settings where the paper reports a 5% drop in target-task accuracy. On Yelp reviews, reducing the recoverability of the original polarity generally helps the system generate the requested polarity, but the rewrite tends to preserve less of the input and can become less fluent. In the restaurant-category experiment, the conventional adversarial objective breaks down at a much smaller penalty weight than in the binary polarity setting. The proposed objectives mitigate that behavior.

The experiments distinguish three outcomes that can move independently. An encoded attribute can become harder to recover, a generated sentence can become easier to steer, and a rewrite can lose details the reader wanted to keep. The paper’s contribution is a way to tune the first outcome and observe its consequences for the others. Guessing-level accuracy from the authors’ probe is evidence about what that probe could recover. The mathematical bound concerns the underlying distributions, while the penalty that can actually be computed depends on learned estimates.

Deep dive: A Novel Estimator of Mutual Information for Learning to Disentangle Textual Representations

A mutual information estimator separates text content from attributes such as sentiment and tests what that separation costs in prediction and rewriting. · about 36 minutes to read

The problem and its context

What should survive encoding?

A sentence encoder compresses text into a vector. A predictor can use that vector to assign a label to the sentence, and a decoder can use it to produce another sentence. The vector can carry several kinds of evidence at once. Words associated with a sentiment, for example, can help identify the opinion in a review while also describing the object of that opinion. If a downstream system needs only some of that evidence, knowing that the vector is useful gives little indication of what else it contains.

The paper studies a specific form of disentanglement. The attribute to remove is given by a discrete label, and the encoder should retain useful information about the input while making that label difficult to infer. This is narrower than trying to discover every independent factor behind a sentence. The attribute comes from the task design. Race is designated for the tweet experiments, review polarity for binary rewriting, and restaurant category for the multiclass experiment. The same architecture can be assessed differently depending on which variable is chosen for removal.

The authors connect this goal to the broader idea that a representation can separate distinguishable causes of variation in the data. In their formulation, content is the relevant part of the input that does not depend on the designated attribute. That definition makes the intended separation precise in statistical terms. It also exposes a tension in ordinary text. Suppose a review praises the service by describing how quickly a server attended to the table. The timing detail helps explain the praise. Pressure to discard evidence of positive sentiment can therefore weaken the representation of a concrete event that would make a rewritten review recognizable. The problem is present even when the desired attribute and the intended subject of the sentence can be described separately.

Why test classification and generation together?

In fair classification, the immediate concern is whether a decision uses a representation from which a protected attribute can be recovered. The authors take statistical independence of the representation and the protected attribute as the target. A classifier can then base its decision on the representation without using information about that attribute carried through the encoder. On the tweet tasks, the supervised target is either sentiment or whether the tweet is conversational. Race is the protected attribute in both. The distinction between the target and protected labels allows the authors to measure progress on each separately.

There is a practical reason to care about the cost of pursuing independence. Evidence that is useful to the target predictor can be associated with the protected attribute. An encoder that discards enough information to make the protected label hard to guess may also discard evidence of sentiment or conversational use. The paper frames this as a tradeoff to measure over a range of settings. A single training run could expose leakage or reduced task accuracy, but it would give little sense of how much of one can be exchanged for the other.

Generation makes the corresponding question visible in the output. In style transfer, the system receives a source sentence and a target style. It should produce a sentence with the requested style while keeping as much source content as possible. The authors also consider conditional generation with a style that agrees with the input. That setting asks whether the system can render the source content when given a compatible attribute. Both tasks use a separate input for the desired style, which gives the decoder a direct source of information about what style to express. The encoder’s contribution can then be judged by what is recoverable from its representation and by what survives in the resulting text. Text generation

The two approaches the authors compare

One line of earlier work trains two components with opposing goals. An attribute discriminator tries to recover the protected or stylistic label from the representation. The encoder is trained to make the discriminator’s job harder while supporting the main task. The attraction is straightforward. A predictor that can identify the unwanted attribute offers direct feedback about what remains in the vector. The encoder can use that feedback during ordinary training.

The paper takes a concern from earlier demographic-removal studies seriously. A discriminator can perform poorly during the joint training procedure even when a classifier trained afterwards can recover appreciable attribute information. The two measurements answer different questions. During training, the discriminator responds to an encoder that is changing. After training, a new classifier can concentrate on reading a fixed representation. Its success can expose information that the training discriminator failed to use. This motivates the authors’ decision to evaluate residual attribute information with a post-training classifier across the different methods. Bias, fairness & safety

A second line of work tries to minimize mutual information between the representation and the attribute. Mutual information measures statistical dependence without restricting attention to a particular linear relationship or a particular discriminator’s decisions. In the authors’ account, estimating it is already difficult for complex, high-dimensional data. Computing the underlying quantity would require knowledge of distributions the learner encounters only through examples. Variational methods approach this problem by introducing a probability distribution that can be fitted and evaluated, then using it to construct a bound. The paper discusses earlier lower-bound estimates, including work on contrastive predictive coding, and compares its method with the upper-bound approach vCLUB-S.

An upper bound is useful here because the task is to suppress dependence. If the bound decreases and stays close to the true quantity, it provides a reason to expect the underlying dependence to decrease as well. A loose bound is harder to interpret. It can change because the representation has changed or because the probability estimate used to construct the bound has become more or less accurate. The authors describe vCLUB-S as offering limited control over intermediate levels of attribute removal. Their proposed correction addresses the difference between the fitted attribute distribution and the true distribution that would be needed for an ideal estimate.

The paper also distinguishes approaches to text rewriting by how they preserve content. Some earlier systems use a cycle involving translation or rewriting, with recovery of the original serving as a constraint. Others explicitly separate the attribute from a content representation by applying adversarial training or a mutual information penalty. The authors work within the latter family and use StyleEmb as the starting architecture for generation. The separation lets them vary the training objective for the representation and follow its effects through to the output, a comparison that would be harder to interpret if the systems also differed substantially in how they rewrote text. Style Transfer Through Back-Translation

The method, step by step

From a labeled sentence to a loss

Begin with a sentence and its observed attribute. The sentence encoder sees the text and produces a vector. On a classification task, a predictor reads that vector and attempts to recover the target label. The target label and the attribute have different roles. Tweet sentiment or conversational status supplies the target for the classifier. Race supplies the attribute whose dependence on the vector is penalized. On a generation task, a decoder is trained to predict the source tokens while receiving the encoded sentence and a separately encoded style. At inference, the style input can be changed to request a rewrite.

The task loss gives the encoder a reason to preserve information. If the encoder emitted the same vector for every sentence, an attribute probe would gain nothing from the vector, but the vector would also give the task system no way to distinguish the sentences. The objective must reward the information needed for prediction or decoding as well as penalize evidence of the specified attribute. A weight, written as lambda, sets how strongly the latter goal influences training.

The authors estimate dependence by asking how the probability of an attribute changes with the encoded sentence. They fit a conditional distribution that assigns probabilities to the possible labels for a given vector. It can score a pair taken directly from the data, where the vector and label came from the same observation. It can also score a vector with a label chosen independently of that vector. A dependence signal arises from the difference between these two kinds of scores. If a vector contains evidence about its original attribute, the distribution can give observed pairings probabilities that differ systematically from those assigned to independent pairings.

The authors then add a correction for using a learned conditional distribution. A critic compares data pairs with pairs formed by drawing vectors from their marginal distribution and labels from the fitted conditional distribution for those vectors. This comparison checks how well the fitted conditional reproduces the observed joint distribution. The resulting correction enters the dependence penalty together with the contrast between matched and independent pairs.

How the authors train the text encoder

The steps in order.

How the authors train the text encoderStep 1: Encode the labeled sentences1. Encode the labeled sentencesStep 2: Predict task labels or reconstruct input tokens2. Predict task labels or reconstruct input tokensStep 3: Fit attribute probabilities from sentence vectors3. Fit attribute probabilities from sentence vectorsStep 4: Contrast observed pairs with independent pairings4. Contrast observed pairs with independent pairingsStep 5: Estimate the approximation error with a critic5. Estimate the approximation error with a criticStep 6: Add the weighted dependence penalty to task loss6. Add the weighted dependence penalty to task lossStep 7: Train the encoder with the combined objective7. Train the encoder with the combined objective

The sampling distinction matters. Independent pairing breaks the relationship between the vector and the observed label for the contrast term. Pairs drawn using the fitted conditional can still express strong dependence, since their labels are chosen using the vectors. Their purpose is to test whether that dependence resembles what is seen in the data. During rewriting, a third use of a label comes into play. The chosen style tells the decoder what to express. It is an input to generation, whereas both kinds of training pairs help estimate the dependence penalty.

The quantity the encoder is meant to reduce

The paper uses a random sentence, written as X, and a discrete attribute, written as Y. An individual text is denoted by x. The encoder with parameters θₑ is written as fθₑ, and its output for the random input is Z. A lower-case z denotes a particular encoded vector. In the training data, sentences are paired with their observed attributes. The generation setup also uses the attribute as input through the separate style encoder. The vector can thus be assessed as a source of attribute information independently of that style input.

The paper defines mutual information by comparing the joint distribution with the distribution that would result from independently drawing its two variables.

I(Z; Y) = E_ZY[log(p_ZY(Z, Y) / (p_Z(Z) · p_Y(Y)))]

I is mutual information and the semicolon inside its arguments separates the variables whose dependence is being measured. E_ZY averages over draws of Z and Y from the joint law p_ZY. The quantities p_Z and p_Y are the marginal laws for the vector and attribute, respectively. Their product in the denominator is the law for a pair drawn independently. The logarithm scores the ratio of the two laws, and the dot indicates multiplication. For a discrete attribute paired with a continuous vector, the probability notation covers the attribute mass and the vector density as appropriate.

At independence the joint law equals the product of the marginals, and mutual information is zero. When observing a vector changes the attribute probabilities, mutual information captures the average evidence provided by that change. The same idea has an entropy form that makes the training goal easier to interpret.

I(Z; Y) = H(Y) − H(Y | Z)

H(Y) is the uncertainty, or entropy, of the attribute before the vector is observed. H(Y | Z) is the remaining uncertainty averaged over the possible vectors. The vertical bar indicates conditioning, and the subtraction gives the uncertainty removed by observing Z. As the encoder changes, the distribution of its output can change, as can the conditional entropy of Y given Z. The marginal distribution of the labeled attribute is set by the data.

For race removal, the ideal is a vector that leaves the observer with the same race uncertainty as before seeing it. In rewriting, the ideal serves a different purpose. A vector that reveals little about original polarity gives the decoder less source-style evidence to contend with when the requested polarity differs. In either task, the formula describes what all the information in the vector amounts to under the data distribution. A classifier that reads the vector is one way of investigating that information experimentally.

The ideal training objective joins the task loss and the mutual information term.

L(fθₑ) = L_down(fθₑ) + λ · I(fθₑ(X); Y)

L is the combined loss and L_down is the loss for the downstream task. The notation emphasizes their dependence on the encoder fθₑ, whose parameters are θₑ. Its output fθₑ(X) is Z. The scalar λ weights the dependence penalty, and the dot multiplies it by the mutual information I. In binary classification, the downstream loss is cross-entropy against the observed target label. In generation, it is the negative log-likelihood of the observed tokens. The classifier or autoregressive decoder uses the encoded representation to make the predictions that enter that task loss.

The target of the information penalty is the encoder, even though its consequences are evaluated at later stages. In classification, the predictive head has access to the vector and produces the target label. In generation, the decoder has both the vector and a separate style representation. An autoregressive decoder predicts a token conditioned on the preceding tokens and the information it receives from the encoders. While training on source sentences, the style input supplies their observed attribute. While generating, the desired attribute can replace it. The system can therefore learn to use style information even while the penalty discourages that information from residing in the sentence vector.

The contrast and its correction

The fitted conditional probability of an attribute y given a representation z can be written as q(y | z), where y and z denote particular values. The corresponding true conditional is p(y | z). For the theorem, the authors require the true joint law to be absolutely continuous with respect to the joint law built from the vector marginal and the fitted conditional. In practical terms, if a vector–attribute pairing has positive probability under the data, the fitted joint must cover it. This support condition matters because the formulas compare the two distributions through probability ratios and logarithms.

The first version of the bound corrects the contrast with a Kullback–Leibler divergence, abbreviated KL.

I(Z; Y) ≤ E_Y[−∫ log q(Y | z) p_Z(z) dz] + E_ZY[log q(Y | Z)] + KL(p_ZY ∥ p_Z · q)

I is the mutual information between the encoding Z and the attribute Y. E_Y averages over Y under its marginal distribution. The integral averages over vector values z under the marginal density p_Z, with dz indicating integration over the vector space. Together those operations evaluate −log q on independently drawn attributes and vectors. E_ZY averages the matched-pair log probability over the true joint law p_ZY. The KL term compares that law with p_Z · q, which first draws a vector and then chooses an attribute according to the fitted conditional for that vector. The symbol ∥ separates the distributions in the stated order, and ≤ indicates an upper bound.

The signs in the contrast express how the pairings differ. If the conditional assigns high probability to observed pairings, the average log probability on those pairings becomes less negative. If it assigns low probability to independent pairings, their negative log probability becomes larger. Both effects increase the contrast. The contrast is computed from what the fitted conditional says, so it reflects the quality of that conditional as well as the information encoded in the vectors. The added divergence accounts for the mismatch between the law that produces the observed pairs and the law that the fitted conditional would produce.

The proof can be understood by keeping the two entropies separate. For the marginal entropy of the attribute, mixing the fitted conditional over the vector marginal gives a candidate marginal distribution of labels. Its cross-entropy against observed labels bounds the true label entropy from above. Averaging the negative log of the conditional over independent vectors and labels gives a further upper bound on that cross-entropy. For the conditional entropy, the cross-entropy of the fitted conditional averages its negative log probability on observed pairs. The fit error is the difference between this cross-entropy and the true conditional entropy. Because the fitted joint and the true joint share the vector marginal, that difference is the KL divergence in the theorem. Combining the upper bound on marginal entropy with the conditional-entropy expression produces the terms in the displayed bound.

The distinction also clarifies what the correction can achieve. If the fitted conditional matches the true conditional, the correction vanishes. The theorem still uses an upper bound for the marginal entropy. In fact, the paper’s remark that equality of the joint laws makes the inequalities tight needs qualification. Even with the exact conditional, averaging its log probability on independent pairs can leave a gap. For example, if the conditional varies with the vector, the mean of its negative logarithm for a label can exceed the negative logarithm of its mean probability. A perfect fit removes error due to using q in place of p. Exact equality of the entire bound also depends on the marginal-entropy step.

The Rényi version

The authors give a version of the upper bound in which Rényi divergence replaces KL divergence.

I(Z; Y) ≤ E_Y[−∫ log q(Y | z) p_Z(z) dz] + E_ZY[log q(Y | Z)] + D_α(p_ZY ∥ p_Z · q),  α > 1

I, Z and Y denote mutual information, the sentence vector and the attribute. E_Y averages over the marginal label distribution, and the integral with p_Z(z) dz averages over independently drawn vectors z. E_ZY applies to pairs from the true joint distribution p_ZY. The fitted conditional is q, so p_Z · q is the fitted joint law with the same vector marginal. D_α is Rényi divergence of order α between the laws separated by ∥. The condition α > 1 selects orders for which the Rényi term is at least as large as the KL correction, preserving the upper bound when it is substituted. For a fixed conditional fit, this argument guarantees the direction of the bound. The empirical comparison asks how the resulting objective behaves as the encoder and estimates are trained.

Rényi divergence is expressed using a density ratio on observed pairs.

R(z, y) = p(y | z) / q(y | z)

R is the density ratio at vector z and label y. The numerator p(y | z) is the true conditional probability and the denominator q(y | z) is the fitted probability. Both joints use p_Z as their vector marginal, so that factor cancels. The paper defines the ratio on the support of the true joint law, where the fitted conditional must cover the observed pair.

(α − 1) · D_α(p_ZY ∥ p_Z · q) = log E_ZY[R(Z, Y)^(α − 1)]

The order α determines the power to which the ratio R is raised. D_α compares the true joint p_ZY with the fitted joint p_Z · q, in that order. The expectation E_ZY averages the powered ratio over true pairs, and the logarithm is applied to the result. The factor α − 1 also scales the divergence on the left. Raising ratios to this power changes the contribution of pairs to which the true conditional assigns more probability than the fitted one. The orders considered in the experimental conventions are 1.3, 1.5 and 1.8. Those are settings for the Rényi correction. The separate weight λ determines the strength of the entire information penalty in the encoder’s objective.

Obtaining the density ratio from examples

The ratio contains the true conditional probability the authors are trying to approximate. Instead of assuming that probability can be evaluated directly, they train a critic on a balanced binary labeling problem. Positive examples come from the true joint, using the sentence vector with its observed label. Negative examples come from the fitted joint, using a vector from the marginal and a label drawn according to q at that vector. The training description treats the samples for each distribution as independent draws from their respective source.

R(z, y) ≈ σ(Cθ_R(z, y)) / (1 − σ(Cθ_R(z, y)))

Cθ_R is the critic with parameters θ_R, and Cθ_R(z, y) is its unnormalized score for vector z and attribute y. The sigmoid σ converts that score to an estimated probability of a positive example. The denominator subtracts that probability from 1 to obtain the estimated probability of a negative example. Their quotient is the odds assigned by the critic, used as an approximation to R. With balanced sources the prior odds for the two classes are equal. A critic that estimates the source probabilities accurately can therefore use its odds to estimate the relative density of the two sources at the pair it scores.

There are distinct jobs for the fitted attribute predictor, the ratio critic and the classifier used after training. The attribute predictor supplies q, which is evaluated on both matched and independent pairs and also supplies labels for the fitted joint. The ratio critic judges which joint produced a pair. The post-training classifier estimates how much attribute information can still be recovered from the learned vector. Its label is the attribute itself, whereas the critic’s binary label indicates the origin of a pair. Good performance on one of these prediction problems has a different interpretation from good performance on either of the others.

Once an estimated ratio is substituted, the authors call the objectives surrogates. The theorem applies to distributions and their true divergence. A learned critic can overestimate or underestimate the ratio for some pairs, and those errors affect the correction. This is particularly relevant to the Rényi expression because it averages a power of the ratio. The resulting training signal can be useful without certifying a numerical upper bound for the specific encoder being trained.

Where the baselines differ

The adversarial approach is connected to mutual information through conditional cross-entropy. Written with cross-entropy’s usual negative-log convention, the relationship discussed in the paper takes the following form.

I(Z; Y) ≥ H(Y) − CE(q; Z, Y)

I is mutual information, H(Y) is the marginal attribute entropy, and CE(q; Z, Y) is the expected negative log probability that the fitted predictor q assigns to the true label Y when reading the vector Z. The inequality follows because the fitted cross-entropy includes the conditional entropy plus a non-negative error from imperfect fit. The marginal entropy is fixed for the data, so increasing the discriminator’s cross-entropy reduces the expression on the right. The relation shows that this expression is a lower bound. It can fall because the discriminator’s fitted probabilities become worse, even if a different classifier can still extract the attribute. The paper emphasizes that maximizing cross-entropy in the encoder objective can lead to degeneracy at large penalty weights because the loss has no corresponding finite ceiling when the observed labels are assigned arbitrarily small probabilities.

The comparison with vCLUB-S is closer. In presenting the contrastive upper bound behind that baseline, the paper writes the contrast with the conditional law of the attribute given the vector.

I_vCLUB(Y; Z) = E_ZY[log p(Y | Z)] − E_Y E_Z[log p(Y | Z)]

I_vCLUB is the contrastive quantity, with Y the attribute and Z the representation. The term p(Y | Z) is the true conditional in the displayed formulation. E_ZY averages its logarithm over matched pairs. E_Y E_Z averages it under separately drawn labels and vectors using their marginal distributions. The minus sign subtracts the independent-pair score. When a fitted conditional is used in place of the unknown true conditional, the new method’s analogous contrast has an explicit divergence correction. The comparison in the experiments is between training objectives, with vCLUB-S as the implemented baseline and KL and Rényi as the authors’ alternatives. The downstream head or decoder still supplies the ordinary task loss in each comparison.

Experiments and results

Tweets with a target label and a protected attribute

The fair-classification experiments follow the protocol of earlier work on adversarial demographic removal. The data come from DIAL, a tweet corpus with race annotations. The sentiment examples are selected using pre-defined emojis as cues to positive or negative sentiment. The mention task uses @mentions to identify conversational tweets. Each example therefore contributes a task signal and a separate protected attribute. The training split has 160k tweets, and the validation and test splits contain 10K tweets each. The paper describes the splits as balanced, with 50% accuracy as the guessing reference.

For each encoder, the authors measure task accuracy on the test set. They also train a classifier afterward to predict race from the learned representation. The paper calls this classifier an attacker. Its accuracy describes what an observer with access to the vector can recover using that probe. High target accuracy is desirable, while attacker accuracy near the guessing reference indicates less recoverable race information. Changing the penalty weight can affect both outcomes, so the paper plots the relationship between them as well as their behavior over settings.

An encoder trained for the target task alone provides a reference for the price of imposing the additional constraint. The post-training attacker performs above guessing on its vectors. The sentiment and mention losses thus allow race information to survive in the learned representation even though the predictor has a different assigned target. This finding is a reason to measure the representation directly. The target predictions alone would provide no reading of what the vector contains.

The proposed KL and Rényi objectives reach guessing-level race accuracy on the test evaluations, with a 5% drop in target-task accuracy reported at that degree of masking. The paper describes a similar pattern across the sentiment and mention tasks and a slight edge for Rényi in how thoroughly it removes recoverable race information on sentiment. At low penalty weights some points in the comparison overlap, so the evidence for finer control comes from how the curves separate as the weight increases. The authors report degeneracy for the adversarial classifier at λ > 5, where they attribute the behavior to the influence of the adversarial term overwhelming the task term in the training gradient.

The vCLUB-S results illustrate a different limitation. At λ < 1 the paper reports a light protection regime with attacker accuracy around 60% and little loss of task accuracy. The stronger regime takes the attacker towards 50% but is described as leaving relatively little useful task information. These are approximate descriptions of regimes in the reported comparisons. Their significance is that a large change in probe accuracy comes with a loss of control over what the task needs. The KL and Rényi curves give the authors a wider set of observed operating points between effective task prediction and concealment of the protected attribute.

Short reviews and binary polarity

SYelp contains short Yelp restaurant reviews with binary polarity labels. The training split has 444,101 reviews, the validation split 63,483, and the test split 126,670. Reviews are at most 20 words long. During training, the sentence decoder is asked to produce the source text from the sentence representation and the observed polarity supplied separately. In the transfer evaluation, the requested polarity differs from the original. Conditional sentence generation evaluates outputs when the requested style agrees with the original. The paper examines the relation between the representation and generated text in both settings, with the principal binary transfer discussion centered on SYelp.

The authors compare an adversarial loss, vCLUB-S, the KL surrogate and the Rényi surrogate, evaluating the latter at the stated divergence orders. They use the same general kind of post-training attribute probe as in the tweet experiments, now to test the recoverability of original polarity. For the generated text, they evaluate the extent to which the requested style appears, how much source content is retained and how fluent the output is. None of those measurements can stand in for the others. A short evaluation based only on the polarity classifier, for instance, could miss whether the sentence still describes the same meal, service or experience.

To score polarity, a fastText classifier labels the generated sentence and the authors compare its prediction with the requested label. Content retention is measured in part by comparing the generated sentence with the input using the BLEU score. The paper uses SacreBLEU. This comparison registers overlap with the original wording, so substitutions needed to change polarity can lower it even if some meaning is preserved. The authors also compute cosine similarity of source and output sentence vectors, measuring the alignment between their directions. Each sentence vector concatenates minima, maxima and means of word embeddings after sentiment words are removed. Removing those words is intended to make similarity less directly responsive to the polarity change. A Call for Clarity in Reporting BLEU Scores

For fluency, the authors use GPT-2 after adapting it to the training corpus. They report log-perplexity, which summarizes how surprising the generated tokens are under that evaluator. The logarithmic scale is used because the exponential in perplexity can turn a small change in predictive loss into a large change on the original scale. Lower log-perplexity signals text that is easier for the evaluator to predict. The human evaluation adds direct judgments of text quality, and the paper also discusses examples illustrating how the different objectives affect the outputs. Fine-tuning

On the representation probe, the Rényi surrogates suppress polarity information more consistently than the KL surrogate across the binary generation comparison. Their curves allow a range of disentanglement levels as λ is varied. The adversarial loss leaves recoverable polarity information and shows deterioration for λ > 1 in the probe comparison. Separately, the authors report repetition in generated examples for the adversarial loss at λ ≥ 5. The thresholds refer to different observations. The first is a change in performance in the representation comparison, and the second is a qualitative failure in the resulting text.

In the transfer comparison, the authors report 40% polarity accuracy for vCLUB-S at λ settings of 1, 2, 10 and 15 and say that other tested methods reach 80%. The higher value is reported as a level reached in the comparison across methods, without assigning it to a particular Rényi order or a single matched weight. The chart preserves that distinction.

Reported polarity accuracy on SYelp style transfer

Other tested objectives reach higher requested-polarity accuracy than vCLUB-S.

Reported polarity accuracy on SYelp style transfervCLUB-S at the reported weight settings: 40vCLUB-S at the reported weight settings40Level reached by other tested objectives including the proposed approach (this paper): 80Level reached by other tested objectivesincluding the proposed approach (thispaper)80
The numbers
System or settingaccuracy %
vCLUB-S at the reported weight settings40
Level reached by other tested objectives including the proposed approach (this paper)80

The change in polarity does not tell the whole story. Across the tested objectives, stronger disentanglement is associated with less input overlap under BLEU. The cosine comparison also indicates poorer retention as more original polarity information is removed. The authors report a tradeoff with fluency as well. In the range where the outputs remain usable, making original polarity harder to read generally helps the requested polarity come through. Past the point where a training objective produces repetitive or deteriorated text, its ability to suppress the source attribute provides little assurance that the generated sentence achieves the intended task.

The authors say human judgments favor the proposed surrogates in the balance between style separation and preserved content. They also report similar qualitative conclusions for style transfer and conditional generation. These observations are useful alongside the automatic scores because the tasks give different instructions to the decoder. A polarity reversal makes source-style evidence especially inconvenient. With an unchanged style, the requested attribute is compatible with the source, so preservation depends more directly on whether the text vector retained the details needed to reconstruct the sentence. Both cases put pressure on an encoder that removes information associated with style.

Longer reviews and restaurant categories

FYelp contains Yelp reviews of at most 70 words and uses five broad categories of restaurants. The paper names examples including Asian, American, Mexican and Bars. The attribute is restaurant category, and the immediate representation question is how much information about the original category a post-training classifier can recover. This gives the authors a way to examine the methods beyond a binary attribute. The category labels also change what it means to separate content from style. A reference to a dish or kind of service can be pertinent both to the subject of the review and to the restaurant category.

For FYelp, the paper reports that the adversarial objective deteriorates at λ ≥ 0.01. The generated sentences become less fluent, as reflected in increasing perplexity. The comparison in the paper places this behavior beside binary generation, where adversarial training can still learn disentangled representations for λ ≤ 1. On the category task, the KL and Rényi objectives mitigate the degradation and give more control of probe accuracy across the tested weights than vCLUB-S. The numerical result identifies where the adversarial comparison breaks down in this setup. The broader comparison is reported through the trends in probe accuracy and fluency.

The multiclass result matters for how to interpret the penalty. A method that works well when the attribute has two values may behave differently when there are more ways to predict it incorrectly. The paper’s evidence comes from actual training and generation on the category task. It shows an instability of the adversarial objective in that application and a comparatively usable range for the corrected surrogates. Perplexity gives the observation a consequence beyond the probe. The system is losing its ability to generate text judged fluent by the evaluator while being pushed to suppress the original category.

What the ablations show

The reference encoder reveals what the main task leaves behind

The paper’s clearest control is the classifier trained on the task without the disentanglement loss. With that penalty absent, the post-training probe can recover protected information above the guessing reference. This establishes that the task-only encoder leaves the attribute accessible in the evaluated setting. It makes later decreases in probe accuracy interpretable against a representation that had a reason to keep predictive evidence and no added pressure to conceal race.

The same reference also gives target-task accuracy a role in the comparison. A new objective could drive the attacker toward guessing by removing broadly useful information. Looking at the corresponding task score exposes that result. The reported outcomes for the corrected objectives show that low probe accuracy and useful classification can coexist in these experiments, with a measurable price at the strongest reported protection level. The control thus establishes both the presence of the original problem and the task performance against which the cost of addressing it is judged.

Sweeping the weight tests control rather than a single endpoint

The main controlled analyses vary λ for each objective. Weight variation matters because any penalty can look effective at a setting chosen to emphasize one score. The authors compare the shapes of the observed responses. They ask whether stronger pressure produces a usable progression of attribute recovery rates, whether task quality can be maintained as the attribute becomes harder to recover, and whether training continues to yield usable outputs at higher weights.

In classification, the vCLUB-S curves are described as concentrating around light and strong regimes. Low attacker accuracy is available in the strong regime, while maintaining more target accuracy is characteristic of the light regime. The corrected objectives expose intermediate behavior more clearly. In binary generation, the Rényi probe results likewise change across settings in a way that gives the authors room to choose among degrees of disentanglement. These sweeps support finer empirical control within the settings examined. They do not imply that a given numerical weight means the same thing for every loss. The distinct objectives have different scales and gradient behavior, so equal λ values need not put equal pressure on the encoder.

The sweeps also reveal the difference between difficulty recovering an attribute and failure of the full task system. At large weights, an adversarial objective can dominate training. The repeated text in polarity transfer gives an observable counterpart to the loss behavior. The FYelp fluency result shows the severity of the same practical concern in the category setting. A useful comparison must therefore inspect what the system can still do across the range, even if its representation scores appear to improve.

KL and Rényi change the correction while keeping the contrast

The two proposed versions share the idea of contrasting observed with independent pairings. Their difference lies in how they penalize the mismatch between true and fitted joint laws. Comparing them is more specific than comparing either with an adversarial discriminator. It asks whether the choice of divergence is consequential when the overall structure of the penalty is held fixed.

For classification, both versions reach the paper’s strongest reported level of probe suppression, with Rényi described as marginally better on sentiment. For the binary generation probe, the authors report a more consistent advantage for Rényi over KL. This contrast supports the authors’ interpretation that the divergence term is an important part of the objective. It also suggests the effect of the correction depends on what the encoder is trained to preserve. The classification loss rewards evidence for a binary target, while the generator needs enough detail to predict successive tokens. The information retained under those two downstream losses can differ even when the attribute penalty has the same mathematical structure.

The comparison with vCLUB-S supplies another perspective because that baseline also uses a matched-versus-independent contrast. Its distinct behavior is consistent with the authors’ argument for including an explicit correction. The comparison is between complete trainable surrogates. It does not directly measure the true joint divergence or hold constant all errors in fitting the conditional and ratio critic. The observed performance establishes a difference between the objectives in use. The algebra explains how correcting the approximation can contribute to that difference.

The output measures distinguish transfer from preservation

The binary generation analysis reads the probe results alongside requested-polarity accuracy, content retention and fluency. This lets the authors examine whether changing the representation has the consequence the decoder design is meant to produce. A less polarity-specific vector should give the requested style more influence, but the vector must also convey enough of the source for that influence to yield a good rewrite. The curves show improvement in the first outcome among usable settings and a cost in the second.

Using both BLEU and cosine similarity makes the content result less dependent on exact wording overlap. BLEU is immediately sensitive to the token changes involved in transfer. Cosine similarity with sentiment words removed asks whether the rest of the source and output still align in the chosen embedding representation. The direction of the content tradeoff is similar under both readings. That agreement supports the interpretation that the preservation cost extends beyond the word substitutions needed to express a different sentiment. Neither score identifies which facts or relations were lost, which is why the generated examples and human evaluations offer information of a different kind.

The binary and category experiments provide a useful stress comparison for the adversarial objective. They show the contrast between a setting where it can work at modest weights and one where noticeable degeneration occurs at very small weights. The comparison also changes the dataset, review length and kind of attribute, so its interpretation rests on the combination of conditions in the reported experiments. It shows why a successful polarity experiment with a binary label offers limited evidence about performance on restaurant categories.

Limitations

Limits identified by the authors

The paper distinguishes the exact upper bounds from the surrogates used for training. The exact results assume a relationship between the support of the true and fitted joint laws and use the divergence between those laws. Estimating the ratio with a critic removes the guarantee that the computed objective bounds true mutual information. The critic’s source probabilities matter because its odds enter the correction. An error in those probabilities can have a larger effect when the probability assigned to one source is very small. The paper’s strongest theoretical claim applies to the bound with the appropriate distributions. Its behavioral claims apply to the empirical objectives and the tasks on which they are tested.

The authors also emphasize the cost of disentanglement. They report a task-accuracy decrease at the strongest measured race masking. For generation, stronger style removal tends to facilitate transfer while hurting measures of retention and fluency. This is a consequence of the definition of content and how it relates to actual sentences. The labels capture an aspect of how the input is written or what it expresses. Removing evidence associated with those labels can remove details that help the task. The authors use the weight sweep to expose the cost and make it easier to choose a setting. Their results do not furnish a weight that optimizes all outcomes at once.

Text generation evaluation is another limit the authors recognize. Their style classifier, overlap score, embedding comparison and fluency evaluator each operationalize a different property. Human evaluations help assess quality beyond those automatic measures. The paper reports a favorable balance for the surrogates, while the broader problem of measuring whether a generated sentence preserves the content and expresses the intended style remains open in the authors’ account.

The authors propose testing other attributes, including dialogue acts, emotions, opinions and speaker stance. Those labels could differ in how strongly they correlate with information the downstream task needs. The paper’s demonstrations concern the attributes used in its tweet and Yelp experiments. The suggestion that finer control would help when the penalty is integrated into more complex systems is a prospect grounded in the observed curves. The reported evaluations use the specific classification and generation setups described in the paper.

Limits visible in the design

The race probe is an empirical test of recoverability from the representation. At the reported guessing level, the probe has been unable to turn the vector into more accurate race predictions on the test comparison. Statistical independence is a stronger property that quantifies every possible difference between the joint and independent laws. A different probe can in principle read evidence that the evaluation classifier misses, just as a post-training classifier can recover information missed by a training discriminator. The paper’s own motivation for evaluating with a fresh classifier makes this qualification especially important. The fair-classification results support a claim about reduced leakage under the reported test and should be read at that level.

The choice to treat race predictability as the fairness target also fixes the scope of the comparison. The target-task accuracy and the race probe do not report the distribution of target errors across groups. The data use a constructed tweet benchmark with race annotations and supervised targets obtained from emoji or mention cues. The paper’s results therefore pertain to classification under those annotation and sampling choices. They give evidence about encoding behavior on that benchmark. Other fairness criteria, other populations and shifts in the relationships between language and annotations would require additional evidence.

In style transfer, the automatic measures leave several questions open. A classifier may register the requested polarity from an obvious evaluative word even if it gives the reader little information about the rest of the sentence. BLEU can penalize a meaning-preserving rewrite because its phrasing changed. The embedding comparison reduces the direct role of sentiment words but summarizes the remaining words through aggregate statistics. It can assign similarity to texts that share vocabulary while expressing different relationships. Log-perplexity measures how readily a corpus-adapted predictor anticipates the text, which addresses a different property from preserving the source meaning. The tradeoff is visible across multiple metrics, with human evaluation giving another perspective, but the automatic scores leave exact semantic fidelity unresolved.

The multiclass interpretation is likewise bounded by the design. FYelp differs from SYelp in length and the meaning of its labels, in addition to the number of labels. A comparison that isolated label count would vary the number of categories while keeping the source distribution and attribute definition as stable as possible. The reported comparison instead establishes the importance of the problem for a realistic category setting. It gives evidence that the surrogates handle the tested case better than adversarial training. It does not prove that the number of labels explains the whole difference or that the adversarial objective degenerates at the reported threshold on any new multiclass dataset.

There is also a mathematical distinction between correcting the approximation to the conditional distribution and making the entire upper bound tight. A perfect q would make the fitted joint agree with the true joint and eliminate either divergence correction. The independent-pair term would still be the average negative log true conditional probability when the pair is drawn independently. If the true conditional changes with the vector, that average can exceed the marginal entropy of the attribute. A training objective may still be effective in this situation. What the experiments establish is the usefulness of the penalty for learning representations in the evaluated tasks, without determining how close its numerical value is to true mutual information.

Finally, the post-training probe and the generation metrics explain what changes as the overall objective changes. They leave the source of individual errors unresolved. A low probe score could reflect broad deletion of source information, redistribution of evidence into patterns the probe cannot exploit, or a more selective loss of attribute evidence. Poorer BLEU or cosine similarity then indicates a change in the relationship between the input and output, without tracing it to specific dimensions of the representation or individual details in the sentence. Reading the probe and output scores together narrows the interpretation, but tracing what was retained would require an analysis of the encoded evidence itself.

What came after

The later citations span fairness surveys, empirical evaluation of generated text, research on safer AI and fair representation learning. They identify areas in which the estimator paper was cited. The citation record establishes that connection and supplies the later works’ subjects, while leaving any specific reuse of the divergence correction, ratio critic or experimental protocol unspecified.

The fairness survey by Gallegos and colleagues cites the paper in a study whose stated scope is bias and fairness in large language systems. The connection is to the problem of measuring what linguistic representations reveal about a protected attribute. Colombo and colleagues address a narrower instance of that problem by training encoders for particular tweet tasks, then probing them for race information. The citation documents the paper’s place in the later fairness literature. It does not by itself attribute a new estimator or empirical validation of the surrogate to the survey. Bias and Fairness in Large Language Models: A Survey

Chhun and colleagues cite the paper in a benchmark of human criteria and automatic metrics for story generation. The connection lies in evaluation. The estimator paper’s rewriting experiments assess requested style, content retention and fluency separately and include human judgments. Story generation gives the later work a different object of evaluation, with the title placing the relationship between human criteria and automatic metrics at its center. The citation records that the rewriting study was among the works it drew on. The details of which measure or finding the benchmark used are unspecified. Of Human Criteria and Automatic Metrics: A Benchmark of the Evaluation of Story Generation

The work by Bengio and colleagues on catastrophic risks and Scientist AI also cites the estimator paper. Its stated question concerns whether Scientist AI could offer a safer path in light of risks associated with superintelligent agents. That topic is broader than removing a labeled attribute from a sentence representation. The citation connects the two papers bibliographically. A particular application of controlled disentanglement, or a role for either divergence surrogate in the proposed approach, is not established by that connection. Superintelligent Agents Pose Catastrophic Risks: Can Scientist AI Offer a Safer Path?

The work identified as conditional supervised contrastive learning for fairness is the closest in subject to the original fair-classification experiments. Its name points to a different training approach for fair representations, and its citation connects it to the earlier effort to reduce attribute information while retaining evidence for a supervised task. The record leaves open whether the later work used the estimator as a baseline, relied on the theoretical argument, or cited the experiments as related evidence. The established link is between studies of how to train representations when task prediction and control of protected information must be assessed together. Conditional supervised contrastive learning for fairness

Cite

Cite as Pierre Colombo, Pablo Piantanida and Chloé Clavel. 2021. A Novel Estimator of Mutual Information for Learning to Disentangle Textual Representations. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.acl-long.511

@inproceedings{colombo2021novel,
  title = {{A Novel Estimator of Mutual Information for Learning to Disentangle Textual Representations}},
  author = {Pierre Colombo, Pablo Piantanida and Chloé Clavel},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.511},
  url = {https://doi.org/10.18653/v1/2021.acl-long.511}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/colombo-2021-novel-estimator-mutual-information-learning/