AWESOME AI MOTION
효과Effects / 원리 도해Explainer / Nº 364

다음 말 고르기Next-token Pick

Next-token Pick
다음 말 고르기
다른 이름Also known as · 다음 토큰 예측 · Next Token Prediction · Next-token probability bars · 확률 막대 · Autoregressive generation loop · 자동회귀 생성 루프
364
도판Fig. 364. 다음 말 고르기 · Next-token Pick · power2.out, power3.inOut
재생 속도Speed

후보 확률 막대가 자란 뒤 가장 높은 후보가 문장의 빈칸으로 이동하는 움직임An animation in which candidate probability bars grow, then the highest-probability candidate moves into a blank in the sentence.

01

무엇을 전하나What it tells

전달 효과ConveysCONVEYS
다음 말은 후보별 확률을 비교해 선택한다Shows how the next word is selected by comparing candidate probabilities.
언제 쓰나Use whenUSE WHEN
  • 언어 모델의 생성 과정을 설명할 때
  • 후보 확률과 선택 결과를 연결할 때
  • When explaining language model generation
  • When connecting candidate probabilities to the selected result
과용 주의AvoidAVOID
  • 항상 최대 확률만 선택한다고 일반화하지 않는다
  • 후보 확률의 나머지 질량을 생략하지 않는다
02

좋은 예와 나쁜 예Good and bad use

좋은 사례GOOD

62% 고른다가 선택되어 AI는 다음 말을 고른다를 완성한다

과용 · 나쁜 사례OVERUSE

확률이 낮은 후보를 이유 없이 1위로 표시한다

03

파라미터Parameters

기본값은 클립에 쓴 값Defaults are the values used in the clip

항목PARAM기본DEFAULT범위RANGE메모NOTE
후보 수43~5기타 3% 별도 표기
막대 성장0.8s0.6~1s62% 기준 정규화
선택 시각1.35s1.2~1.5s확률을 읽은 뒤
이동328px, -295px레이아웃에 맞춤빈칸 정렬
이동 지속0.7s0.5~0.8s완성 홀드 확보
GSAP
const tl = Motion.timeline();
const bars=document.querySelectorAll('.bar');
[1,21/62,9/62,5/62].forEach((v,i)=>tl.to(bars[i],{scaleY:v,duration:.8,ease:'power2.out'},.3+i*.08));
tl.to('.prob',{opacity:1,duration:.25,stagger:.08},.65);
tl.to('#pick',{color:'var(--verm)',duration:.25},1.35);
tl.to('#pick',{x:328,y:-295,scale:56/44,duration:.7,ease:'power3.inOut'},1.6);
tl.to('.other',{opacity:.3,duration:.3},1.6);
tl.to('.blank',{opacity:0,duration:.25},2.05);
04

에이전트 프롬프트Agent prompts

그대로 붙여 넣는다Paste as is

Claude Code

<대상> 문장 끝에 빈칸을 두고 후보 고른다 62%, 정한다 21%, 찾는다 9%, 만든다 5%를 배치한다. 0.3초부터 막대를 0.8초 power2.out으로 키우고 1.35초에 고른다만 주홍으로 바꾼다. 1.6초에 선택 단어를 x 328px, y -295px, scale 56/44로 0.7초 power3.inOut 이동시켜 문장을 완성한다. 3초 타임라인 하나로 만들고 마지막 0.6초는 정지한다.

Leave a blank at the end of the <target> sentence and place the candidates "picks 62%", "decides 21%", "finds 9%", and "makes 5%". Starting at 0.3 seconds, grow the bars over 0.8 seconds with power2.out. At 1.35 seconds, change only "picks" to vermilion. At 1.6 seconds, move the selected word to x 328px, y -295px, scale 56/44 over 0.7 seconds with power3.inOut to complete the sentence. Use a single 3-second timeline and hold still for the final 0.6 seconds.

Codex

<파일>의 <대상>에 <대상> 문장 끝에 빈칸을 두고 후보 고른다 62%, 정한다 21%, 찾는다 9%, 만든다 5%를 배치한다. 0.3초부터 막대를 0.8초 power2.out으로 키우고 1.35초에 고른다만 주홍으로 바꾼다. 1.6초에 선택 단어를 x 328px, y -295px, scale 56/44로 0.7초 power3.inOut 이동시켜 문장을 완성한다. 0.24초, 1.25초, 2.9초를 캡처해 확률 막대 비율, 선택 단어의 이동, 문장 정렬을 확인한다. 시간은 GSAP 타임라인만 사용한다.

In <target> in <file>, Leave a blank at the end of the <target> sentence and place the candidates "picks 62%", "decides 21%", "finds 9%", and "makes 5%". Starting at 0.3 seconds, grow the bars over 0.8 seconds with power2.out. At 1.35 seconds, change only "picks" to vermilion. At 1.6 seconds, move the selected word to x 328px, y -295px, scale 56/44 over 0.7 seconds with power3.inOut to complete the sentence. Capture at 0.24, 1.25, and 2.9 seconds to check probability bar proportions, the selected word movement, and sentence alignment. Use only a GSAP timeline for timing.

05

도구별로 쓰기In your tools

HyperFrames · ReelForge · Scrolline

HyperFramesVIDEO · GSAP
3초 paused GSAP 타임라인 하나로 구성하고 Motion.ready()로 seek를 노출한다. 막대를 scaleY로 성장시키고 같은 후보 요소를 x/y/scale로 문장 끝에 옮긴다.
ReelForgeBRIEF TO VIDEO
3초 장면 안의 요소를 분리하고 transform과 opacity 트랙으로 같은 순서를 구현한다. 막대를 scaleY로 성장시키고 같은 후보 요소를 x/y/scale로 문장 끝에 옮긴다.
Scrolline DeckSCROLL SCRUB
0.3~2.4초 동작을 스크롤 진행률 10~80%로 매핑하고 끝 20%를 완성 상태로 둔다. 막대를 scaleY로 성장시키고 같은 후보 요소를 x/y/scale로 문장 끝에 옮긴다.
06

잘 맞는 조합Pairs well with

07

쓰이는 곳Used in

08

출처Sources

개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo