<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yang9527</title>
    <description>The latest articles on DEV Community by yang9527 (@yang9527).</description>
    <link>https://dev.to/yang9527</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4145389%2F0e63360d-9e00-444e-8128-58dc0a236031.png</url>
      <title>DEV Community: yang9527</title>
      <link>https://dev.to/yang9527</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yang9527"/>
    <language>en</language>
    <item>
      <title>Bringing Laya onto an iPhone: a local decision-model experiment</title>
      <dc:creator>yang9527</dc:creator>
      <pubDate>Sun, 27 Sep 2026 11:28:34 +0000</pubDate>
      <link>https://dev.to/yang9527/bringing-laya-onto-an-iphone-a-local-decision-model-experiment-4af0</link>
      <guid>https://dev.to/yang9527/bringing-laya-onto-an-iphone-a-local-decision-model-experiment-4af0</guid>
      <description>&lt;p&gt;Disclosure: I am the maker of 他爱我吗. This article was prepared with AI assistance from the project's implementation notes.&lt;/p&gt;

&lt;p&gt;A question such as ‘Does he like me?’ looks simple in an interface. It is much harder to decide what an answer should mean. A model cannot see the other person's thoughts, and an attractive percentage does not change that.&lt;/p&gt;

&lt;p&gt;I built a Chinese-language iPhone app to explore a narrower interaction: describe a situation, compare candidate answers, and leave room for uncertainty. Here is the architecture and the product boundary behind that experiment.&lt;/p&gt;

&lt;h2&gt;
  
  
  A decision model instead of a cloud conversation
&lt;/h2&gt;

&lt;p&gt;The app uses a Core ML conversion of laya-multilingual to compare supplied answer options for the question and context. For a relationship question, those options might be affection, no affection, and uncertainty. The wording needs to fit the actual question.&lt;/p&gt;

&lt;p&gt;This is not an unrestricted chatbot generating long responses through a hosted language model. Short conclusions and suggestions use templates. Chinese speech transcription uses SenseVoice locally, and history remains on the device.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Chinese text or speech
        ↓
Local transcription, when needed
        ↓
Question + context + candidate answers
        ↓
Laya through Core ML
        ↓
Relative answer scores + template-based response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keeping analysis on-device is useful when the input is personal. It also shifts responsibilities to the app: model packaging, storage, loading, and keeping the interface responsive become part of the mobile experience. I am not claiming a latency or battery benchmark here; those require measured device tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the percentages do—and do not—mean
&lt;/h2&gt;

&lt;p&gt;A displayed answer score is a relative preference among the options given to the model. It is not evidence that a person has a corresponding probability of being in love.&lt;/p&gt;

&lt;p&gt;An uncertain result belongs in the interaction rather than being treated as an error. More context can help frame a question, but it still cannot establish another person's internal state. The interface should make that limit visible close to the result.&lt;/p&gt;

&lt;p&gt;The image below is an actual Chinese-language result screen. It illustrates the interface, not a validated prediction about anyone.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm7e5rogctzh8vwtn354s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm7e5rogctzh8vwtn354s.png" alt="Actual Chinese-language result screen" width="800" height="1731"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tests I would like to make more systematic
&lt;/h2&gt;

&lt;p&gt;There are useful questions to investigate before making stronger claims about this type of product:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does reversing candidate order change the preferred answer?&lt;/li&gt;
&lt;li&gt;Does a neutral paraphrase of the same story change it substantially?&lt;/li&gt;
&lt;li&gt;Do contradictory details lead to more uncertainty?&lt;/li&gt;
&lt;li&gt;Do reassuring or negative words dominate otherwise equivalent context?&lt;/li&gt;
&lt;li&gt;Does the UI remain responsive while models load and transcription runs?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are proposed evaluation directions, not completed experimental results. A reproducible set of cases would be more useful than an unsupported accuracy number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where JEV and System One fit
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/NandhaKishorM/laya" rel="noopener noreferrer"&gt;Laya's upstream project&lt;/a&gt; describes a non-autoregressive System 1 decision engine and an optional Jev-compatible server interface at &lt;code&gt;/v1/systemone&lt;/code&gt;. That is related technical context, not the architecture of this iOS app: the app uses local Laya inference and does not call the Jev API or run that server.&lt;/p&gt;

&lt;p&gt;The conversion project is available at &lt;a href="https://github.com/mizorewww/laya-coreml" rel="noopener noreferrer"&gt;laya-coreml&lt;/a&gt;. The app itself is not being presented as an open-source project.&lt;/p&gt;

&lt;p&gt;The current interface is Simplified Chinese. The &lt;a href="https://doesheloveme.tennote.site/en/" rel="noopener noreferrer"&gt;project website&lt;/a&gt; shows the screens and limitations. If you are working on a local decision model, I would be interested in comparing evaluation approaches—especially how you prevent users from interpreting a relative score as certainty.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>ios</category>
    </item>
  </channel>
</rss>
