SPB Git

Repository Public MIT Research preview

CE01-F09-position-du-fait.tex 2.5 KB 32 lines latex

1% CE01-F09 — Expérience de position d'un fait dans un long contexte, sur une tête d'attention construite.2% Question : la place d'un fait dans le contexte et la quantité de bruit autour changent-elles l'attention qu'il reçoit ?3% DONNÉES : CE01-F09-donnees.tex — MODÈLE JOUET, mesures exactes (softmax) sur une tête aux poids choisis à la main.4% Gauche : biais de distance de type ALiBi (pente m par jeton) -> effet de récence. Droite : sans biais -> dilution.5% Ce jouet ne reproduit PAS la courbe en U rapportée sur de grands modèles (Liu et al., 2023).6\input{CE01-F09-donnees.tex}%7\begin{tikzpicture}[x=1mm, y=1mm]8  \begin{axis}[atlas axis, name=gauche, width=68mm, height=46.5mm, xmin=0, xmax=1.02, ymin=0, ymax=.68,9      xlabel={position relative du fait (0 = début, 1 = juste avant la question)}, ylabel={masse d'attention sur le fait},10      xtick={0,.25,.5,.75,1}, ytick={0,.2,.4,.6}, ymajorgrids, axis lines=left, clip=false,11      title={Position : 256 jetons, marge de 4 logits}, title style={yshift=-1mm}]12    \addplot[ce courbe a] coordinates {\CEFneufPenteZero};13    \addplot[ce courbe c] coordinates {\CEFneufPenteUn};14    \addplot[ce courbe d] coordinates {\CEFneufPenteTrois};15    \node[atlas note, anchor=south west, text=atlasFlow] at (axis cs:.02,.19) {sans biais ($m = 0$)};16    \node[ce nature, anchor=north west] at (rel axis cs:.04,.97) {modèle jouet};17    \node[atlas note, anchor=south west, text=atlasUncertain] at (axis cs:.01,.076) {$m = 0{,}01$};18    \node[atlas note, anchor=east, text=atlasHazard] at (axis cs:.9,.56) {$m = 0{,}03$};19  \end{axis}20  \begin{axis}[atlas axis, at={(75mm,0)}, width=68mm, height=46.5mm, xmode=log, log basis x=2, xmin=12, xmax=5200, ymin=0, ymax=1.05,21      xlabel={longueur du contexte (jetons, échelle logarithmique)}, ylabel={},22      xtick={16,64,256,1024,4096}, xticklabels={16,64,256,1\,024,4\,096}, ytick={0,.25,.5,.75,1}, ymajorgrids, axis lines=left, clip=false,23      title={Dilution : fait au milieu, sans biais}, title style={yshift=-1mm}]24    \addplot[ce courbe a] coordinates {\CEFneufMargeQuatre};25    \addplot[ce courbe b] coordinates {\CEFneufMargeSix};26    \addplot[ce courbe e] coordinates {\CEFneufMargeHuit};27    \node[atlas note, anchor=north east, text=atlasFlow] at (axis cs:170,.2) {marge 4};28    \node[atlas note, anchor=north east, text=atlasValid] at (axis cs:600,.42) {marge 6};29    \node[atlas note, anchor=south west, text=atlasMuted] at (axis cs:1100,.76) {marge 8};30  \end{axis}31\end{tikzpicture}32
Files main
Menu

Theme