SearcharxivSearch

arXiv subjects

Andy Miller

Publications and source records attributed to Andy Miller.

2 recordsLinked to original sources

Do LLMs "know" internally when they follow instructions?

Instruction-following is crucial for building AI agents with large language models (LLMs), as these models must adhere strictly to user-provided constraints and guidelines. However, LLMs often fail to follow even simple and clear instructions. To improve instruction-following behavior and prevent undesirable outputs, a deeper understanding of how LLMs' internal states relate to these outcomes is required. In this work, we investigate whether LLMs encode information in their representations that correlate with instruction-following success - a property we term knowing internally. Our analysis identifies a direction in the input embedding space, termed the instruction-following dimension, that predicts whether a response will comply with a given instruction. We find that this dimension generalizes well across unseen tasks but not across unseen instruction types. We demonstrate that modifying representations along this dimension improves instruction-following success rates compared to random changes, without compromising response quality. Further investigation reveals that this dimension is more closely related to the phrasing of prompts rather than the inherent difficulty of the task or instructions. This work provides insight into the internal workings of LLMs' instruction-following, paving the way for reliable LLM agents.

cs.AI

Counting numerical sets with no small atoms

A numerical set $S$ with Frobenius number $g$ is a set of integers with $\min(S) = 0$ and $\max(\Zbb - S)=g$, and its atom monoid is $A(S) = \setpres{n \in \Zbb}{$n+s \in S$ for all $s \in S$}$. Let $γ_g$ be the number of numerical sets $S$ having $A(S) = \set{0} \cup (g,\infty)$ divided by the total number of numerical sets with Frobenius number $g$. We show that the sequence $\set{γ_g}$ is decreasing and converges to a number $γ_\infty \approx .4844$ (with accuracy to within $.0050$). We also examine the singularities of the generating function for $\set{γ_g}$. Parallel results are obtained for the ratio $\gsymm{g}$ of the number of symmetric numerical sets $S$ with $A(S) = \set{0} \cup (g,\infty)$ by the number of symmetric numerical sets with Frobenius number $g$. These results yield information regarding the asymptotic behavior of the number of finite additive 2-bases.

math.CO