Macalinao StudioLearnAll enriched lessons ↗
College path · 7 sectionsSwitch to high school ↗

College / LONGER LESSON consistency

Self-consistency: when agreement helps

Aggregate sampled answers, calculate voting probabilities, distinguish plurality from majority, and test the effect of shared errors.

Preparation: probabilities, fractions and the chain-of-thought lesson.

Plan 25–40 minutes with the activities; this is a study estimate, not a timed requirement. Both paths have complete narration. Your notes and progress are kept separately for each level.

Section 01 / 07

Sample paths, then compare their answers

College path. Aggregate sampled answers, calculate voting probabilities, distinguish plurality from majority, and test the effect of shared errors. Preparation: probabilities, fractions and the chain-of-thought lesson. Move between Signal Room, Workbench and Field Notes without losing your section. Pause before each worked solution.

Self-consistency generates several reasoning paths and combines their final answers. The idea is that different valid routes may converge on the same result, while mistakes may scatter. The system must extract comparable final answers before voting. It is not asking the same model to declare itself consistent in one response. Sampling changes the candidates, and aggregation changes which answer is delivered. Neither operation guarantees truth. Our experiment has three possible final-answer categories: one designated correct category and two different wrong categories. Their probabilities are teaching inputs, not measurements of a language model.

The original method samples reasoning paths and marginalizes them through their final answers rather than selecting only the highest-likelihood path. Our finite model uses categorical samples and a stated uniform tie rule. It omits text generation, token probabilities and extraction errors so the aggregation calculation is exact. This is an inference procedure with fixed weights; supervised training on solutions would be a separate intervention.

Worked example. Five worked solutions end with 19, nine, 19, 19 and nine. Counting final answers selects 19 with three votes. That count says how often each answer appeared, not whether the supporting steps were valid.

Selected answer = argmax_a count(extracted answer = a)

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. What is being aggregated: every intermediate sentence or the extracted final answers?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

In the version studied here, extracted final-answer categories are aggregated. Intermediate paths produce those answers, but voting is over the final categories. Other scoring rules would define different procedures.

Section 02 / 07

Normalize answers without erasing their meaning

Before counting, decide which forms mean the same answer. The strings “one half,” “0.5” and “50 percent” can describe the same number in a compatible context. But “half a meter” and “half a second” are not interchangeable. A careless extraction rule can merge distinct answers or split equivalent ones. Handle missing answers and multiple conflicting final answers explicitly. Keep this normalization rule fixed when comparing sampling methods. Our three categories are already normalized, so every vote belongs to exactly one category and there are no parsing failures.

Answer equivalence is task-dependent. Numeric tolerance, units, symbolic equivalence and multiple valid responses require different checks. Majority voting assumes a well-defined equivalence relation over outputs; a string-matching implementation may not realize the intended relation. Record invalid-extraction rates separately from model correctness. Changing the extractor after inspecting test results can also leak evaluation information into the system design.

Worked example. A geometry question asks for a length in meters. Answers “0.5 m” and “50 cm” may be merged after unit conversion. An answer “0.5 square meters” has the wrong dimension and must not be counted as the same length.

Raw answer → validated extraction → task-specific equivalence class

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Why might exact string counting underestimate agreement on a numeric task?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

Equivalent values can have different spellings, units or formats. Normalize only with a task-appropriate rule, preserving distinctions such as dimension and sign. Audit ambiguous outputs rather than silently forcing them into a category.

Section 03 / 07

Plurality is not always a majority

With two answer categories and an odd number of votes, the winning category has a majority. With three or more categories, the largest count can be less than half. That is a plurality. Ties can also occur even with an odd number of samples: one vote for each of three answers is a three-way tie. Our experiment breaks ties uniformly among the tied leaders. A production system might instead abstain, sample more or use a verifier. The tie policy affects measured accuracy and belongs in the method description.

For counts c, w one and w two summing to N, the multinomial probability is the multinomial coefficient times the three category probabilities raised to their counts. We enumerate every possible count triple. If the correct category ties for the largest count among k leaders, it receives success weight one over k. This exactly computes expected selected-answer correctness under the specified tie randomization.

Worked example. For three samples, counts one, one and one give no unique leader. Our uniform rule selects the correct category with probability one third on that event. A deterministic alphabetical rule could create an arbitrary category bias.

Tie success contribution = P(count pattern) / number of tied leaders

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Can nine samples produce a winner with only four votes?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

Yes. Counts four, three and two produce a plurality winner with four of nine votes, below half. Do not describe this as majority agreement.

Section 04 / 07

Calculate the independent-sampling case

Begin with independent attempts that share a fixed probability distribution. If there are only two possible answers, each attempt is correct with probability 0.6, and we take three votes, a correct majority occurs when exactly two or all three are correct. This produces a gain over a single attempt in this example. The gain is not universal: if a shared wrong answer is more likely than the correct one, additional independent votes can reinforce that wrong answer. Sampling helps only in relation to the actual distribution and selection rule.

The binary majority expression is a binomial tail, whereas our general three-category experiment requires multinomial enumeration. Independence here is conditional on the fixed question and probability distribution. A single average success probability across questions with different difficulties does not reproduce the full benchmark curve. Even independent random draws from one model can preserve a systematic bias toward the same wrong category.

Worked example. With p equal to 0.6 and three binary votes, exactly two correct has probability three times 0.6 squared times 0.4, or 0.432. All three correct has probability 0.216. Their sum is 0.648, compared with 0.6 for one attempt.

P(correct majority, N=3) = 3p²(1−p) + p³

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. For binary p equal to 0.4 and three votes, does majority voting improve correctness?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

No. The same calculation gives three times 0.4 squared times 0.6 plus 0.4 cubed, or 0.352. The wrong category is more likely and voting strengthens it in this example.

Section 05 / 07

Wrong-answer diversity changes the result

Two models can have the same single-attempt accuracy and different voting behavior. One may concentrate all errors on one wrong answer. The other may distribute errors across several answers, leaving the correct answer as the most frequent individual category. Our split control divides the wrong probability mass between two wrong categories while keeping the correct probability fixed. This makes a useful distinction visible: per-attempt correctness alone does not determine plurality accuracy. The identity and concentration of the wrong answers matter too.

With correct probability p and wrong split s, the category probabilities are p, the quantity one minus p times s, and one minus p times one minus s. Symmetry means replacing s with one minus s leaves selected-correct probability unchanged under a symmetric tie rule. Candidate coverage, one minus one minus p to the N, ignores this split; selection does not. We display both quantities separately.

Worked example. At p 0.4, three samples and evenly split wrong mass, the category probabilities are 0.4, 0.3 and 0.3. Correct selection is 0.424 under the uniform tie rule. Concentrating all wrong mass into one category gives the binary result 0.352. Coverage is 0.784 in either case.

p_categories = [p, (1−p)s, (1−p)(1−s)]

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Why does equal candidate coverage not imply equal voting accuracy?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

Coverage only asks whether a correct answer appeared somewhere. Voting also depends on how many times each competing answer appeared. The same chance of including a correct answer can lead to different selected answers.

Section 06 / 07

Model shared draws without claiming a universal correlation law

To demonstrate dependence, our experiment mixes two simple mechanisms. With a chosen probability, the entire batch copies one categorical draw, so every answer is identical. Otherwise it uses independent draws. This shared-batch probability is an explicit teaching construction, not a fitted correlation coefficient for real models. When every batch is copied, taking more samples adds no new information and selected accuracy equals the single-draw accuracy. Real dependence can be subtler, but the example shows why repeated agreement is weak evidence when the repetitions are not informative.

If c is the shared-batch mixture weight, selected-correct probability is c times p plus one minus c times independent plurality accuracy. The same mixture applies to coverage. Marginal correctness of each sample stays p, while pairwise indicator covariance increases. This does not claim all forms of dependence have the same effect, nor does ordinary independent sampling eliminate systematic model error.

Worked example. Use the binary p 0.6, three-vote example. Independent correctness is 0.648. At shared-batch weight one half, correctness is half of 0.6 plus half of 0.648, or 0.624. At weight one, it returns to 0.6 regardless of the sample count.

P(selected correct) = cp + (1−c)P_iid(plurality correct)

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Is repeating one already generated answer ten times equivalent to drawing ten new candidates?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

No. Repetition contributes no new candidate evidence. Under the copied-batch construction, all ten votes contain only the information from the original draw.

Section 07 / 07

Evaluate the answer selected and its cost

Compare self-consistency with a single-answer baseline on unseen questions using a fixed extraction rule and documented sampling settings. Report the selected answer’s accuracy, tie rate, invalid outputs and generation cost. A method may improve one task and waste computation on another. Separate accuracy from confidence: a large vote share is not automatically a calibrated probability that the answer is correct. Inspect unanimous failures as well as split votes. The method’s practical value comes from delivering better answers under an acceptable budget, not from agreement alone.

Use held-out calibration if vote shares will drive confidence or abstention decisions. Keep task groups and related source material separated across training and evaluation. Comparisons should include the same model and budget definition, and acknowledge variance across samples. Our exact count enumeration validates the toy distribution; it is not a trained-model result or a guarantee for open-ended tasks with many valid answers.

Worked example. A system returns the same wrong answer on every sample for a misleading question. Its agreement score is perfect but its correctness is zero on that request. Record the shared misunderstanding and test revised prompts or independent verification on new examples.

Report selected accuracy + tie/extraction behavior + sampling cost

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Which outcome should be measured alongside vote share?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

Measure whether the selected answer is correct on held-out tasks. Include cost, ties and extraction failures. Vote share is a feature of the sampling procedure, not ground truth.

Final checkpoint. Can three categorical votes tie despite an odd sample count? Option 1: No. Option 2: Yes: one vote in each of three categories. Option 3: Only with extraction errors.

Pause and choose an answer before continuing.

Reveal worked solution

Option 2 is correct. Odd N prevents a two-way binary tie, not every multicategory tie.

LONGER RETRIEVAL, TOOL AND AGENT LESSONS

Find evidence, use tools and coordinate work

Worked examples, local narration and connected experiments at your level.

Continue the learning path

Sources and scope

Original worked examples and teaching text, grounded in these primary references. Numerical fixtures explain mechanisms; model quality and hardware performance require separate measurements. Both levels share key examples, with different explanations and checkpoints.

Reset this college path?

This removes only this path’s notes, progress and experiments from this browser.