← Jev From First Principles

Decision Types

Which output types are genuinely different decision semantics, and which are only representations of Choice plus post-processing?

The question

You have a decision to make. The answer could be one of several options, or a number on a scale, or a preference between two things, or a set of options. The vendor’s contract gives you three question types: Choice, Score, and Noul. But the programming language you are building needs to know which of these are genuinely different semantics and which are just representations of the same underlying thing.

This chapter asks: how many decision types does the language need?

The answer matters because every type you add to the language is a commitment. It needs syntax, validation, calibration semantics, abstention rules, and a story for what it means. If a type is just a representation of another type, it does not deserve its own syntax — it deserves a library function.

The hypothesis and prior work

Our starting hypothesis is that Choice and Preference are primitive, and everything else is derivable:

  • Binary is a 2-option Choice.
  • Noul is a Binary with a calibrated probability.
  • Score is a Choice over ordinal levels, but the ordinal structure is lost when treated as nominal categories.
  • Probability is a Noul with calibration.
  • Set and Optional are type constructors over Choice, not independent semantics.
  • Preference is different because pairwise comparison is a different elicitation mode with different noise properties.

Three papers inform this expectation. Section numbers refer to the arXiv HTML versions.

Source What it shows How it bears on the type set What it does not show
CORAL, Cao et al. (2019), §2.2, §3.2, §5 Methods that turn a K-level rank problem into K-1 yes/no questions (OR-CNN) can answer them inconsistently; CORAL shares one weight vector and learns ordered biases so the answers cannot contradict each other (Theorem 1). On face-age estimation it also beat a plain softmax classifier (CE-CNN) on mean absolute error: 2.64 against 3.34 on MORPH-2 (Table 1) Two separate points. Ordinal structure matters, and a nominal classifier gives up something (the CE-CNN gap). And even within ordinal methods, consistency has to be built in The inconsistency CORAL fixes is between ordinal methods, not between ordinal and nominal. The nominal gap is measured in MAE on one task (face age) with one architecture, a metric that rewards getting close
Christiano et al. (2017), §2.2.3, §3.1, §3.3 A reward is learned from human comparisons of two trajectory clips, using the Bradley-Terry model; under 1% of the agent’s interactions needed feedback. Section 3.3 reports that the authors found it “much easier” for people to give consistent comparisons than consistent absolute scores Supports comparison as a distinct way of eliciting a judgement The paper reports this as an observation and states no formal consistency measurement. And its raters could answer “tie” or “can’t tell”: ties get a uniform label and incomparable pairs are discarded from training. Real preference data is not a clean two-way choice
Just Ask for Calibration, Tian et al. (2023) Verbalised confidence from RLHF language models is often better calibrated than their token probabilities A score’s meaning depends on the provider and how it was elicited Not tested here. The chapter relies on its abstract-level claim only

The build

We implement each type as a collapse function to Choice plus post-processing. The collapse is information-preserving if you can round-trip without loss; it is lossy if the original type’s invariants do not survive.

The code is in src/arbiter/types.py. It is model-free: no model, no inference, no downloaded data. The tests are in tests/types/test_types.py (39 tests, all passing).

Binary collapses to Choice

Binary is the simplest case. A yes/no decision is exactly a 2-option Choice:

from arbiter.types import (
    analyze_binary,
    analyze_noul,
    analyze_optional,
    analyze_preference,
    analyze_score,
    analyze_set,
    binary_to_choice,
    choice_to_binary,
    minimal_type_set,
    noul_to_choice,
    noul_to_choice_with_prob,
    preference_to_choice,
    preference_to_choice_with_margin,
    score_agreement,
    score_calibration_error,
    score_to_choice,
    score_to_choice_with_ordinal,
)
# 1. Binary collapses to Choice with zero information loss
print("1. Binary collapses to Choice (zero information loss)")
for val in (True, False):
    choice = binary_to_choice(val)
    back = choice_to_binary(choice)
    print(f"   {val} -> {choice!r} -> {back} (round-trip: {'OK' if back == val else 'FAIL'})")

The round-trip is exact. Binary collapses to Choice with zero information loss.

Noul collapses to Choice

Noul (yes/no probability) collapses to Binary, which collapses to Choice. The probability is kept alongside the choice:

# 2. Noul collapses to Choice with zero information loss
print("2. Noul collapses to Choice (zero information loss)")
for noul in (0.9, 0.5, 0.1):
    choice, prob = noul_to_choice_with_prob(noul)
    print(f"   noul={noul} -> choice={choice!r}, prob={prob} (kept)")

The probability is the calibrated confidence. Noul collapses to Choice with zero information loss if the probability is kept.

Look at the middle row. At exactly 0.5 the collapse returns yes, because the code uses noul >= 0.5. That is an arbitrary tie-break. Chapter 18’s rule would call a tie unresolved rather than pick a side, and Chapter 11 would let the decision abstain. The “zero loss” claim holds because the probability travels with the choice, so a caller can see the 0.5. A caller who uses only the bare yes has lost it. (tests/types/test_types.py pins the 0.5 behaviour so the tie-break stays visible.)

Score collapses to Choice with information loss

Score is where the collapse becomes lossy. A 5-level score treated as nominal categories loses the ordering and distance between levels:

# 3. Score collapses to Choice with information loss
print("3. Score collapses to Choice (information loss: ordering and distance)")
for score in (0.0, 0.25, 0.5, 0.75, 1.0):
    level = score_to_choice(score, levels=5)
    print(f"   score={score} -> level {level} (ordering lost)")
level, probs = score_to_choice_with_ordinal(0.5, levels=5)
print(f"   score=0.5 with ordinal probs: level {level}, probs={[round(p, 3) for p in probs]}")

The second form keeps a probability distribution over levels, which preserves the ordering in the representation. But the Choice semantics do not enforce the ordering — a provider could return any distribution, and the collapse would not know the difference.

This is the ordinal-structure argument that CORAL’s results illustrate. Its softmax baseline, which treats ranks as unrelated classes, did worse than its ordinal model on mean absolute error (Table 1), and its own contribution is a guarantee that an ordinal model’s K-1 yes/no answers cannot contradict one another. The collapse here loses that: nothing in a Choice over nominal levels stops a provider returning a distribution that contradicts the ordering. That argument is by analogy, since CORAL tested age estimation and not decisions.

Preference collapses to Choice

Preference (A vs B) collapses to a 2-option Choice. The winner is preserved; the margin is lost unless separately recorded:

# 4. Preference collapses to Choice with zero information loss in the winner
print("4. Preference collapses to Choice (zero information loss in winner)")
for winner in ("A", "B"):
    choice = preference_to_choice(winner, "A", "B")
    print(f"   {winner} vs {'B' if winner == 'A' else 'A'} -> {choice!r}")
choice, margin = preference_to_choice_with_margin("A", "A", "B", 0.8)
print(f"   A preferred with margin 0.8 -> choice={choice!r}, margin={margin} (kept)")

The margin is the calibrated preference probability. Preference collapses to Choice with zero information loss in the winner, but the margin must be kept separately.

The reason Preference is primitive is not the output shape — it is the elicitation mode. Christiano et al. report that, in their experiments, people found it easier to give consistent comparisons than consistent absolute scores (§3.3; an observation, not a measured result). The Bradley-Terry model converts comparisons to rewards, but the comparison itself is the primitive.

A boundary the table above flags and the collapse hides: real comparisons are not always a two-way choice. Christiano et al. let raters say the clips were equal or incomparable, and handled those cases separately. The collapse here, preference_to_choice, takes a winner of A or B only. A faithful Preference type needs a third outcome (tie) and, per Chapter 12, an unknown outcome, so it is a Choice over {A, B, tie} with abstention. This does not change the primitive/constructor verdict, but it means the “zero information loss” claim above is for the clean two-way case only.

Set and Optional are type constructors

Set and Optional are not decision types. They are type constructors over Choice:

# 5. Set and Optional are type constructors, not independent semantics
print("5. Set and Optional are type constructors over Choice")
for name, analyzer in (("Set", analyze_set), ("Optional", analyze_optional)):
    result = analyzer()
    print(f"   {name}: collapses_without_loss={result.collapses_without_loss}")

They do not need their own syntax. They need a type constructor in the type system.

Cross-provider agreement on scores

# 6. Cross-provider agreement on scores
print("6. Cross-provider agreement on scores")
for a, b in ((0.63, 0.65), (0.63, 0.80)):
    agree = score_agreement(a, b, tolerance=0.1)
    print(f"   provider A={a}, provider B={b} -> agree={agree}")

Score calibration error

# 7. Score calibration error
print("7. Score calibration error (ILLUSTRATIVE numbers)")
good_scores = [0.1, 0.3, 0.7, 0.9]
good_outcomes = [False, False, True, True]
good_ece = score_calibration_error(good_scores, good_outcomes)
print(f"   scores rank outcomes correctly: ECE={good_ece:.3f}")
bad_scores = [0.9, 0.8, 0.7, 0.6]
bad_outcomes = [False, False, True, True]
bad_ece = score_calibration_error(bad_scores, bad_outcomes)
print(f"   scores rank outcomes backwards: ECE={bad_ece:.3f}")

Minimal type set

# 8. Minimal type set
print("8. Minimal type set")
for name, desc in minimal_type_set().items():
    print(f"   {name}: {desc}")

The result

The walkthrough (examples/ch19-decision-types/walkthrough_ch19.py) runs all collapse functions on hand-checkable inputs. The output shows:

1. Binary collapses to Choice (zero information loss)
   True -> 'yes' -> True (round-trip: OK)
   False -> 'no' -> False (round-trip: OK)
2. Noul collapses to Choice (zero information loss)
   noul=0.9 -> choice='yes', prob=0.9 (kept)
   noul=0.5 -> choice='yes', prob=0.5 (kept)
   noul=0.1 -> choice='no', prob=0.1 (kept)
3. Score collapses to Choice (information loss: ordering and distance)
   score=0.0 -> level 0 (ordering lost)
   score=0.25 -> level 1 (ordering lost)
   score=0.5 -> level 2 (ordering lost)
   score=0.75 -> level 3 (ordering lost)
   score=1.0 -> level 4 (ordering lost)
   score=0.5 with ordinal probs: level 2, probs=[0.067, 0.183, 0.498, 0.183, 0.067]
4. Preference collapses to Choice (zero information loss in winner)
   A vs B -> 'A'
   B vs A -> 'B'
   A preferred with margin 0.8 -> choice='A', margin=0.8 (kept)
5. Set and Optional are type constructors over Choice
   Set: collapses_without_loss=True
   Optional: collapses_without_loss=True
6. Cross-provider agreement on scores
   provider A=0.63, provider B=0.65 -> agree=True
   provider A=0.63, provider B=0.8 -> agree=False
7. Score calibration error (ILLUSTRATIVE numbers)
   scores rank outcomes correctly: ECE=0.200
   scores rank outcomes backwards: ECE=0.600
8. Minimal type set
   Choice: primitive: the base decision type
   Preference: primitive: pairwise comparison is a different elicitation mode
   Binary: constructor: 2-option Choice
   Noul: constructor: Binary with calibration
   Score: constructor: Choice with ordinal post-processing (information loss)
   Probability: constructor: Noul with calibration
   Set: constructor: Choice over power set
   Optional: constructor: Choice over options plus None

The minimal type set is:

Type Status Reason
Choice primitive the base decision type
Preference primitive pairwise comparison is a different elicitation mode
Binary constructor 2-option Choice
Noul constructor Binary with calibration
Score constructor Choice with ordinal post-processing (information loss)
Probability constructor Noul with calibration
Set constructor Choice over power set
Optional constructor Choice over options plus None
Choice and Preference are primitive. Binary, Noul, Probability, Set and Optional reduce to Choice without loss; Score and Preference lose ordering, distance or margin.
Figure 19.1. The type set is not a menu of equal options. It is two semantics and six representations, two of which discard information the caller may need.

What the results show

  1. Score is the only type that loses information under collapse, and that is by construction. Binary, Noul, and Preference all round-trip exactly; Score does not. But the round-trips succeed because each collapse function was written to keep the extra field (the probability, the margin), and Score’s was written without one. The walkthrough therefore illustrates the design argument; it does not discover that Score is special. The finding is that the argument holds up under the two checks the chapter could make: the tie at 0.5, and the third outcome of a preference.

  2. The vendor’s Noul is a yes/no probability, nothing more. It is not a separate semantic type. It is a Binary with a calibrated probability. The vendor’s contract exposes it as a separate question type, but that is a packaging decision, not a semantic one.

  3. Cross-provider agreement on scores is not guaranteed. Two providers can give scores of 0.63 and 0.65 for the same input, which looks like agreement. But without calibration, the scores may not mean the same thing. Tian et al. report that numeric scores from RLHF language models are often poorly calibrated, so agreement within a tolerance of 0.1 says little unless both providers are calibrated on the same data (Chapter 10).

  4. Preference is primitive because of the elicitation mode, not the output shape. The output is just a 2-option Choice. But the process of getting there — pairwise comparison — has different noise properties than scoring. Christiano et al. showed that humans are more consistent at comparing than at assigning absolute numbers.

What the result means

Primitive vs constructor. A primitive type has semantics that cannot be reduced to another type without loss. A constructor is a representation that can be reduced to a primitive with post-processing. The language should expose primitives as syntax and constructors as library functions.

Elicitation mode vs output shape. Two types can have the same output shape but different elicitation modes. Preference and Binary both produce a 2-option Choice, but the process of getting there is different. The language should expose the elicitation mode as primitive if it has different noise properties.

What to carry forward

The minimal type set is Choice and Preference as primitives, with Binary, Noul, Score, Probability, Set, and Optional as constructors. This means:

  • The language needs syntax for Choice and Preference.
  • The language needs library functions for Binary, Noul, Score, Probability, Set, and Optional.
  • Score needs ordinal post-processing that preserves ordering, not just a mapping to nominal categories.
  • Calibration is a property of the provider, not the type. A Score of 0.63 is not inherently calibrated.

Limitations

  • This is a model-free type-system analysis. No model was run. The collapse functions are pure Python on hand-checkable inputs.
  • The calibration error numbers in the walkthrough are ILLUSTRATIVE, not measured from a real provider, and they use four points with five bins, so each bin holds one item and ECE reduces to the mean absolute gap between score and outcome. The labels in the output say what the data actually show, scores that rank the outcomes correctly or backwards, rather than “well-calibrated” or “poorly calibrated”. Four points cannot show calibration (Chapter 9 covers why bins and sample size matter).
  • The cross-provider agreement check is a simple tolerance check, not a statistical test.
  • The analysis is our interpretation of the three papers, not a replication of their experiments. Neither CORAL nor Christiano et al. is a study of decision providers. CORAL’s evidence is age estimation from faces; Christiano et al.’s is reinforcement-learning reward learning.
  • The ‘zero information loss’ results are true by construction of the collapse functions.

What this chapter establishes

Which Jev primitives survived? The vendor’s contract exposes Choice, Score, and Noul as separate question types. Our analysis suggests that Choice is primitive among the three, and that Preference, which the vendor’s contract does not list, is a second primitive because of how it is elicited. Score is a constructor with information loss. Noul is a constructor without information loss. The vendor’s packaging is not the same as the semantics. This is a design argument over model-free collapse functions, not a measurement.

The next chapter asks: given that the decision layer must be fed, who decides what it reads?