IC-435Mistral-7B employs a less efficient algorithmic strategy (O(n²)) than Llama-3-8B (O([n², n³])) on probe tasks with multiple solution complexities

Zhenting Qi, Hongyin Luo, Xuliang Huang, Zhuokai Zhao, Yibo Jiang, Xiangjun Fan, Himabindu Lakkaraju, James R. Glass

SourceQuantifying Generalization Complexity for Large Language Models

On three probe tasks (longest common subarray, longest increasing subsequence, longest consecutive elements) that admit solutions of varying time complexity, the paper infers which complexity class each model's solution corresponds to by matching OOD accuracy against a complexity-accuracy mapping. Mistral-7B's accuracy profile aligns with O(n²) algorithms, while Llama-3-8B's aligns with O([n², n³]). For the longest common subarray task specifically, both models use algorithms of similar complexity around O([n, n²]), despite differing overall accuracy. This suggests the models' generalization performance is partly determined by the algorithmic strategy they implicitly adopt.

Evidence
correlational
Key metric
Mistral-7B inferred complexity O(n²) vs Llama-3-8B O([n², n³]) for LIS and LCE tasks; both around O([n, n²]) for LCS task.
Caveat
The complexity inference is indirect, based on matching accuracy to a mapping curve rather than directly observing the algorithm. The authors note that for LCS, the similar complexity despite different accuracy suggests one model is performing above or below its average.
Model
Mistral 7B / Mistral / Mistral 3 7B / Mistral-0.2-7B / Mistral-v0.1 Mistral 7B v0.3, Llama 3 8B
Methods
Zero-shot Chain-of-Thought / Wei et al. 2022 (Chain of Thought) / Zero-shot chain-of-thought prompting [primary]
Related findings
IC-433, IC-434
Extraction
automatic-extraction