<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>API Archives - JIN&#039;s BOT</title>
	<atom:link href="https://jinsbot.com/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>https://jinsbot.com/tag/api/</link>
	<description>Coding + Engineering</description>
	<lastBuildDate>Sun, 22 Sep 2024 11:15:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
<site xmlns="com-wordpress:feed-additions:1">158124120</site>	<item>
		<title>GPT-4 뭐가 달라 졌을까?</title>
		<link>https://jinsbot.com/gpt-4-introduction/</link>
					<comments>https://jinsbot.com/gpt-4-introduction/#respond</comments>
		
		<dc:creator><![CDATA[geniuskpj]]></dc:creator>
		<pubDate>Wed, 15 Mar 2023 10:06:59 +0000</pubDate>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[GPT]]></category>
		<category><![CDATA[gpt-4]]></category>
		<category><![CDATA[gpt4]]></category>
		<category><![CDATA[openAI]]></category>
		<category><![CDATA[PYTHON]]></category>
		<category><![CDATA[vision]]></category>
		<category><![CDATA[visual]]></category>
		<category><![CDATA[한계점]]></category>
		<guid isPermaLink="false">https://jinsbot.com/?p=889</guid>

					<description><![CDATA[<p>GPT-4 가 발표됐다는 소식을 듣고 간단하게 분석 글을 작성한다. 현재 GPT-4 는 유료 서비스인 ChatGPT plus 구독자에게만 제공되고 있다. 크게 달라진 점을 선요약 하자면 다음과 같다. 이미지에 대한 입력이 가능해짐 다양한 종류의 시험에서 성적이 향상됨 다양한 벤치마크에서의 성능이 향상됨 차별적이고 유해한 컨텐츠를 걸러내는 기능이 강화됨 많은 전문가들이 GPT-4의 parameter 수 는 GPT-3 / 3.5 와 [&#8230;]</p>
<p>The post <a href="https://jinsbot.com/gpt-4-introduction/">GPT-4 뭐가 달라 졌을까?</a> appeared first on <a href="https://jinsbot.com">JIN&#039;s BOT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>GPT-4 가 발표됐다는 소식을 듣고</p>
<p>간단하게 분석 글을 작성한다.</p>
<p>현재 GPT-4 는 <strong>유료 서비스</strong>인 ChatGPT plus</p>
<p>구독자에게만 제공되고 있다.</p>
<p>크게 달라진 점을 선요약 하자면 다음과 같다.</p>
<ul>
<li>이미지에 대한 입력이 가능해짐</li>
<li>다양한 종류의 시험에서 성적이 향상됨</li>
<li>다양한 벤치마크에서의 성능이 향상됨</li>
<li>차별적이고 유해한 컨텐츠를 걸러내는 기능이 강화됨</li>
</ul>
<p>많은 전문가들이 GPT-4의 parameter 수 는</p>
<p>GPT-3 / 3.5 와 큰 차이 없을 것으로 본다.</p>
<p>Parameter 를 증가시켜서 얻을 수 있는 이득이</p>
<p>증가할 computational cost 에 비해 크지 않기 때문일 것이다.</p>
<p>따라서 질의 응답 성능에서는 큰 개선을 느끼기 어려운 대신</p>
<p>일부 기능이 <strong>강화</strong>되거나 <strong>추가</strong>되었다.</p>
<p>참고로 GPT-4 역시 대부분 21년 9월까지의</p>
<p>데이터들로 학습되었다.</p>
<p>그러므로 학습되지 않았을만한 내용이나</p>
<p>추론하기 어려운 내용을 묻고 실망하지 말자.</p>
<p>몇번이나 이야기하지만 GPT-4 에</p>
<p>입력되지 않은 정보에 제대로 답할 수 없다.</p>
<h2 class="wp-block-heading">GPT-4 특징 자세히 설명해봐</h2>
<h3 class="wp-block-heading"><strong>효율적인</strong>성능 예측이 가능해짐</h3>
<p>GPT-4 논문 가장 앞에 나오는 개선점 이며</p>
<p>그만큼 주요한 <strong>포커스</strong>중 하나 이다.</p>
<figure class="wp-block-image size-full is-resized"><a href="https://jinsbot.com/wp-content/uploads/2024/09/gpt4prediction.webp"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-893" src="https://jinsbot.com/wp-content/uploads/2024/09/gpt4prediction.webp" alt="" width="768" height="419" srcset="https://jinsbot.com/wp-content/uploads/2024/09/gpt4prediction.webp 768w, https://jinsbot.com/wp-content/uploads/2024/09/gpt4prediction-300x164.webp 300w, https://jinsbot.com/wp-content/uploads/2024/09/gpt4prediction-150x82.webp 150w" sizes="(max-width: 768px) 100vw, 768px" /></a><br />
<noscript><br />
<img data-lazy-fallback="1" decoding="async" src="https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4.webp" alt="gpt-4 graph" class="wp-image-1142" width="576" height="314" srcset="https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4.webp 768w, https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4-300x164.webp 300w, https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4-150x82.webp 150w" sizes="(max-width: 576px) 100vw, 576px"/><br />
</noscript></figure>
<p>연구진은 위 그래프를 통해 computing cost 와 loss 사이의</p>
<p><strong>간단한 상관관계</strong>를 구할 수 있었다.</p>
<p>GPT-3~4 에 해당하는 모델들은 Computing cost 가</p>
<p>너무 크기때문에 알고리즘 평가, Fine tuning 이 효율적으로 이루어지기 어렵다.</p>
<p>반면, 이러한 상관관계를 이용한다면 Computing cost 가</p>
<p>1000~10000배 적은 모델로<strong>원본 모델의 성능을 예측</strong>할 수 있다.</p>
<p>즉, GPT-4 는 소형 모델을 이용해 같은 자원으로</p>
<p>더 많은 알고리즘 및 Fine tuning 을 평가할 수 있다.</p>
<p>이 방법을 이용했기때문에 비교적 짧은 시간 안에</p>
<p>GPT-4 가 나올 수 있었을 것이다.</p>
<p>이렇듯 향후 개선을 위해 가장 중요한 포인트 인데</p>
<p>아직까지 제대로 설명한 기사나 분석글 은 없었다.</p>
<p>참고로 openai 의 모델에 대해 보다 효율적인 벤치마킹을</p>
<p>할 수 있도록 <a href="https://github.com/openai/evals" target="_blank" rel="noreferrer noopener">evals</a>라는 프레임워크를 <strong>오픈소스</strong>로 공개했다.</p>
<p>해당 툴을 이용해 일반 사용자들도 자유롭게</p>
<p>새로운 평가 기준, 방법을 제시할 수 있다.</p>
<div class="wp-block-spacer" style="height: 10px;" aria-hidden="true"></div>
<h3 class="wp-block-heading"><strong>추론</strong>성능이 강화됨</h3>
<figure class="wp-block-image size-full"><a href="https://jinsbot.com/wp-content/uploads/2024/09/gpt4-exam.webp"><img decoding="async" class="aligncenter size-full wp-image-890" src="https://jinsbot.com/wp-content/uploads/2024/09/gpt4-exam.webp" alt="" width="600" height="450" srcset="https://jinsbot.com/wp-content/uploads/2024/09/gpt4-exam.webp 600w, https://jinsbot.com/wp-content/uploads/2024/09/gpt4-exam-300x225.webp 300w, https://jinsbot.com/wp-content/uploads/2024/09/gpt4-exam-150x113.webp 150w" sizes="(max-width: 600px) 100vw, 600px" /></a><br />
<noscript><br />
<img loading="lazy" data-lazy-fallback="1" decoding="async" width="600" height="450" src="https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4-exam.webp" alt="gpt-4 exam" class="wp-image-1144" srcset="https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4-exam.webp 600w, https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4-exam-300x225.webp 300w, https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4-exam-150x113.webp 150w" sizes="(max-width: 600px) 100vw, 600px"/><br />
</noscript></figure>
<p>위 그래프에서 볼 수 있듯이 대다수의 시험에서</p>
<p>성적이 개선되었다.</p>
<p>정확히 어떤 부분이 개선되었는지는</p>
<p>다음 예제를 통해 유추할 수 있다.</p>
<figure class="wp-block-table">
<table class="has-fixed-layout">
<tbody>
<tr>
<td>GPT-3.5</td>
<td>GPT-4</td>
</tr>
<tr>
<td>질문<br />
Andrew is free from 11 am to 3 pm, Joanne is free from noon to 2 pm and then 3:30 pm to 5 pm. Hannah is available at noon for half an hour, and then 4 pm to 6 pm. What are some options for start times for a 30 minute meeting for Andrew, Hannah, and Joanne?</td>
<td><strong>동일</strong></td>
</tr>
<tr>
<td>답변<br />
Here is a list of their availability: –Andrew: 11 am to 3 pm –Joanne: noon to 2 pm, and 3:30 pm to 5 pm –Hannah: noon to 12:30 pm, and 4 pm to 6 pm Based on their availability, there is a 30-minute window where all three of them are available, which is from 4 pm to 4:30 pm. So, the meeting can be scheduled at 4 pm.</td>
<td>답변<br />
Andrew: 11 am –3 pm Joanne: 12 pm –2 pm, 3:30 pm –5 pm Hannah: 12 pm –12:30 pm, 4 pm –6 pm Common availability for a 30-minute meeting: 12 pm –12:30 pm</td>
</tr>
</tbody>
</table>
</figure>
<p>같은 질문에 대해 GPT-3.5 는 그럴듯하지만 틀린 답을</p>
<p>GPT-4 는 정확한 답을 내놓았다.</p>
<p>이 예제에서 볼 수 있듯이 GPT 모델은 실제로</p>
<p>지능이 있는 건 아니기 때문에 <strong>추론 문제에 취약</strong>했다.</p>
<p>정확한 방법은 설명 되지 않았지만 GPT-4 에서는</p>
<p>특정 유형의 추론 문제에 대해 학습이 이루어진 것으로 보인다.</p>
<p>따라서 학습된 형태의 문제에 대해서는</p>
<p>비교적 정확한 답변이 가능하다.</p>
<div class="wp-block-spacer" style="height: 10px;" aria-hidden="true"></div>
<h3 class="wp-block-heading"><strong>이미지</strong>에 대한 입력이 가능해짐</h3>
<p><em>질문) What is funny about this image? Describe it panel by panel.</em></p>
<figure class="wp-block-image size-full"><a href="https://jinsbot.com/wp-content/uploads/2024/09/gpt4_visualinput.webp"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-891" src="https://jinsbot.com/wp-content/uploads/2024/09/gpt4_visualinput.webp" alt="" width="250" height="250" srcset="https://jinsbot.com/wp-content/uploads/2024/09/gpt4_visualinput.webp 250w, https://jinsbot.com/wp-content/uploads/2024/09/gpt4_visualinput-150x150.webp 150w" sizes="(max-width: 250px) 100vw, 250px" /></a><br />
<noscript><br />
<img data-lazy-fallback="1" loading="lazy" decoding="async" width="250" height="250" src="https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4_visualinput.webp" alt="gpt-4 visualinput" class="wp-image-1149" srcset="https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4_visualinput.webp 250w, https://web.archive.org/web/20240529074421im_/https://jinsbot.com/wp-content/uploads/2023/03/gpt4_visualinput-150x150.webp 150w" sizes="(max-width: 250px) 100vw, 250px"/><br />
</noscript></figure>
<figure class="wp-block-table">
<table>
<tbody>
<tr>
<td>GPT-4 답변)<br />
<em><br />
The image shows a package for a “Lightning Cable ”adapter with three panels.<br />
Panel 1: A smartphone with a VGA connector (a large, blue, 15-pin connector typically used for computer monitors) plugged into its charging port.<br />
Panel 2: The package for the “Lightning Cable ”adapter with a picture of<br />
a VGA connector on it.<br />
Panel 3: A close-up of the VGA connector with a small Lightning connector (used for charging iPhones and other Apple devices) at the end.<br />
The humor in this image comes from the absurdity of plugging a large,<br />
outdated VGA connector into a small, modern smartphone charging port.<br />
</em></td>
</tr>
</tbody>
</table>
</figure>
<p>VGA 커넥터의 외관을 사용한 라이트닝 케이블 사진을</p>
<p>어느정도 이해하고 설명했다.</p>
<p>이외에도 간단한 문제의 diagram 이나</p>
<p>카툰 에 대한 분석, 답변이 가능하다.</p>
<p>이와 같이 GPT-4는 사진 상 물체의<strong>classification &amp;location</strong>이</p>
<p>가능하고 이를 통해 상황을 추론할 수 있다.</p>
<p>물론, 이번에 도입되는 기능인 만큼 일부 데이터셋 에서는</p>
<p>현재 최고 기술 보다 성능이 떨어진다.</p>
<p>8개의 데이터셋에 대해 accuracy가 평균적으로 68%에서 76%로 향상되었으나</p>
<p>2개의 데이터 셋에서는 7% 가량 하락하였다.</p>
<p>다양하게 활용할 수 있겠지만</p>
<p>선공개된 기능에는 포함되지 않았다.</p>
<div class="wp-block-spacer" style="height: 10px;" aria-hidden="true"></div>
<h3 class="wp-block-heading">이외의 소소한 개선</h3>
<p>입력가능한 토큰이 <strong>최대 8k개</strong>로 증대 되었고</p>
<p>별도 모델을 사용할 경우 <strong>최대 32k개</strong>(단어 25k개)까지 가능하다.</p>
<p>예전보다 긴 문서의 번역이나 요약에 활용할 수 있다.</p>
<p>보다 세세한 역할 부여가 가능해졌다.</p>
<p>예제에서는 답을 직접적으로 알려주지 않는튜터,</p>
<p>셰익스피어처럼 말하는 해적 등을 보여주었다.</p>
<p>마지막으로 <strong>필터링 우회</strong>를 방지하기 위한 기술이 추가되었다.</p>
<p>상당 수 막은것으로 보이나 아직 완벽하지는 않다.</p>
<div class="wp-block-spacer" style="height: 10px;" aria-hidden="true"></div>
<h2 class="wp-block-heading">그럼 GPT-4 의 한계점은 뭐야?</h2>
<p>거짓 답변을 내놓는 <strong>Hallucination</strong>에 대한 성능이</p>
<p>개선되었지만 아직 완전히 잡지는 못했다고 한다.</p>
<p><span style="font-size: revert;">참고로 GPT-4 역시 대부분 21년 9월까지의</span></p>
<p>이야기도 있다.</p>
<p>참고로 GPT-4 역시 대부분 21년 9월까지의</p>
<p id="block-e97d11a0-efe5-42a0-a0f9-37b70feeb563">데이터들로 학습되었다.</p>
<p id="block-e4f51a0d-c831-4280-a979-c6b57896603c">그러므로 학습되지 않았을 내용이나 추론하기 어려운 내용을 물으면</p>
<p id="block-e4f51a0d-c831-4280-a979-c6b57896603c">당연히 이상한 답변이 나온다.</p>
<p id="block-8e261895-44c0-4f5e-ad07-57d94aaf8871">GPT-4 의 성능이 안좋거나 한계점 이 아니라</p>
<p>그냥 사용자가 이상한 질문을 한것이다.</p>
<p>참고로 <strong>다국어 입력</strong>에 대한 성능도 강화되었지만</p>
<p>성능차이는 여전하기때문에 가능하면 영어로 질문하라.</p>
<p>유해하거나 차별적, 공격적인 컨텐츠에 대한</p>
<p>필터링이 강화되었으나 문제는 그 과정에 있다.</p>
<p><a href="https://time.com/6247678/openai-chatgpt-kenya-workers/" target="_blank" rel="noreferrer noopener">타임지</a>에 따르면 해당 작업은 <strong>케냐의 노동자</strong>들에게</p>
<p>아웃소싱되었고 <strong>2$의 시급</strong>이 지불되었다.</p>
<p>케냐의 평균 임금과 비교했을 때 시급이 높은 편이지만</p>
<p>업무강도 및 정신적 고통이 상당했다고 한다.</p>
<p>기존에는 텍스트만 판별했다면 2월부터는 <strong>유해 이미지</strong>까지</p>
<p>판별하게 만들어 고통이 가중되었다.</p>
<p>결국, openAI 는 해당 아웃 소싱업체와의</p>
<p>계약을 예정보다 일찍 끝마쳤다.</p>
<p>최근 다양한 분야에서 공정 무역 에 대한 관심이</p>
<p>커진 만큼 이에 대한 대책이 필요하다.</p>
<div class="wp-block-spacer" style="height: 10px;" aria-hidden="true"></div>
<h2 class="wp-block-heading">GPT-4 API 는 언제 나와?</h2>
<p>python api 는 아직 공개되지 않았고</p>
<p>대신 <a href="https://openai.com/waitlist/gpt-4-api" target="_blank" rel="noreferrer noopener">알림메일</a>을 발송해준다고 하니 등록하자.</p>
<figure class="wp-block-table">
<table>
<tbody>
<tr>
<td>모델 종류</td>
<td>프롬프트(질문)</td>
<td>답변</td>
</tr>
<tr>
<td>8k</td>
<td>0.03$/1k token</td>
<td>0.06$/1k token</td>
</tr>
<tr>
<td>32k</td>
<td>0.06$/1k token</td>
<td>0.12$/1k token</td>
</tr>
</tbody>
</table>
</figure>
<p>기본 모델도 가격이 비싸지만 32k 모델은 그것보다 <strong>2배</strong>비싸다.</p>
<p>참고로 gpt-3.5-turbo 는 1k 토큰당 0.002$</p>
<p>gpt-3.5 ( 다빈치 )는 0.02$이었다.</p>
<p>그리고 기본적으로 <strong>분당 토큰 40k개 &amp;요청 200개</strong>의 리밋이 걸려있다.</p>
<p>마지막으로 개발자의 라이브스 데모를 첨부하며 글을 마친다.</p>
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio">
<div class="wp-block-embed__wrapper"><span class="embed-youtube" style="text-align: center; display: block;"><br />
<iframe loading="lazy" class="youtube-player" style="border: 0;" src="https://www.youtube.com/embed/outcGtbnMuQ?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en-US&amp;autohide=2&amp;wmode=transparent" width="1200" height="675" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation" allowfullscreen="allowfullscreen"></iframe><br />
</span></div>
</figure>
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" />
<p>관련글</p>
<ul>
<li><a href="https://jinsbot.com/chat-gpt-hybrid-python/">chat GPT 하이브리드 앱 만들기 C# python</a></li>
<li><a href="https://jinsbot.com/gpt3-5-turbo/">GPT3.5 Turbo – ChatGPT python API 소개</a></li>
<li><a href="https://jinsbot.com/chatgpt-alternative/">chatGPT 한계점과 대체재에 대해</a></li>
<li><a href="https://jinsbot.com/gpt-3-5-python/">GPT-3.5 python에서 사용하기</a></li>
<li><a href="https://jinsbot.com/%eb%b9%99-new-bing-intro/">빙 생성 AI 까지 넘보는 중</a></li>
</ul>
<p>The post <a href="https://jinsbot.com/gpt-4-introduction/">GPT-4 뭐가 달라 졌을까?</a> appeared first on <a href="https://jinsbot.com">JIN&#039;s BOT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jinsbot.com/gpt-4-introduction/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">889</post-id>	</item>
	</channel>
</rss>
