r/learnmachinelearning • • 1d ago

Am I solving the wrong problem by forcing heterogeneous enterprise data into a fixed taxonomy?

I’m a data scientist working on a semantic classification problem involving enterprise performance metrics (KPIs) and learning content, and I’m starting to question my approach.

We have tens of thousands of customer-defined KPIs across different industries and languages. Some are standardized metrics, such as customer satisfaction or sales conversion, while others contain internal abbreviations, ambiguous terminology or highly business-specific concepts. Metadata quality varies considerably.

My initial approach was to build a standardized taxonomy and map each KPI to a family.

I’ve experimented with rule-based methods, multilingual embeddings, LLM classification, contextual enrichment and clustering. While precision is relatively good, coverage remains challenging, and expanding the taxonomy seems to have diminishing returns due to the long tail of customer-specific concepts.

There is a separate but related problem of semantically organizing enterprise learning and training content.

I’m increasingly wondering whether classification into predefined categories is the right formulation for either problem.

Would it make more sense to construct a structured semantic corpus or knowledge base, where taxonomies are just one possible representation of the underlying information?

I’m particularly interested in:

  • How to represent heterogeneous business concepts without forcing everything into predefined categories.
  • Bottom-up ontology discovery versus manually defined taxonomies.
  • Handling ambiguous and customer-specific terminology.
  • Whether knowledge graphs, hierarchical representations or enriched semantic documents are better suited to this problem.
  • How to build something reusable across multiple downstream product applications.
  • How to meaningfully evaluate such a system.

Has anyone worked on a similar problem? Are there research papers, frameworks or alternative approaches you’d recommend?

I’m less interested in trying another LLM or embedding model and more interested in whether there is a fundamentally better way to formulate the problem.

1 Upvotes

5 comments sorted by

1

u/leogodin217 1d ago

This is a fascinating problem and I'm a data engineer who did a lot of machine learning in the past. So, not the expert you are looking for.

Can you expand on your goal? Is classification the goal or is this just a processing step to what you really want to do? Since metadata quality seems to be your biggest challenge, I'd start there. Can you easily classify which metrics are well defined already? Is there anything you can train a model on with those metrics/metadata combinations to estimate the definitions of less-well-defined ones? Iterate on the easy hoping to learn enough to make the more difficult stuff reasonable.

That's how I'd approach it, though not sure which models/methods I'd use. I suspect you will need multiple levels of classification. i.e (Sales:Trend:YoY%, Sales:Trend:Other, Sales:Other:Other). This would be one way of showing confidence in the classification.

1

u/False_Secretary_3115 1d ago

Thanks! I think your first question is actually the one I’m struggling with most. Classification is intended to be an intermediate step. The original goal was to better understand customer-specific performance metrics and learning content to support downstream product capabilities, including personalized learning recommendations, coaching and cross-customer analytics. However, I’ve started questioning whether forcing everything into a standardized taxonomy is necessary to achieve those goals. Regarding metadata quality, I’ve actually taken a somewhat similar approach. I started with easily identifiable metrics, built a taxonomy around them and progressively tackled more ambiguous cases using contextual information, embeddings and LLMs. The challenge is that the remaining metrics seem to fall into several categories:

Metrics whose meaning is genuinely impossible to infer from the available information. Metrics whose meaning is clear but doesn’t fit an existing category. Metrics that are variations or combinations of more common measurement concepts. Metrics that require customer-specific business knowledge to interpret.

I’m now wondering whether building a richer semantic corpus, rather than a collection of standardized labels, would be more useful and generalizable. Your suggestion about learning from well-defined metrics is interesting. How would you approach that in practice, particularly when the poorly defined metrics may represent concepts that aren’t present in the well-defined subset?

1

u/leogodin217 1d ago

I work at Shopify and this would be cool project for us. No idea if it is feasible or even legal, but would be cool.

Corpus-vs-taxonomy really depends on the purpose. I'd think a corpus per customer would be useful for preparing training for a single customer. Classification would be more useful in aggregate. No reason you can't do both.

As for the really difficult ones, there are several options.

  • Remove them as too difficult
  • Spread them out across multiple co-workers and talk to the customers
  • Email the customers (could be automated)
  • Label them "Other" and just deal with the lower hanging fruit. Might be a case of perfect being the enemy of good.

1

u/leogodin217 1d ago

On learning from easier ones, I just figured a model that can handle the easy ones, might learn enough to do some of the harder ones. Maybe a feature analysis might give you ways to infer something. But when it requires company-specific knowledge, it will be tough. LLMs might have domain knowledge that could help but no model will know what s4-etd means for some random company.

1

u/PLBjt 20h ago

I'd keep the taxonomy but stop treating it as the thing that has to cover everything. A common setup is a small stable set of families plus an explicit 'unknown/other' bucket, and then you cluster the unknowns on embeddings of the KPI name plus its metadata and have someone review the big clusters monthly. Promote a cluster to a family only when it's big enough to matter downstream. For eval, hand label a few hundred KPIs sampled from the long tail specifically, since accuracy on the common ones will hide the problem. Check how much of your coverage gap is truly new concepts versus abbreviations that just need per-customer expansion, because those need different fixes. A full knowledge graph is more flexible but way more upkeep, so I'd only go there if multiple products really need the relationships.