XFACTORS: Bottleneck and Contrast Factor Separation

XFACTORS: new weakly supervised VAE that separates latent factors with bottleneck and contrast, achieving high-quality untangling without classifiers

11 jul 2026 • 4 min read • Q2BSTUDIO Team

Factor separation with contrastive monitoring and bottleneck

In the world of machine learning, one of the most fascinating challenges is getting models to understand and separate the underlying factors that generate data. Let's imagine an image of a face: factors such as pose, lighting, gender, or facial expression combine to form the final image. If a model is able to identify and control each of these factors independently, we can speak of unraveled representations. This concept, known as disentangled representation learning, is the basis for numerous artificial intelligence applications ranging from image editing to the generation of synthetic data to train other systems.

Recent research has proposed a novel approach called XFactors, a framework based on variational autoencoders (VAEs) that introduces an information bottleneck to untangle specific factors of variation. Unlike purely unsupervised methods, which work well on synthetic data but fail in real-world scenarios, or supervised methods that require unstable adversarial targets, XFactors uses weak monitoring through an efficient contrast : the InfoNCE loss. This strategy groups together representations that share the same value of a factor and separates those that do not match, all while maintaining a Gaussian structure in the residual and factor subspaces.

Architecture decomposes representation into subspaces: a residual one (S) and several factor subspaces (T1, T2, ..., Tk). Each objective factor is encoded in its assigned subspace, allowing for explicit control: by replacing the latent of one factor in one image with that of another, that attribute can be swapped without altering the others. This has huge practical implications, for example, in editing portraits or creating balanced datasets to train cybersecurity systems that need to detect subtle variations.

What's interesting about XFactors is that it scales correctly with latent capacity and doesn't require auxiliary classifiers or adversarial training, making it more stable and easier to implement. In tests with datasets such as CelebA, it achieves state-of-the-art untangling scores with constant hyperparameters. These types of advancements are crucial for companies looking for bespoke applications where control over data attributes is key, such as in visual recommendation systems or AI-aided design assistants.

From a business perspective, factor untangling allows AI for business to be more explainable and reliable. For example, a model that can separate lighting from the semantic content of an image can help diagnose biases in vision algorithms. In addition, by being able to generate controlled variations, datasets can be augmented to train more robust AI agents . At Q2BSTUDIO, we understand that these techniques are not just theory; that's why we offer artificial intelligence services that integrate advanced models such as unraveled VAEs to solve real problems for our customers.

Implementing XFactors requires a robust technology ecosystem. This is where AWS and Azure cloud services come into play, providing the computing power needed to train these models on large volumes of data. In addition, data pipeline management and experiment orchestration benefit from cloud solutions. At Q2BSTUDIO we help companies deploy these systems in scalable environments, either with proprietary infrastructure or by using bespoke applications that integrate with their existing workflows.

Another area where factor disentanglement adds value is in business intelligence. When the data is not just images but multidimensional tables, separating the causes of variation helps to identify hidden patterns. Tools like Power BI can benefit from models that preprocess data to highlight causal relationships. At Q2BSTUDIO we offer business intelligence services that combine traditional analysis with machine learning techniques to give our clients a competitive advantage.

Cybersecurity also benefits. By being able to generate synthetic data with controlled factors, attacks or anomalies can be simulated realistically to train detection systems. AI agents operating in critical environments need to be robust against malicious variations, and unraveling allows you to create those test scenarios. Q2BSTUDIO integrates these concepts into its cybersecurity solutions, offering tailor-made software that protects organizations' digital assets.

In short, XFactors represents a step forward in learning untangled representations, combining simplicity, scalability, and control. For companies, adopting these techniques means being able to build more transparent, flexible, and efficient AI systems. At Q2BSTUDIO we are committed to bringing technological innovation to each project, whether through the development of custom applications, the integration of artificial intelligence or the optimization of cloud infrastructure. If your organization is looking to harness the potential of generative models and factor control, don't hesitate to contact us.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.