AICLJan 29

Semantic Content Determines Algorithmic Performance

arXiv:2601.21618v1h-index: 22
Originality Highly original
AI Analysis

This reveals a fundamental flaw in LLMs' ability to implement invariant algorithms, impacting reliability in applications like agents and functions.

The paper tackled the problem of algorithmic performance in LLMs being dependent on the semantic content of inputs, finding that frontier LLMs show over 40% accuracy variation in counting tasks based solely on what is being counted, such as cities versus chemicals.

Counting should not depend on what is being counted; more generally, any algorithm's behavior should be invariant to the semantic content of its arguments. We introduce WhatCounts to test this property in isolation. Unlike prior work that conflates semantic sensitivity with reasoning complexity or prompt variation, WhatCounts is atomic: count items in an unambiguous, delimited list with no duplicates, distractors, or reasoning steps for different semantic types. Frontier LLMs show over 40% accuracy variation depending solely on what is being counted - cities versus chemicals, names versus symbols. Controlled ablations rule out confounds. The gap is semantic, and it shifts unpredictably with small amounts of unrelated fine-tuning. LLMs do not implement algorithms; they approximate them, and the approximation is argument-dependent. As we show with an agentic example, this has implications beyond counting: any LLM function may carry hidden dependencies on the meaning of its inputs.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes