<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Touchchai Chotisorayuth on Medium]]></title>
        <description><![CDATA[Stories by Touchchai Chotisorayuth on Medium]]></description>
        <link>https://medium.com/@heartnetkung?source=rss-e60e1532a5f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WN7e4rpnjAqZWSMcXcj2Kg.jpeg</url>
            <title>Stories by Touchchai Chotisorayuth on Medium</title>
            <link>https://medium.com/@heartnetkung?source=rss-e60e1532a5f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:47:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@heartnetkung/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Take on the J-Space Paper: LLMs as Event-Driven Note-Takers]]></title>
            <link>https://medium.com/@heartnetkung/my-take-on-the-j-space-paper-llms-as-event-driven-note-takers-c28d3bc86fec?source=rss-e60e1532a5f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c28d3bc86fec</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[j-space]]></category>
            <category><![CDATA[transformer-model]]></category>
            <dc:creator><![CDATA[Touchchai Chotisorayuth]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 19:23:24 GMT</pubDate>
            <atom:updated>2026-07-11T19:23:24.877Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This blog post is my updated view on how LLMs work, focusing on the roles of each layer and their interactions. As a reminder, an LLM is composed of multiple transformer layers connected in series. The spine that connects them, the <em>residual stream</em>, is the information channel running through all layers from input to output: every layer reads from this stream and writes back to it (<a href="https://transformer-circuits.pub/2021/framework/index.html">Elhage et al., 2021</a>). The diagram below shows how they are connected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*_VzfjUNQ-vB3WZ_UBYR57w.png" /></figure><p>A recent paper from Anthropic — <em>“Verbalizable Representations Form a Global Workspace in Language Models”</em> (<a href="https://transformer-circuits.pub/2026/workspace/index.html">Gurnee et al., 2026</a>), which I’ll call the <strong>J-Space paper</strong> for short — introduces a tool for reading one particular part of what is written to this stream: the <em>verbalizable</em> content, i.e. the concepts the model is currently poised to say. The tool, the <strong>Jacobian lens (J-lens)</strong>, is built by composing a Jacobian that has been averaged over many contexts with the model’s own <strong>unembedding matrix</strong>. With it, we can read — at each layer and token position — which single vocabulary token the residual stream is currently leaning toward.</p><p>Across the four examples below, the same pattern recurs: a middle layer does something useful — reasons, computes an intermediate, flags something far back in the context, notices something harmful — and writes the result into the residual stream for later layers to pick up. Not every message sent between layers shows up this way, but this is the only part the J-lens can read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*8d4X-C6L_66gqbSD7T-QZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*PmszS-tjYhKeiqledNvGTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*JxF70lRCmHE_OIvaQjRwQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*5PW9QfLzX3tRXPuyjcSfaA.png" /></figure><h3>Note-Taking Behavior</h3><p>Writing an intermediate that helps the task is much like <strong>note-taking</strong> in humans — clearly useful for reading comprehension and for solving math problems. The more interesting question is why such a note-taking function emerges in LLMs at all. My hypothesis is that it falls out of next-word prediction being <strong>compositional</strong> in nature.</p><p>Take the multi-hop example: predicting the next token of “The color of the planet fourth from the sun is …”. This breaks into two steps — resolve the fourth planet (Mars), then recall its color (red). If the model generalizes, the <em>same</em> color-recall step should also answer “the color of the fifth planet,” reusing one function with a different resolved entity. So the model’s internal computation should mirror this structure: roughly independent functions — plausibly at different layers — composed at run time to produce the token.</p><p>The paper gives direct evidence for exactly this composition. When you edit a single posted note — swapping the entity the model has resolved — the answer changes accordingly. For instance, editing the unspoken intermediate “spider” to “ant” in “the number of legs on the animal that spins webs is” flips the answer from 8 to 6. And because a single resolved-entity note is read by several different downstream operations, one edit can redirect many different questions at once. That is what you would expect if those operations are independent functions sharing a common intermediate — composition at run time, not a separately memorized answer for every phrasing.</p><p>This raises the question of <strong>format</strong>. If any two layers are to exchange messages, they need a shared representational format. Conveniently, every layer is already wired to the residual stream, and the residual stream is anchored at both ends to <em>token space</em> — the input embedding at the bottom and the unembedding at the top. So a message written in the token basis can be read and written by most layers. That same anchoring is what makes the message readable by the J-lens using the model’s own unembedding mechanism.</p><p>A message in some other, non-token format is possible, but only between layers that have jointly learned that private code — far harder to arrange than reusing the format everyone already shares. My hypothesis is that this is why gradient descent is biased toward developing the broadcast message protocol in token space: it is the path of least resistance for making an intermediate reusable by many readers.</p><h3>The Middle Layers</h3><p>Let’s move on to consider which layers exhibit this note-taking capability. The J-lens paper reports that only the middle layers exhibit this behavior. In addition, the paper further explains their roles as follows. The <strong>early</strong> layers take in the raw tokens and build them up into meaning — the sensory work of reading the input. The <strong>middle</strong> layers are where the reasoning surfaces: this is where every note in the previous section appeared, from color and Mars to the climbing 21 → 42 → 49 to the flags for bugs and injections. The <strong>late</strong> layers take whichever note has won and turn it back into an output token. Note-taking is a middle-layer phenomenon — it doesn’t happen while the model is still reading, and it’s finished before the model commits to a word.</p><p>Beyond this paper, there are two others that suggest similar findings about these middle layers. On the one hand, <em>“The Remarkable Robustness of LLMs: Stages of Inference?”</em> (<a href="https://arxiv.org/pdf/2406.19384">Lad et al., 2024</a>) found that the middle layers across different transformer models are robust to small perturbations. That is, removing one layer or swapping adjacent layers has minimal effect on the model’s token-prediction capability because 72–95% of the accuracy is retained. When comparing the two interventions, removing has more effect.</p><p>On the other hand, <em>“Transformer Layers as Painters”</em> (<a href="https://arxiv.org/pdf/2407.09298">Sun et al., 2024</a>) perform much more thorough interventions to the middle transformer layers and confirm many of our assumptions. The middle layers share the common representation tested using cosine-similarity, dropping a few layers doesn’t hurt the performance, and swapping layers has minimal effect. They even randomize the order of the entire middle layers and it still works somewhat. Also, reordering layers hurts performance more on Math/reasoning tasks as shown in the GSM8K dataset.</p><p>Why is this the case? One explanation, through the lens of composition, is that dropping is fine because a single layer contributes little to the overall token prediction, being only a unit of composable functionality. Note that a layer’s small effect on average accuracy does not mean it is unimportant. Consider that an LLM is trained on datasets with diverse contexts, so it’s plausible that layers activate only on relevant contexts. In addition, even in that context the relevant function rarely activates. For example, the Math example activates its logic only on the token that needs the final answer whereas most of the accuracy is attributed to other non-critical tokens.</p><p>For swapping, it means that some adjacent layers are independent of one another. That is, if one layer depends on the output of the previous, swapping them would hurt the performance. This also implies that the architecture is loosely coupled and that many functions are implemented within one layer.</p><h3>Event-Driven Architecture</h3><p>Let’s recap our evidence and interpretation so far. (1) middle layers take notes and broadcast them in token space format. (2) middle layers are on-demand composable functions. (3) middle layers work independently of each other to some extent except in Math/reasoning tasks. (4) all layers are connected to the shared communication channel. These are the hallmarks of an <em>event-driven system</em>: layers publish notes to a shared channel — the bus — and other layers react to the ones they care about.</p><p>That bus is the residual stream: every layer reads from it and writes back to it, which we’ve taken as a given since the introduction. The layer that writes “Mars” doesn’t know who will read it, and the layers that read “Mars” don’t know or care which layer wrote it. Publisher and reader are decoupled, connected only through the shared stream. Almost everything else in this section falls out of that one property.</p><p>Each layer, in this picture, is a <strong>selective handler</strong>. It reads whatever is on the bus and posts a note back — but only when the relevant pattern is actually there. This is the part our examples make concrete: the bug-detection layer doesn’t fire on every line of code, only when there’s a bug to flag; the injection layer stays quiet until something in the context warrants suspicion. A layer isn’t a fixed step that always does the same thing; it’s more like a handler waiting for its trigger, and doing its work only when the trigger appears.</p><h3>Discussion</h3><p>We set out to update how to picture an LLM computing, and the picture I’ve arrived at is this: an LLM is less a pipeline that transforms input into output step by step, and more an event-driven system that takes notes. The middle layers read the shared residual stream, and when they find something worth recording — a resolved entity, an intermediate result, a flag — they write a note back onto the stream in the one format every layer can read: token space. Downstream layers pick up whichever notes they need, and the final layers read out the winning note as the next token.</p><p>What’s satisfying about this frame is how much it folds into one thing. Generalization is notes being reused by many readers. Robustness to shuffling and dropping layers follows from publishers being decoupled from readers. And verbalizability — the whole reason the J-lens can read anything at all — is just that the notes are written in token space, the same format we’d use to say them aloud. Reading a note and reusing it turn out to be the same act.</p><p>A few limits belong with this picture. This interpretation rests largely on the J-lens, which cannot read everything. Being a first-order approximation, the J-lens sees only the linear component of each layer’s effect — it is blind to the nonlinear structure of the computation. And what it does see is coarse: the Jacobian is averaged over contexts, and it reads only the single token the stream leans toward. In addition, there is a case in Math/reasoning tasks where middle layers are dependent on one another. It is possible that there are some complicated mathematical functions that are implemented across layers and develop their own private communication protocols.</p><p>This blog post is my updated view on how LLMs work, focusing on the roles of each layer and their interactions. As a reminder, an LLM is composed of multiple transformer layers connected in series. The spine that connects them, the *residual stream*, is the information channel running through all layers from input to output: every layer reads from this stream and writes back to it ([Elhage et al., 2021](<a href="https://transformer-circuits.pub/2021/framework/index.html">https://transformer-circuits.pub/2021/framework/index.html</a>)). The diagram below shows how they are connected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c28d3bc86fec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving LLM robustness using rigorous verification loop]]></title>
            <link>https://medium.com/@heartnetkung/improving-llm-robustness-using-rigorous-verification-loop-58da1ffe221c?source=rss-e60e1532a5f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/58da1ffe221c</guid>
            <category><![CDATA[instructor]]></category>
            <category><![CDATA[test-time-compute]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[robustness]]></category>
            <dc:creator><![CDATA[Touchchai Chotisorayuth]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 18:02:31 GMT</pubDate>
            <atom:updated>2026-01-20T18:02:31.484Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog post, I’ll share a technique that can improve the robustness of LLM’s output along with a small experiment to show its effectiveness. In the experiment, the accuracy improves from 66% to potentially 100%.</p><p><em>Disclaimer: this technique is not entirely new. My intention is to share my experiment and articulate the technique’s usage.</em></p><h3>1. Introduction</h3><p>LLMs have taken the world by storm since the introduction of ChatGPT. Despite their success, they usually hallucinate and make silly mistakes which hugely harm users’ trust and AI adoption.</p><p>To alleviate this reliability problem, an applicable technique is <a href="https://arxiv.org/abs/2303.17651">refinement loop</a>. In a nutshell, the technique asks LLM a question and then prompts it to criticize itself in a monologue way until a satisfiable conclusion is reached. This technique works to some extent but is far from perfect because the critics also hallucinate and make mistakes.</p><p>One possible improvement to this refinement loop is to write a custom verification program in place of the critic and uses it to feedback the LLM instead. This way, LLM’s outputs are guaranteed to pass the specification after refinement or simply raise exception and fails.</p><p>Now, our approach “rigorous verification loop” takes a step further in the verification such that the task-specific logic is used to rigorously check the model’s output. For example, the task of parsing the invoice document can be verified using in-document information. That is, each item must have the inline_total = quantity * price + VAT and grand_total = sum(inline_total). If these two conditions are met, it is very unlikely that the output is wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*UMPX5zr-zpi2qGbSz-9MIg.png" /><figcaption>Workflow of verification loop</figcaption></figure><p>The drawbacks of this technique include the fact that an additional effort is required to write the verification program and the LLM’s task must be verifiable. On both points, I argue that, if you follow proper software engineering practice, then you may already have this program in your code base. If you do, just reuse the code.</p><p>If you don’t have already the code, you might need to implement rigorous verification yourself. Here are some examples for each task:</p><ol><li>In OCR of invoice documents, you can check if the grand total matches the sum of each item’s price.</li><li>In RAG, it is common to include the source text that produces the answer. You can ask LLM to cite the original text and verify if it exists.</li><li>In citation generation, you can also verify if the citation exists, relevant, and has the correct metadata.</li></ol><h3>2. Implementation: Instructor library</h3><p>The ideal implementation of our technique is that it should reuse the existing code without much modification. This means that the verification must be compatible with the most popular validation library in Python: <a href="https://docs.pydantic.dev/latest/">Pydantic</a>. Fortunately, there is a Python library, named <a href="https://python.useinstructor.com/">Instructor</a>, for that and it’s exceptionally clean.</p><p>Instructor is a thin wrapper to LLM’s SDK, including OpenAI and Anthropic, that facilitate this refinement loop using Pydantic. That is, you simply need to choose the model, prompt it, specify maximum retry count, and give it a Pydantic schema. The feedback and refinement loop is handled by the library. In addition, the Pydantic model is automatically used for <a href="https://platform.openai.com/docs/guides/structured-outputs">structured response</a> feature of popular LLM providers, which makes the model output the correct syntax.</p><p>Now, let’s see the code in action. First, let’s start with the Pydantic model of the invoice document that we will be using.</p><pre>from datetime import datetime<br>from pydantic import BaseModel, Field, model_validator<br>from math import isclose<br><br>class InvoiceItems(BaseModel):<br>  &#39;&#39;&#39;An item in each line of the invoice.&#39;&#39;&#39;<br>  item_no: str<br>  name: str<br>  quantity: float # some quantity in measured in kg<br>  price: float<br>  vat: float = Field(default=0)<br>  total: float<br><br>  @model_validator(mode=&#39;after&#39;)<br>  def validate_total(self, value):<br>    calculated_total = self.price*self.quantity+self.vat<br>    # abs_tol=1e-2 means 2-digit rounding is fine<br>    if not isclose(self.total, calculated_total , abs_tol=1e-2) :<br>      raise ValueError(&quot;total must be equal to (price * quantity) + vat&quot;)<br>    return self<br><br>class Invoice(BaseModel):<br>  &#39;&#39;&#39;An invoice document containing a list of items and related info.&#39;&#39;&#39;<br>  items: list[InvoiceItems]<br>  grand_total: float<br>  invoice_no: str<br>  date: datetime<br><br>  @model_validator(mode=&#39;after&#39;)<br>  def validate_grand_total(self, value):<br>    calculated_total = sum([item.total for item in self.items])<br>    # abs_tol=1e-2 means 2-digit rounding is fine<br>    if not isclose(self.grand_total, calculated_total, abs_tol=1e-2):<br>      raise ValueError(&quot;grand total must be equal to the sum of each line&#39;s total.&quot;)<br>    return self</pre><p>As you can see, this is a very simple Pydantic model which is likely already implemented. There are two additional verification methods: one for checking the total of each item and the other for the grand total.</p><p>Next, the LLM-related code is as follow. It simply prompts GPT-5-nano to extract the information from the invoice with the expectation that the output is a validated Pydantic object.</p><pre>import instructor<br>from instructor.processing.multimodal import PDF<br><br>client_instructor = instructor.from_provider(&quot;openai/gpt-5-nano&quot;)<br><br>def do_instructor_ocr(file_path:str)-&gt;Invoice:<br>  return client_instructor.create(<br>      response_model=Invoice,<br>      messages=[<br>          {<br>              &quot;role&quot;: &quot;user&quot;,<br>              &quot;content&quot;: [<br>                  &quot;Extract the information from the invoice.&quot;,<br>                  PDF.from_path(file_path)<br>              ],<br>          },<br>      ],<br>  )</pre><p>That’s it! Clean, beautiful, and maintainable.</p><h3>3. Experiment: Invoice OCR</h3><ul><li>The objective is to see the effectiveness of our approach in invoice parsing task with the focus on all numerical values in the invoice.</li><li>The dataset is our private invoice dataset consists of 92 documents from various vendors. This real world dataset is intentionally difficult with various corner cases to force the LLM to make mistakes:<br>- Some don’t repeat the column headers on later pages.<br>- Some calculate VAT on every row while others calculate at the end.<br>- Some per-item total value includes VAT while others don’t. However, our spec indicates that the total must include VAT. This means that LLM has to correctly calculate this number!</li><li>The AI can retry 10 times excluding the original answer.</li><li>The selected model is GPT-5-nano.</li><li>The success criteria is whether the LLM can pass all the validation within the retry limit.</li><li>The code for the experiment are the ones given in the previous section.</li></ul><h3>4. Results &amp; Analysis</h3><p>Interestingly, the result of our experiment is that the all documents are correctly validated. On a closer look, only 66% passes on the first try. This means that LLM alone without retry/refinement mechanism only has 66% accuracy. However with 3 retries, most of the mistakes are gone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*QbToQwc_H1sLS0fBLbQyLg.png" /></figure><p>Now, let’s take a look at the types of mistakes it made. Most of them come from either row-wise total or grand total. Only 2 of them are other types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*wsulZS55vpXv5gZc3106QQ.png" /></figure><p>Upon further investigation, the error related to row-wise total largely consists of 3 patterns. First, our spec requires that VAT must be the absolute value whereas some responses return the percentage value of 20%. Second, our spec requires that the total amount includes VAT whereas the invoice shows the excluded amount. Last, some invoices include the delivery note within the main table, as a result LLM thought it was an item.</p><p>These 3 mentioned patterns highlight a unique benefit of using LLM in that it doesn’t need template-specific logic. Just write the validator and the LLM would normalize it automatically for us. In my previous experience working with OCR projects, the parsers are laborious to write and tricky to maintain because there are a lot of vendors and their formats change without advance notice.</p><p>Last but not least, a further investigation is performed to check whether the result is indeed correct by human verification. The verification is performed only the numerical values of the retried files.</p><p>The result is that, among the retried files, 58% of them still contain mistakes even though the verification is correct. There are 3 types of remaining errors: VAT-inclusion, OCR, and rounding error. First, VAT-inclusion errors occur all parsed values are correct except that VAT is excluded. This is the most common issue since 2 of the vendors calculate VAT at the end of the invoice. Second, OCR errors occur when either quantity or price of an item is incorrect. Last, rounding error occurs in exactly 1 document where the calculation is round to 1 digit instead of 2 with makes the calculation incorrect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*BpZv0W7Lf61rb3Ay1jL9vw.png" /></figure><p>The question is how does error persists? For VAT-inclusion, the LLM simply select the grand_total before tax and then the number checks out. For the other two errors, the LLM fix the grand total to match what is calculated.</p><p>This means that our verification logic is still naive and needs bug fix. Luckily, I anticipate that the VAT-inclusion and rounding error can be automatically solved by fixing our Pydantic model. However, the resolve of OCR errors might require user intervention.</p><h3>5. Conclusion</h3><ul><li>In this work, we have introduced “rigorous verification loop” technique and showed that it can significantly improves robustness.</li><li>Within 10 retries, LLMs can fix the verification error with 100% success rate. Without retry, the success rate would be 66%.</li><li>However, our naive verification logic still let some errors slip through even with correct verification. This mistake highlights the key reason why we should actually look at the data in every data science project.</li><li>In future works, we should switch to a public dataset so that this experiment is reproducible.</li></ul><p>Thank you for reading. Hope it’s interesting and insightful :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58da1ffe221c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[แนะนำ Dplus สำหรับสาย Tech]]></title>
            <link>https://medium.com/@heartnetkung/%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3-dplus-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%AA%E0%B8%B2%E0%B8%A2-tech-4c6e585da812?source=rss-e60e1532a5f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c6e585da812</guid>
            <dc:creator><![CDATA[Touchchai Chotisorayuth]]></dc:creator>
            <pubDate>Sat, 07 Aug 2021 17:06:29 GMT</pubDate>
            <atom:updated>2021-08-07T17:06:29.458Z</atom:updated>
            <content:encoded><![CDATA[<p>สวัสดีครับ ผมชื่อต่อ เป็น Tech Lead คนแรกจากบริษัท Dplus Intertrade ครับ</p><p>วันนี้ผมจะมาเล่าให้ฟัง ว่าบริษัท Dplus นี้มีหน่วยงานด้าน Tech เป็นแบบไหน สไตล์การทำงานเป็นอย่างไร น่าสนใจขนาดไหน เพื่อให้ผู้สมัครได้ทำความรู้จักบริษัทเรา ปรัชญาการทำงานต่างๆที่ผมคิดว่าโดดเด่นมาก และโอกาสต่างๆที่เราจะมาร่วมสร้างด้วยกัน</p><h4>ประวัติย่อ</h4><p>บริษัทเราเริ่มจากการนำเข้าสินค้าจากจีน โดยเริ่มจากกลุ่มก่อตั้งที่เป็นพี่ๆวิศวะจุฬา 3 คน แล้วบริษัทก็มีการเจริญเติบโตต่อเนื่องมาเรื่อยๆ ตลอด 16 ปี จาก 3 คนสู่พนักงานหลายพัน จากนำเข้าสินค้า มาสู่สร้างผลิตภัณฑ์เอง จนมาถึงการสร้างนวัตกรรมของตนเองมากมาย</p><p>หลายจะรู้จักบริษัท Dplus จากแบรนด์ฟิล์มกันรอย Focus แต่ความจริงเรายังมีหน่วยธุรกิจต่างๆ ที่เราทำอีกมาก ทั้งทางด้านเครื่องสำอาง ผลิตภัณฑ์สุขภาพ การเงิน ประกัน แอพขายของ ร้านขายกล้อง และอีกมากมาย มีโครงสร้างเป็นย่อยๆในเครือของ Dplus</p><p>หลักการทำงานของเรามีความคล้าย startup อยู่มาก ไม่ว่าจะเป็นการเปิดหน่วยธุรกิจเพื่อไขว่คว้าโอกาสใหม่ๆ ทางธุรกิจ หรือการสนับสนุนเงินทุนเมื่อหน่วยธุรกิจพร้อม หรือการปรับตัวใช้เทคโนโลยีใหม่ๆอยู่เสมอ ด้วยแนวคิดอันโดดเด่นเรื่องการปรับตัวนี้ ทำให้บริษัทเรายังเติบโตสร้างกำไรได้แม้ในช่วงโควิด (2019–2021)</p><h4>การเติบโตของสายงาน Tech</h4><p>ด้วยการสร้างนวัตกรรมใหม่ๆ และหลักการทำงานคล้าย startup จึงไม่แปลกเลยที่เรามีการลงทุนทางด้าน Tech ต่อเนื่อง ในช่วง 3 ปีล่าสุดนี้ เริ่มต้นจากทีม dev 1 ทีมสำหรับดูแลงานภายใน เติบโตมาจนเป็น 5 ทีม มี dev กว่า 40 คน</p><ul><li>ทีมหนึ่งพัฒนาด้าน E-commerce และ Logistic</li><li>ทีมหนึ่งพัฒนาแอพขายของ B2B</li><li>ทีมหนึ่งพัฒนาแอพประกันรถยนตร์</li><li>ทีมหนึ่งพัฒนาแอพ Fin Tech</li><li>ทีมหนึ่งพัฒนาด้านระบบบัญชี คลัง และระบบหลังบ้านสนับสนุนทีมอื่น</li></ul><p>ทีม Tech เรายังมีการเติบโตต่อเนื่อง และมีตำแหน่งที่เปิดรับสมัครอยู่เรื่อยๆ ดังนี้</p><ol><li>Front-end Dev (React/React native)</li><li>Back-end Dev (Node.js)</li><li>ERP Dev (Dynamics AX)</li></ol><p>Tech Stack</p><ol><li>Stack หลักคือ Digital Ocean, React/React Native, Express, MongoDB/SQL Server</li><li>มี PHP/Wordpress บ้างในเว็บ static ต่างๆ</li></ol><p>สาเหตุที่เรามีการลงทุนด้าน Tech ต่อเนื่อง ขยายทีมต่อเนื่อง เนื่องจากผลงานของทีมเราค่อนข้างดีมาก เพราะความคุ้มค่าทางการลงทุนต่อเนื่อง และสร้างโอกาสทางธุรกิจใหม่ๆอยู่เสมอ</p><h4>สไตล์การทำงาน: ท้าทายเหมือน Startup แต่มีการสนับสนุน A+</h4><p>แนวการทำงานของทีม Dev เราจะเป็นแนวเปิดกว้าง ช่วยกันคิดช่วยกันทำ กล่าวคือ Dev เราจะทำงานร่วมกับฝั่ง business ใกล้ชิด ทำงานด้วยกัน ปรึกษากัน ออกไอเดียกัน อายุไล่เลี่ยกัน (~25 ปี) ทำให้ทำงานกันสนุก เป็นกันเอง มีครั้งหนึ่งเราไปเช่าบ้าน AirBnB ร่วมกันถกไอเดีย ตกผลึกแนวคิดเพื่อสร้างแอพกันหลายวันหลายคืนทีเดียว</p><p>เหตุนี้เอง ทำให้<strong>ทีมของเรามีความอินกับผลิตภัณฑ์ของทีมมาก</strong> เพราะสร้างมากับมือ คิดมากับหัว เห็นผู้ใช้งานใช้กับตา ไม่ได้เกิดจากการรับ requirement แล้วทำตามคำสั่งของ User</p><p>พี่ๆในทีมทุกคนก็มีความเข้าใจในเทคโนโลยีมาก ตั้งแต่ระดับ manager ไปถึงเจ้าของบริษัท เราทำงานกับ Dev มามาก รู้ว่า culture ของ dev เป็นอย่างไร การให้ requirement ที่ดีเป็นอย่างไร การสนับสนุนให้น้องๆเติบโต เก่งขึ้นทำอย่างไร</p><p>จุดที่เราเด่นกว่า Startup อื่นๆ คือ เรามีการสนับสนุนที่สำคัญมากๆ ใน 3 ประเด็น</p><ol><li>ด้าน Tech: เรามี Tech Lead เก่งๆหลายคนมาช่วยสอน แนะนำ แก้ปัญหาหรือช่วย implement ได้ในหลายด้าน ไม่ว่าจะ เทคนิคการเขียนโปรแกรม, infra, security, performance และอื่นๆ</li><li>ด้านประสบการณ์ธุรกิจ: เรามีพี่ๆที่ทำธุรกิจมายาวนาน แนะนำ แบ่งปันประสบการณ์และสนับสนุนเรื่องการทำธุรกิจได้ ไม่จำเป็นต้องเริ่มจากศูนย์ ลองผิดลองถูกไปเสียทุกเรื่อง</li><li>ด้านเงินทุน: เรามีเงินทุนสนับสนุนให้ธุรกิจที่กำลังโต เมื่อถึงเวลาที่เหมาะสม เพื่อให้การเติบโตไม่สะดุด ไม่ต้องกังวลเรื่องปัญหาเงินทุนจนฝ่าย business/dev เสียสมาธิ (ไม่ต้องกลัว runway หมด)</li></ol><h4>จุดเด่น: การเรียนรู้</h4><p>Dplus มีความเชื่อในเรื่องการเรียนรู้อย่างยิ่ง มันอยู่ใน Vision Mission และอยู่ใน DNA ของเรา พี่ๆทุกคนรู้สึกภูมิในที่ได้เห็นน้องๆเติบโตและเก่งขึ้นในสายงานตนเอง มีการถกกันอยู่ตลอดว่าแต่ละเดือนจะให้น้องไปเรียนรู้อะไร ลงคอร์สไหน เชิญใครมาพูด เพื่อให้มั่นใจว่าน้องได้ประโยชน์จริง ทำงานได้ดีขึ้นจริง โดยเราสนับสนุนการเรียนรู้ทุกคนผ่าน 2 กิจกรรมหลัก คือ เสาร์เรียนรู้ และแผนการสอนงานอย่างจริงจัง</p><p><strong><em>เสาร์เรียนรู้:</em></strong> เป็นกิจกรรมที่เราจัดทุกวันเสาร์สิ้นเดือน ที่ Manager แต่ละทีมจะจัดให้น้องๆตามแต่ละทีม ไม่ว่าจะเป็น การเชิญคนเก่งๆมาพูด กิจกรรมแบ่งปันประสบการณ์ แข่งกันเขียนโค้ด เข้าร่วม online conference ต่างประเทศ ซึ่งทำให้เราได้เปิดประสบการณ์ใหม่ๆ เสริมสร้างความรู้กันทุกเดือน</p><p>ในส่วนทีมของผมเองก็เคยมีจัดแข่งเขียนโปรแกรม CodeWars.com มาแก้โจทย์ปัญหาแข่งกัน การเข้าร่วม online conference ของ MongoDB กิจกรรมอ่านหนังสือแล้วมาเล่าให้เพื่อนฟัง การนั่งสรุป trends เทคโนโลยีใหม่ๆ และกิจกรรมแชร์ประสบการณ์ เป็นต้น</p><p><strong><em>แผนการสอนงานอย่างจริงจัง:</em></strong> บริษัททั่วไปจะมีการประเมินผลงานตามรอบไตรมาส แต่เรามีการประเมินการเรียนรู้ในแต่ละช่วงด้วย โดยจะเริ่มจากการตกลงกันว่าครึ่งปีนี้แต่ละคนจะเติบโตอะไร เรียนรู้ด้านไหนแล้วเริ่มสอน เริ่มฝึกฝน เริ่มออกแบบวิธีการเติบโตกัน หาก manager สอนเองไม่ได้ก็จะหาตัวช่วยและที่ปรึกษามาให้จนได้ เสร็จแล้วก็ตรวจเช็คเป็นระยะ จนไปถึงประเมินจริงจังกันทุกครึ่งปี</p><p>ในส่วนทีมของผมเองมีตัวอย่างหัวข้อที่ได้เคยสอนกัน ดังเช่น</p><ul><li>การ setup และดูแล infra</li><li>เทคนิคการรับ requirement</li><li>การสร้าง boilerplate สำหรับโปรเจ็คใหม่</li><li>UI/UX for front-end</li></ul><h4>สรุป</h4><p>Dplus เป็นบริษัทที่มีการเติบโตทางด้าน Tech ต่อเนื่อง มีการเรียนรู้พัฒนาฝีมือของทีมอย่างต่อเนื่องและเอาจริงเอาจัง มีสไตล์การทำงานและสภาพแวดล้อมที่น่าทำงาน และสนับสนุนการเกิดของนวัตกรรมได้อย่างยอดเยี่ยม</p><p>หากคุณเป็นคนที่ชอบงานท้าทาย ต้องการลับฝีมือให้เก่งขึ้นเรื่อยๆ ทำงานเป็นกันเอง สร้างผลิตภัณฑ์ของทีมตัวเอง แล้วสนุกไปกับมัน Dplus คือที่ๆเหมาะสำหรับคุณ</p><p>แล้วพบกันที่บริษัทนะครับ :)</p><p>พี่ต่อ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c6e585da812" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Math of Hearthstone Tournaments]]></title>
            <link>https://medium.com/@heartnetkung/the-math-of-hearthstone-tournaments-ad7f80579681?source=rss-e60e1532a5f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad7f80579681</guid>
            <category><![CDATA[hearthstone]]></category>
            <category><![CDATA[esport]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[thai]]></category>
            <dc:creator><![CDATA[Touchchai Chotisorayuth]]></dc:creator>
            <pubDate>Mon, 09 Jan 2017 13:29:11 GMT</pubDate>
            <atom:updated>2017-01-09T13:29:11.885Z</atom:updated>
            <content:encoded><![CDATA[<p>เคยสงสัยบ้างไหมว่าทำไมคนเล่น Hearthstone เก่งๆในทัวร์นาเมนท์เค้าถึงไม่ชอบ Tournament ที่การแข่งเป็นรูปแบบ [ชนะ 2 ใน 3 หรือ bo3] อีกทั้ง Blizzard ก็พึ่งออกมาประกาศเองว่าทัวร์ที่เป็น bo3 จะไม่แจกแต้ม World Championship แล้ว แจกแต่เฉพาะ bo5 เท่านั้น ทั้งสองอันมันต่างกันตรงไหน วันนี้เลยมาคำนวณเล่นๆให้ดูครับ</p><p>tldr; คนเล่นที่เก่งๆจะได้ประโยชน์มากจาก bo5 เพราะได้ win rate แถมฟรีๆ อีกพอสมควรเลย ดูภาพประกอบได้ด้านล่างครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*-28G9zi4djkACSzL1AVNsA.png" /></figure><p>วิธีการคำนวณ (เพื่อความท้าทายเลยขอคิดมากกว่าแค่ bo3/bo5 ไม่งั้นน่าเบื่อแย่)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EunmsNAGakHNmjEKjxB44A.jpeg" /></figure><p>คำถามถัดมาคือคำนวณแล้วเราสรุปอะไรเกี่ยวกับ bo3 ได้บ้าง</p><ul><li>bo3 ไม่ดีสำหรับผู้เล่นที่เก่ง จะเริ่มเห็นประโยชน์สมน้ำสมเนื้อต้องมี win rate ถึง 75% ซึ่งในความเป็นจริงทำได้ยากมาก</li><li>การที่ tournament format ไม่ได้ช่วยให้คนที่เก่งชนะ แปลว่ามัน RNG เยอะ แข่งไปก็วัดความเก่งไม่ได้ คนเก่งๆเลยไม่สนใจ</li><li>แต่ bo3 ก็มีข้อดีตรงแข่งจบเร็ว</li></ul><p>แล้ว bo5 ล่ะ (ตรงนี้มีความเห็นส่วนตัวเยอะหน่อยนะ)</p><ul><li>ผมว่า bo5 จะเริ่มมีประโยชน์กับคนแข่งขันเมื่อ win rate เราถึง 65% ขึ้นไป โดยที่ 65% นั้นเราจะได้ win rate แถมมาอีก 11% ฟรีๆ กลายเป็น 76%</li><li>คำถามถัดมาคือ win rate 65% เป็นไปได้จริงหรือ เคยได้ยินว่า lifecoach ตอน top form มี tournament win rate สูงสุดประมาณ 67% เอง และคนที่ lifetime ladder win rate สูงสุดในโลกคือ mryagut ก็ประมาณ 69%</li><li>คำตอบคือจริงๆเป็นไปได้นะ มาดูกันว่าทำไม</li><li>win rate เกิดขึ้นจาก 4 อย่าง คือ 1. matchup 2. ฝีมือเรา 3. ฝีมือฝ่ายตรงข้าม 4. deck list (แอบบ่น หลายครั้งเห็นคนไปถึง legend กันได้นี่เพราะ matchup ล้วนๆเลย ฝีมือแทบไม่มีผล)</li><li>2 สิ่งที่ทำให้เรามีโอกาสชนะเพิ่มขึ้นง่ายๆ ในการแข่งขัน คือ deck list และการสู้กับคู่ต่อสู้ที่ฝีมือต่ำกว่า (ฝีมือเราไม่นับ เพราะฝึกกันนาน)</li><li>deck list เราสามารถเปลี่ยนการ์ดบางใบออกเพื่อทำให้ matchup เราดีขึ้นได้ เช่น การแบน shaman ก็เอาการ์ดที่แก้ทาง shaman ออก</li><li>ไม่เพียงเท่านั้น ถ้าเรารู้จักเดคที่เราเล่นดีมากๆๆๆ และเราจัดเดคเอง เราจะรู้ว่าการ์ดแต่ละใบ เก่งแค่ไหนใน matchup ต่างๆ เราจะสามารถเปลี่ยนการ์ดบางใบออก โดยไม่กระทบกับเสถียรภาพของเดคได้ เช่นอาจเอา imp gang boss ออกหากเจอ control เยอะๆ สำหรับเดค renolock ถึงแม้ว่า imp gang boss เป็นการ์ดที่ดีมากๆ ก็ตาม</li><li>สรุปว่าการรู้จักเดคตัวเองดีมากๆ ช่วยให้ win rate เพิ่มขึ้นได้พอตัวอยู่นะ แต่ข้อเสียคือ เราจะรู้จักเดคตัวเองได้สักกี่เดคกันเชียว</li><li>คำเตือน ข้อด้านบนใช้กับ cancer deck ไม่ได้นาจา เพราะ aggro efficiency ของการ์ดสำคัญมากจนมีแค่การ์ดไม่กี่ใบที่เปลี่ยนได้</li><li>การสู้กับคู่ต่อสู้ที่ฝีมือต่ำกว่า เราจะสามารถเดามือคู่ต่อสู้ได้ง่ายมาก โดยเฉพาะคนที่เล่นเป็นแต่ยังไม่ถึงขั้น ลองไปฝึกทำดูนะ (hint: ดู curve, tempo, และเวลาคิด) (ถ้าจำไม่ผิดเคยมีโปรคนนึงพูดเรื่องนี้เหมือนกัน คิดว่าคือ rosty ที่พูดตอน america spring championship 2016)</li><li>อีกข้อของการเจอคนที่ฝีมือต่ำกว่า คือมันจะมีสิ่งที่ผิดอยู่บางแบบที่เห็นบ่อยๆ เช่น overtrade/overface, premature aoe usage, premature hard-removal usage, incorrect mulligan มันสามารถ abuse ได้ มันเป็นสิ่งเล็กๆน้อยๆ ที่พอเราทำหลายๆอย่างแล้วมันก็เพิ่ม win rate ได้เยอะเหมือนกันนะ</li><li>bo5 ban1 มีข้อดีอีกอย่างคือ มันบังคับให้เราต้องเล่นเป็นถึง 4 เดค ซึ่งถ้าไม่ใช่คนที่แข่งเป็นประจำมักจะเล่นเป็นจริงๆไม่ถึง 4 เดค</li><li>บางครั้งคนไม่เก่งเล่น deck aggro แล้วบางทีเข้าถึงรอบลึกๆได้เหมือนกัน เพราะ deck aggro เล่นผิดแล้วมันไม่ค่อยแพ้ ต่างกับ mid-range/control/combo ที่เล่นผิดแล้วชะตาขาดได้ง่าย</li><li>สรุปคือเมื่อเจอคนที่ฝีมือด้อยกว่าแล้วเรารู้วิธีเก็บ noob win rate เราจะขึ้นถึง 65–75% ได้ โดยไม่ใช่หวังแค่เพียงให้เค้าเล่นผิดอย่างเดียว</li></ul><p>แล้วภาพรวมล่ะ</p><ul><li>โอกาสชนะ match bo5 ที่เราได้โชว์ให้ดูในตารางนั้นยังมีความสำคัญอีกเยอะเลยนะ ยกตัวอย่างเช่น หากเรา win rate 65% เราจะมีโอกาสชนะ single elimination แบบ 16 ผู้เล่น คือ 0.76483⁴ = 34.21% แต่ถ้าเรา win rate 60% เราจะมีแค่ 0.68256⁴ = 21.7% เอง</li></ul><p>วันนี้พอแค่นี้ก่อนแล้วกันนะครัช จริงๆตั้งใจจะเขียนแค่เรื่องการคำนวณ แต่เขียนไปเขียนมาหยุดไม่อยู่ เลยยาวไปถึงเรื่องเทคนิคหลายๆอย่างที่เก็บสะสมมานานปี คิดซะว่าเขียนไว้กันลืมแล้วกัน</p><p>ครั้งนี้ถือเป็นการเขียนบล็อกครั้งแรกในชีวิตเลยมั้ง ผิดตรงไหนติชมกันได้เลยนะ</p><p>หากใครสนใจบทความก่อนหน้านี่ที่เขียนถึงความสัมพันธ์ระหว่าง Win Rate กับการขึ้นถึง Legend Rank สามารถอ่านได้ตามลิงค์ด้านล่างเลยคับ</p><p><a href="https://www.reddit.com/r/hearthstone/comments/2xnqbs/the_odds_of_you_getting_the_legendary_rank/?st=ixpz6g16&amp;sh=fddd513a">https://www.reddit.com/r/hearthstone/comments/2xnqbs/the_odds_of_you_getting_the_legendary_rank/?st=ixpz6g16&amp;sh=fddd513a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad7f80579681" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>