r/LanguageTechnology • • 14h ago

How do specialized decision models compare with zero-shot NLI for dynamically defined classification rules?

I've been experimenting with using specialized decision models to evaluate policies.
For example, given a rule like "tests must never use time.sleep()", determine whether a code change violates it.
I've tested Jev on this type of narrow judgment, but I'm now interested in comparing it with more established NLP approaches.

In particular:

  • Zero-shot NLI models.
  • Cross-encoders.
  • Embedding-based classifiers.

The interesting constraint is that rules are user-defined and can change at any time. Training a new classifier for every rule isn't practical.
I'm curious how well these approaches generalize to previously unseen rules, and how they compare in terms of precision, recall and latency.

Are there particular models or papers you'd recommend looking at?

2 Upvotes

0 comments sorted by