Edit: Nevermind, evidently I've not thought this through properly. I'm retracting the below.
The naïve formulations of utilitarianism assume that all possible experiences can be mapped to scalar utilities lying on the same, continuous spectrum, and that experiences' utility is additive. I think that's an error.
This is how we get the frankly insane conclusions like "you should save 10100 shrimps instead of one human" or everyone's perennial favorite, "if you're choosing between one person getting tortured for 50 years or some amount of people N getting a dust speck into their eye, there must be an N big enough that the torture is better". I disagree with those. I would sacrifice an arbitrarily large amount of shrimps to save one human, and there's no N big enough for me to pick torture. I don't care if that disagrees with what the math says: if the math says something else, it's the wrong math and we should find a better one.
Here's a sketch of how I think such better math might look like:
I didn't spend much time thinking about this, so there may be some glaring holes here, but this already fits my intuitions much better.
I think we can expand that framework to cover "tiers of sentience":
This makes some intuitive sense, I think. The model above assumes that "local" experiences, which have no impact on the overarching pattern of a person's life, are arbitrarily less important than that overarching pattern. What if we're dealing with beings whose internal lives have no such overarching patterns, then? A shrimp's interiority is certainly less complex than that of a human, so it seems plausible that its life-experience lacks comparably rich levels of organization (something like "the ability to experience what is currently happening as part of the tapestry spanning its entire life, rather than as an isolated experience"). So all of its qualia would be comparable only with the "local" experiences of a human, for some tier of locality: we would have direct equivalence between them.
One potential issue here is that this implies the existence of utility monsters: some divine entities such that they can have experiences incomparably more important than any experience a human can have. I guess it's possible that if I understood qualia better, I would agree with that, but this seems about as anti-intuitive as "shrimps matter as much as humans". My intuition is that sapient entities top the hierarchy of moral importance, that there's nothing meaningfully "above" them. So that's an issue.
One potential way to deal with this is to suggest that what distinguishes sapient/"generally intelligent" entities is not that they're the only entities whose experiences matter, but that they have the ability to (learn to) have experiences of arbitrarily high tiers. And indeed: the whole shtick of "general intelligence" is that it should allow you to learn and reason about arbitrarily complicated systems of abstraction/multi-level organization. If the importance tiers of experiences really have something to do with the richness of the organization of the entity's inner life, this resolves things neatly. Now:
Two caveats here are butterfly effects and emergent importance:
Getting a dust speck at the wrong moment might kill you (if you're operating dangerous machinery) or change the trajectory of your life (if this minor inconvenience is the last straw that triggers a career-ruining breakdown). We have to assume such possibilities away: the experiences exist "in a vacuum". Doing otherwise would violate the experimental setup, dragging in various practical considerations, instead of making it purely about ethics.
So we assume that each dust-speck event always has the "median" amount of impact on a person's life, even if you scale the amount of dust-speck events arbitrarily.
Getting 1000 dust specks one after another adds up to something more than 1000 single-dustspeck experiences; it's worse than getting a dust speck once per day for 1000 days. More intuitively, experiencing a 10/10 pain for one millisecond is not comparable to experiencing 10/10 pain for 10 minutes. There are emergent effects at play, and like with butterflies, we must assume them away for experimental purity.
So if we're talking about M experiences from within the same importance tier, they're assumed to be distributed such that they don't add up to a higher-tier experience.
Note that those are very artificial conditions. In real life, both of those are very much in play. Any lower-tier experience has a chance of resulting into a higher-tier experience, and every higher-tier experience emerges from (appropriately distributed) lower-tier experiences. In our artificial setup, we're assuming certain knowledge that no butterfly effects would occur, and that a lower-tier event contributes to no higher-tier pattern.
Relevance: There's reasoning that goes, "if you ever drive to the store to get a chocolate bar, you're risking crashing into and killing someone, therefore you don't value people's lives infinitely more than eating chocolate". I reject it on the above grounds. Systematically avoiding all situations where you're risking someone's life in exchange for a low-importance experience would assemble into a high-importance life-ruining experience for you (starving to death in your apartment, I guess?). Given that, we're now comparing same-tier experiences, and here I'm willing to be additive, calculating that killing a person with very low probability is better than killing yourself (by a thousand cuts) with certainty.