Upload 32 files
Browse files- 404.html +1 -0
- _next/static/GsLiIsTHRpihK8bvntB91/_buildManifest.js +1 -0
- _next/static/GsLiIsTHRpihK8bvntB91/_ssgManifest.js +1 -0
- _next/static/chunks/4bd1b696-3f4296d5f7280832.js +0 -0
- _next/static/chunks/517-7e8cf213e6b3ad2a.js +0 -0
- _next/static/chunks/825-abd4fc89a6616ec2.js +0 -0
- _next/static/chunks/app/_not-found/page-9b447068c3421038.js +1 -0
- _next/static/chunks/app/layout-0a0d55c29d82dcd7.js +1 -0
- _next/static/chunks/app/page-6dcd95eb2309c99e.js +1 -0
- _next/static/chunks/framework-23759ace909c0a4a.js +0 -0
- _next/static/chunks/main-5d411353ae066c67.js +0 -0
- _next/static/chunks/main-app-224e8c8447f5164d.js +1 -0
- _next/static/chunks/pages/_app-abffdcde9d309a0c.js +1 -0
- _next/static/chunks/pages/_error-94b8133dd8229633.js +1 -0
- _next/static/chunks/polyfills-42372ed130431b0a.js +0 -0
- _next/static/chunks/webpack-2ef856c14afe7005.js +1 -0
- _next/static/css/90ff69ce4f426cfa.css +3 -0
- _next/static/media/26a46d62cd723877-s.woff2 +0 -0
- _next/static/media/55c55f0601d81cf3-s.woff2 +0 -0
- _next/static/media/581909926a08bbc8-s.woff2 +0 -0
- _next/static/media/6d93bde91c0c2823-s.woff2 +0 -0
- _next/static/media/97e0cb1ae144a2a9-s.woff2 +0 -0
- _next/static/media/a34f9d1faa5f3315-s.p.woff2 +0 -0
- _next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- favicon.ico +0 -0
- file.svg +1 -0
- globe.svg +1 -0
- index.html +0 -0
- index.txt +31 -0
- next.svg +1 -0
- vercel.svg +1 -0
- window.svg +1 -0
404.html
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/a34f9d1faa5f3315-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/90ff69ce4f426cfa.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-2ef856c14afe7005.js"/><script src="/_next/static/chunks/4bd1b696-3f4296d5f7280832.js" async=""></script><script src="/_next/static/chunks/517-7e8cf213e6b3ad2a.js" async=""></script><script src="/_next/static/chunks/main-app-224e8c8447f5164d.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust"/><title>404: This page could not be found.</title><title>From Digits to Decisions</title><meta name="description" content="How Tokenization Impacts Arithmetic in LLMs"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__className_d65c78 bg-white"><main class="relative min-h-screen"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div></main><script src="/_next/static/chunks/webpack-2ef856c14afe7005.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"3:\"$Sreact.fragment\"\n4:I[15244,[],\"\"]\n5:I[43866,[],\"\"]\n6:I[86213,[],\"OutletBoundary\"]\n8:I[86213,[],\"MetadataBoundary\"]\na:I[86213,[],\"ViewportBoundary\"]\nc:I[34835,[],\"\"]\n1:HL[\"/_next/static/media/a34f9d1faa5f3315-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/css/90ff69ce4f426cfa.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"GsLiIsTHRpihK8bvntB91\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$3\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/90ff69ce4f426cfa.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_d65c78 bg-white\",\"children\":[\"$\",\"main\",null,{\"className\":\"relative min-h-screen\",\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$3\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$3\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:children:props:notFound:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:children:props:notFound:1:props:children:props:children:1:props:style\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:children:props:notFound:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:children:props:notFound:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":\"$L7\"}]]}],{},null]},null]},null],[\"$\",\"$3\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$3\",\"VHZOe7zGSvbczAK4QgcxY\",{\"children\":[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\"}]]}]]}]]],\"m\":\"$undefined\",\"G\":[\"$c\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"1\",{\"children\":\"From Digits to Decisions\"}],[\"$\",\"meta\",\"2\",{\"name\":\"description\",\"content\":\"How Tokenization Impacts Arithmetic in LLMs\"}]]\n"])</script><script>self.__next_f.push([1,"7:null\n"])</script></body></html>
|
_next/static/GsLiIsTHRpihK8bvntB91/_buildManifest.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
self.__BUILD_MANIFEST=function(r,e,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:3,errorRate:1e-4,numBits:58,numHashes:14,bitArray:[1,1,0,1,0,r,r,0,r,r,e,r,r,r,e,r,e,e,r,e,e,e,r,e,e,e,e,e,r,e,r,r,r,r,e,r,r,e,r,r,r,e,r,e,r,e,e,r,r,r,e,e,r,r,r,e,r,r]},__routerFilterDynamic:{numItems:e,errorRate:1e-4,numBits:e,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-94b8133dd8229633.js"],sortedPages:["/_app","/_error"]}}(1,0,0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
_next/static/GsLiIsTHRpihK8bvntB91/_ssgManifest.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
|
_next/static/chunks/4bd1b696-3f4296d5f7280832.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
_next/static/chunks/517-7e8cf213e6b3ad2a.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
_next/static/chunks/825-abd4fc89a6616ec2.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
_next/static/chunks/app/_not-found/page-9b447068c3421038.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{53868:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(55623)}])},55623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),n(60306);let r=n(95155);n(12115);let o={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function i(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"404: This page could not be found."}),(0,r.jsx)("div",{style:o.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:o.h1,children:"404"}),(0,r.jsx)("div",{style:o.desc,children:(0,r.jsx)("h2",{style:o.h2,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[441,517,358],()=>t(53868)),_N_E=e.O()}]);
|
_next/static/chunks/app/layout-0a0d55c29d82dcd7.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{5431:(e,s,l)=>{Promise.resolve().then(l.t.bind(l,30347,23)),Promise.resolve().then(l.t.bind(l,78346,23))},30347:()=>{},78346:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_d65c78"}}},e=>{var s=s=>e(e.s=s);e.O(0,[838,441,517,358],()=>s(5431)),_N_E=e.O()}]);
|
_next/static/chunks/app/page-6dcd95eb2309c99e.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{31654:(e,t,a)=>{Promise.resolve().then(a.bind(a,52364)),Promise.resolve().then(a.bind(a,19202)),Promise.resolve().then(a.bind(a,9443)),Promise.resolve().then(a.bind(a,88587)),Promise.resolve().then(a.bind(a,64300)),Promise.resolve().then(a.bind(a,70089)),Promise.resolve().then(a.bind(a,32856)),Promise.resolve().then(a.bind(a,31391)),Promise.resolve().then(a.bind(a,79607)),Promise.resolve().then(a.bind(a,5180)),Promise.resolve().then(a.bind(a,94388)),Promise.resolve().then(a.bind(a,96305)),Promise.resolve().then(a.bind(a,10944)),Promise.resolve().then(a.bind(a,52107)),Promise.resolve().then(a.bind(a,15467)),Promise.resolve().then(a.bind(a,50193)),Promise.resolve().then(a.bind(a,4549)),Promise.resolve().then(a.bind(a,59370))},52364:(e,t,a)=>{"use strict";a.d(t,{Citation:()=>s});var r=a(95155);let s=()=>(0,r.jsxs)("section",{className:"footer-section",children:[(0,r.jsx)("h2",{id:"citation",className:"responsive-text-lg font-semibold mb-4",children:"Citation"}),(0,r.jsxs)("div",{className:"footer-content",children:[(0,r.jsx)("p",{className:"responsive-text-sm mb-4",children:"For attribution in academic contexts, please cite this work as"}),(0,r.jsx)("p",{className:"responsive-text-sm mb-6 pl-4 border-l-2 border-gray-200",children:'Lee, et al., "From Digits to Decisions: How Tokenization Impacts Arithmetic in LLMs", 2024.'}),(0,r.jsx)("p",{className:"responsive-text-sm mb-2",children:"BibTeX citation"}),(0,r.jsx)("pre",{className:"responsive-text-sm bg-gray-50 p-4 rounded-md overflow-x-auto text-sm whitespace-pre-wrap",children:"@misc{lee2024digitstodecisions,\n title={From Digits to Decisions: How Tokenization Impacts Arithmetic in LLMs},\n author={Garreth Lee, Guilherme Penedo, Thomas Wolf},\n url={https://huggingface.co/spaces/HuggingFaceFW/blogpost-digitstodecisions},\n}"})]})]})},19202:(e,t,a)=>{"use strict";a.d(t,{Footnotes:()=>i});var r=a(95155),s=a(31391);let i=()=>{let{footnotes:e,getFootnoteNumber:t}=(0,s.L)(),a=e=>{e.preventDefault();let t=e.currentTarget.getAttribute("href");if(t){let e=document.querySelector(t);e&&e.scrollIntoView({behavior:"smooth"})}};return(0,r.jsxs)("footer",{className:"mt-12 border-t border-zinc-200 dark:border-zinc-700",children:[(0,r.jsx)("h2",{id:"footnotes",className:"responsive-text-lg font-semibold mt-8 mb-4",children:"Footnotes"}),(0,r.jsx)("ol",{className:"responsive-text-sm space-y-4",children:Object.entries(e).map(e=>{let[s,i]=e;return(0,r.jsxs)("li",{id:"footnote-".concat(s),className:"text-gray-700",children:[(0,r.jsxs)("span",{children:[t(s),". "]}),i.text,(0,r.jsx)("a",{href:"#footnote-".concat(s),onClick:a,className:"text-primary hover:text-primary/80 ml-1",children:"[↩]"})]},s)})})]})}},9443:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(95155),s=a(5565);function i(e){let{title:t,imageUrl:a}=e;return(0,r.jsxs)("div",{className:"relative overflow-hidden",children:[(0,r.jsxs)("div",{className:"absolute inset-0",children:[(0,r.jsx)(s.default,{src:a,alt:"Hero background",fill:!0,className:"object-cover",priority:!0}),(0,r.jsx)("div",{className:"absolute inset-0 bg-black opacity-60"})]}),(0,r.jsx)("div",{className:"relative max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"pt-48 pb-48 text-center lg:pt-48",children:(0,r.jsx)("h1",{className:"font-bold tracking-tight text-white sm:text-6xl",children:t})})})]})}},88587:(e,t,a)=>{"use strict";a.d(t,{InlineCitation:()=>l});var r=a(95155),s=a(31391),i=a(53601);function l(e){let{id:t}=e,{citations:a,getCitationNumber:l}=(0,s.g)(),n=a[t],o=l(t);return(0,r.jsx)(i.Bc,{children:(0,r.jsxs)(i.m_,{delayDuration:100,children:[(0,r.jsx)(i.k$,{asChild:!0,children:(0,r.jsx)("span",{id:"".concat(t),children:(0,r.jsx)("sup",{className:"text-xs text-gray-500",children:(0,r.jsxs)("a",{href:"#citation-".concat(t),className:"hover:text-blue-600","aria-label":"Citation ".concat(o),children:["[",o,"]"]})})})}),(0,r.jsx)(i.ZI,{side:"top",sideOffset:4,className:"max-w-[400px]",children:(0,r.jsxs)("p",{className:"text-xs whitespace-normal",children:[(0,r.jsxs)("span",{className:"font-bold",children:[n.title," (",n.year,")"]}),(0,r.jsx)("br",{}),n.authors.join(", ")]})})]})})}},64300:(e,t,a)=>{"use strict";a.d(t,{InlineFootnote:()=>l});var r=a(95155),s=a(31391),i=a(53601);function l(e){let{id:t}=e,{footnotes:a,getFootnoteNumber:l}=(0,s.L)(),n=l(t);return(0,r.jsx)(i.Bc,{children:(0,r.jsxs)(i.m_,{delayDuration:100,children:[(0,r.jsx)(i.k$,{asChild:!0,children:(0,r.jsx)("span",{id:"".concat(t),className:"pl-0.5",children:(0,r.jsx)("sup",{className:"text-xs text-gray-500",children:(0,r.jsx)("a",{href:"#footnote-".concat(t),className:"hover:text-blue-600","aria-label":"Footnote ".concat(n),children:n})})})}),(0,r.jsx)(i.ZI,{side:"top",sideOffset:6,className:"max-w-[400px]",children:(0,r.jsx)("p",{className:"text-xs whitespace-normal",children:a[t].text})})]})})}},70089:(e,t,a)=>{"use strict";a.d(t,{References:()=>n});var r=a(95155),s=a(67396),i=a(41507),l=a(31391);let n=()=>{let{citations:e}=(0,l.g)(),t=Object.entries(e).map(e=>{let[t,a]=e;return{id:t,...a}});return(0,r.jsxs)("section",{className:"footer-section",children:[(0,r.jsx)("h2",{id:"references",className:"responsive-text-lg font-semibold",children:"References"}),(0,r.jsx)("div",{className:"footer-content",children:(0,r.jsx)("ol",{className:"list-decimal list-outside ml-6 space-y-2",children:t.map(e=>(0,r.jsx)("li",{id:"citation-".concat(e.id),className:"text-gray-700 text-xs",children:(0,r.jsxs)("div",{children:[e.authors.join(", "),', "',e.title,'"',e.journal&&(0,r.jsxs)("span",{className:"italic",children:[" ",e.journal]}),e.publisher&&(0,r.jsxs)("span",{className:"italic",children:[" ",e.publisher]}),", ",e.year,".",e.doi&&(0,r.jsxs)("span",{children:[" DOI: ",e.doi]}),e.url&&(0,r.jsxs)(s.default,{href:e.url,className:"inline-flex items-center ml-2 text-primary hover:text-primary/80",children:["[",(0,r.jsx)(i.A,{className:"h-4 w-4 mx-0.5"}),"Link]"]})]})},e.id))})})]})}},32856:(e,t,a)=>{"use strict";a.d(t,{TableOfContents:()=>l});var r=a(95155),s=a(12115),i=a(67396);let l=()=>{let[e,t]=(0,s.useState)([]),[a,l]=(0,s.useState)("");(0,s.useEffect)(()=>{let e=document.querySelectorAll("h2, h3, h4, h5, h6");t(Array.from(e).map(e=>({id:e.id,text:e.textContent||"",level:parseInt(e.tagName[1])})).slice(1));let a=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.target.id&&l(e.target.id)})},{rootMargin:"-20px 0px -80% 0px"});return e.forEach(e=>{a.observe(e)}),()=>{e.forEach(e=>{a.unobserve(e)})}},[]);let n=(e,t)=>{e.preventDefault();let a=document.getElementById(t);if(a){let e=document.body.getBoundingClientRect().top,t=a.getBoundingClientRect().top;window.scrollTo({top:t-e-80-20,behavior:"smooth"})}};return(0,r.jsxs)("nav",{className:"w-full",children:[(0,r.jsx)("h2",{className:"text-sm font-bold mb-3",children:"Table of Contents"}),(0,r.jsx)("ul",{className:"text-sm space-y-1.5",children:e.map(e=>{let t=a===e.id;return(0,r.jsx)("li",{className:"\n ".concat(2===e.level?"ml-0":"ml-3","\n "),children:(0,r.jsx)(i.default,{href:"#".concat(e.id),className:"\n text-gray-600 hover:text-gray-900 transition-colors duration-200 \n block py-1 px-2 rounded-md hover:bg-gray-50 min-w-[20ch]\n ".concat(t?"bg-gray-100 text-gray-900 font-medium":"","\n "),onClick:t=>n(t,e.id),children:e.text})},e.id)})})]})}},22130:(e,t,a)=>{"use strict";a.d(t,{Wu:()=>d,ZB:()=>o,Zp:()=>l,aR:()=>n});var r=a(95155),s=a(12115),i=a(21567);let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...s})});l.displayName="Card";let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",a),...s})});n.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",a),...s})});o.displayName="CardTitle",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})}).displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",a),...s})});d.displayName="CardContent",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",a),...s})}).displayName="CardFooter"},53601:(e,t,a)=>{"use strict";a.d(t,{Bc:()=>n,ZI:()=>c,k$:()=>d,m_:()=>o});var r=a(95155),s=a(12115),i=a(12134),l=a(21567);let n=i.Kq,o=i.bL,d=i.l9,c=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...n}=e;return(0,r.jsx)(i.ZL,{children:(0,r.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,l.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});c.displayName=i.UC.displayName},31391:(e,t,a)=>{"use strict";a.d(t,{CitationProvider:()=>o,g:()=>d,L:()=>c});var r=a(95155),s=a(12115);let i={mirzadeh2024:{authors:["Mirzadeh, I.","Alizadeh, K.","Shahrokhi, H.","Tuzel, O.","Bengio, S.","Farajtabar, M."],year:2024,title:"GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models",archivePrefix:"arXiv",eprint:"2410.05229",primaryClass:"cs.LG",url:"https://arxiv.org/abs/2410.05229"},xu2024:{authors:["Xu, N.","Ma, X."],year:2024,title:"LLM The Genius Paradox: A Linguistic and Math Expert's Struggle with Simple Word-based Counting Problems",archivePrefix:"arXiv",eprint:"2410.14166",primaryClass:"cs.CL",url:"https://arxiv.org/abs/2410.14166"},radford2019:{authors:["Radford, A.","Wu, J.","Child, R.","Luan, D.","Amodei, D.","Sutskever, I."],year:2019,title:"Language Models are Unsupervised Multitask Learners",url:"https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf"},touvron2023llama:{authors:["Touvron, H.","Lavril, T.","Izacard, G.","Martinet, X.","Lachaux, M.","Lacroix, T.","Rozi\xe8re, B.","Goyal, N.","Hambro, E.","Azhar, F.","Rodriguez, A.","Joulin, A.","Grave, E.","Lample, G."],year:2023,title:"LLaMA: Open and Efficient Foundation Language Models",eprint:"2302.13971",archivePrefix:"arXiv",primaryClass:"cs.CL",url:"https://arxiv.org/abs/2302.13971"},touvron2023llama2:{authors:["Touvron, H.","Martin, L.","Stone, K.","Albert, P.","Almahairi, A.","Babaei, Y.","Bashlykov, N.","Batra, S.","Bhargava, P.","Bhosale, S.","Bikel, D.","Blecher, L.","Canton Ferrer, C.","Chen, M.","Cucurull, G.","Esiobu, D.","Fernandes, J.","Fu, J.","Fu, W.","Fuller, B.","Gao, C.","Goswami, V.","Goyal, N.","Hartshorn, A.","Hosseini, S.","Hou, R.","Inan, H.","Kardas, M.","Kerkez, V.","Khabsa, M.","Kloumann, I.","Korenev, A.","Koura, P. S.","Lachaux, M.","Lavril, T.","Lee, J.","Liskovich, D.","Lu, Y.","Mao, Y.","Martinet, X.","Mihaylov, T.","Mishra, P.","Molybog, I.","Nie, Y.","Poulton, A.","Reizenstein, J.","Rungta, R.","Saladi, K.","Schelten, A.","Silva, R.","Smith, E. M.","Subramanian, R.","Tan, X. E.","Tang, B.","Taylor, R.","Williams, A.","Kuan, J. X.","Xu, P.","Yan, Z.","Zarov, I.","Zhang, Y.","Fan, A.","Kambadur, M.","Narang, S.","Rodriguez, A.","Stojnic, R.","Edunov, S.","Scialom, T."],year:2023,title:"Llama 2: Open Foundation and Fine-Tuned Chat Models",eprint:"2307.09288",archivePrefix:"arXiv",primaryClass:"cs.CL",url:"https://arxiv.org/abs/2307.09288"},deepseek2024:{authors:["DeepSeek-AI","Liu, A.","Feng, B.","Wang, B.","Wang, B.","Liu, B.","Zhao, C.","Dengr, C.","Ruan, C.","Dai, D.","Guo, D.","Yang, D.","Chen, D.","Ji, D.","Li, E.","Lin, F.","Luo, F.","Hao, G.","Chen, G.","Li, G.","Zhang, H.","Xu, H.","Yang, H.","Zhang, H.","Ding, H.","Xin, H.","Gao, H.","Li, H.","Qu, H.","Cai, J. L.","Liang, J.","Guo, J.","Ni, J.","Li, J.","Chen, J.","Yuan, J.","Qiu, J.","Song, J.","Dong, K.","Gao, K.","Guan, K.","Wang, L.","Zhang, L.","Xu, L.","Xia, L.","Zhao, L.","Zhang, L.","Li, M.","Wang, M.","Zhang, M.","Zhang, M.","Tang, M.","Li, M.","Tian, N.","Huang, P.","Wang, P.","Zhang, P.","Zhu, Q.","Chen, Q.","Du, Q.","Chen, R. J.","Jin, R. L.","Ge, R.","Pan, R.","Xu, R.","Chen, R.","Li, S. S.","Lu, S.","Zhou, S.","Chen, S.","Wu, S.","Ye, S.","Ma, S.","Wang, S.","Zhou, S.","Yu, S.","Zhou, S.","Zheng, S.","Wang, T.","Pei, T.","Yuan, T.","Sun, T.","Xiao, W. L.","Zeng, W.","An, W.","Liu, W.","Liang, W.","Gao, W.","Zhang, W.","Li, X. Q.","Jin, X.","Wang, X.","Bi, X.","Liu, X.","Wang, X.","Shen, X.","Chen, X.","Chen, X.","Nie, X.","Sun, X.","Wang, X.","Liu, X.","Xie, X.","Yu, X.","Song, X.","Zhou, X.","Yang, X.","Lu, X.","Su, X.","Wu, Y.","Li, Y. K.","Wei, Y. X.","Zhu, Y. X.","Xu, Y.","Huang, Y.","Li, Y.","Zhao, Y.","Sun, Y.","Li, Y.","Wang, Y.","Zheng, Y.","Zhang, Y.","Xiong, Y.","Zhao, Y.","He, Y.","Tang, Y.","Piao, Y.","Dong, Y.","Tan, Y.","Liu, Y.","Wang, Y.","Guo, Y.","Zhu, Y.","Wang, Y.","Zou, Y.","Zha, Y.","Ma, Y.","Yan, Y.","You, Y.","Liu, Y.","Ren, Z. Z.","Ren, Z.","Sha, Z.","Fu, Z.","Huang, Z.","Zhang, Z.","Xie, Z.","Hao, Z.","Shao, Z.","Wen, Z.","Xu, Z.","Zhang, Z.","Li, Z.","Wang, Z.","Gu, Z.","Li, Z.","Xie, Z."],year:2024,title:"DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model",eprint:"2405.04434",archivePrefix:"arXiv",primaryClass:"cs.CL",url:"https://arxiv.org/abs/2405.04434"},grattafiori2024:{authors:["Grattafiori, A.","Dubey, A.","Jauhri, A.","Pandey, A.","Kadian, A.","Al-Dahle, A.","Letman, A.","Mathur, A.","Schelten, A.","Vaughan, A.","Yang, A.","Fan, A.","Goyal, A.","Hartshorn, A.","Yang, A.","Mitra, A.","Sravankumar, A.","Korenev, A.","Hinsvark, A.","Rao, A.","Zhang, A.","Rodriguez, A.","Gregerson, A.","Spataru, A.","Roziere, B.","Biron, B.","Tang, B.","Chern, B.","Caucheteux, C.","Nayak, C.","Bi, C.","Marra, C.","McConnell, C.","Keller, C.","Touret, C.","Wu, C.","Wong, C.","Canton Ferrer, C.","Nikolaidis, C.","Allonsius, D.","Song, D.","Pintz, D.","Livshits, D.","Wyatt, D.","Esiobu, D.","Choudhary, D.","Mahajan, D.","Garcia-Olano, D.","Perino, D.","Hupkes, D.","Lakomkin, E.","AlBadawy, E.","Lobanova, E.","Dinan, E.","Smith, E. M.","Radenovic, F.","Guzm\xe1n, F.","Zhang, F.","Synnaeve, G.","Lee, G.","Lewis Anderson, G.","Thattai, G.","Nail, G.","Mialon, G.","Pang, G.","Cucurell, G.","Nguyen, H.","Korevaar, H.","Xu, H.","Touvron, H.","Zarov, I.","Arrieta Ibarra, I.","Kloumann, I.","Misra, I.","Evtimov, I.","Zhang, J.","Copet, J.","Lee, J.","Geffert, J.","Vranes, J.","Park, J.","Mahadeokar, J.","Shah, J.","van der Linde, J.","Billock, J.","Hong, J.","Lee, J.","Fu, J.","Chi, J.","Huang, J.","Liu, J.","Wang, J.","Yu, J.","Bitton, J.","Spisak, J.","Park, J.","Rocca, J.","Johnstun, J.","Saxe, J.","Jia, J.","Alwala, K.","Prasad, K.","Upasani, K.","Plawiak, K.","Li, K.","Heafield, K.","Stone, K.","El-Arini, K.","Iyer, K.","Malik, K.","Chiu, K.","Bhalla, K.","Lakhotia, K.","Rantala-Yeary, L.","van der Maaten, L.","Chen, L.","Tan, L.","Jenkins, L.","Martin, L.","Madaan, L.","Malo, L.","Blecher, L.","Landzaat, L.","de Oliveira, L.","Muzzi, M.","Pasupuleti, M.","Singh, M.","Paluri, M.","Kardas, M.","Tsimpoukelli, M.","Oldham, M.","Rita, M.","Pavlova, M.","Kambadur, M.","Lewis, M.","Si, M.","Singh, M.","Hassan, M.","Goyal, N.","Torabi, N.","Bashlykov, N.","Bogoychev, N.","Chatterji, N.","Zhang, N.","Duchenne, O.","\xc7elebi, O.","Alrassy, P.","Zhang, P.","Li, P.","Vasic, P.","Weng, P.","Bhargava, P.","Dubal, P.","Krishnan, P.","Koura, P. S.","Xu, P.","He, Q.","Dong, Q.","Ganapathy, R.","Calderer, R.","Silveira Cabral, R.","Stojnic, R.","Raileanu, R.","Maheswari, R.","Girdhar, R.","Patel, R.","Sauvestre, R.","Polidoro, R.","Sumbaly, R.","Taylor, R.","Silva, R.","Hou, R.","Wang, R.","Hosseini, S.","Chennabasappa, S.","Singh, S.","Bell, S.","Kim, S. S.","Edunov, S.","Nie, S.","Narang, S.","Raparthy, S.","Shen, S.","Wan, S.","Bhosale, S.","Zhang, S.","Vandenhende, S.","Batra, S.","Whitman, S.","Sootla, S.","Collot, S.","Gururangan, S.","Borodinsky, S.","Herman, T.","Fowler, T.","Sheasha, T.","Georgiou, T.","Scialom, T.","Speckbacher, T.","Mihaylov, T.","Xiao, T.","Karn, U.","Goswami, V.","Gupta, V.","Ramanathan, V.","Kerkez, V.","Gonguet, V.","Do, V.","Vogeti, V.","Albiero, V.","Petrovic, V.","Chu, W.","Xiong, W.","Fu, W.","Meers, W.","Martinet, X.","Wang, X.","Wang, X.","Tan, X. E.","Xia, X.","Xie, X.","Jia, X.","Wang, X.","Goldschlag, Y.","Gaur, Y.","Babaei, Y.","Wen, Y.","Song, Y.","Zhang, Y.","Li, Y.","Mao, Y.","Delpierre Coudert, Z.","Yan, Z.","Chen, Z.","Papakipos, Z.","Singh, A.","Srivastava, A.","Jain, A.","Kelsey, A.","Shajnfeld, A.","Gangidi, A.","Victoria, A.","Goldstand, A.","Menon, A.","Sharma, A.","Boesenberg, A.","Baevski, A.","Feinstein, A.","Kallet, A.","Sangani, A.","Teo, A.","Yunus, A.","Lupu, A.","Alvarado, A.","Caples, A.","Gu, A.","Ho, A.","Poulton, A.","Ryan, A.","Ramchandani, A.","Dong, A.","Franco, A.","Goyal, A.","Saraf, A.","Chowdhury, A.","Gabriel, A.","Bharambe, A.","Eisenman, A.","Yazdan, A.","James, B.","Maurer, B.","Leonhardi, B.","Huang, B.","Loyd, B.","De Paola, B.","Paranjape, B.","Liu, B.","Wu, B.","Ni, B.","Hancock, B.","Wasti, B.","Spence, B.","Stojkovic, B.","Gamido, B.","Montalvo, B.","Parker, C.","Burton, C.","Mejia, C.","Liu, C.","Wang, C.","Kim, C.","Zhou, C.","Hu, C.","Chu, C.","Cai, C.","Tindal, C.","Feichtenhofer, C.","Gao, C.","Civin, D.","Beaty, D.","Kreymer, D.","Li, D.","Adkins, D.","Xu, D.","Testuggine, D.","David, D.","Parikh, D.","Liskovich, D.","Foss, D.","Wang, D.","Le, D.","Holland, D.","Dowling, E.","Jamil, E.","Montgomery, E.","Hahn, E.","Wood, E.","Le, E.","Brinkman, E.","Arcaute, E.","Dunbar, E.","Smothers, E.","Sun, F.","Kreuk, F.","Tian, F.","Kokkinos, F.","Ozgenel, F.","Caggioni, F.","Kanayet, F.","Seide, F.","Medina Florez, G.","Schwarz, G.","Badeer, G.","Swee, G.","Sizov, G.","Zhang, G.","Lakshminarayanan, G.","Inan, H.","Shojanazeri, H.","Zou, H.","Wang, H.","Zha, H.","Habeeb, H.","Rudolph, H.","Suk, H.","Aspegren, H.","Goldman, H.","Zhan, H.","Damlaj, I.","Molybog, I.","Tufanov, I.","Leontiadis, I.","Veliche, I.","Gat, I.","Weissman, J.","Geboski, J.","Kohli, J.","Lam, J.","Asher, J.","Gaya, J.","Marcus, J.","Tang, J.","Chan, J.","Zhen, J.","Reizenstein, J.","Teboul, J.","Yang, J.","Cummings, J.","Carvill, J.","Shepard, J.","McPhie, J.","Torres, J.","Ginsburg, J.","Wang, J.","Wu, K.","U, K.","Saxena, K.","Khandelwal, K.","Zand, K.","Veeraraghavan, K.","Michelena, K.","Li, K.","Jagadeesh, K.","Huang, K.","Chawla, K.","Huang, K.","Chen, L.","Garg, L.","A, L.","Silva, L.","Bell, L.","Zhang, L.","Guo, L.","Yu, L.","Moshkovich, L.","Wehrstedt, L.","Khabsa, M.","Avalani, M.","Bhatt, M.","Mankus, M.","Hasson, M.","Lennie, M.","Reso, M.","Groshev, M.","Naumov, M.","Lathi, M.","Keneally, M.","Liu, M.","Seltzer, M. L.","Valko, M.","Restrepo, M.","Patel, M.","Vyatskov, M.","Samvelyan, M.","Clark, M.","Macey, M.","Wang, M.","Jubert Hermoso, M.","Metanat, M.","Rastegari, M.","Bansal, M.","Santhanam, N.","Parks, N.","White, N.","Bawa, N.","Singhal, N.","Egebo, N.","Usunier, N.","Mehta, N.","Laptev, N. P.","Dong, N.","Cheng, N.","Chernoguz, O.","Hart, O.","Salpekar, O.","Kalinli, O.","Kent, P.","Parekh, P.","Saab, P.","Balaji, P.","Rittner, P.","Bontrager, P.","Roux, P.","Dollar, P.","Zvyagina, P.","Ratanchandani, P.","Yuvraj, P.","Liang, Q.","Alao, R.","Rodriguez, R.","Ayub, R.","Murthy, R.","Nayani, R.","Mitra, R.","Parthasarathy, R.","Li, R.","Hogan, R.","Wang, R.","Howes, R.","Rinott, R.","Mehta, S.","Siby, S.","Bondu, S. J.","Datta, S.","Chugh, S.","Hunt, S.","Dhillon, S.","Sidorov, S.","Pan, S.","Mahajan, S.","Verma, S.","Yamamoto, S.","Lindsay, S.","Lindsay, S.","Feng, S.","Lin, S.","Zha, S. C.","Patil, S.","Shankar, S.","Zhang, S.","Zhang, S.","Wang, S.","Agarwal, S.","Sajuyigbe, S.","Chintala, S.","Max, S.","Chen, S.","Kehoe, S.","Satterfield, S.","Govindaprasad, S.","Gupta, S.","Deng, S.","Cho, S.","Virk, S.","Subramanian, S.","Choudhury, S.","Goldman, S.","Remez, T.","Glaser, T.","Best, T.","Koehler, T.","Robinson, T.","Li, T.","Zhang, T.","Matthews, T.","Chou, T.","Shaked, T.","Vontimitta, V.","Ajayi, V.","Montanez, V.","Mohan, V.","Kumar, V. S.","Mangla, V.","Ionescu, V.","Poenaru, V.","Mihailescu, V. T.","Ivanov, V.","Li, W.","Wang, W.","Jiang, W.","Bouaziz, W.","Constable, W.","Tang, X.","Wu, X.","Wang, X.","Wu, X.","Gao, X.","Kleinman, Y.","Chen, Y.","Hu, Y.","Jia, Y.","Qi, Y.","Li, Y.","Zhang, Y.","Zhang, Y.","Adi, Y.","Nam, Y.","Wang, Y.","Zhao, Y.","Hao, Y.","Qian, Y.","Li, Y.","He, Y.","Rait, Z.","DeVito, Z.","Rosnbrick, Z.","Wen, Z.","Yang, Z.","Zhao, Z.","Ma, Z."],year:2024,title:"The Llama 3 Herd of Models",eprint:"2407.21783",archivePrefix:"arXiv",primaryClass:"cs.AI",url:"https://arxiv.org/abs/2407.21783"},groeneveld2024:{authors:["Groeneveld, D.","Beltagy, I.","Walsh, P.","Bhagia, A.","Kinney, R.","Tafjord, O.","Jha, A. H.","Ivison, H.","Magnusson, I.","Wang, Y.","Arora, S.","Atkinson, D.","Authur, R.","Chandu, K. R.","Cohan, A.","Dumas, J.","Elazar, Y.","Gu, Y.","Hessel, J.","Khot, T.","Merrill, W.","Morrison, J.","Muennighoff, N.","Naik, A.","Nam, C.","Peters, M. E.","Pyatkin, V.","Ravichander, A.","Schwenk, D.","Shah, S.","Smith, W.","Strubell, E.","Subramani, N.","Wortsman, M.","Dasigi, P.","Lambert, N.","Richardson, K.","Zettlemoyer, L.","Dodge, J.","Lo, K.","Soldaini, L.","Smith, N. A.","Hajishirzi, H."],year:2024,title:"OLMo: Accelerating the Science of Language Models",eprint:"2402.00838",archivePrefix:"arXiv",primaryClass:"cs.CL",url:"https://arxiv.org/abs/2402.00838"},singh2024:{authors:["Singh, A. K.","Strouse, D. J."],year:2024,title:"Tokenization counts: the impact of tokenization on arithmetic in frontier LLMs",eprint:"2402.14903",archivePrefix:"arXiv",primaryClass:"cs.CL",url:"https://arxiv.org/abs/2402.14903"},claude2024:{authors:["Buckley, M."],year:2023,title:"Integer tokenization is insane",url:"https://www.beren.io/2024-07-07-Right-to-Left-Integer-Tokenization/"},madaan2024:{authors:["Madaan, L.","Singh, A. K.","Schaeffer, R.","Poulton, A.","Koyejo, S.","Stenetorp, P.","Narang, S.","Hupkes, D."],year:2024,title:"Quantifying Variance in Evaluation Benchmarks",eprint:"2406.10229",archivePrefix:"arXiv",primaryClass:"cs.LG",url:"https://arxiv.org/abs/2406.10229"}},l={"same-tokens-footnote":{text:"This only applies to non-carry additions. For carry additions, the resulting number will be tokenized differently depending on the direction. For example, 999 + 111 = 1110 would be tokenized as [1, 110] in L2R but [111, 0] in R2L."}},n=(0,s.createContext)(null);function o(e){let{children:t}=e,a=Object.keys(i),s=Object.keys(l);return(0,r.jsx)(n.Provider,{value:{citations:i,footnotes:l,getCitationNumber:e=>a.indexOf(e)+1,getFootnoteNumber:e=>s.indexOf(e)+1},children:t})}function d(){let e=(0,s.useContext)(n);if(!e)throw Error("useCitations must be used within CitationProvider");return e}function c(){let e=(0,s.useContext)(n);if(!e)throw Error("useFootnotes must be used within CitationProvider");return e}},21567:(e,t,a)=>{"use strict";a.d(t,{cn:()=>i});var r=a(43463),s=a(69795);function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}},79607:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let[e,t]=(0,s.useState)(null),[a,l]=(0,s.useState)("gpt2"),n={gpt2:[{operation:"add",l2r:.30685,r2l:.31925,l2r_std:.07,r2l_std:.07},{operation:"divide",l2r:.3184,r2l:.29065,l2r_std:.05,r2l_std:.05},{operation:"multiply",l2r:.15735,r2l:.16205,l2r_std:.01,r2l_std:.01},{operation:"subtract",l2r:.1812,r2l:.1737,l2r_std:.07,r2l_std:.075}],olmo:[{operation:"add",l2r:.33585,r2l:.32915,l2r_std:.04,r2l_std:.04},{operation:"divide",l2r:.34545,r2l:.3273,l2r_std:.02,r2l_std:.02},{operation:"multiply",l2r:.1598,r2l:.1611,l2r_std:.004,r2l_std:.004},{operation:"subtract",l2r:.19315,r2l:.22125,l2r_std:.04,r2l_std:.04}]}[a],o=(e,t)=>"".concat(e.toFixed(2)," \xb1 ").concat(t.toFixed(2));return(0,r.jsxs)(i.Zp,{children:[(0,r.jsx)(i.aR,{children:(0,r.jsx)("div",{className:"flex items-center justify-between mb-4 mx-5",children:(0,r.jsxs)("select",{value:a,onChange:e=>l(e.target.value),className:"px-4 py-2 border-2 rounded-md text-sm font-medium bg-white hover:border-blue-500 transition-colors",children:[(0,r.jsx)("option",{value:"gpt2",children:"GPT-2 Tokenizer"}),(0,r.jsx)("option",{value:"olmo",children:"OLMo Tokenizer"})]})})}),(0,r.jsx)(i.Wu,{children:(0,r.jsx)("div",{className:"h-[500px]",children:(0,r.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 600 400",children:[(0,r.jsx)("rect",{x:"60",y:"20",width:"500",height:"320",fill:"#f8f9fc",rx:"4"}),[0,.15,.3,.45].map((e,t)=>(0,r.jsx)("line",{x1:"60",x2:"560",y1:340-e/.45*320,y2:340-e/.45*320,stroke:"#e5e7eb",strokeWidth:"1"},"grid-".concat(t))),(0,r.jsx)("line",{x1:"60",y1:"340",x2:"60",y2:"20",stroke:"#374151",strokeWidth:"1.5"}),[0,.15,.3,.45].map((e,t)=>(0,r.jsxs)("g",{children:[(0,r.jsx)("line",{x1:"55",y1:340-e/.45*320,x2:"65",y2:340-e/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("text",{x:"45",y:345-e/.45*320,textAnchor:"end",fontSize:"12",fill:"#374151",children:e.toFixed(2)})]},t)),(0,r.jsx)("text",{x:"15",y:"200",transform:"rotate(-90, 15, 200)",textAnchor:"middle",fontSize:"12",fill:"#374151",children:"Accuracy"}),(0,r.jsx)("line",{x1:"60",y1:"340",x2:"560",y2:"340",stroke:"#374151",strokeWidth:"1.5"}),n.map((e,t)=>(0,r.jsx)("text",{x:126+125*t,y:"365",textAnchor:"middle",fontSize:"12",fill:"#374151",children:e.operation},t)),(0,r.jsx)("text",{x:"310",y:"390",textAnchor:"middle",fontSize:"12",fill:"#374151",children:"Operator"}),n.map((a,s)=>{let i=a.l2r/.45*320,l=a.r2l/.45*320,n=Math.min(340-i,340-l)-25;return(0,r.jsxs)("g",{children:[(0,r.jsxs)("g",{onMouseEnter:()=>t("l2r-".concat(s)),onMouseLeave:()=>t(null),style:{cursor:"pointer"},children:[(0,r.jsx)("rect",{x:85+125*s,y:340-i,width:"40",height:i,fill:e==="l2r-".concat(s)?"#ff7777":"#ff9999",opacity:"0.8"}),e==="l2r-".concat(s)&&(0,r.jsxs)("g",{children:[(0,r.jsx)("rect",{x:75+125*s,y:n-15,width:"70",height:"20",fill:"white",stroke:"#374151",strokeWidth:"1",rx:"4"}),(0,r.jsx)("text",{x:110+125*s,y:n,textAnchor:"middle",fontSize:"12",fill:"#374151",children:o(a.l2r,a.l2r_std)})]})]}),(0,r.jsx)("line",{x1:105+125*s,y1:340-(a.l2r+a.l2r_std)/.45*320,x2:105+125*s,y2:340-(a.l2r-a.l2r_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:95+125*s,x2:115+125*s,y1:340-(a.l2r+a.l2r_std)/.45*320,y2:340-(a.l2r+a.l2r_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:95+125*s,x2:115+125*s,y1:340-(a.l2r-a.l2r_std)/.45*320,y2:340-(a.l2r-a.l2r_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsxs)("g",{onMouseEnter:()=>t("r2l-".concat(s)),onMouseLeave:()=>t(null),style:{cursor:"pointer"},children:[(0,r.jsx)("rect",{x:130+125*s,y:340-l,width:"40",height:l,fill:e==="r2l-".concat(s)?"#77d4d4":"#99e6e6",opacity:"0.8"}),e==="r2l-".concat(s)&&(0,r.jsxs)("g",{children:[(0,r.jsx)("rect",{x:120+125*s,y:n-15,width:"70",height:"20",fill:"white",stroke:"#374151",strokeWidth:"1",rx:"4"}),(0,r.jsx)("text",{x:155+125*s,y:n,textAnchor:"middle",fontSize:"12",fill:"#374151",children:o(a.r2l,a.r2l_std)})]})]}),(0,r.jsx)("line",{x1:150+125*s,y1:340-(a.r2l+a.r2l_std)/.45*320,x2:150+125*s,y2:340-(a.r2l-a.r2l_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:140+125*s,x2:160+125*s,y1:340-(a.r2l+a.r2l_std)/.45*320,y2:340-(a.r2l+a.r2l_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:140+125*s,x2:160+125*s,y1:340-(a.r2l-a.r2l_std)/.45*320,y2:340-(a.r2l-a.r2l_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"})]},s)}),(0,r.jsxs)("g",{transform:"translate(450, 50)",children:[(0,r.jsx)("rect",{width:"15",height:"15",fill:"#ff9999"}),(0,r.jsx)("text",{x:"20",y:"12",fontSize:"12",fill:"#374151",children:"Left-to-Right "}),(0,r.jsx)("rect",{y:"20",width:"15",height:"15",fill:"#99e6e6"}),(0,r.jsx)("text",{x:"20",y:"32",fontSize:"12",fill:"#374151",children:"Right-to-Left"})]})]})})})]})}},5180:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let[e,t]=(0,s.useState)("GPT2 Tokenizer Model"),[a,l]=(0,s.useState)(null),[n,o]=(0,s.useState)(null),d=[.82,.79,.85,.77];return(0,r.jsx)(i.Zp,{className:"w-full px-4",children:(0,r.jsxs)(i.Wu,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)("p",{className:"responsive-text-sm text-muted-foreground mb-2",children:"Select model with highest standard deviation across evals"}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:["L2R Tokenizer Model","R2L Tokenizer Model","GPT2 Tokenizer Model"].map((a,s)=>(0,r.jsxs)("div",{onClick:()=>t(a),className:"border rounded-md p-2 flex flex-col items-center justify-center min-h-[60px] cursor-pointer transition-all hover:scale-[1.02] active:scale-[0.98] ".concat(a===e?"border-2 border-blue-500 bg-blue-50/50":"hover:bg-gray-50"),children:[(0,r.jsx)("div",{className:"responsive-text-sm text-muted-foreground text-center",children:a}),(0,r.jsxs)("div",{className:"responsive-text-sm text-muted-foreground mt-1",children:["σ = \xb1",(.02+.01*s).toFixed(3)]}),a===e&&(0,r.jsx)("div",{className:"responsive-text-xs text-blue-500 mt-0.5",children:"Highest variation"})]},s))})]}),(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:"Train same model with different random seeds"}),(0,r.jsx)("div",{className:"grid grid-cols-4 gap-2",children:[1,2,3,4].map(t=>(0,r.jsxs)("div",{onMouseEnter:()=>l(t),onMouseLeave:()=>l(null),className:"border rounded-md p-2 flex flex-col items-center justify-center h-[60px] transition-all hover:scale-105 ".concat(a===t?"shadow-md":""," ").concat(1===t?"bg-blue-50":2===t?"bg-green-50":3===t?"bg-yellow-50":"bg-red-50"),children:[(0,r.jsx)("div",{className:"text-xs text-muted-foreground",children:e}),(0,r.jsxs)("div",{className:"text-xs text-muted-foreground mt-1",children:["Seed ",t]})]},t))})]}),(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsxs)("p",{className:"text-xs text-muted-foreground mb-2",children:[(0,r.jsx)("strong",{children:"For each task, "})," evaluate all models"]}),(0,r.jsx)("div",{className:"space-y-1",children:["A","B","..."].map((e,t)=>(0,r.jsxs)("div",{onMouseEnter:()=>o(e),onMouseLeave:()=>o(null),className:"grid grid-cols-5 gap-2 transition-transform hover:translate-x-1",children:[(0,r.jsx)("div",{className:"flex items-center justify-center h-[40px]",children:(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Task ",e]})}),d.map((a,s)=>(0,r.jsx)("div",{className:"rounded-md p-2 flex items-center justify-center h-[40px] transition-transform hover:scale-105 ".concat(n===e?"shadow-sm":""," ").concat(0===s?"bg-blue-50":1===s?"bg-green-50":2===s?"bg-yellow-50":"bg-red-50"),children:(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"..."===e?"...":0===t?a.toFixed(2):(.87*a).toFixed(2)})},s))]},e))})]}),(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:"Calculate task-specific standard deviations"}),(0,r.jsx)("div",{className:"space-y-1",children:["A","B","..."].map(e=>(0,r.jsxs)("div",{className:"grid grid-cols-5 gap-2 transition-transform hover:translate-x-1",children:[(0,r.jsx)("div",{className:"flex items-center justify-center h-[40px]",children:(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Task ",e]})}),(0,r.jsx)("div",{className:"col-span-4 rounded-md p-2 flex items-center justify-center h-[40px] bg-blue-50 transition-transform hover:scale-[1.02]",children:(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"..."===e?"...":"σ = \xb1".concat(("A"===e?.034:.0299).toFixed(3))})})]},e))})]}),(0,r.jsxs)("p",{className:"py-4 text-xs text-muted-foreground italic",children:["For task A, we report σ = 0.034 as the standard deviation for ",(0,r.jsx)("strong",{children:"all models"})]})]})})}},94388:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let[e,t]=(0,s.useState)(null);return(0,r.jsxs)(i.Zp,{className:"w-full max-w-2xl",children:[(0,r.jsx)(i.aR,{children:(0,r.jsx)(i.ZB,{className:"text-center",children:"Average Accuracy in Addition Tasks"})}),(0,r.jsx)(i.Wu,{children:(0,r.jsxs)("div",{className:"h-80 w-full relative",children:[(0,r.jsx)("div",{className:"absolute -left-16 top-1/2 -rotate-90 text-sm text-gray-500 -translate-y-1/2",children:"Accuracy"}),(0,r.jsx)("div",{className:"h-full flex items-end justify-around",children:[{name:"Base Llama 3\nTokenizer",value:.699},{name:"Right-to-Left",value:.791}].map(a=>(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:"w-20 rounded-t-sm transition-all duration-200 ".concat(e===a.name?"bg-indigo-400 scale-105":"bg-indigo-600"),style:{height:"".concat((a.value-.6)/(.8-.6)*300,"px")},onMouseEnter:()=>t(a.name),onMouseLeave:()=>t(null),children:(0,r.jsx)("div",{className:"text-white text-center mt-2 transition-opacity duration-200 ".concat(e===a.name?"opacity-100":"opacity-80"),children:a.value.toFixed(3)})}),(0,r.jsx)("div",{className:"mt-4 text-sm text-center whitespace-nowrap transition-all duration-200 ".concat(e===a.name?"font-bold scale-105":""),children:a.name})]},a.name))})]})})]})}},96305:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let e=Array.from({length:20},(e,t)=>50*t+1),t=e=>new Set(["521","527","531","532","534","539","541","542","543","547","564","566","567","569","611","619","621","622","624","631","632","633","634","636","637","638","639","664","711","715","716","717","719","721","722","723","724","726","731","732","734","735","737","738","739","741","742","743","744","746","749","761","764","766","769","788","791","811","812","813","814","816","817","818","819","821","822","823","824","826","827","828","829","831","832","834","835","836","837","838","839","841","842","843","844","845","846","847","848","849","851","852","853","854","856","857","858","859","861","862","863","865","867","868","869","871","872","873","874","876","878","879","881","890","891","892","894","895","897","898","902","903","904","906","907","908","912","913","914","917","918","919","921","922","923","924","926","927","928","929","931","932","933","934","935","936","937","938","939","941","942","943","944","945","946","947","948","955","957","958","959","961","962","963","964","965","966","967","971","972","973","974","976","977","979","981","982","983","984","988","991"]).has(e.toString())?"bg-red-200":"bg-green-200";return(0,r.jsxs)(i.Zp,{className:"w-full max-w-[1200px] p-2 sm:p-4 bg-white",children:[(0,r.jsx)(i.aR,{children:(0,r.jsx)(i.ZB,{className:"text-lg sm:text-xl font-semibold text-center",children:"BPE (GPT2) Tokenization Heatmap for Numbers 1-1000"})}),(0,r.jsxs)(i.Wu,{children:[(0,r.jsxs)("div",{className:"flex flex-wrap justify-center gap-2 sm:gap-4 mb-2 sm:mb-4",children:[(0,r.jsx)("div",{className:"flex items-center gap-1 sm:gap-2",children:(0,r.jsx)("span",{className:"text-[10px] sm:text-xs",children:"This number consists of "})}),(0,r.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2",children:[(0,r.jsx)("div",{className:"w-3 h-3 sm:w-4 sm:h-4 bg-green-200"}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs",children:"1 token"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2",children:[(0,r.jsx)("div",{className:"w-3 h-3 sm:w-4 sm:h-4 bg-red-200"}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs",children:"2 tokens"})]})]}),(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsx)("div",{className:"min-w-[300px] text-xs sm:min-w-[600px] sm:text-sm",children:(0,r.jsx)("div",{className:"grid",style:{gridTemplateColumns:"repeat(50, 22px)"},children:e.map(e=>(0,r.jsx)(s.Fragment,{children:Array.from({length:50},(a,s)=>{let i=e+s;return(0,r.jsx)("div",{className:"w-4 h-4 sm:w-6 sm:h-6 border border-gray-100 ".concat(t(i)," flex items-center justify-center"),children:(0,r.jsx)("span",{className:"text-[6px] sm:text-[8px] md:text-[8px] font-bold",children:i})},"cell-".concat(i))})},"row-".concat(e)))})})})]})]})}},10944:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var r=a(95155),s=a(12115),i=a(22130);let l={MAWPS:{GPT2:[.003,.014,.042,.076,.087,.121,.135,.155,.166,.203,.234,.217,.237,.234,.251,.265,.27,.299,.282,.296,.287,.293,.335,.33,.327,.307,.335,.315,.33,.321],OLMo:[0,.028,.034,.048,.085,.101,.096,.138,.163,.177,.192,.189,.248,.245,.259,.287,.276,.293,.338,.287,.315,.346,.338,.341,.335,.349,.361,.341,.369,.361],Llama3:[0,.034,.062,.068,.115,.135,.158,.172,.172,.228,.186,.248,.254,.299,.282,.332,.31,.327,.341,.33,.349,.352,.335,.383,.383,.369,.392,.392,.406,.394],"Llama3 R2L":[0,.025,.059,.076,.096,.115,.13,.155,.144,.203,.231,.268,.239,.242,.245,.273,.273,.282,.293,.304,.318,.335,.33,.335,.346,.361,.344,.355,.355,.361],DeepSeek:[0,.042,.037,.051,.082,.127,.161,.166,.189,.214,.234,.268,.254,.27,.301,.346,.31,.301,.344,.349,.358,.341,.355,.344,.363,.358,.372,.352,.377,.358]},SVAMP:{GPT2:[0,.02,.055,.06,.065,.09,.13,.115,.14,.115,.14,.13,.16,.16,.16,.15,.2,.2,.205,.2,.22,.185,.205,.185,.245,.22,.215,.175,.205,.205],OLMo:[0,.025,.05,.04,.08,.095,.1,.14,.135,.12,.135,.14,.17,.14,.17,.17,.185,.175,.195,.235,.2,.235,.22,.195,.225,.235,.23,.215,.225,.23],Llama3:[.005,.02,.03,.055,.085,.095,.09,.105,.115,.135,.15,.135,.165,.18,.185,.215,.25,.195,.225,.205,.2,.22,.205,.21,.24,.22,.255,.225,.235,.27],"Llama3 R2L":[0,.025,.035,.06,.06,.105,.12,.13,.135,.16,.155,.165,.155,.2,.195,.215,.25,.21,.225,.235,.205,.27,.255,.22,.285,.225,.26,.25,.26,.265],DeepSeek:[0,.01,.02,.06,.08,.105,.1,.135,.165,.17,.12,.16,.185,.165,.19,.17,.185,.205,.185,.205,.22,.22,.19,.21,.23,.2,.2,.23,.23,.265]}},n=()=>{let[e,t]=(0,s.useState)("MAWPS"),[a,n]=(0,s.useState)(null),[o,d]=(0,s.useState)(null),[c,h]=(0,s.useState)(new Set([])),x=Object.entries(l[e]).map(e=>{let[t,a]=e;return{label:t,values:a,color:({GPT2:"rgb(255, 99, 132)",OLMo:"rgb(53, 162, 235)",Llama3:"rgb(75, 192, 192)","Llama3 R2L":"rgb(153, 102, 255)",DeepSeek:"rgb(255, 159, 64)"})[t]}}),m=Math.max(...x.flatMap(e=>e.values)),u=e=>Math.min(740,Math.max(60,60+e/29*680)),g=e=>Math.min(340,Math.max(60,340-e/m*280)),p=e=>e.map((e,t)=>"".concat(0===t?"M":"L"," ").concat(u(t)," ").concat(g(e))).join(" "),f=Array.from({length:15},(e,t)=>2*t),y=e=>{let t=new Set(c);t.has(e)?t.delete(e):t.add(e),h(t)};return(0,r.jsxs)(i.Zp,{className:"w-full max-w-5xl",children:[(0,r.jsxs)(i.aR,{children:[(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsxs)("select",{className:"border rounded p-1",value:e,onChange:e=>t(e.target.value),children:[(0,r.jsx)("option",{value:"MAWPS",children:"MAWPS"}),(0,r.jsx)("option",{value:"SVAMP",children:"SVAMP"})]})}),(0,r.jsx)("div",{className:"text-gray-500 text-center",children:"Evaluated on 5-shot problems; Quasi-Exact Match (Accuracy)"})]}),(0,r.jsx)(i.Wu,{children:(0,r.jsxs)("svg",{width:800,height:400,children:[(0,r.jsx)("line",{x1:60,y1:340,x2:740,y2:340,stroke:"black"}),(0,r.jsx)("line",{x1:60,y1:60,x2:60,y2:340,stroke:"black"}),f.map(e=>(0,r.jsxs)("g",{transform:"translate(".concat(u(e),", ").concat(340,")"),children:[(0,r.jsx)("line",{y2:"6",stroke:"black"}),(0,r.jsxs)("text",{y:"20",textAnchor:"middle",children:[2*e,"k"]})]},e)),x.map((e,t)=>!c.has(e.label)&&(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:p(e.values),stroke:e.color,fill:"none",strokeWidth:a===e.label?3:2,opacity:null===a||a===e.label?1:.3,onMouseEnter:()=>n(e.label),onMouseLeave:()=>n(null)}),null!==o&&(0,r.jsx)("circle",{cx:u(o),cy:g(e.values[o]),r:4,fill:e.color})]},t)),x.map((e,t)=>(0,r.jsxs)("g",{transform:"translate(".concat(70+120*t,", ").concat(30,")"),style:{cursor:"pointer"},opacity:c.has(e.label)||null!==a&&a!==e.label?.3:1,onMouseEnter:()=>n(e.label),onMouseLeave:()=>n(null),onClick:()=>y(e.label),children:[(0,r.jsx)("line",{x1:0,y1:0,x2:20,y2:0,stroke:e.color,strokeWidth:2}),(0,r.jsx)("text",{x:25,y:4,fontSize:12,children:e.label})]},t)),(0,r.jsx)("text",{x:400,y:395,textAnchor:"middle",children:"Training Steps"}),(0,r.jsx)("text",{transform:"rotate(-90) translate(-".concat(200,", 25)"),textAnchor:"middle",children:"Quasi-Exact Match (Accuracy)"}),null!==o&&(0,r.jsx)("g",{transform:"translate(".concat(Math.min(610,Math.max(60,u(o))),",").concat(Math.min(340-(12+12*x.filter(e=>!c.has(e.label)).length),Math.max(60,Math.min(...x.filter(e=>!c.has(e.label)).map(e=>g(e.values[o])))-15)),")"),children:(()=>{let e=x.filter(e=>!c.has(e.label)),t=[(0,r.jsxs)("text",{x:70,y:0,textAnchor:"middle",fontWeight:"bold",fontSize:11,children:[2*o,"k steps"]},"header"),...e.map((e,t)=>(0,r.jsxs)("text",{x:70,y:18+12*t,textAnchor:"middle",fill:e.color,fontSize:11,children:[e.label,": ",e.values[o].toFixed(3)]},t+1))],a=Math.max(...t.map(e=>6.5*e.props.children.toString().length))+5,s=25+12*e.length;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:10,y:-12,width:a,height:s,rx:4,fill:"white",stroke:"black",strokeWidth:.5,opacity:.95}),t]})})()}),(0,r.jsx)("rect",{x:60,y:60,width:680,height:280,fill:"transparent",onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),a=Math.round((e.clientX-t.left)/680*29);a>=0&&a<30&&d(a)},onMouseLeave:()=>d(null)})]})})]})}},52107:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let[e,t]=(0,s.useState)(null),a=[{operation:"add",l2r:.37,r2l:.4,l2r_std:.04,r2l_std:.03},{operation:"divide",l2r:.31,r2l:.35,l2r_std:.02,r2l_std:.02},{operation:"multiply",l2r:.17,r2l:.17,l2r_std:.01,r2l_std:.01},{operation:"subtract",l2r:.19,r2l:.23,l2r_std:.03,r2l_std:.03}],l=(e,t)=>"".concat(e.toFixed(2)," \xb1 ").concat(t.toFixed(2));return(0,r.jsxs)(i.Zp,{children:[(0,r.jsx)(i.aR,{}),(0,r.jsx)(i.Wu,{children:(0,r.jsx)("div",{className:"h-[500px]",children:(0,r.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 600 400",children:[(0,r.jsx)("rect",{x:"60",y:"20",width:"500",height:"320",fill:"#f8f9fc",rx:"4"}),[0,.15,.3,.45].map((e,t)=>(0,r.jsx)("line",{x1:"60",x2:"560",y1:340-e/.45*320,y2:340-e/.45*320,stroke:"#e5e7eb",strokeWidth:"1"},"grid-".concat(t))),(0,r.jsx)("line",{x1:"60",y1:"340",x2:"60",y2:"20",stroke:"#374151",strokeWidth:"1.5"}),[0,.15,.3,.45].map((e,t)=>(0,r.jsxs)("g",{children:[(0,r.jsx)("line",{x1:"55",y1:340-e/.45*320,x2:"65",y2:340-e/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("text",{x:"45",y:345-e/.45*320,textAnchor:"end",fontSize:"12",fill:"#374151",children:e.toFixed(2)})]},t)),(0,r.jsx)("text",{x:"15",y:"200",transform:"rotate(-90, 15, 200)",textAnchor:"middle",fontSize:"12",fill:"#374151",children:"Accuracy"}),(0,r.jsx)("line",{x1:"60",y1:"340",x2:"560",y2:"340",stroke:"#374151",strokeWidth:"1.5"}),a.map((e,t)=>(0,r.jsx)("text",{x:126+125*t,y:"365",textAnchor:"middle",fontSize:"12",fill:"#374151",children:e.operation},t)),(0,r.jsx)("text",{x:"310",y:"390",textAnchor:"middle",fontSize:"12",fill:"#374151",children:"Operator"}),a.map((a,s)=>{let i=a.l2r/.45*320,n=a.r2l/.45*320,o=Math.min(340-i,340-n)-25;return(0,r.jsxs)("g",{children:[(0,r.jsxs)("g",{onMouseEnter:()=>t("l2r-".concat(s)),onMouseLeave:()=>t(null),style:{cursor:"pointer"},children:[(0,r.jsx)("rect",{x:85+125*s,y:340-i,width:"40",height:i,fill:e==="l2r-".concat(s)?"#ff7777":"#ff9999",opacity:"0.8"}),e==="l2r-".concat(s)&&(0,r.jsxs)("g",{children:[(0,r.jsx)("rect",{x:75+125*s,y:o-15,width:"70",height:"20",fill:"white",stroke:"#374151",strokeWidth:"1",rx:"4"}),(0,r.jsx)("text",{x:110+125*s,y:o,textAnchor:"middle",fontSize:"12",fill:"#374151",children:l(a.l2r,a.l2r_std)})]})]}),(0,r.jsx)("line",{x1:105+125*s,y1:340-(a.l2r+a.l2r_std)/.45*320,x2:105+125*s,y2:340-(a.l2r-a.l2r_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:95+125*s,x2:115+125*s,y1:340-(a.l2r+a.l2r_std)/.45*320,y2:340-(a.l2r+a.l2r_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:95+125*s,x2:115+125*s,y1:340-(a.l2r-a.l2r_std)/.45*320,y2:340-(a.l2r-a.l2r_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsxs)("g",{onMouseEnter:()=>t("r2l-".concat(s)),onMouseLeave:()=>t(null),style:{cursor:"pointer"},children:[(0,r.jsx)("rect",{x:130+125*s,y:340-n,width:"40",height:n,fill:e==="r2l-".concat(s)?"#77d4d4":"#99e6e6",opacity:"0.8"}),e==="r2l-".concat(s)&&(0,r.jsxs)("g",{children:[(0,r.jsx)("rect",{x:120+125*s,y:o-15,width:"70",height:"20",fill:"white",stroke:"#374151",strokeWidth:"1",rx:"4"}),(0,r.jsx)("text",{x:155+125*s,y:o,textAnchor:"middle",fontSize:"12",fill:"#374151",children:l(a.r2l,a.r2l_std)})]})]}),(0,r.jsx)("line",{x1:150+125*s,y1:340-(a.r2l+a.r2l_std)/.45*320,x2:150+125*s,y2:340-(a.r2l-a.r2l_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:140+125*s,x2:160+125*s,y1:340-(a.r2l+a.r2l_std)/.45*320,y2:340-(a.r2l+a.r2l_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"}),(0,r.jsx)("line",{x1:140+125*s,x2:160+125*s,y1:340-(a.r2l-a.r2l_std)/.45*320,y2:340-(a.r2l-a.r2l_std)/.45*320,stroke:"#374151",strokeWidth:"1.5"})]},s)}),(0,r.jsxs)("g",{transform:"translate(450, 50)",children:[(0,r.jsx)("rect",{width:"15",height:"15",fill:"#ff9999"}),(0,r.jsx)("text",{x:"20",y:"12",fontSize:"12",fill:"#374151",children:"Left-to-Right "}),(0,r.jsx)("rect",{y:"20",width:"15",height:"15",fill:"#99e6e6"}),(0,r.jsx)("text",{x:"20",y:"32",fontSize:"12",fill:"#374151",children:"Right-to-Left"})]})]})})})]})}},15467:(e,t,a)=>{"use strict";a.d(t,{default:()=>g});var r=a(95155),s=a(12115),i=a(22130),l=a(58581),n=a(24817),o=a(15255),d=a(12800),c=a(66963),h=a(27112),x=a(86354),m=a(16161);let u=[{digits:1,l2r:1,r2l:1,l2r_carry:1,r2l_carry:1},{digits:2,l2r:1,r2l:1,l2r_carry:1,r2l_carry:1},{digits:3,l2r:1,r2l:1,l2r_carry:1,r2l_carry:.886},{digits:4,l2r:.942,r2l:.922,l2r_carry:.974,r2l_carry:.941},{digits:5,l2r:.95,r2l:.939,l2r_carry:.953,r2l_carry:.981},{digits:6,l2r:.959,r2l:.959,l2r_carry:.951,r2l_carry:.719},{digits:7,l2r:.871,r2l:.906,l2r_carry:.829,r2l_carry:.867},{digits:8,l2r:.922,r2l:.93,l2r_carry:.782,r2l_carry:.964},{digits:9,l2r:.956,r2l:.956,l2r_carry:.837,r2l_carry:.6},{digits:10,l2r:.828,r2l:.857,l2r_carry:.275,r2l_carry:.8},{digits:11,l2r:.859,r2l:.893,l2r_carry:.638,r2l_carry:.905},{digits:12,l2r:.886,r2l:.886,l2r_carry:.707,r2l_carry:.662},{digits:13,l2r:.761,r2l:.808,l2r_carry:.218,r2l_carry:.74},{digits:14,l2r:.748,r2l:.814,l2r_carry:.382,r2l_carry:.824},{digits:15,l2r:.762,r2l:.762,l2r_carry:.439,r2l_carry:.448},{digits:16,l2r:.483,r2l:.695,l2r_carry:.286,r2l_carry:.654},{digits:17,l2r:.485,r2l:.683,l2r_carry:.278,r2l_carry:.692},{digits:18,l2r:.484,r2l:.484,l2r_carry:.291,r2l_carry:.144},{digits:19,l2r:.474,r2l:.59,l2r_carry:.151,r2l_carry:.548},{digits:20,l2r:.446,r2l:.583,l2r_carry:.171,r2l_carry:.578}],g=()=>{let[e,t]=(0,s.useState)({l2r:!0,r2l:!0,l2r_carry:!1,r2l_carry:!1}),a=e=>{t(t=>({...t,[e]:!t[e]}))};return(0,r.jsxs)(i.Zp,{className:"w-full max-w-4xl mx-auto",children:[(0,r.jsxs)(i.aR,{children:[(0,r.jsx)(i.ZB,{className:"text-xl font-bold text-center",children:"R2L Tokenization achieves better performance in addition tasks"}),(0,r.jsx)("div",{className:"flex justify-center mt-4",children:(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 p-1 bg-muted/20 rounded-lg",children:[(0,r.jsx)("button",{onClick:()=>a("l2r"),className:"px-4 py-1.5 text-sm font-medium rounded-md transition-all duration-200 ease-out transform hover:scale-105 active:scale-95 ".concat(e.l2r?"bg-primary text-primary-foreground shadow-md":"bg-background/80 text-muted-foreground hover:bg-background"),children:"L2R"}),(0,r.jsx)("button",{onClick:()=>a("r2l"),className:"px-4 py-1.5 text-sm font-medium rounded-md transition-all duration-200 ease-out transform hover:scale-105 active:scale-95 ".concat(e.r2l?"bg-primary text-primary-foreground shadow-md":"bg-background/80 text-muted-foreground hover:bg-background"),children:"R2L"}),(0,r.jsx)("button",{onClick:()=>a("l2r_carry"),className:"px-4 py-1.5 text-sm font-medium rounded-md transition-all duration-200 ease-out transform hover:scale-105 active:scale-95 ".concat(e.l2r_carry?"bg-primary text-primary-foreground shadow-md":"bg-background/80 text-muted-foreground hover:bg-background"),children:"L2R Carry"}),(0,r.jsx)("button",{onClick:()=>a("r2l_carry"),className:"px-4 py-1.5 text-sm font-medium rounded-md transition-all duration-200 ease-out transform hover:scale-105 active:scale-95 ".concat(e.r2l_carry?"bg-primary text-primary-foreground shadow-md":"bg-background/80 text-muted-foreground hover:bg-background"),children:"R2L Carry"})]})})]}),(0,r.jsx)(i.Wu,{children:(0,r.jsx)(l.u,{width:"100%",height:500,children:(0,r.jsxs)(n.b,{data:u,margin:{top:20,right:30,left:20,bottom:10},children:[(0,r.jsx)(o.d,{strokeDasharray:"3 3"}),(0,r.jsx)(d.W,{dataKey:"digits",label:{value:"Digits",position:"insideBottomRight",offset:-10}}),(0,r.jsx)(c.h,{label:{value:"Accuracy",angle:-90,position:"insideLeft"},domain:[0,1]}),(0,r.jsx)(h.m,{}),(0,r.jsx)(x.s,{iconSize:12,wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),e.l2r&&(0,r.jsx)(m.N,{type:"monotone",dataKey:"l2r",name:"Left to Right Without Carry",stroke:"hsl(var(--chart-1))",activeDot:{r:8}}),e.r2l&&(0,r.jsx)(m.N,{type:"monotone",dataKey:"r2l",name:"Right to Left Without Carry",stroke:"hsl(var(--chart-2))",activeDot:{r:8}}),e.l2r_carry&&(0,r.jsx)(m.N,{type:"monotone",dataKey:"l2r_carry",name:"Left to Right with Carry",stroke:"hsl(var(--chart-3))",activeDot:{r:8}}),e.r2l_carry&&(0,r.jsx)(m.N,{type:"monotone",dataKey:"r2l_carry",name:"Right to Left with Carry",stroke:"hsl(var(--chart-4))",activeDot:{r:8}})]})})})]})}},50193:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(95155);a(12115);var s=a(22130);let i=()=>(0,r.jsx)(s.Zp,{className:"w-{3/4} max-w-4xl pt-8 px-2 bg-gradient-to-br from-background to-muted/20 mx-2",children:(0,r.jsx)(s.Wu,{className:"flex flex-col items-center",children:[{problem:"3789 + 8791 = 12580",l2r:{steps:[{tokens:["378","9"],highlight:"9"},{tokens:["879","1"],highlight:"1"},{tokens:["125","80"],highlight:"80"}]},r2l:{steps:[{tokens:["3","789"],highlight:"789"},{tokens:["8","791"],highlight:"791"},{tokens:["12","580"],highlight:"580"}]}}].map(e=>(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 max-w-3xl mx-auto",children:[{title:"Left-to-Right Tokenization",steps:e.l2r.steps,color:"red"},{title:"Right-to-Left Tokenization",steps:e.r2l.steps,color:"teal"}].map(e=>{let{title:t,steps:a,color:s}=e;return(0,r.jsxs)("div",{className:"border rounded-lg p-4 md:p-8 bg-white/50 transition-all duration-200 hover:shadow-lg hover:scale-[1.02]",children:[(0,r.jsx)("p",{className:"text-lg md:text-xl font-bold mb-4 md:mb-6 text-center tracking-wide",children:t.toLowerCase()}),(0,r.jsxs)("div",{className:"font-mono flex flex-col items-center text-base md:text-lg",children:[(0,r.jsx)("div",{className:"flex flex-col items-center border-b border-gray-300 pb-1 mb-3 w-full md:w-1/2",children:a.slice(0,-1).map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[1===t&&(0,r.jsx)("span",{className:"text-gray-500",children:"\xa0"}),(0,r.jsx)("span",{className:"bg-gray-100 px-2 py-1 transition-colors duration-200 hover:bg-gray-200",children:e.tokens[0]}),(0,r.jsx)("span",{className:"bg-".concat(s,"-100 px-2 py-1 transition-colors duration-200 hover:bg-").concat(s,"-200"),children:e.highlight}),1===t&&(0,r.jsx)("span",{className:"text-gray-500",children:"+"})]},t))}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("span",{className:"bg-gray-100 px-2 py-1 transition-colors duration-200 hover:bg-gray-200",children:a[2].tokens[0]}),(0,r.jsx)("span",{className:"bg-".concat(s,"-100 px-2 py-1 transition-colors duration-200 hover:bg-").concat(s,"-200"),children:a[2].highlight})]})]})]},t)})}),(0,r.jsxs)("p",{className:"text-sm md:text-base text-gray-600 mt-5 max-w-3xl mx-auto leading-relaxed bg-white/50 rounded-lg",children:["In the L2R example, ",(0,r.jsx)("span",{className:"text-red-600",children:"9"})," + ",(0,r.jsx)("span",{className:"text-red-600",children:"1"})," should map to the digit ",(0,r.jsx)("span",{className:"text-red-600",children:"0"})," but ends up grouped together with ",(0,r.jsx)("span",{className:"text-red-600",children:"8"})," to form ",(0,r.jsx)("span",{className:"text-red-600",children:"80"}),", since the first three tokens (125) were already grouped together. ",(0,r.jsx)("span",{className:"text-red-600 font-medium",children:"This 'shift' in the tokenization boundary produces additional complexity"})," in the learning process which has been shown to be detrimental to accuracy.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"In the R2L example, each digit of ",(0,r.jsx)("span",{className:"text-teal-600",children:"580"})," aligns neatly with its corresponding sub-operands ",(0,r.jsx)("span",{className:"text-teal-600",children:"789"})," and ",(0,r.jsx)("span",{className:"text-teal-600",children:"791"}),", which is a more intuitive grouping for the model to learn."]})]},e.problem))})})},4549:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let[e,t]=(0,s.useState)(null),[a,l]=(0,s.useState)(0),n=(0,s.useRef)(null),o=[{method:"Pure BPE",accuracy:.24},{method:"Three-digit L2R",accuracy:.26},{method:"Three-digit R2L",accuracy:.29},{method:"Single Digit",accuracy:.35}];(0,s.useEffect)(()=>{let e=()=>{n.current&&l(n.current.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let d=Math.max(...o.map(e=>e.accuracy)),c=Math.min(400,.6*a);return(0,r.jsxs)(i.Zp,{className:"w-full bg-gradient-to-br from-background to-muted/20 shadow-xl",children:[(0,r.jsxs)(i.aR,{className:"p-4 md:p-6",children:[(0,r.jsx)(i.ZB,{className:"text-lg md:text-xl lg:text-2xl font-bold text-center",children:"How Different Tokenizers Perform in Arithmetic"}),(0,r.jsx)("p",{className:"text-muted-foreground text-center text-xs md:text-sm",children:"Average Accuracy Evaluated on 5-shot Questions"})]}),(0,r.jsx)(i.Wu,{className:"p-4 md:p-6",ref:n,children:(0,r.jsx)("div",{className:"relative",style:{height:c},children:(0,r.jsx)("div",{className:"h-full flex items-end justify-between gap-2 md:gap-4",children:o.map(a=>(0,r.jsxs)("div",{className:"flex flex-col items-center flex-1",children:[(0,r.jsx)("div",{className:"w-full bg-blue-500 hover:bg-blue-600 transition-colors rounded-t-sm relative cursor-pointer flex items-center justify-center ".concat(e===a.method?"bg-blue-600":""),style:{height:"".concat(a.accuracy/d*(c-40),"px")},onMouseEnter:()=>t(a.method),onMouseLeave:()=>t(null),children:(0,r.jsx)("div",{className:"text-white font-bold text-xs md:text-sm",children:a.accuracy.toFixed(2)})}),(0,r.jsx)("div",{className:"mt-2 text-[10px] md:text-xs lg:text-sm font-medium text-gray-600 text-center",children:a.method.split(" ").map((e,t)=>(0,r.jsx)("span",{className:"block leading-tight",children:e},t))})]},a.method))})})})]})}},59370:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),i=a(22130);let l=()=>{let[e,t]=(0,s.useState)("performance"),a=[{digits:"1 digit",gpt2:.72,olmo:.75,llama3:.72,deepseek:.76,llama3_r2l:.75},{digits:"2 digits",gpt2:.37,olmo:.4,llama3:.43,deepseek:.44,llama3_r2l:.46},{digits:"3 digits",gpt2:.06,olmo:.07,llama3:.07,deepseek:.26,llama3_r2l:.11},{digits:"4 digits",gpt2:.03,olmo:.04,llama3:.04,deepseek:.18,llama3_r2l:.06},{digits:"5 digits",gpt2:.02,olmo:.03,llama3:.03,deepseek:.14,llama3_r2l:.05}],l=[{operation:"add",gpt2:.31,olmo:.34,llama3:.37,deepseek:.58,llama3_r2l:.4},{operation:"divide",gpt2:.32,olmo:.35,llama3:.31,deepseek:.41,llama3_r2l:.35},{operation:"multiply",gpt2:.16,olmo:.16,llama3:.17,deepseek:.18,llama3_r2l:.17},{operation:"subtract",gpt2:.18,olmo:.19,llama3:.19,deepseek:.26,llama3_r2l:.23}],n=[{type:"float",gpt2:.14,olmo:.15,llama3:.17,deepseek:.24,llama3_r2l:.18},{type:"integer",gpt2:.35,olmo:.37,llama3:.41,deepseek:.47,llama3_r2l:.43}],o=["gpt2","olmo","llama3","llama3_r2l","deepseek"],d=e=>e>=.7?"bg-teal-200":e>=.4?"bg-teal-100":e>=.2?"bg-red-100":"bg-red-200",c=e=>o.reduce((t,a)=>e[a]>e[t]?a:t,o[0]);return(0,r.jsxs)(i.Zp,{className:"w-full max-w-4xl p-4 md:p-8 bg-gradient-to-br from-background to-muted/20",children:[(0,r.jsxs)(i.aR,{className:"space-y-2",children:[(0,r.jsx)(i.ZB,{className:"text-xl md:text-2xl font-semibold text-center",children:"Comparing Pretrained Model Performance"}),(0,r.jsx)("p",{className:"text-muted-foreground text-center text-xs md:text-sm",children:"Average accuracy; Evaluted with 5-shot arithmetic questions"}),(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("div",{children:(0,r.jsxs)("select",{onChange:e=>{t(e.target.value)},className:"mt-4 p-2 border rounded text-sm md:text-base",children:[(0,r.jsx)("option",{value:"digits",children:"Number of Digits"}),(0,r.jsx)("option",{value:"operation",children:"Operation"}),(0,r.jsx)("option",{value:"type",children:"Number Type"})]})})})]}),(0,r.jsx)(i.Wu,{children:(0,r.jsx)("div",{className:"relative overflow-x-auto rounded-lg shadow-lg border border-gray-200",children:(0,r.jsx)("div",{className:"w-full overflow-x-scroll",children:(0,r.jsxs)("table",{className:"w-full border-collapse border min-w-[600px]",children:[(0,r.jsx)("thead",{className:"border-b",children:(0,r.jsxs)("tr",{className:"border-b",children:[(0,r.jsxs)("th",{className:"px-2 md:px-4 py-2 text-[10px] sm:text-xs md:text-sm text-gray-600 border-b border-r",children:[(()=>{switch(e){case"digits":default:return"Number of Digits";case"operation":return"Operation";case"type":return"Number Type"}})()," ",(0,r.jsx)("span",{className:"font-bold text-gray-800 mx-1",children:"\\"})," Tokenizer"]}),o.map((e,t)=>(0,r.jsxs)("th",{className:"px-2 md:px-4 py-2 text-[10px] sm:text-xs md:text-sm text-gray-600 border-b ".concat(t<o.length-1?"border-r":""),children:[e.toUpperCase(),(0,r.jsx)("div",{className:"text-[8px] sm:text-[10px] md:text-xs text-gray-400",children:"gpt2"===e||"olmo"===e?"BPE":"llama3"===e?"Three-digit L2R":"llama3_r2l"===e?"Three-digit R2L":"deepseek"===e?"Single-digit":""})]},e))]})}),(0,r.jsx)("tbody",{children:(()=>{switch(e){case"digits":default:return a;case"operation":return l;case"type":return n}})().map(e=>{let t=c(e),a="digits"in e?e.digits:"operation"in e?e.operation:e.type;return(0,r.jsxs)("tr",{className:"hover:bg-teal-50 transition-colors border-b",children:[(0,r.jsx)("td",{className:"px-2 md:px-6 py-2 md:py-4 font-medium border-r text-gray-800 text-center text-[10px] sm:text-xs md:text-sm",children:a}),o.map((a,s)=>(0,r.jsx)("td",{className:"px-2 md:px-6 py-2 md:py-4 text-center font-mono text-[10px] sm:text-xs md:text-sm ".concat(d(e[a])," transition-colors ").concat(s<o.length-1?"border-r":""),children:a===t?(0,r.jsx)("b",{children:e[a].toFixed(2)}):e[a].toFixed(2)},a))]},a)})})]})})})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[825,441,517,358],()=>t(31654)),_N_E=e.O()}]);
|
_next/static/chunks/framework-23759ace909c0a4a.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
_next/static/chunks/main-5d411353ae066c67.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
_next/static/chunks/main-app-224e8c8447f5164d.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{76682:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,57033,23)),Promise.resolve().then(n.t.bind(n,14547,23)),Promise.resolve().then(n.t.bind(n,34835,23)),Promise.resolve().then(n.t.bind(n,15244,23)),Promise.resolve().then(n.t.bind(n,62665,23)),Promise.resolve().then(n.t.bind(n,43866,23)),Promise.resolve().then(n.t.bind(n,86213,23))}},e=>{var s=s=>e(e.s=s);e.O(0,[441,517],()=>(s(97200),s(76682))),_N_E=e.O()}]);
|
_next/static/chunks/pages/_app-abffdcde9d309a0c.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{1788:(_,n,p)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return p(35203)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[593,792],()=>(n(1788),n(74009))),_N_E=_.O()}]);
|
_next/static/chunks/pages/_error-94b8133dd8229633.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[731],{56194:(_,n,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return e(86218)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[636,593,792],()=>n(56194)),_N_E=_.O()}]);
|
_next/static/chunks/polyfills-42372ed130431b0a.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
_next/static/chunks/webpack-2ef856c14afe7005.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={id:o,loaded:!1,exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.loaded=!0,a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var l=1/0,i=0;i<e.length;i++){for(var[o,n,a]=e[i],u=!0,d=0;d<o.length;d++)(!1&a||l>=a)&&Object.keys(r.O).every(e=>r.O[e](o[d]))?o.splice(d--,1):(u=!1,a<l&&(l=a));if(u){e.splice(i--,1);var c=n();void 0!==c&&(t=c)}}return t}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>{},r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o]){e[o].push(n);return}if(void 0!==a)for(var l,u,d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var s=d[c];if(s.getAttribute("src")==o||s.getAttribute("data-webpack")==t+a){l=s;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",t+a),l.src=r.tu(o)),e[o]=[n];var f=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),u&&document.head.appendChild(l)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/_next/",(()=>{var e={68:0,838:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(6|83)8$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),l=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}},"chunk-"+t,t)}}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,l,u]=o,d=0;if(i.some(t=>0!==e[t])){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(u)var c=u(r)}for(t&&t(o);d<i.length;d++)a=i[d],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(c)},o=self.webpackChunk_N_E=self.webpackChunk_N_E||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})()})();
|
_next/static/css/90ff69ce4f426cfa.css
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
|
2 |
+
! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com
|
3 |
+
*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}h1{font-size:1.5rem;line-height:2rem}@media (min-width:640px){h1{font-size:1.875rem;line-height:2.25rem}}@media (min-width:768px){h1{font-size:2.25rem;line-height:2.5rem}}@media (min-width:1024px){h1{font-size:3rem;line-height:1}}h2{font-size:1.25rem;line-height:1.75rem}@media (min-width:640px){h2{font-size:1.5rem;line-height:2rem}}@media (min-width:768px){h2{font-size:1.875rem;line-height:2.25rem}}@media (min-width:1024px){h2{font-size:2.25rem;line-height:2.5rem}}h3{font-size:1.125rem;line-height:1.75rem}@media (min-width:640px){h3{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){h3{font-size:1.5rem;line-height:2rem}}@media (min-width:1024px){h3{font-size:1.875rem;line-height:2.25rem}}p{font-size:.875rem;line-height:1.25rem}@media (min-width:640px){p{font-size:1rem;line-height:1.5rem}}@media (min-width:768px){p{font-size:1.125rem;line-height:1.75rem}}:root{--sidebar-background:0 0% 98%;--sidebar-foreground:240 5.3% 26.1%;--sidebar-primary:240 5.9% 10%;--sidebar-primary-foreground:0 0% 98%;--sidebar-accent:240 4.8% 95.9%;--sidebar-accent-foreground:240 5.9% 10%;--sidebar-border:220 13% 91%;--sidebar-ring:217.2 91.2% 59.8%;--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:0 0% 9%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%;--radius:0.45rem}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-left-16{left:-4rem}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-16{top:4rem}.z-50{z-index:50}.z-\[100\]{z-index:100}.col-span-4{grid-column:span 4/span 4}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[40px\]{height:40px}.h-\[500px\]{height:500px}.h-\[60px\]{height:60px}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[20ch\]{min-width:20ch}.min-w-\[300px\]{min-width:300px}.min-w-\[600px\]{min-width:600px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-\[1200px\]{max-width:1200px}.max-w-\[400px\]{max-width:400px}.max-w-\[80rem\]{max-width:80rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-y-1\/2{--tw-translate-y:-50%}.-rotate-90,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate:-90deg}.scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05}.scale-105,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-sm{border-top-left-radius:calc(var(--radius) - 4px);border-top-right-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.border-destructive{border-color:hsl(var(--destructive))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.border-teal-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity,1))}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background)/.8)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-50\/50{background-color:rgba(239,246,255,.5)}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-indigo-400{--tw-bg-opacity:1;background-color:rgb(129 140 248/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity,1))}.bg-muted\/20{background-color:hsl(var(--muted)/.2)}.bg-primary{background-color:hsl(var(--primary))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-teal-100{--tw-bg-opacity:1;background-color:rgb(204 251 241/var(--tw-bg-opacity,1))}.bg-teal-200{--tw-bg-opacity:1;background-color:rgb(153 246 228/var(--tw-bg-opacity,1))}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/50{background-color:hsla(0,0%,100%,.5)}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-background{--tw-gradient-from:hsl(var(--background)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-muted\/20{--tw-gradient-to:hsl(var(--muted)/0.2) var(--tw-gradient-to-position)}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-1{padding-bottom:.25rem}.pb-48{padding-bottom:12rem}.pl-0\.5{padding-left:.125rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-48{padding-top:12rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[6px\]{font-size:6px}.text-\[8px\]{font-size:8px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}body{overflow-x:hidden;font-size:clamp(14px,2.5vw,16px)}@media (max-width:640px){[data-tooltip]:hover:before{max-width:90vw;white-space:normal}}.prose{font-size:clamp(1rem,1.8vw,1.125rem);line-height:2;max-width:100%;overflow-x:hidden}.prose,.prose h2{color:var(--foreground)}.prose h2{margin-top:2em;font-weight:600}.prose h2,.prose p{margin-bottom:1em}.prose ul{margin-top:1.2em;margin-bottom:1.8em;padding-left:1.5em}.prose li{margin-bottom:.8em}h1{font-size:clamp(1.5rem,3.5vw,2.7rem);font-weight:700;color:#1a1a1a;margin-bottom:clamp(.5rem,1.5vw,.9rem);letter-spacing:-.025em;line-height:1.3}h2{font-size:clamp(1.2rem,2.2vw,1.7rem);font-weight:600;color:#2a2a2a;margin-bottom:clamp(.4rem,1.2vw,.675rem);letter-spacing:-.015em;line-height:1.4}h3{font-size:clamp(1rem,1.8vw,1.35rem);font-weight:500;color:#3a3a3a;margin-bottom:clamp(.3rem,.8vw,.45rem);line-height:1.5}*{transition:color .15s ease,background-color .15s ease}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;scroll-behavior:smooth}a,button{transition:all .2s ease-in-out}.table-of-contents{font-size:clamp(.8rem,1.6vw,.9rem);line-height:1.6;max-width:250px}.table-of-contents a:hover{color:#343333;transform:translateX(4px)}.footnotes-section,.references-section{font-size:clamp(.8rem,1.6vw,.9rem);line-height:1.7;color:#555;border-top:1px solid #eaeaea;margin-top:2rem;padding-top:1rem}.citation-link,.footnote-link{text-decoration:none;border-bottom:1px dotted #999}.citation-link:hover,.footnote-link:hover{background-color:rgba(0,0,0,.05);border-bottom-style:solid}.footer-section{margin-top:2rem;border-top:1px solid #e5e7eb}.footer-heading{font-size:clamp(1rem,2vw,1.25rem);font-weight:500;color:#374151;margin-bottom:1rem}.footer-content{color:#6b7280;font-size:clamp(.8rem,1.4vw,.9rem);line-height:1.6}section[id]{scroll-margin-top:2rem}pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:clamp(.8rem,1.6vw,.9rem);line-height:1.7}.footer-content pre{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:.375rem}.responsive-text-sm{font-size:clamp(.75rem,1.3vw,.875rem);line-height:1.7}.responsive-text-base{font-size:clamp(.875rem,1.5vw,1rem);line-height:1.7}.responsive-text-lg{font-size:clamp(1rem,1.7vw,1.125rem);line-height:1.7}.responsive-text-xl{font-size:clamp(1.125rem,1.9vw,1.25rem);line-height:1.7}.responsive-text-2xl{font-size:clamp(1.25rem,2.1vw,1.5rem);line-height:1.7}*{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;hyphens:auto}.visualization-container{width:100%;max-width:100%;overflow-x:auto;margin:1rem 0}.hover\:translate-x-1:hover{--tw-translate-x:0.25rem}.hover\:scale-105:hover,.hover\:translate-x-1:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\:scale-\[1\.02\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background:hover{background-color:hsl(var(--background))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-red-300:hover{--tw-bg-opacity:1;background-color:rgb(252 165 165/var(--tw-bg-opacity,1))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-teal-300:hover{--tw-bg-opacity:1;background-color:rgb(94 234 212/var(--tw-bg-opacity,1))}.hover\:bg-teal-50:hover{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity,1))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.hover\:text-primary\/80:hover{color:hsl(var(--primary)/.8)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95}.active\:scale-95:active,.active\:scale-\[0\.98\]:active{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[0\.98\]:active{--tw-scale-x:0.98;--tw-scale-y:0.98}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity,1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity,1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel],.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.dark\:border-zinc-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-20{top:5rem}.sm\:top-auto{top:auto}.sm\:mb-4{margin-bottom:1rem}.sm\:mb-8{margin-bottom:2rem}.sm\:h-4{height:1rem}.sm\:h-6{height:1.5rem}.sm\:w-4{width:1rem}.sm\:w-6{width:1.5rem}.sm\:min-w-\[600px\]{min-width:600px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:gap-2{gap:.5rem}.sm\:gap-4{gap:1rem}.sm\:p-4{padding:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-6xl{font-size:3.75rem;line-height:1}.sm\:text-\[10px\]{font-size:10px}.sm\:text-\[8px\]{font-size:8px}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:mb-6{margin-bottom:1.5rem}.md\:w-1\/2{width:50%}.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:gap-4{gap:1rem}.md\:gap-8{gap:2rem}.md\:p-6{padding:1.5rem}.md\:p-8{padding:2rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-\[8px\]{font-size:8px}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width:1024px){.lg\:top-24{top:6rem}.lg\:mb-0{margin-bottom:0}.lg\:mr-6{margin-right:1.5rem}.lg\:w-48{width:12rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-8{padding-top:2rem;padding-bottom:2rem}.lg\:pt-48{padding-top:12rem}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1280px){.xl\:mr-8{margin-right:2rem}.xl\:w-56{width:14rem}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/55c55f0601d81cf3-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/26a46d62cd723877-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/97e0cb1ae144a2a9-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/581909926a08bbc8-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/df0a9ae256c0569c-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/6d93bde91c0c2823-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/a34f9d1faa5f3315-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter Fallback;src:local("Arial");ascent-override:90.49%;descent-override:22.56%;line-gap-override:0.00%;size-adjust:107.06%}.__className_d65c78{font-family:Inter,Inter Fallback;font-style:normal}
|
_next/static/media/26a46d62cd723877-s.woff2
ADDED
Binary file (18.8 kB). View file
|
|
_next/static/media/55c55f0601d81cf3-s.woff2
ADDED
Binary file (25.9 kB). View file
|
|
_next/static/media/581909926a08bbc8-s.woff2
ADDED
Binary file (19.1 kB). View file
|
|
_next/static/media/6d93bde91c0c2823-s.woff2
ADDED
Binary file (74.3 kB). View file
|
|
_next/static/media/97e0cb1ae144a2a9-s.woff2
ADDED
Binary file (11.2 kB). View file
|
|
_next/static/media/a34f9d1faa5f3315-s.p.woff2
ADDED
Binary file (48.6 kB). View file
|
|
_next/static/media/df0a9ae256c0569c-s.woff2
ADDED
Binary file (10.3 kB). View file
|
|
favicon.ico
ADDED
|
file.svg
ADDED
|
globe.svg
ADDED
|
index.html
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
index.txt
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
3:"$Sreact.fragment"
|
2 |
+
4:I[15244,[],""]
|
3 |
+
5:I[43866,[],""]
|
4 |
+
6:I[31391,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"CitationProvider"]
|
5 |
+
7:I[9443,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
6 |
+
8:I[32856,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"TableOfContents"]
|
7 |
+
9:I[88587,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"InlineCitation"]
|
8 |
+
a:I[96305,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
9 |
+
b:I[50193,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
10 |
+
c:I[5180,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
11 |
+
d:I[59370,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
12 |
+
e:I[52107,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
13 |
+
f:I[79607,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
14 |
+
10:I[10944,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
15 |
+
11:I[15467,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
16 |
+
12:I[64300,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"InlineFootnote"]
|
17 |
+
13:I[94388,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
18 |
+
14:I[4549,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"default"]
|
19 |
+
15:I[52364,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"Citation"]
|
20 |
+
16:I[19202,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"Footnotes"]
|
21 |
+
17:I[70089,["825","static/chunks/825-abd4fc89a6616ec2.js","974","static/chunks/app/page-6dcd95eb2309c99e.js"],"References"]
|
22 |
+
18:I[86213,[],"OutletBoundary"]
|
23 |
+
1a:I[86213,[],"MetadataBoundary"]
|
24 |
+
1c:I[86213,[],"ViewportBoundary"]
|
25 |
+
1e:I[34835,[],""]
|
26 |
+
1:HL["/_next/static/media/a34f9d1faa5f3315-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
27 |
+
2:HL["/_next/static/css/90ff69ce4f426cfa.css","style"]
|
28 |
+
0:{"P":null,"b":"GsLiIsTHRpihK8bvntB91","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$3","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/90ff69ce4f426cfa.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_d65c78 bg-white","children":["$","main",null,{"className":"relative min-h-screen","children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]]}],{"children":["__PAGE__",["$","$3","c",{"children":[["$","$L6",null,{"children":[["$","$L7",null,{"title":"From Digits to Decisions: How Tokenization Impacts Arithmetic in LLMs","imageUrl":"https://upload.wikimedia.org/wikipedia/commons/4/49/%22The_School_of_Athens%22_by_Raffaello_Sanzio_da_Urbino.jpg"}],["$","div",null,{"className":" bg-white","children":["$","div",null,{"className":"min-h-screen","children":["$","div",null,{"className":"w-full max-w-[80rem] mx-auto px-4 sm:px-6 lg:px-8 py-4 sm:py-6 lg:py-8 flex flex-col lg:flex-row","children":[["$","aside",null,{"className":"w-full lg:w-48 xl:w-56 mb-6 sm:mb-8 lg:mb-0 lg:mr-6 xl:mr-8 flex-shrink-0","children":["$","div",null,{"className":"sticky top-16 sm:top-20 lg:top-24","children":["$","$L8",null,{}]}]}],["$","main",null,{"className":"flex-1 min-w-0","children":[["$","header",null,{"className":"mb-12 border-t border-b border-gray-100 py-6","children":["$","div",null,{"className":"flex flex-col gap-2","children":[["$","div",null,{"className":"flex items-center gap-2 text-sm","children":[["$","p",null,{"className":"font-semibold text-gray-800","children":[["$","$3","0",{"children":[false,["$","a",null,{"href":"https://huggingface.co/garrethlee","className":"hover:text-blue-600","target":"_blank","rel":"noopener noreferrer","children":"Garreth Lee"}]]}],["$","$3","1",{"children":[", ",["$","a",null,{"href":"https://huggingface.co/guipenedo","className":"hover:text-blue-600","target":"_blank","rel":"noopener noreferrer","children":"Guilherme Penedo"}]]}],["$","$3","2",{"children":[", ",["$","a",null,{"href":"https://huggingface.co/lvwerra","className":"hover:text-blue-600","target":"_blank","rel":"noopener noreferrer","children":"Leandro von Werra"}]]}],["$","$3","3",{"children":[", ",["$","a",null,{"href":"https://huggingface.co/thomwolf","className":"hover:text-blue-600","target":"_blank","rel":"noopener noreferrer","children":"Thomas Wolf"}]]}]]}],["$","span",null,{"className":"text-gray-300","children":"•"}],["$","time",null,{"className":"text-gray-500","children":"November 29, 2024"}]]}],["$","div",null,{"className":"text-sm text-gray-500 italic","children":"Hugging Face"}]]}]}],["$","article",null,{"className":"prose prose-sm sm:prose lg:prose-lg xl:prose-xl","children":[["$","p",null,{"className":"responsive-text-base","children":["Recently, there has been a lot of buzz around a seemingly simple question that even state-of-the-art large language models (LLM) fail to answer correctly: ",["$","em",null,{"children":"\"Which is bigger? 9.9 or 9.11\""}]]}],["$","p",null,{"className":"responsive-text-base","children":["Despite various attempts and variations of prompting techniques, most frontier models still struggle to make an accurate comparison of the two numbers. This highlights a broader issue many of today's models encounter: they have ",["$","$L9",null,{"id":"mirzadeh2024"}],". While there are multiple conjectures of why this is the case, including the composition of pretraining data and the model architecture itself",["$","$L9",null,{"id":"xu2024"}],", we investigate one of the most fundamental processes in LLMs, ",["$","strong",null,{"children":"tokenization"}],", and how it affects a model's ability to do math, specifically arithmetic problems."]}],["$","p",null,{"className":"responsive-text-base","children":"In this blog post, we discuss:"}],["$","ol",null,{"className":"list-decimal pl-6 space-y-2 responsive-text-base","children":[["$","li",null,{"children":"Our detailed approach in comparing different methods of number tokenization"}],["$","li",null,{"children":"Why reading from right to left is sometimes better than from left to right"}],["$","li",null,{"children":"A clear frontrunner of tokenization methods for arithmetic in LLMs"}]]}],["$","h2",null,{"id":"a-brief-history","className":"responsive-text-2xl","children":"A Brief History of Number Tokenization"}],["$","p",null,{"className":"responsive-text-base","children":["Back in 2019, The GPT2 paper detailed its use of BPE (byte-pair encoding) as a tokenization method for language models ",["$","$L9",null,{"id":"radford2019"}],". This approach works by merging frequently occurring subwords into single units until the vocabulary reaches a target size."]}],["$","p",null,{"className":"responsive-text-base","children":["Because of how this algorithm operates, the resulting vocabulary depends heavily on the training data fed into the tokenizer. This led to ",["$","strong",null,{"children":"inconsistencies"}],"in how numbers are encoded. Commonly seen numbers (i.e. 1-100, years like 1945, etc.) in the training data will likely be represented as a single token, while less frequently seen numbers are split into multiple tokens like below:"]}],["$","div",null,{"className":"visualization-container","children":["$","$La",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":["Four years later, the herd of llamas began their stampede! Llama and Llama 2 used SentencePiece's BPE implementation with a notable tweak for numbers: ",["$","em",null,{"children":"they split all numbers into individual digits"}]," ",["$","$L9",null,{"id":"touvron2023llama"}],["$","$L9",null,{"id":"touvron2023llama2"}],". This meant there were only 10 unique tokens to represent any number, simplifying numerical representation for LLMs. Deepseek released a model much later (DeepSeek-V2) with a similar single-digit tokenizer ",["$","$L9",null,{"id":"deepseek2024"}],"."]}],["$","p",null,{"className":"responsive-text-base","children":["Later on, Llama 3 took a different approach for handling numbers, tokenizing them in groups of three digits ",["$","$L9",null,{"id":"grattafiori2024"}],". As a result, numbers from 1 to 999 each have unique tokens, while numbers from 1000 onward are composed of these tokens."]}],["$","p",null,{"className":"responsive-text-base","children":["Very recently, on April 2024, AllenAI also released their own BPE tokenizer for OLMo, where numbers received no further preprocessing, similar to GPT2 ",["$","$L9",null,{"id":"groeneveld2024"}],"."]}],["$","h3",null,{"id":"right-to-left-tokenization","className":"responsive-text-2xl","children":"A New Paradigm: Right-to-Left Tokenization"}],["$","p",null,{"className":"responsive-text-base","children":"So far, the tokenization methods we've seen \"processed\" text from left to right. For instance, if the Llama 3 tokenizer encounters the sequence \"12345,\" it will scan from the beginning, breaking it down into segments like \"123\" and \"45\"."}],["$","p",null,{"className":"responsive-text-base","children":[["$","strong",null,{"children":"Right-to-left (R2L) tokenization"}],", on the other hand, processes text from the end to the beginning in groups of three. Using R2L, the sequence \"12345\" would be tokenized by scanning from the right, first splitting off \"345\" and then moving to \"12.\" Recently, there has been some exploration too of forcing this R2L tokenization behaviour in frontier closed-source models, which has shown to benefit certain arithmetic operations since the R2L representation prevents the misalignment of the operands ",["$","$L9",null,{"id":"singh2024"}],". It has also been rumored that Claude uses this R2L tokenization method ",["$","$L9",null,{"id":"claude2024"}],"."]}],["$","p",null,{"className":"responsive-text-base","children":"To better understand what misalignment looks like, let's take 3789 + 8791 as an example:"}],["$","div",null,{"className":"visualization-container","children":["$","$Lb",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":"This insight suggests that Llama 3's left-to-right three-digit tokenization could potentially be improved by grouping numbers with R2L (right to left) encoding, which we seek to investigate as well."}],["$","p",null,{"className":"responsive-text-base","children":"To recap, here's an overview of the techniques used to handle number tokenization:"}],["$","div",null,{"className":"overflow-x-auto my-5 rounded-lg","children":["$","table",null,{"className":"w-full border bg-white/50 rounded-lg","children":[["$","thead",null,{"children":["$","tr",null,{"className":"border border-gray-200","children":[["$","th",null,{"className":"px-4 py-3 text-left text-sm font-semibold","children":"How numbers are tokenized"}],["$","th",null,{"className":"px-4 py-3 text-left text-sm font-semibold","children":"tokenizer (model)"}]]}]}],["$","tbody",null,{"children":[["$","tr",null,{"className":"border border-gray-200","children":[["$","td",null,{"className":"px-4 py-3 text-sm","children":"pure BPE; no special handling"}],["$","td",null,{"className":"px-4 py-3 text-sm","children":"gpt2, olmo"}]]}],["$","tr",null,{"className":"border border-gray-200","children":[["$","td",null,{"className":"px-4 py-3 text-sm","children":"split to single digits"}],["$","td",null,{"className":"px-4 py-3 text-sm","children":"llama, llama2, deepseek"}]]}],["$","tr",null,{"className":"border border-gray-200","children":[["$","td",null,{"className":"px-4 py-3 text-sm","children":"1-999 has unique tokens"}],["$","td",null,{"className":"px-4 py-3 text-sm","children":"llama3"}]]}],["$","tr",null,{"className":"border border-gray-200","children":[["$","td",null,{"className":"px-4 py-3 text-sm","children":"split to groups of three digits (R2L)"}],["$","td",null,{"className":"px-4 py-3 text-sm","children":"Claude (?)"}]]}]]}]]}]}],["$","h2",null,{"id":"fair-comparison","className":"responsive-text-2xl","children":"Creating a fair comparison of different methods"}],["$","p",null,{"className":"responsive-text-base","children":"The goal of this investigation is to compare these tokenizers and their different ways of processing numbers in a way that minimizes the influence of external factors such as model architecture, training configurations, and pre-training data in evaluation results."}],["$","p",null,{"className":"responsive-text-base","children":["Thus, one important design decision we made to address this goal was to evaluate",["$","strong",null,{"children":" models trained from scratch,"}]," where each model has the same data mixture, training configs, and a roughly equal compute budget (number of model parameters and training tokens). The only meaningful difference that each model should have with one another is the ",["$","strong",null,{"children":"tokenizer used"}]," to tokenize the training data."]}],["$","h3",null,{"id":"experimental-setup","className":"responsive-text-2xl","children":"Experimental Setup"}],["$","p",null,{"className":"responsive-text-base","children":"We picked 4 tokenizers mentioned previously, namely gpt2, olmo, llama3, and deepseek as a representative sample of all the different ways numbers are processed."}],["$","p",null,{"className":"responsive-text-base","children":"We also created R2L versions of each tokenizer except deepseek, since single-digit tokenization would produce same results regardless if it uses L2R or R2L (e.g. Reading 1234 as [1,2,3,4] doesn't change no matter if we tokenize from the left or right). To achieve this, we added an extra preprocessing step which forces the R2L behaviour without having to incur any additional tokens."}],["$","h3",null,{"id":"model-configuration","className":"responsive-text-xl","children":"Model Configuration"}],["$","p",null,{"className":"responsive-text-base","children":["The models we train use the original Llama architecture. To account for the differences in each tokenizer's vocabulary size, we ",["$","em",null,{"children":"modified the number of hidden layers so that each model has roughly the same number of parameters"}]," (~1.45B)."]}],["$","div",null,{"className":"visualization-container","children":["$","div",null,{"ref":"$undefined","className":"rounded-xl border bg-card text-card-foreground w-full max-w-2xl p-8 bg-gradient-to-br from-background to-muted/20 shadow-xl","children":[["$","div",null,{"ref":"$undefined","className":"flex flex-col p-6 space-y-3","children":[["$","div",null,{"ref":"$undefined","className":"tracking-tight text-2xl font-bold text-center","children":"Larger Tokenizer Vocabulary = More Parameters"}],["$","p",null,{"className":"text-muted-foreground text-center text-sm","children":"Visualizing embedding matrix size (vocab_size × hidden_dim)"}]]}],["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":[["$","div",null,{"className":"flex justify-center items-start gap-16 mt-4","children":[["$","div",null,{"className":"flex flex-col items-center transition-all duration-200 hover:scale-105","children":[["$","div",null,{"className":"text-base font-bold mb-4 text-center bg-teal-50 px-4 py-1 rounded-full","children":"Model A"}],["$","div",null,{"className":"grid grid-cols-4 gap-1 mb-3 bg-white p-4 rounded-lg shadow-md","children":[["$","div","0",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","1",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","2",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","3",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","4",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","5",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","6",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","7",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","8",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","9",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","10",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","11",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","12",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","13",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","14",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","15",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","16",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","17",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","18",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","19",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","20",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","21",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","22",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","23",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","24",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","25",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","26",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","27",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","28",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","29",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","30",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}],["$","div","31",{"className":"w-5 h-5 bg-teal-200 border border-teal-300 rounded-sm transition-colors duration-150 hover:bg-teal-300","title":"Embedding parameter"}]]}],["$","div",null,{"className":"text-sm font-medium text-muted-foreground","children":"32 parameters"}]]}],["$","div",null,{"className":"flex flex-col items-center transition-all duration-200 hover:scale-105","children":[["$","div",null,{"className":"text-base font-bold mb-4 text-center bg-red-50 px-4 py-1 rounded-full","children":"Model B"}],["$","div",null,{"className":"grid grid-cols-4 gap-1 mb-3 bg-white p-4 rounded-lg shadow-md","children":[["$","div","0",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","1",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","2",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","3",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","4",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","5",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","6",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","7",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","8",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","9",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","10",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","11",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","12",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","13",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","14",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","15",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","16",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","17",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","18",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","19",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","20",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","21",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","22",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","23",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","24",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","25",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","26",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","27",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","28",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","29",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","30",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","31",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","32",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","33",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","34",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","35",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","36",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","37",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","38",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","39",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","40",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","41",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","42",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","43",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","44",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","45",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","46",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","47",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","48",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","49",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","50",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","51",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","52",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","53",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","54",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","55",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","56",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","57",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","58",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","59",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","60",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","61",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","62",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}],["$","div","63",{"className":"w-5 h-5 bg-red-200 border border-red-300 rounded-sm transition-colors duration-150 hover:bg-red-300","title":"Embedding parameter"}]]}],["$","div",null,{"className":"text-sm font-medium text-muted-foreground","children":"64 parameters"}]]}]]}],["$","div",null,{"className":"text-sm text-center mt-12 mx-auto max-w-2xl text-muted-foreground leading-relaxed","children":["For a fixed number of training tokens, Model B \"learns\" more due to its larger embedding matrix. To maintain a constant compute budget, we ",["$","strong",null,{"children":"reduce the number of hidden layers"}]," in models with larger vocabularies."]}]]}]]}]}],["$","h3",null,{"id":"pretraining-data","className":"responsive-text-xl","children":"Pretraining Data"}],["$","p",null,{"className":"responsive-text-base","children":"We used a mixture of general web data and math & code data for model pretraining:"}],["$","ul",null,{"className":"list-disc pl-6 space-y-2 responsive-text-base","children":[["$","li",null,{"children":["42% ",["$","a",null,{"href":"https://huggingface.co/datasets/HuggingFaceFW/fineweb","className":"text-blue-600 hover:text-blue-800","children":"Fineweb"}]]}],["$","li",null,{"children":["40% ",["$","a",null,{"href":"https://huggingface.co/datasets/Infi-MM/InfiMM-WebMath-40B","className":"text-blue-600 hover:text-blue-800","children":"InfiMM-WebMath"}]]}],["$","li",null,{"children":["10% ",["$","a",null,{"href":"https://huggingface.co/datasets/open-web-math/open-web-math","className":"text-blue-600 hover:text-blue-800","children":"open-web-math"}]]}],["$","li",null,{"children":["8% ",["$","a",null,{"href":"https://huggingface.co/datasets/EleutherAI/proof-pile-2","className":"text-blue-600 hover:text-blue-800","children":"Proof-Pile-2"}]," (algebraic-stack subset)"]}]]}],["$","p",null,{"className":"responsive-text-base","children":"The relative weights are based on the token counts of each dataset. The resulting mixture amounted to ~120B tokens. We also had R2L-tokenized version of these datasets for the corresponding R2L tokenizers."}],["$","h2",null,{"id":"evaluation","className":"responsive-text-2xl","children":"Evaluation"}],["$","p",null,{"className":"responsive-text-base","children":["It's important to note that an LLM's training process is non-deterministic. Even after controlling the pretraining data mix, model architecture, and compute budget, different model initialization settings can still produce noise in evaluation results",["$","$L9",null,{"id":"madaan2024"}],"."]}],["$","p",null,{"className":"responsive-text-base","children":["To account for this, we trained three additional models with the tokenizer that produced the highest variation in model scores on the same data mixture using",["$","strong",null,{"children":" different seeds"}],". For each task, we then take the standard deviation of model scores and assume that this value is the upper-bound of variability across all model architectures and training datasets."]}],["$","div",null,{"className":"visualization-container","children":["$","$Lc",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":"We divide our evaluation suite into two main categories:"}],["$","p",null,{"className":"responsive-text-base font-bold mt-4 mb-2","children":"Word-based problems"}],["$","p",null,{"className":"responsive-text-base","children":["For a model of this size, it is quite difficult to obtain any meaningful signal using traditional mathematical reasoning benchmarks, so we opted for easier benchmarks with relatively straightforward solutions that only require a few simple mathematical operations, namely ",["$","a",null,{"href":"https://huggingface.co/datasets/mwpt5/MAWPS","className":"text-blue-600 hover:text-blue-800","children":"MAWPS"}]," and ",["$","a",null,{"href":"https://huggingface.co/datasets/ChilleD/SVAMP","className":"text-blue-600 hover:text-blue-800","children":"SVAMP"}],". For evaluation, we standardized a question-answer format and parsed a single numerical answer from the model's output to compute the accuracy."]}],["$","p",null,{"className":"responsive-text-base font-bold mt-4 mb-2","children":"Simple arithmetic problems"}],["$","p",null,{"className":"responsive-text-base","children":"We created a custom benchmark containing simple arithmetic problems (+, - , x, ÷). These problems are split across various axes, which allows us to perform a more detailed assessment of the pitfalls of LLMs when doing math. We create different splits based on:"}],["$","ul",null,{"className":"list-disc pl-6 space-y-2 responsive-text-base","children":[["$","li",null,{"children":"The difficulty of the problem (harder problems = more decimals, more digits)"}],["$","li",null,{"children":"Whether it was a float / int operation"}],["$","li",null,{"children":"Whether or not commas were used to demarcate digits into groups of 3"}],["$","li",null,{"children":"The arithmetic operator used in the problem"}]]}],["$","p",null,{"className":"responsive-text-base mt-4","children":"Given the relatively fixed-form answers in the evaluation tasks above, the evaluation metric we chose is a quasi-exact match (QEM) of the gold answer and the model generation, with normalizations to account for minor differences in floating point equality (127.60 and 127.6 should be a match) as well as usage of commas (1234 and 1,234 should be a match)."}],["$","h2",null,{"id":"results","className":"responsive-text-2xl","children":"Results"}],["$","h3",null,{"id":"results-arithmetic","className":"responsive-text-lg","children":"Arithmetic Problems"}],["$","p",null,{"className":"responsive-text-lg font-bold","children":"Deepseek (single-digit) outperforms all other tested tokenizers in arithmetic problems"}],["$","div",null,{"className":"visualization-container","children":["$","$Ld",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":"While the differences for easier problems are less pronounced, as the complexity of the problems increases, there is an increasing gap between the best-performing tokenizer (deepseek) and the rest. This suggests that single-digit tokenization is more robust to variations in input data length and can better capture intricate patterns, leading to improved performance in challenging scenarios where other tokenization methods struggle."}],["$","p",null,{"className":"responsive-text-base","children":["Additionally, while it's intuitive to assume that integer problems will have better performance (which is also confirmed by the results in the graph), we also found that the ",["$","strong",null,{"children":"performance gap"}]," between floats and integers is similar across all tokenizers. This shows that there aren't any inherent tradeoffs when choosing tokenizers in these two categories (i.e. the optimal tokenizer for integers is also optimal for floats)."]}],["$","p",null,{"className":"responsive-text-lg font-bold","children":"The R2L Tokenizer has better performance over Llama 3's default L2R Tokenizer"}],["$","div",null,{"className":"visualization-container","children":["$","$Le",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":["We found that a model trained on R2L tokenized data resulted in mostly",["$","strong",null,{"children":" significant"}]," improvements (except for multiplication) when compared to training on the default L2R tokenized data. This shows that it is an optimal setting for arithmetic operations compared to the typical left-to-right encoding."]}],["$","p",null,{"className":"responsive-text-lg font-bold","children":"Pure-BPE tokenizers show inconsistent performance with R2L tokenization"}],["$","div",null,{"className":"visualization-container","children":["$","$Lf",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":"Evidently, pure BPE-based tokenizers without any additional number preprocessing don't benefit much from using R2L tokenization. A possible explanation of why this might be the case is the lack of 'structure' in how digits are grouped together in these tokenizers."}],["$","p",null,{"className":"responsive-text-base","children":"Unlike Llama3's tokenizer, where all digits are encoded in groups of 3, due to the peculiarities of pure BPE-based tokenization mentioned above, there are other numbers that are also grouped less consistently. This inconsistency undermines the advantages of R2L, which we have shown to work best when numbers are uniformly tokenized in 3-digit chunks from least to most significant digit."}],["$","h3",null,{"id":"results-word-based","className":"responsive-text-lg","children":"Word-based problems"}],["$","p",null,{"className":"responsive-text-base","children":"In addition to analysing arithmetic performance, we also wanted to see if a tokenizer's performance in pure arithmetic also translates to word problems."}],["$","div",null,{"className":"visualization-container","children":["$","$L10",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":"While the performance gap between tokenizers is less pronounced in word-based problems, we see that Deepseek and Llama 3's tokenizers outperform the BPE-based tokenizers, which indicates that the trend is consistent across both types of problems."}],["$","h3",null,{"id":"results-bonus","className":"responsive-text-lg","children":"Bonus: R2L inference on Llama 3"}],["$","p",null,{"className":"responsive-text-base","children":"One of the other things we wanted to test was how models performed when it was subjected to a tokenization scheme that was different to what it was originally trained on without having to re-train or fine-tune the model."}],["$","p",null,{"className":"responsive-text-base","children":"So, we took Llama 3's three-digit left-to-right (L2R) tokenizer and modified it to tokenize numbers from right to left (R2L) instead with just a few lines of code:"}],["$","div",null,{"id":"code-snippet","className":"bg-gray-100 p-4 rounded-lg overflow-auto font-mono text-xs whitespace-pre visualization-container","children":["$","code",null,{"children":"from transformers import AutoTokenizer\nfrom tokenizers import pre_tokenizers, Regex\n\n# Initialize all tokenizers\ntokenizer = AutoTokenizer.from_pretrained(\"meta-llama/Meta-Llama-3-8B\")\n\n# Add an extra step to the existing pre-tokenizer steps\ntokenizer._tokenizer.pre_tokenizer = pre_tokenizers.Sequence(\n [\n # Added step: split by R2L digits\n pre_tokenizers.Split(pattern = Regex(r\"\\d{1,3}(?=(\\d{3})*\\b)\"), \n behavior=\"isolated\", invert = False),\n # Existing steps\n pre_tokenizers.Split(pattern=Regex(r\"(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\p{N}{1,3}| ?[^\\s\\p{L}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+\"), \n behavior=\"isolated\", invert=False), \n pre_tokenizers.ByteLevel(add_prefix_space=False, trim_offsets=True, use_regex=False)\n ]\n )\n\nprint(tokenizer.tokenize(\"42069\")) # [42, 069]\n\n"}]}],["$","p",null,{"className":"responsive-text-base","children":["When adding two numbers in a three-digit tokenization scheme, the result can sometimes produce more tokens than the input numbers. One such example where this is the case is when we add 999 and 111, which individually only require a single token, but when added together produce 1110, which requires two tokens (1 and 110).",["$","strong",null,{"children":" We wanted to explore how much of a difference this makes when performing addition with both L2R and R2L tokenization on varying token lengths."}]]}],["$","p",null,{"className":"responsive-text-base","children":"(Going forward, we will refer to additions that result in an extra token as \"carry\" additions, and those that do not as \"without carry\")"}],["$","p",null,{"className":"responsive-text-base","children":"We performed few-shot arithmetic tasks of varying digit lengths and carry settings with Llama3 8B Instruct. We did not find any significant performance difference for subtraction, multiplication, or division, so we only show the results for addition."}],["$","div",null,{"className":"visualization-container","children":["$","$L11",null,{}]}],["$","div",null,{"className":"responsive-text-base","children":[["$","p",null,{"className":"font-semibold mb-2","children":"A few things to note from the results:"}],["$","ul",null,{"className":"list-disc pl-6 space-y-2","children":[["$","li",null,{"children":["For non-carry additions, digits that are multiples of 3 produce the exact same results, given that numbers like 528 491 have the same tokens regardless of tokenization direction",["$","$L12",null,{"id":"same-tokens-footnote"}]]}],["$","li",null,{"children":"We see an interesting cyclic trend every three digits when comparing L2R and R2L carry additions. For multiples of three, L2R slightly outperforms R2L, but in the next digit, R2L performance shoots up and overtakes L2R, further widening the performance gap in the digit after that before dropping again in the next multiple of three."}],["$","li",null,{"children":"We found that the model's output tokens perfectly formatted numbers as R2L with just a few R2L examples, despite being trained on L2R formatted numbers. This is super important because it shows that these models aren't just \"memorizing\" patterns seen from its training data. When given an entirely new distribution of R2L number tokens, it was still able to reason and perform even better than the data it was originally trained on."}]]}]]}],["$","p",null,{"className":"responsive-text-base","children":["When averaging across all digit lengths and carry settings, there was a",["$","strong",null,{"children":" ~10% improvement in accuracy"}]," over the base Llama 3 tokenizer, just by swapping the tokenizer with the few lines of code above."]}],["$","div",null,{"className":"visualization-container","children":["$","$L13",null,{}]}],["$","h2",null,{"id":"conclusion","className":"responsive-text-2xl","children":"So, which tokenization method is best for math?"}],["$","ul",null,{"className":"list-disc pl-6 space-y-2 responsive-text-base","children":[["$","li",null,{"children":"For arithmetic operations, single-digit tokenization has significantly better performance than other methods"}],["$","li",null,{"children":"While Byte-Pair Encoding remains a popular tokenization method, there should be preprocessing steps to fix the inconsistencies and improve numerical reasoning."}],["$","li",null,{"children":["If you have to use a tokenizer that has a token for numbers up to 3 digits, make sure you tokenize your data R2L (",["$","a",null,{"href":"#code-snippet","className":"text-blue-600 hover:text-blue-800","children":"with the code snippet above"}],")"]}],["$","li",null,{"children":"If you already have a trained model where the data was tokenized L2R, you can get better math performance by running inference with R2L"}],["$","li",null,{"children":"Word-based problems have less apparent performance differences between tokenizers, but we found that Deepseek and Llama 3's tokenizers outperform the BPE-based tokenizers."}]]}],["$","div",null,{"className":"visualization-container","children":["$","$L14",null,{}]}],["$","p",null,{"className":"responsive-text-base","children":"Our work shows that tokenization significantly impact arithmetic performance in language models. With careful selection, we can optimize tokenization strategies based on problem type, improving LLM performance on mathematical tasks. We hope to see more research in the ways that tokenization affects other aspects of mathematical reasoning 🤗."}],["$","$L15",null,{}],["$","$L16",null,{}],["$","$L17",null,{}]]}]]}]]}]}]}]]}],null,["$","$L18",null,{"children":"$L19"}]]}],{},null]},null],["$","$3","h",{"children":[null,["$","$3","bsxN169uvvaEIouZiTO2D",{"children":[["$","$L1a",null,{"children":"$L1b"}],["$","$L1c",null,{"children":"$L1d"}],["$","meta",null,{"name":"next-size-adjust"}]]}]]}]]],"m":"$undefined","G":["$1e","$undefined"],"s":false,"S":true}
|
29 |
+
1d:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
30 |
+
1b:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"From Digits to Decisions"}],["$","meta","2",{"name":"description","content":"How Tokenization Impacts Arithmetic in LLMs"}],["$","link","3",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}]]
|
31 |
+
19:null
|
next.svg
ADDED
|
vercel.svg
ADDED
|
window.svg
ADDED
|