Searcharxiv⌕ Search

arXiv subjects

Yixiao Huang

Publications and source records attributed to Yixiao Huang.

29 records · Page 2Linked to original sources

Mechanics of Next Token Prediction with Self-Attention

Transformer-based language models are trained on large datasets to predict the next token given an input sequence. Despite this simple training objective, they have led to revolutionary advances in natural language processing. Underlying this success is the self-attention mechanism. In this work, we ask: $\textit{What}$ $\textit{does}$ $\textit{a}$ $\textit{single}$ $\textit{self-attention}$ $\textit{layer}$ $\textit{learn}$ $\textit{from}$ $\textit{next-token}$ $\textit{prediction?}$ We show that training self-attention with gradient descent learns an automaton which generates the next token in two distinct steps: $\textbf{(1)}$ $\textbf{Hard}$ $\textbf{retrieval:}$ Given input sequence, self-attention precisely selects the $\textit{high-priority}$ $\textit{input}$ $\textit{tokens}$ associated with the last input token. $\textbf{(2)}$ $\textbf{Soft}$ $\textbf{composition:}$ It then creates a convex combination of the high-priority tokens from which the next token can be sampled. Under suitable conditions, we rigorously characterize these mechanics through a directed graph over tokens extracted from the training data. We prove that gradient descent implicitly discovers the strongly-connected components (SCC) of this graph and self-attention learns to retrieve the tokens that belong to the highest-priority SCC available in the context window. Our theory relies on decomposing the model weights into a directional component and a finite component that correspond to hard retrieval and soft composition steps respectively. This also formalizes a related implicit bias formula conjectured in [Tarzanagh et al. 2023]. We hope that these findings shed light on how self-attention processes sequential data and pave the path toward demystifying more complex architectures.

cs.LG↗

From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformers

Modern language models rely on the transformer architecture and attention mechanism to perform language understanding and text generation. In this work, we study learning a 1-layer self-attention model from a set of prompts and associated output data sampled from the model. We first establish a precise mapping between the self-attention mechanism and Markov models: Inputting a prompt to the model samples the output token according to a context-conditioned Markov chain (CCMC) which weights the transition matrix of a base Markov chain. Additionally, incorporating positional encoding results in position-dependent scaling of the transition probabilities. Building on this formalism, we develop identifiability/coverage conditions for the prompt distribution that guarantee consistent estimation and establish sample complexity guarantees under IID samples. Finally, we study the problem of learning from a single output trajectory generated from an initial prompt. We characterize an intriguing winner-takes-all phenomenon where the generative process implemented by self-attention collapses into sampling a limited subset of tokens due to its non-mixing nature. This provides a mathematical explanation to the tendency of modern LLMs to generate repetitive text. In summary, the equivalence to CCMC provides a simple but powerful framework to study self-attention and its properties.

cs.LG↗

Critically-enhanced spin-nematic squeezing and entanglement in dipolar spinor condensates

We study the quantum critical effect enhanced spin-nematic squeezing and quantum Fisher information (QFI) in the spin-1 dipolar atomic Bose-Einstein condensate. We show that the quantum phase transitions can improve the squeezing and QFI in the nearby regime of critical point, and the Heisenberg-limited high-precision metrology can be obtained. The different properties of the ground squeezing and entanglement under even and odd number of atoms are further analyzed, by calculating the exact analytical expressions.We also demonstrate the squeezing and entanglement generated by the spin-mixing dynamics around the phase transition point. It is shown that the steady squeezing and entanglement can be obtained, and the Bogoliubov approximation can well describe the dynamics of spin-nematic squeezed vacuum state.

quant-ph↗

Quantum temporal steering in a dephasing channel with quantum criticality

We investigate the quantum temporal steering (TS), i.e., a temporal analogue of Einstein-Podolsky-Rosen steering, in a dephasing channel which is modeled by a central spin half surrounded by a spin-1/2 \textit{XY} chain where quantum phase transition happens. The TS parameter $S_{\text{TS}}$ and the TS weight $W_{\text{TS}}$ are employed to characterize the TS dynamics. We analytically obtain the dependence of $S_{\text{TS}}$ on the decoherence factor. The numerical results show an obvious suppression of $S_{\text{TS}}$ and $W_{\text{TS}}$ when the \textit{XY} chain approaches to the critical point. In view of the significance of quantum channel, we develop a new concept, \textit{TS weight power}, in order to quantify the capacity of the quantum channel in dominating TS behavior. This new quantity enables us to indicate the quantum criticality of the environment by the quantum correlation of TS in the coupled system.

quant-ph↗

Optimal Conventional Measurements for Quantum-Enhanced Interferometry

A major obstacle to attain the fundamental precision limit of the phase estimation in an interferometry is the identification and implementation of the optimal measurement. Here we demonstrate that this can be accomplished by the use of three conventional measurements among interferometers with Bayesian estimation techniques. Conditions that hold for the precision limit to be attained with these measurements are obtained by explicitly calculating the Fisher information. Remarkably, these conditions are naturally satisfied in most interferometric experiments. We apply our results to an experiment of atomic spectroscopy and examine robustness of phase sensitivity for the two-axis counter-twisted state suffering from detection noise.

quant-ph↗

Adiabatic Mach-Zehnder interferometer in dipolar spin-1 condensate

Mach-Zehnder interferometer, a powerful tool for a wide variety of measurements, has been realized with Bose-Einstein condensates in recent experiments. In this report, we propose and analyze a realizable scheme for performing a Heisenberg-limited Mach-Zehnder interferometry with dipolar spin-1 condensate. Based upon adiabatic processes of sweeping the transverse magnetic field, we demonstrate a perfect phase transition, which accomplishes the beam splitter, phase shifter and recombiner as for a Mach-Zehnder interferometer. The attractive dipolar interaction ensures the existence of a path-entangled state which enhances the phase measurement precision to the Heisenberg limit. We also discuss the spin-$1$ squeezing induced in the adiabatic passage and show that the squeezing parameter attains its minimal value near the point of saturation field.

quant-ph↗

Unraveling of a generalized quantum Markovian master equation and its application in feedback control of a charge qubit

In the context of a charge qubit under continuous monitoring by a single electron transistor, we propose an unraveling of the generalized quantum Markovian master equation into an ensemble of individual quantum trajectories for stochastic point process. A suboptimal feedback algorism is implemented into individual quantum trajectories to protect a desired pure state. Coherent oscillations of the charge qubit could be maintained in principle for an arbitrarily long time in case of sufficient feedback strength. The effectiveness of the feedback control is also reflected in the detector's noise spectrum. The signal-to-noise ratio rises significantly with increasing feedback strength such that it could even exceed the Korotkov-Averin bound in quantum measurement, manifesting almost ideal quantum coherent oscillations of the qubit. The proposed unraveling and feedback protocol may open up the prospect to sustain ideal coherent oscillations of a charge qubit in quantum computation algorithms.

cond-mat.mes-hall↗

Dephasing-assisted parameter estimation in the presence of dynamical decoupling

We study the dephasing-assisted precision of parameter estimation (PPE) enhancement in atom interferometer under dynamical decoupling (DD) pulses. Through calculating spin squeezing (SS) and quantum Fisher information (QFI), we find that dephasing noise can improve PPE by inducing SS, and the DD pulses can maximize the improvement. It is indicated that in the presence of DD pulses, the dephasing-induced SS can reach the limit of \textquotedblleft one-axis twisting\textquotedblright\ model, $ξ^2\simeq N^{-2/3}$ with $ξ^2$ being the SS parameter and N the number of atoms. In particular, we find that the DD pulses can amplify the dephasing-induced QFI by a factor of $\simeq N/2$ compared with the noise-free case, which means that under the control of DD pulses, the dephasing noise can enhance the PPE to the scale of $\sqrt{2}/N$, the same order of magnitude of Heisenberg limit (1/N).

quant-ph↗

Quantum discord and quantum phase transition in spin-1/2 frustrated Heisenberg chain

By using the concept of the quantum discord (QD), we study the spin-1/2 antiferromagnetic Heisenberg chain with next-nearest-neighbor interaction. Due to the SU(2) symmetry and $Z_{2}$ symmetry in this system, we obtain the analytical result of the QD and its geometric measure (GMQD), which is determined by the two-site correlators. For the 4-site and 6-site cases, the connection between GMQD (QD) and the eigenenergies was revealed. From the analytical and numerical results, we find GMQD (QD) is an effective tool in detecting both the first-order and the infinite-order quantum-phase-transition points for the finite-size systems. Moreover, by using the entanglement excitation energy and a universal frustration measure we consider the frustration properties of the system and find a nonlinear dependence of the GMQD on the frustration.

quant-ph↗

Macroscopic quantum coherence in spinor condensates confined in an anisotropic potential

We investigate the macroscopic quantum coherence of a spin-1 Rb condensate confined in an anisotropic potential. Under the single-mode approximation, we show that the system can be modeled as a biaxial quantum magnet due to the interplay between the magnetic dipole-dipole interaction and the anisotropic potential. By applying a magnetic field along the hard-axis, we show that the tunneling splitting oscillates as a function of the field strength. We also propose an experimental scheme to detect the oscillatory behavior of the tunneling splitting by employing the Landau-Zener tunneling.

cond-mat.quant-gas↗

Fisher information manifestation of dynamical stability and transition to self-trapping for Bose-Einstein condensates

We investigate dynamical stability and self-trapping for Bose-Einstein condensates in a symmetric double well. The relation between the quantum Fisher information and the stability of the fixed point is studied. We find that the quantum Fisher information displays a sharp transition as the fixed point evolving from stable to unstable regime. Moreover, the transition from Josephson oscillation to self-trapping is accompanied by an abrupt change of the quantum Fisher information.

quant-ph↗