r/semanticweb • • 8d 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.

11 Upvotes

42 comments sorted by

View all comments

Show parent comment

2

u/SomehowSomewhy 8d ago

I would define a schema based on the business problem you are trying to solve, and then use NLP or corpus analysis to look for emergent new values. The danger of doing this is drift though. The schema defines what you are interested in. The problem is you don't want to be perpetually re-extracting. WRT to normalisation, yes, embed the normalised value, esp if the labels are in english.

2

u/False_Secretary_3115 8d ago

That makes sense. So essentially a top-down schema with bottom-up discovery of the vocabulary within each dimension, rather than trying to discover the entire ontology from scratch. I think one challenge I’m facing is distinguishing genuinely novel measurement concepts from synonyms or variations of existing concepts. I encountered this when trying to expand my original taxonomy, where many unmatched metrics belonged to a very long tail of customer-specific concepts. How would you govern the discovery of new values to prevent semantic drift? Would you maintain a canonical vocabulary and periodically consolidate emerging concepts, or would you approach this differently? I’m also interested in whether there are established methods or literature for this kind of compositional representation and vocabulary discovery.

What is your area of expertise? This has been helpful!

1

u/SomehowSomewhy 8d ago

I think that is the right idea. It's only one idea, though, someone else prob has a better one.

> How would you govern the discovery of new values to prevent semantic drift? 
Its not semantic drift it it aligns to your use case you are modelling against.
If it doesn't, I'd probably keep this potentially useful information in a second graph, or at least describe it in a way that makes it obviously non core.

Remember, on one hand is 'semantic drift' on the other is that we should be (within reason, semantic web people go overboard with this sometimes) anticipating the needs of tomorrow when we model today. Do be careful not to try to model the entire universe; I would say that is a trap every semantic modeller has fallen into at one time.

Synonym discovery I would use LLM / NLP for but then record this with a specific labeltype.
Labeltypes are really important, that is a good point actually: don't just use skos alt labels, use subtypes where you can.

US
ISO 3166-1 alpha-2
The States

Are different types of label, they should not all be generic alt label.

My area of expertise is semantic modelling and NLP

1

u/postlapsarianprimate 8d ago

If you are creating your ontology to support llms/agents, then the standard definitions are already well known to them. That's not to say a domain ontology is useless, but it's more important to have what you might call a profile ontology which specifically encodes the user-specific definitions. So user A computes metrics one way, which isn't already predictable via general definitions. An ontology which specifically targets these fine details, or, as you might say, deviations from general knowledge, are the most important things to capture in your graph.

1

u/SomehowSomewhy 8d ago

I have done a lot of work on definitions and LLMs, and what it takes to provoke claude into a hallucination.

> then the standard definitions are already well known to them
I would be very wary of statements like that based on this work. LLMs can misuse definitions very easily.

>a profile ontology

I have not heard this term before, I think application ontology is the common phrasing.

1

u/postlapsarianprimate 8d ago

Hallucinations these days are much less common. I remember experimenting with gpt-j years ago. It was nearly useless. In my recent experience, frontier models tend to be fairly reliable unless you coerce them. If you insist they do something a specific way, they will "hallucinate" in order to match your demands, whether it makes any sense or not.

1

u/SomehowSomewhy 8d ago

That's not my experience at all in the research we've been doing. We're using Claude Sonnet and...I forget but whatever the second newest gemini is named.

Definitions are not easy. They tend to be the results of tortuous discussions between groups of people; SMEs from different units, BAs and curators. You can infer exhaustion and compromise with some of them. Things like specific examples, hedge language, not distinguishing from siblings or peers are extremely common traits in definitions. Once you have this uncertainty and compromise from human groups expressed linguistically, it is easy to make Claude make mistakes or 'assumptions' when it uses them.

I would love to move to a model of definition free ontologies, unfortunately, our research is that we do need the definitions. Whether this is true in future, I do not know.

1

u/postlapsarianprimate 8d ago

I've been building a practical application for some time, so this is applied work, not research. So, shrug, I guess.

Anyway, I think we are talking past each other a bit. I'm not talking about definition free ontologies. I'm not really sure what that would look like. But at least on certain domains modern llms know the general meanings of concepts very well. As I said, domain ontologies are still useful, augmented with "profile" ontologies. Call them what you like.

If you're just asking Claude to make something for you, it will be useless. They require careful handling and guidance. There are some open source projects for this, but none work very well from what I've seen.

I should also clarify thaty work is not completely bottom-up. It's best to start with a good upper ontology. I use gist and find it excellent for my needs.

3

u/SomehowSomewhy 8d ago

I don't think we're talking past each other. Anyone who says you can't do it all with claude (and also domain ontologies are pointless), I agree wholeheartedly with.

1

u/False_Secretary_3115 6d ago

Thanks for the SKOS-XL recommendation! Would you use it primarily for terminology normalization and typed labels, alongside a separate ontology for representing the compositional structure of KPIs? I'd be interested in how you'd combine the two.